:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  --accent: #e10600;
  --accent-soft: rgba(225, 6, 0, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --max: 1320px;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.is-ready { opacity: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-lockup {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

/* ---- Notice ---- */
.notice-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
  padding: 0.65rem var(--gutter);
}

/* ---- Hero ---- */
.hero-plane {
  position: relative;
  width: 100%;
  min-height: 30vh;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-plane img {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .hero-plane img { transform: scale(1); }

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.15rem var(--gutter) 1.35rem;
}

.hero-caption .inner { max-width: var(--max); margin: 0 auto; }

.hero-caption h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  animation: rise 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stars { color: var(--text); letter-spacing: 0.08em; }
.stars span { letter-spacing: 0; color: var(--muted); }

/* ---- Layout ---- */
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 5rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* ---- Article ---- */
.article-panel { padding: 0; }

.article-panel > p {
  font-size: 1.0625rem;
  color: #222;
  margin: 0 0 1.15rem;
}

.article-panel h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2.75rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--text);
}

.article-panel h2:first-of-type { margin-top: 2rem; }

.benefits-section {
  margin: 2.5rem 0 2rem;
}

.benefits-section > h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.benefits-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  padding: 1.5rem 1.1rem 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .benefit-card {
    padding: 1.5rem 1.35rem 1.6rem;
    border-bottom: none;
    border-right: 1px solid var(--rule);
  }
  .benefit-card:first-child { padding-left: 0; }
  .benefit-card:last-child { border-right: none; padding-right: 0; }
}

.benefit-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.benefit-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
  width: 100%;
}

.cta-inline .btn-primary {
  width: 100%;
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* ---- Proof / transactions ---- */
.proof-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .proof-grid { grid-template-columns: 3fr 2fr; }
}

.proof-grid > img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--rule);
  display: block;
}

.tx-list {
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  font-size: 0.75rem;
  height: 100%;
}

.tx-list .tx-head {
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.tx-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.tx-row:first-of-type { border-top: none; }

.tx-row .gain {
  color: var(--accent);
  font-weight: 700;
  align-self: center;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 0;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #c00500;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.75rem 1.1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.btn-ghost:hover { border-color: var(--text); }

.text-sm { font-size: 0.8125rem; padding: 0.65rem 1rem; }

/* ---- Comments ---- */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.comments > h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  font-size: 1.15rem;
}

.comment-composer {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.comment-composer .avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.comment-composer .flex-1 { flex: 1; min-width: 0; }

.comment-composer .flex { display: flex; }
.comment-composer .justify-end { justify-content: flex-end; }

.comment-composer input,
.comment-composer textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--text);
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.5rem;
  font: inherit;
  resize: vertical;
}

.comment-composer input:focus,
.comment-composer textarea:focus {
  outline: none;
  border-color: var(--text);
}

.comment-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.comment-item.reply { margin-left: 2.5rem; }

.comment-item img {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.comment-body { min-width: 0; flex: 1; }

.comment-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.comment-meta strong {
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.comment-meta span {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-body p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #333;
}

.comment-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.comment-actions button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.comment-actions button.liked { color: var(--accent); }

/* ---- Sidebar ---- */
.sidebar { display: none; }

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: sticky;
    top: 5rem;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
}

.widget {
  background: #fff;
  padding: 1.35rem;
}

.widget h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.widget .sub {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.widget label.sub {
  display: block;
  margin-bottom: 0.35rem;
}

.dial-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

#calc-amount-display {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0.35rem 0 1rem;
  color: var(--text);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--slider-pct, 0%),
    var(--rule) var(--slider-pct, 0%),
    var(--rule) 100%
  );
  outline: none;
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
}

.calc-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
  border-radius: 0;
  cursor: pointer;
}

.calc-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.calc-output {
  border: 1px solid var(--rule);
  padding: 0.9rem;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}

.calc-output .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.calc-output .value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.range-band {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  animation: pulse 1.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.live-today {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.live-today strong { color: var(--accent); font-weight: 700; }

.live-viewport {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.desk-feed-reel { will-change: transform; }

.desk-feed-row {
  height: 56px;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.feed-row-top,
.feed-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.feed-avatar {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.feed-name { font-size: 0.8rem; font-weight: 600; letter-spacing: -0.02em; }

.feed-profit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.feed-pair { font-size: 0.7rem; color: var(--muted); }
.feed-ai { font-size: 0.65rem; color: var(--muted); }

.feed-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--rule);
}

.feed-type-buy { color: var(--accent); border-color: var(--accent); }
.feed-type-sell { color: var(--muted); }

.widget .btn-primary { width: 100%; }

.widget .sub.center {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ---- Mobile bar ---- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.mobile-bar .btn-primary { flex: 1; }

@media (min-width: 1024px) {
  .mobile-bar { display: none; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding: 3rem var(--gutter) 6rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .site-footer { padding-bottom: 3rem; }
}

.site-footer .inner { max-width: var(--max); margin: 0 auto; }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.site-footer h5 {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.site-footer p { margin: 0 0 0.75rem; }
.site-footer b { color: var(--text); }

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.brand-logo-max {
  max-height: 40px;
  width: auto;
}

.copyright {
  margin-top: 1.25rem;
  font-size: 0.75rem;
}

/* ---- Modals ---- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(10, 10, 10, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.modal-open { display: flex; }

.modal-content {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  width: 100%;
  max-width: 420px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-content.wide { max-width: 640px; }

.modal .close {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.modal-header h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal form { padding: 1.25rem 1.5rem 1.5rem; }

.modal form input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.25rem;
  font: inherit;
}

.modal form input:focus {
  outline: none;
  border-color: var(--text);
}

.form-error {
  color: var(--accent);
  font-size: 0.75rem;
  min-height: 1rem;
  margin-bottom: 0.5rem;
}

.modal form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.legal-body {
  padding: 1.75rem 1.5rem;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-body h3 {
  margin-top: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.comment-notice {
  padding: 2rem 1.5rem;
  text-align: center;
}

.comment-notice h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.comment-notice p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.iti { width: 100% !important; }
.iti__selected-dial-code { color: var(--text); }
.iti__country-name { color: #111; }

.overflow-hidden { overflow: hidden; }
