/* Royal Life Homepage — Indigo Steel
   Distinct layout: live activity feed, rate table, referral tree,
   funding walkthrough, security section, worked-example timeline.
   ================================================================ */

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5fb;
  --surface-3: #eeeef7;
  --ink: #10131f;
  --ink-soft: #3c4152;
  --muted: #616785;
  --border: #e3e4f0;
  --border-soft: #eeeff6;

  --accent-900: #26268c;
  --accent-700: #3e3ec2;
  --accent-600: #524fe0;
  --accent-500: #6a67f0;
  --accent-100: #eae9fd;

  --gold: #b45309;
  --gold-light: #d97706;
  --gold-100: #fdf1de;

  --green: #16a34a;
  --green-100: #e7f6ec;
  --red: #dc2626;

  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(16, 19, 31, 0.06);
  --shadow-md: 0 10px 28px rgba(16, 19, 31, 0.09);
  --shadow-lg: 0 24px 60px rgba(16, 19, 31, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
::selection { background: var(--accent-100); color: var(--accent-900); }
:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.about-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; align-items: center; }

/* ===== About: terminal mockup ===== */
.about-visual { position: relative; display: flex; justify-content: center; }
.terminal-card { width: 100%; max-width: 320px; background: var(--surface); border-radius: 16px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); }
.term-bar .td { width: 8px; height: 8px; border-radius: 50%; }
.term-bar .td.r { background: #ef4444; }
.term-bar .td.y { background: #f59e0b; }
.term-bar .td.g { background: #22c55e; }
.term-title { margin-left: 8px; font-size: 10.5px; color: var(--muted); }
.term-chart { padding: 16px 14px 0; }
.term-chart svg { display: block; width: 100%; height: auto; }
.term-stats { display: flex; justify-content: space-between; padding: 14px 18px 18px; }
.term-stats > div { display: flex; flex-direction: column; gap: 3px; }
.term-stats .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.term-stats .v { font-size: 15px; font-weight: 700; }
.about-coin { position: absolute; bottom: -14px; left: -14px; filter: drop-shadow(0 8px 16px rgba(138, 100, 27, 0.35)); }

/* Decorative illustrations use fixed pixel width/height attributes;
   without this they overflow narrow viewports instead of scaling down. */
svg { max-width: 100%; height: auto; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Line-art illustrations ===== */
.line-art { color: var(--accent-600); }
.line-art.muted { color: var(--border); }
.float-slow { animation: floatY 7s ease-in-out infinite; }
.float-slow.d2 { animation-delay: -2.3s; }
.float-slow.d3 { animation-delay: -4.6s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.draw-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLine 2.4s ease forwards 0.3s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Security shield: outline continuously draws in, holds, then redraws */
.draw-line-loop { stroke-dasharray: 600; animation: drawLineLoop 4.5s ease-in-out infinite; }
@keyframes drawLineLoop {
  0% { stroke-dashoffset: 600; }
  40% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 600; }
}

/* Traveling light border — used on cards and the rate table.
   Falls back to a plain static border in browsers without @property support. */
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle),
    transparent 0deg, transparent 315deg, var(--accent-500) 340deg, #fff 353deg, var(--accent-500) 357deg, transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  animation: borderTravel 6s linear infinite;
}
@keyframes borderTravel { to { --border-angle: 360deg; } }

/* ===== Per-section ambient animations ===== */

/* Mechanics: dashes flow left-to-right along the connector, like money moving */
.flow::before { background-size: 14px 2px; animation: dashFlow 1.1s linear infinite; }
@keyframes dashFlow { to { background-position: 14px 0; } }

/* Timeline: a soft pulse sweeps down the vertical rail (percentage-based so it
   works regardless of how tall the content makes the rail) */
.timeline::after {
  content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-500) 50%, transparent);
  background-size: 100% 36%;
  background-repeat: no-repeat;
  background-position: 0 -40%;
  animation: railPulse 3.6s ease-in-out 2;
}
@keyframes railPulse {
  0% { background-position: 0 -40%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { background-position: 0 140%; opacity: 0; }
}

/* Fund wallet: QR code gets a scanning beam sweeping top to bottom */
.wallet-mock { position: relative; overflow: hidden; }
.wallet-mock .wm-qr {
  position: relative; overflow: hidden; padding: 10px; box-sizing: border-box;
}
.wallet-mock .wm-qr svg { display: block; width: 100%; height: 100%; }
.wallet-mock .wm-qr::after {
  content: ""; position: absolute; left: 6%; right: 6%; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(106,103,240,0.55) 45%, rgba(255,255,255,0.65) 50%, rgba(106,103,240,0.55) 55%, transparent);
  animation: qrScan 3.2s ease-in-out infinite;
  filter: blur(0.5px);
}
@keyframes qrScan {
  0%, 100% { top: -22%; }
  50% { top: 100%; }
}
@keyframes sheenSweep {
  0% { background-position: 150% 0; }
  60%, 100% { background-position: -50% 0; }
}
.wallet-mock::before {
  content: ""; position: absolute; top: -60%; right: -30%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(106,103,240,0.25) 0%, transparent 70%);
  animation: blobDrift 14s ease-in-out infinite; pointer-events: none;
}

/* Security: shield gets a soft breathing glow */
.shield-wrap { position: relative; }
.shield-wrap::before {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,79,224,0.16) 0%, transparent 70%);
  animation: glowBreathe 3.4s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Rate table: active-plan row gets a slow sheen sweep */
tr.is-active { position: relative; overflow: hidden; }
tr.is-active td:first-child { position: relative; }
tr.is-active td:first-child::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.5) 45%, transparent 60%);
  background-size: 220% 100%;
  animation: sheenSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

/* Support card: decorative rings drift and pulse */
.support-card svg.deco circle { animation: ringPulse 5s ease-in-out infinite; transform-origin: 70px 70px; }
.support-card svg.deco circle:nth-child(2) { animation-delay: -1.5s; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* CTA band: faint diagonal sheen drifts across */
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sheenSweep 6s ease-in-out infinite;
  pointer-events: none;
}

/* Stats: count-up trigger target */
.stat-cell .v.counting { color: var(--accent-700); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 17px; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; padding: 10px 17px; font-size: 13px; font-weight: 700; font-family: var(--font-body); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-700), var(--accent-500)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-500); color: var(--accent-700); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero: asymmetric, live feed instead of stock art ===== */
.hero { padding: 46px 0 30px; position: relative; overflow: hidden; }

.hero-bg-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg-fx .blob {
  position: absolute; border-radius: 50%; filter: blur(2px);
  animation: blobDrift 18s ease-in-out infinite;
}
.hero-bg-fx .blob-1 {
  width: 520px; height: 520px; top: -220px; right: -180px;
  background: radial-gradient(circle, rgba(106,103,240,0.14) 0%, transparent 70%);
}
.hero-bg-fx .blob-2 {
  width: 380px; height: 380px; bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(82,79,224,0.10) 0%, transparent 70%);
  animation-duration: 22s; animation-delay: -6s;
}
.hero-bg-fx .blob-3 {
  width: 260px; height: 260px; top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(22,163,74,0.07) 0%, transparent 70%);
  animation-duration: 26s; animation-delay: -12s;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, 18px) scale(1.05); }
  66% { transform: translate(-18px, 26px) scale(0.97); }
}
.hero-bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,19,31,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,19,31,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 55% 25%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 55% 25%, black 0%, transparent 75%);
}
#heroChartFx { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; opacity: 0.55; }

/* Ambient gold currency symbols drifting behind the hero content */
.hero-bg-fx .fx-dollar {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  color: transparent; background: linear-gradient(160deg, #f5d565 0%, #d4af37 55%, #a6791f 100%);
  -webkit-background-clip: text; background-clip: text;
  animation: dollarDrift 16s ease-in-out infinite;
}
.hero-bg-fx .fx-dollar.f1 { font-size: 86px; top: 6%; right: 20%; opacity: 0.10; animation-duration: 19s; }
.hero-bg-fx .fx-dollar.f2 { font-size: 52px; bottom: 14%; right: 6%; opacity: 0.13; animation-duration: 15s; animation-delay: -5s; }
.hero-bg-fx .fx-dollar.f3 { font-size: 40px; top: 42%; left: 4%; opacity: 0.10; animation-duration: 22s; animation-delay: -9s; }
@keyframes dollarDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, -22px) rotate(-4deg); }
}

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: start; position: relative; z-index: 1; }
.hero-feed-visual { position: relative; padding: 20px 16px 16px; }
.hero-coin-badge, .hero-candle-badge { position: absolute; z-index: 2; filter: drop-shadow(0 10px 20px rgba(16,19,31,0.16)); }
.hero-coin-badge { top: -6px; right: -6px; filter: drop-shadow(0 10px 18px rgba(138, 100, 27, 0.4)); }
.hero-candle-badge { bottom: 4px; left: -20px; }

/* Gold dollar accents used inline in copy */
.gold-dollar {
  font-weight: 800; color: transparent;
  background: linear-gradient(160deg, #f5d565 0%, #d4af37 55%, #a6791f 100%);
  -webkit-background-clip: text; background-clip: text;
}
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--accent-700); background: var(--accent-100); padding: 5px 12px 5px 8px; border-radius: 30px; margin-bottom: 20px; }
.eyebrow .p { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.hero h1 .rate { font-family: var(--font-mono); color: var(--accent-700); }
.hero .lede { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 460px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.hero-facts { display: flex; gap: 0; margin-top: 24px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.hero-fact { flex: 1; padding-right: 20px; }
.hero-fact .v { font-family: var(--font-mono); font-weight: 600; font-size: 18px; }
.hero-fact .l { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Live feed widget */
.feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.feed-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.feed-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--green); }
.feed-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.feed-list { max-height: 340px; overflow: hidden; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.feed-row .who { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-100); color: var(--accent-700); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.feed-row .mid { flex: 1; min-width: 0; }
.feed-row .action { font-weight: 600; }
.feed-row .time { color: var(--muted); font-size: 11px; margin-top: 1px; }
.feed-row .amt { font-family: var(--font-mono); font-weight: 600; color: var(--green); white-space: nowrap; }
.feed-foot { padding: 12px 18px; text-align: center; font-size: 11.5px; color: var(--muted); background: var(--surface-2); }

/* ===== Stats band ===== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.stat-cell { background: var(--surface); padding: 22px 20px; display: flex; align-items: center; gap: 14px; }
.stat-cell svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent-600); }
.stat-cell .v { font-family: var(--font-mono); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.stat-cell .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ===== Security ===== */
.security-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }
.sec-list { display: flex; flex-direction: column; gap: 0; }
.sec-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.sec-item:first-child { padding-top: 0; }
.sec-item:last-child { border-bottom: none; padding-bottom: 0; }
.sec-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-100); color: var(--accent-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-icon svg { width: 18px; height: 18px; }
.sec-item h3 { font-size: 14px; font-weight: 700; }
.sec-item p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.shield-wrap { display: flex; justify-content: center; }

/* ===== Fund your wallet ===== */
.fund-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.fund-visual { position: relative; }
.fund-coin { position: absolute; top: -18px; right: -16px; filter: drop-shadow(0 8px 16px rgba(138, 100, 27, 0.35)); }
.fund-candles { position: absolute; bottom: -16px; left: -14px; filter: drop-shadow(0 6px 12px rgba(16,19,31,0.18)); }
.wallet-mock { background: linear-gradient(165deg, #10131f, #1c1f38); border-radius: 20px; padding: 26px; color: #fff; box-shadow: var(--shadow-lg); }
.wallet-mock .wm-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; }
.wallet-mock .wm-qr { margin: 16px 0; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #141a2c; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.wallet-mock .wm-net { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 20px; }
.fund-steps { display: flex; flex-direction: column; gap: 22px; }
.fund-step { display: flex; gap: 16px; }
.fund-step .fs-n { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--accent-700); background: var(--accent-100); width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fund-step h3 { font-size: 14.5px; font-weight: 700; }
.fund-step p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.6; max-width: 420px; }
.fund-warn { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-100); border: 1px solid rgba(180,83,9,0.2); border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.fund-warn svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.fund-warn p { font-size: 12.5px; color: #7c4a12; line-height: 1.55; }

/* ===== Timeline (first week) ===== */
.tl-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
.example-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); padding: 26px; position: sticky; top: 90px; }
.example-card .ex-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.example-card .ex-amt { font-family: var(--font-mono); font-weight: 700; font-size: 28px; margin-top: 6px; }
.example-card .ex-chart { margin-top: 16px; }
.example-card .ex-chart svg { display: block; width: 100%; height: auto; }
.example-card .ex-rows { margin-top: 18px; border-top: 1px solid var(--border-soft); }
.example-card .ex-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.example-card .ex-row .k { color: var(--muted); }
.example-card .ex-row .v { font-family: var(--font-mono); font-weight: 600; }
.example-card .ex-row.total .v { color: var(--accent-700); font-size: 15px; }
.example-card .ex-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.timeline { position: relative; padding-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; display: flex; gap: 20px; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 2px solid var(--accent-600); color: var(--accent-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.tl-dot svg { width: 20px; height: 20px; }
.tl-body { padding-top: 6px; }
.tl-body .day { font-family: var(--font-mono); font-size: 11px; color: var(--accent-700); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tl-body h3 { font-size: 15px; font-weight: 700; margin-top: 3px; }
.tl-body p { font-size: 13px; color: var(--muted); margin-top: 5px; max-width: 460px; line-height: 1.6; }

/* ===== Mechanics flow ===== */
.section { padding: 54px 0; scroll-margin-top: 84px; }
.section-head { max-width: 600px; margin-bottom: 30px; }
.section-eyebrow { font-size: 11.5px; font-weight: 700; color: var(--accent-700); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.section h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.section .sub { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.journey { max-width: 720px; margin: 0 auto 28px; }
.journey svg { display: block; width: 100%; height: auto; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.flow::before { content: ""; position: absolute; top: 55px; left: calc(100%/6); right: calc(100%/6); height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); z-index: 0; }
.flow-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-100); color: var(--accent-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.flow-icon svg { width: 24px; height: 24px; }
.flow-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--accent-700);
  background: var(--accent-100); border-radius: 20px; padding: 3px 10px; margin-bottom: 10px; letter-spacing: 0.05em;
}
.flow-step h3 { font-size: 16px; font-weight: 700; }
.flow-step p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.flow-fact { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-700); background: var(--accent-100); padding: 4px 10px; border-radius: 7px; }

/* ===== Rate table (replaces pricing cards) ===== */
.rate-panel { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.rate-decor { position: absolute; top: 30px; right: 40px; opacity: 0.5; pointer-events: none; z-index: 0; }
#rates .wrap { position: relative; z-index: 1; }
table.rates { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.rates thead th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
table.rates thead th:not(:first-child) { text-align: right; }
table.rates tbody td { padding: 18px 20px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.rates tbody tr:last-child td { border-bottom: none; }
table.rates tbody td:not(:first-child) { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.plan-name { font-weight: 700; font-size: 14.5px; }
.plan-name .tag { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rate-highlight { color: var(--accent-700); font-size: 16px; }
tr.is-active td { background: var(--accent-100); }

/* ===== Network (SVG tree, replaces icon list) ===== */
.network-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.network-visual { display: flex; justify-content: center; }
.network-list { display: flex; flex-direction: column; gap: 0; }
.network-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.network-item:first-child { padding-top: 0; }
.network-item:last-child { border-bottom: none; }
.network-badge { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--accent-700); background: var(--accent-100); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.network-item h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.network-item h3 .rate { font-size: 12px; font-weight: 700; background: var(--accent-100); padding: 2px 8px; border-radius: 6px; }
.network-item p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }

/* ===== Trust strip (replaces fake testimonials) ===== */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.trust-item { background: var(--surface); padding: 24px 22px; }
.trust-item .ti-badge { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(150deg, var(--accent-100), #f7f6ff); box-shadow: inset 0 0 0 1px rgba(82,79,224,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.trust-item svg { width: 28px; height: 28px; color: var(--accent-700); }
.trust-item h3 { font-size: 13.5px; font-weight: 700; }
.trust-item p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.55; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.faq-list { max-width: 620px; }
.support-card { background: linear-gradient(165deg, var(--accent-900), var(--accent-700)); border-radius: 18px; padding: 30px; color: #fff; position: sticky; top: 90px; overflow: hidden; }
.support-card svg.deco { position: absolute; top: -10px; right: -10px; opacity: 0.18; }
.support-badge { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; }
.support-badge svg { width: 26px; height: 26px; }
.support-card h3 { font-size: 18px; font-weight: 700; color: #fff; position: relative; }
.support-card p { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 10px; line-height: 1.6; position: relative; max-width: 260px; }
.support-card .support-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; font-weight: 600; position: relative; }
.support-card .support-row svg { width: 17px; height: 17px; flex-shrink: 0; }
.support-card .btn-primary { margin-top: 20px; background: #fff; color: var(--accent-700); position: relative; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; }
.faq-q h4 { font-size: 14.5px; font-weight: 600; }
.faq-q .chev { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--accent-100); color: var(--accent-700); }
.faq-a { display: none; padding: 0 0 20px; font-size: 13.5px; color: var(--muted); line-height: 1.65; max-width: 620px; }
.faq-item.open .faq-a { display: block; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--accent-900), var(--accent-700)); border-radius: 24px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; position: relative; overflow: hidden; }
.cta-band .cta-art { position: absolute; top: -6px; right: 4px; opacity: 0.9; pointer-events: none; }
.cta-band h2 { font-size: 26px; font-weight: 800; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 8px; font-size: 13.5px; }
.cta-band .btn-primary { background: #fff; background-image: none; color: var(--accent-700); }

/* ===== Footer ===== */
.site-footer { background: linear-gradient(165deg, #10131f 0%, #171a2c 100%); color: rgba(255,255,255,0.7); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.55); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: rgba(106,103,240,0.25); border-color: var(--accent-500); }
.footer-social a svg { width: 15px; height: 15px; color: rgba(255,255,255,0.8); }
.footer-col h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px;
}
.footer-bottom .mono { color: rgba(255,255,255,0.6); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

.rate-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rates { min-width: 560px; }

/* ===== Auth pages (login / register) ===== */
.auth-section {
  min-height: calc(100vh - 63px); display: flex; align-items: center; justify-content: center;
  padding: 50px 20px; position: relative; overflow: hidden;
}
.auth-section .hero-bg-fx .blob-1 { width: 420px; height: 420px; top: -180px; right: -140px; }
.auth-section .hero-bg-fx .blob-2 { width: 320px; height: 320px; bottom: -160px; left: -100px; }

.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 44px 40px;
}
.auth-card.wide { max-width: 620px; }
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head .auth-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-100); color: var(--accent-700);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.auth-head .auth-icon svg { width: 24px; height: 24px; }
.auth-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.auth-head p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.form-group { margin-bottom: 18px; position: relative; }
.form-group label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.input-shell { position: relative; display: flex; align-items: center; }
.input-shell svg.field-icon { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; transition: color 0.15s ease; }
.input-shell:focus-within svg.field-icon { color: var(--accent-600); }
.form-control {
  width: 100%; padding: 13px 14px 13px 42px; border-radius: 11px; border: 1.5px solid var(--border);
  font-size: 14px; font-family: var(--font-body); color: var(--ink); background: var(--surface-2);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; outline: none; box-sizing: border-box;
}
.form-control:focus { border-color: var(--accent-600); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-100); }
.form-control[readonly] { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.form-control.has-toggle { padding-right: 42px; }

.field-toggle {
  position: absolute; right: 12px; background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center; padding: 4px; transition: color 0.15s ease;
}
.field-toggle:hover { color: var(--accent-600); }
.field-toggle svg { width: 17px; height: 17px; }

.auth-submit { width: 100%; justify-content: center; padding: 13px 20px; font-size: 14px; margin-top: 6px; }
.field-verify { flex-shrink: 0; align-self: flex-end; margin-bottom: 18px; padding: 12px 16px; }

.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--accent-700); font-weight: 700; }
.auth-foot a:hover { color: var(--accent-600); }

.field-error { color: var(--red); font-size: 12.5px; margin-top: 10px; text-align: center; min-height: 1px; }

.auth-overlay { display: none; position: fixed; inset: 0; background: rgba(16,19,31,0.6); backdrop-filter: blur(4px); z-index: 999; }
.auth-popup {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--surface);
  padding: 32px; border-radius: 18px; box-shadow: var(--shadow-lg); text-align: center; z-index: 1000; width: 90%; max-width: 400px;
}
.auth-popup .popup-icon {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.auth-popup.error .popup-icon { background: var(--red-100, #fdecec); color: var(--red); }
.auth-popup.success .popup-icon { background: var(--green-100); color: var(--green); }
.auth-popup .popup-icon svg { width: 22px; height: 22px; }
.auth-popup h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.auth-popup p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.auth-popup table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; text-align: left; }
.auth-popup table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.auth-popup table tr:last-child td { border-bottom: none; }
.auth-popup table td:first-child { font-weight: 600; color: var(--ink-soft); width: 100px; }
.auth-popup .copy-inline { background: none; border: none; color: var(--accent-700); font-weight: 700; cursor: pointer; font-size: 12px; margin-left: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0; z-index: 49;
    background: #fff; border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 22px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 980px) {
  .hero-grid, .network-grid, .cta-band, .tl-grid, .faq-grid, .security-grid, .fund-grid, .about-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { display: none; }
  .trust-strip, .stats-band { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 22px; }
  .example-card, .support-card { position: static; }
  .hero-facts { flex-wrap: wrap; gap: 16px 0; }
  .hero-fact { flex: 1 1 45%; padding-right: 12px; }
  .hero-illustration, .hero-coin-badge, .hero-candle-badge { display: none; }
  .hero-feed-visual { padding: 0; }
  .rate-decor { display: none; }
}
@media (max-width: 620px) {
  .trust-strip, .stats-band { grid-template-columns: 1fr; }
  .hero { padding: 30px 0 26px; }
  .hero h1 { font-size: 28px; }
  .hero-grid { gap: 26px; }
  .cta-band { flex-direction: column; text-align: center; padding: 34px 24px; }
  .cta-band .cta-art { display: none; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 24px; }
  .wrap { padding: 0 18px; }

  /* Mobile hero: the desktop blobs mostly clip off-screen at this width,
     which is what made the section read as plain — bring them in close
     and add a visible accent badge + underline behind the headline instead. */
  .hero-bg-fx .blob-1 { width: 260px; height: 260px; top: -110px; right: -90px; }
  .hero-bg-fx .blob-2 { width: 220px; height: 220px; bottom: -100px; left: -80px; }
  .hero-bg-fx .blob-3 { display: none; }
  .hero-bg-fx .grid { -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 15%, black 0%, transparent 75%); mask-image: radial-gradient(ellipse 90% 60% at 50% 15%, black 0%, transparent 75%); }
  #heroChartFx { height: 140px; opacity: 0.4; }

  .eyebrow { position: relative; }
  .hero h1 {
    position: relative; display: inline-block; padding-bottom: 4px;
  }
  .hero h1::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 46px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
  }

  /* Auth pages (login / register): stop cramming two fields per row --
     that's what was truncating every placeholder on a phone screen. */
  .auth-section { padding: 26px 14px; align-items: flex-start; min-height: auto; }
  .auth-card { padding: 28px 20px; border-radius: 18px; }
  .auth-card.wide { max-width: 440px; }
  .form-row { flex-direction: column; gap: 0; }
  .auth-head .auth-icon { width: 44px; height: 44px; }
  .auth-head h1 { font-size: 20px; }
}
