/* ==========================================================================
   Captra Markets — public website
   ========================================================================== */
:root {
  --teal: #1a9ea6; --teal-600: #12848b; --teal-700: #0d6a70; --teal-300: #5fd0d3; --teal-050: #e8f6f7;
  --ink: #0c1820; --ink-2: #12232d; --ink-3: #1b3240;
  --steel: #8b98a3; --silver: #d4dbe0;
  --bg: #ffffff; --bg-2: #f3f6f8; --line: #e2e8ec;
  --text: #13212b; --muted: #5a6a76; --faint: #8b98a3;
  --up: #16a34a; --down: #dc2626;
  --radius: 18px; --shadow: 0 2px 4px rgba(12,24,32,.04), 0 12px 32px rgba(12,24,32,.08);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
.material-icons-outlined { vertical-align: middle; line-height: 1; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-600)); color: #fff; box-shadow: 0 8px 22px rgba(26,158,166,.32); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(26,158,166,.42); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: #e6f0f3; }
.btn-ghost:hover { border-color: var(--teal-300); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-700); background: #fff; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(12,24,32,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav-row { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { display: block; letter-spacing: .16em; font-size: 1.02rem; line-height: 1.1; }
.brand small { display: block; letter-spacing: .36em; font-size: .62rem; color: var(--teal-300); font-weight: 700; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > a { color: #b9cbd3; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 10px; }
.main-nav > a:hover, .main-nav > a.active { color: #fff; background: rgba(255,255,255,.06); }
.main-nav > a.active { box-shadow: inset 0 -2px 0 var(--teal-300); border-radius: 10px 10px 4px 4px; }
.nav-cta { display: flex; gap: 10px; margin-left: 14px; }
.nav-cta .btn { padding: 10px 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }

/* Ticker */
.ticker { background: #0a141a; border-bottom: 1px solid rgba(255,255,255,.05); min-height: 46px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #e6f0f3; background: radial-gradient(80% 90% at 85% 10%, rgba(26,158,166,.30), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(95,208,211,.10), transparent 60%), linear-gradient(180deg, #0c1820, #0b1d26); padding: 90px 0 110px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--teal-300), #b8f1f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #a9c1ca; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-proof { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-proof div b { display: block; font-size: 1.6rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero-proof div span { font-size: .82rem; color: #8aa6b1; }
.hero-visual { position: relative; }
.hero-card { background: rgba(18,35,45,.75); border: 1px solid rgba(95,208,211,.18); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.hero-card h4 { margin: 0; color: #fff; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.hero-card .pair { font-size: 1.9rem; font-weight: 800; color: #fff; margin: 10px 0 2px; letter-spacing: -.02em; }
.hero-card .chg { color: #4ade80; font-weight: 700; font-size: .9rem; }
.hero-card svg { width: 100%; height: 150px; display: block; margin-top: 12px; }
.hero-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.hero-chips div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; }
.hero-chips small { display: block; color: #7f9aa5; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero-chips b { color: #fff; font-size: .95rem; }
.hero-logo { position: absolute; right: -40px; top: -60px; width: 220px; opacity: .12; pointer-events: none; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #8aa6b1; font-weight: 600; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }

/* Sections */
section.block { padding: 96px 0; }
section.alt { background: var(--bg-2); }
section.dark { background: linear-gradient(180deg, #0c1820, #10242e); color: #d9e6eb; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .muted { color: #93acb6; }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(12,24,32,.12); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-600); margin-bottom: 18px; }
.card .ico .material-icons-outlined { font-size: 26px; }
.card p { color: var(--muted); }
.card ul { padding-left: 18px; color: var(--muted); margin: 0; }
.card ul li { margin: 4px 0; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.tag.teal { background: var(--teal-050); color: var(--teal-700); border-color: transparent; }
section.dark .card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); box-shadow: none; }
section.dark .card p { color: #9fb6bf; }
section.dark .card .ico { background: rgba(26,158,166,.16); color: var(--teal-300); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 2; }
.stats div { padding: 28px 26px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stats span { color: var(--muted); font-size: .9rem; }
.stats small { display: block; color: var(--faint); font-size: .74rem; margin-top: 6px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 2.4rem; font-weight: 800; color: rgba(95,208,211,.35); display: block; margin-bottom: 8px; letter-spacing: -.04em; }
.step p { color: #9fb6bf; margin: 0; font-size: .95rem; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.compare thead th { background: var(--ink); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.compare thead th:first-child { color: var(--teal-300); }
.compare tbody th { color: var(--muted); font-weight: 700; width: 18%; background: var(--bg-2); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li .material-icons-outlined { color: var(--teal); background: var(--teal-050); border-radius: 50%; padding: 4px; font-size: 18px; }
.panel { background: linear-gradient(160deg, #0f2a33, #0b1a22); border-radius: 22px; padding: 30px; color: #d9e6eb; box-shadow: 0 30px 70px rgba(12,24,32,.25); position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 220px; height: 220px; background: url("../img/logo-mark.png") center/contain no-repeat; opacity: .1; }
.panel h3 { color: #fff; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 0; position: relative; z-index: 1; }
.kv span { padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.1); color: #9fb6bf; }
.kv b { padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.1); color: #fff; text-align: right; }

/* Sessions */
.sessions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.session { border-radius: 16px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.session b { display: block; font-size: 1.05rem; }
.session .time { color: var(--teal-700); font-weight: 700; font-size: .92rem; }
.session p { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq button { width: 100%; text-align: left; background: none; border: 0; padding: 20px 0; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq button::after { content: "+"; font-size: 1.4rem; color: var(--teal); line-height: 1; }
.faq button[aria-expanded="true"]::after { content: "−"; }
.faq .answer { padding: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { border-radius: 26px; padding: 56px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(90% 120% at 100% 0%, rgba(95,208,211,.35), transparent 55%), linear-gradient(135deg, #0c1820, #0f3d45); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #a9c1ca; margin: 0; }

/* Page hero */
.page-hero { background: radial-gradient(70% 120% at 90% 0%, rgba(26,158,166,.28), transparent 60%), linear-gradient(180deg, #0c1820, #0f222c); color: #d9e6eb; padding: 80px 0 70px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: #a9c1ca; }

/* Prose (legal) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: #3d4d58; }
.notice { border-left: 4px solid var(--teal); background: var(--teal-050); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--teal-700); margin: 0 0 24px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: .95rem; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,158,166,.15); }
.form .hp { position: absolute; left: -10000px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.alert.ok { background: #e5f5ec; color: #11683a; }
.alert.err { background: #fbe9e9; color: #a32222; }

/* Footer */
.site-foot { background: #0a141a; color: #8aa3ad; padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-foot h4 { color: #fff; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot a { color: #9fb6bf; display: block; padding: 4px 0; font-size: .94rem; }
.site-foot a:hover { color: var(--teal-300); }
.site-foot .brand { display: flex; margin-bottom: 16px; }
.site-foot .muted { color: #7f98a3; max-width: 340px; }
.foot-risk { border-top: 1px solid rgba(255,255,255,.07); margin-top: 46px; padding-top: 24px; font-size: .82rem; color: #6f8994; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
  .g4, .steps, .sessions { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: #0c1820; flex-direction: column; align-items: stretch; padding: 12px 22px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 10px; }
  .nav-cta { margin: 10px 0 0; flex-direction: column; }
  .hero-grid, .split, .g3, .g2, .cta, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 96px; }
  section.block { padding: 70px 0; }
  .cta { padding: 36px 26px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .g4, .steps, .sessions, .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .form .row2 { grid-template-columns: 1fr; }
  .hero-chips { grid-template-columns: 1fr 1fr; }
  .card { padding: 22px; }
}
