/* Fytrade — presentation site */

:root {
  --bg: #04090a;
  --bg-2: #071113;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9f3f0;
  --sub: #94a7a1;
  --muted: #64766f;
  --brand: #00b386;
  --brand-2: #2fe0b0;
  --cyan: #38e1ff;
  --violet: #8b7bff;
  --red: #ff6b4a;
  --amber: #ffc164;
  --glow: 0 0 0 1px rgba(47, 224, 176, 0.25), 0 20px 60px -20px rgba(0, 179, 134, 0.55);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: rgba(47, 224, 176, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #001; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Background ---------- */

.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: "";
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.orb.a { width: 520px; height: 520px; background: #00b386; top: -180px; left: -120px; }
.orb.b { width: 460px; height: 460px; background: #1a5cff; top: 10%; right: -200px; opacity: 0.28; animation-delay: -8s; }
.orb.c { width: 380px; height: 380px; background: #7a4dff; top: 55%; left: 30%; opacity: 0.16; animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* ---------- Risk strip ---------- */

.risk-strip {
  background: linear-gradient(90deg, rgba(255, 193, 100, 0.12), rgba(255, 193, 100, 0.04));
  border-bottom: 1px solid rgba(255, 193, 100, 0.2);
  color: #ffdca6;
  font-size: 0.82rem;
  text-align: center;
  padding: 7px 16px;
}
.risk-strip strong { color: var(--amber); }
.risk-strip a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(4, 9, 10, 0.62);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.25rem var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 24px rgba(0, 179, 134, 0.5); }
.brand .tag { font: 600 0.62rem var(--mono); color: var(--brand-2); border: 1px solid rgba(47, 224, 176, 0.35); padding: 2px 6px; border-radius: 6px; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { color: var(--sub); font-size: 0.92rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 920px) {
  .menu-btn { display: grid; place-items: center; }
  .nav .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: rgba(4, 9, 10, 0.97); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #00140e; box-shadow: var(--glow); }
.btn-primary:hover { color: #00140e; box-shadow: 0 0 0 1px rgba(47, 224, 176, 0.4), 0 24px 70px -18px rgba(0, 179, 134, 0.8); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; border-radius: 11px; }

.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; background: #000; border: 1px solid var(--border-strong); color: var(--text); min-width: 190px; }
.store-btn:hover { color: var(--text); border-color: var(--brand-2); box-shadow: var(--glow); }
.store-btn small { display: block; font-size: 0.68rem; color: var(--sub); line-height: 1.2; }
.store-btn b { display: block; font: 600 1.05rem var(--display); line-height: 1.2; }
.store-btn svg { flex: none; }

/* ---------- Common blocks ---------- */

section { padding: 96px 0; position: relative; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--sub); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad { background: linear-gradient(100deg, #fff 10%, var(--brand-2) 50%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { margin-bottom: 56px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.card:hover { border-color: rgba(47, 224, 176, 0.3); background: rgba(255, 255, 255, 0.05); transform: translateY(-4px); }
.card p { color: var(--sub); margin: 0; font-size: 0.96rem; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(47, 224, 176, 0.2), rgba(56, 225, 255, 0.08));
  border: 1px solid rgba(47, 224, 176, 0.3); color: var(--brand-2);
}

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.82rem; color: var(--sub); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .pill .dot, .marquee-track, .float { animation: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; color: var(--sub); font-size: 0.86rem; }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { color: var(--brand-2); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: 2; } }

.hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; }
.hero-visual canvas.chart-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 75%); }
@media (max-width: 600px) { .hero-visual { min-height: 560px; } }

/* Phone mockup */
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1d2a2a, #070c0d 40%, #121a1b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 120px -30px rgba(0, 179, 134, 0.55), inset 0 0 0 2px rgba(255,255,255,0.04);
  z-index: 2;
}
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0e1212; padding: 46px 16px 16px; font-size: 12px; }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; }
.scr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.scr-top b { font: 600 15px var(--display); }
.demo-badge { font: 600 9px var(--mono); letter-spacing: 0.08em; color: var(--amber); border: 1px solid rgba(255, 193, 100, 0.4); padding: 3px 7px; border-radius: 6px; }
.bal-card { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, rgba(0, 179, 134, 0.35), rgba(56, 225, 255, 0.08)); border: 1px solid rgba(47, 224, 176, 0.3); margin-bottom: 14px; }
.bal-card small { color: #b6d9cf; font-size: 10.5px; }
.bal-card .amt { font: 700 24px var(--display); margin: 2px 0 8px; letter-spacing: -0.02em; }
.bal-card .chg { font: 500 11px var(--mono); color: var(--brand-2); }
.mini-chart { height: 110px; border-radius: 14px; background: #121818; border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; }
.mini-chart canvas { width: 100%; height: 100%; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.row:last-child { border-bottom: 0; }
.row .sym { display: flex; align-items: center; gap: 10px; }
.row .av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 10px var(--display); background: var(--surface-2); color: var(--sub); }
.row b { font-weight: 600; font-size: 12px; display: block; }
.row small { color: var(--muted); font-size: 10px; }
.row .px { text-align: right; font-family: var(--mono); font-size: 11.5px; }
.up { color: var(--brand-2); }
.down { color: var(--red); }
.scr-tabs { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-around; padding: 10px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); backdrop-filter: blur(10px); font-size: 9.5px; color: var(--muted); }
.scr-tabs span.on { color: var(--brand-2); }

.chip-float {
  position: absolute; z-index: 3; padding: 12px 14px; border-radius: 16px;
  background: rgba(10, 18, 19, 0.82); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); font-size: 12px;
}
.chip-float small { display: block; color: var(--sub); font-size: 10.5px; }
.chip-float b { font: 600 14px var(--display); }
.chip-float.one { top: 12%; left: 0; animation-delay: -2s; }
.chip-float.two { bottom: 16%; right: 0; animation-delay: -4s; }
@media (max-width: 600px) { .chip-float.one { left: -4px; top: 6%; } .chip-float.two { right: -4px; bottom: 8%; } }

/* ---------- Marquee ---------- */

.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font: 500 0.92rem var(--mono); color: var(--sub); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "◆"; color: var(--brand); font-size: 0.6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Is / Is not ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card { padding: 32px; }
.compare ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.compare li { display: flex; gap: 12px; color: var(--sub); }
.compare li svg { flex: none; margin-top: 3px; }
.compare .yes h3 { color: var(--brand-2); }
.compare .no h3 { color: var(--red); }
.compare .no { border-color: rgba(255, 107, 74, 0.18); }

/* ---------- Steps ---------- */

.steps { counter-reset: s; }
.step { padding-top: 64px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 24px; left: 28px; font: 600 0.8rem var(--mono); color: var(--brand-2);
  padding: 4px 10px; border: 1px solid rgba(47, 224, 176, 0.35); border-radius: 8px;
}

/* ---------- Feature split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.rev .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-media { order: 0; } .split + .split { margin-top: 72px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--sub); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: rgba(47, 224, 176, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fe0b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; border: 1px solid rgba(47, 224, 176, 0.3); }

.panel { border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); padding: 22px; box-shadow: 0 40px 100px -40px rgba(0, 179, 134, 0.35); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.86rem; color: var(--sub); }
.panel-head b { color: var(--text); font-family: var(--display); font-size: 1rem; }
.panel canvas { width: 100%; height: 260px; }

table.oc { width: 100%; border-collapse: collapse; font: 500 0.82rem var(--mono); }
.oc th { color: var(--muted); font-weight: 500; text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.oc td { text-align: right; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--sub); }
.oc td.k { text-align: center; color: var(--text); background: rgba(255,255,255,0.03); font-weight: 600; }
.oc th.k { text-align: center; }
.oc tr.atm td { background: rgba(47, 224, 176, 0.08); }
.oc tr.atm td.k { color: var(--brand-2); }
.oc .itm-c td:nth-child(-n+2), .oc .itm-p td:nth-last-child(-n+2) { background: rgba(255, 193, 100, 0.05); }

.order-ui { display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg span { text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; font-size: 0.88rem; color: var(--sub); }
.seg span.on { background: var(--brand); color: #00140e; }
.field { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); font-size: 0.9rem; }
.field span { color: var(--sub); }
.field b { font-family: var(--mono); font-weight: 500; }
.field.sl b { color: var(--red); }
.field.tg b { color: var(--brand-2); }

.feed-post { padding: 16px; border-radius: 16px; background: rgba(0,0,0,0.25); border: 1px solid var(--border); margin-bottom: 12px; }
.feed-post:last-child { margin-bottom: 0; }
.feed-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-post .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: #00140e; }
.feed-post b { font-size: 0.9rem; display: block; line-height: 1.2; }
.feed-post small { color: var(--muted); font-size: 0.76rem; }
.feed-post p { color: var(--sub); font-size: 0.9rem; margin: 0; }
.tag-learn { margin-left: auto; font: 600 0.66rem var(--mono); color: var(--cyan); border: 1px solid rgba(56, 225, 255, 0.35); padding: 3px 8px; border-radius: 6px; }

/* ---------- Learn ---------- */

.lesson { display: flex; flex-direction: column; }
.lesson .lvl { font: 600 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.lesson ul { color: var(--sub); padding-left: 18px; margin: 14px 0 0; font-size: 0.93rem; }
.lesson li { margin-bottom: 6px; }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.glossary dt { font: 600 1rem var(--display); color: var(--text); margin-top: 22px; }
.glossary dd { margin: 6px 0 0; color: var(--sub); font-size: 0.95rem; padding-bottom: 22px; border-bottom: 1px solid var(--border); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(47, 224, 176, 0.3); background: rgba(255,255,255,0.05); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--mono); color: var(--brand-2); transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 24px 20px; color: var(--sub); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */

.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 72px 40px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(0, 179, 134, 0.35), transparent 60%), linear-gradient(160deg, #0b1d1b, #060c0d);
  border: 1px solid rgba(47, 224, 176, 0.25);
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.cta > * { position: relative; }
.cta .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta .fine { color: var(--muted); font-size: 0.82rem; margin-top: 22px; }
@media (max-width: 600px) { .cta { padding: 52px 20px; border-radius: 24px; } }

/* ---------- Page hero & legal docs ---------- */

.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .meta { color: var(--muted); font: 500 0.82rem var(--mono); margin-top: 14px; }

.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 96px; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--surface); font-size: 0.86rem; }
.toc b { display: block; font: 600 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); }
.toc li { margin: 6px 0; }
.toc a { color: var(--sub); }
.toc a:hover { color: var(--brand-2); }
@media (max-width: 900px) { .toc ol { columns: 2; column-gap: 24px; } }
@media (max-width: 520px) { .toc ol { columns: 1; } }

.doc-layout > * { min-width: 0; }
.doc { max-width: 760px; color: #c9d6d2; }
.doc h2 { font-size: 1.45rem; margin-top: 2.4em; padding-top: 0.4em; scroll-margin-top: 90px; color: var(--text); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; margin-top: 1.6em; color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.92rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.callout { border-radius: 16px; padding: 20px 22px; margin: 0 0 1.6em; border: 1px solid rgba(255, 193, 100, 0.3); background: rgba(255, 193, 100, 0.06); color: #f3dfbd; }
.callout.info { border-color: rgba(47, 224, 176, 0.3); background: rgba(47, 224, 176, 0.06); color: #cdeee4; }
.callout strong { color: #fff; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-card { display: flex; flex-direction: column; }
.contact-card a.big { font: 600 1.08rem var(--display); margin-top: auto; padding-top: 18px; word-break: break-all; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0, 179, 134, 0.04)); padding: 64px 0 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font: 600 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--sub); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--brand-2); }
.foot-about p { color: var(--sub); font-size: 0.92rem; max-width: 360px; margin-top: 16px; }
.disclaimer-box { margin-top: 48px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.disclaimer-box strong { color: var(--sub); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 0.82rem; }

/* ---------- 404 ---------- */

.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .code { font: 700 clamp(5rem, 18vw, 10rem) var(--display); line-height: 1; letter-spacing: -0.05em; }

/* Referral page */
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 22px; }
.invite-code { font: 700 clamp(2rem, 7vw, 3rem) var(--mono); letter-spacing: 0.18em; color: #fff; }
.invite-steps { color: var(--sub); padding-left: 20px; margin: 0 0 8px; display: grid; gap: 6px; }
.invite-steps strong { color: var(--text); }
