/* ============================================================
   Metafix — metafix.ai
   Modern fintech dark theme
   ============================================================ */

/* Self-hosted fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --text-2: #a7b1c2;
  --text-3: #6b7688;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --green: #34d399;
  --red: #f87171;
  --gold: #fbbf24;
  --grad: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --grad-text: linear-gradient(110deg, #7dd3fc 0%, #38bdf8 40%, #818cf8 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --max-w: 1160px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(56, 189, 248, 0.35); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- background decor ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 500px at 15% -5%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 600px at 50% 110%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); opacity: 0.6; }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--text-2); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 15px;
  font-family: var(--font-body); cursor: pointer; border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04101c;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(56, 189, 248, 0.4); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; border-radius: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: 0.22em; color: var(--text); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* mobile nav */
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: rgba(6, 9, 16, 0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 20px 24px 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 170px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--text-2);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 22px; }
.hero-sub { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 18px; transition: border-color 0.15s, background 0.15s;
}
.store-badge:hover { border-color: var(--border-strong); background: var(--surface-2); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge .sb-text { line-height: 1.2; }
.store-badge .sb-small { font-size: 10.5px; color: var(--text-3); display: block; }
.store-badge .sb-big { font-size: 14.5px; font-weight: 600; }

/* ---------- phone mockup ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: 10% 12%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.22), rgba(99,102,241,0.12) 50%, transparent 70%);
  filter: blur(30px);
}
/* iPhone 17 Pro style frame */
.phone {
  position: relative; z-index: 1; width: 318px; border-radius: 58px;
  background: #000; padding: 11px;
  box-shadow:
    0 0 0 2.5px #5a5f68,
    0 0 0 4.5px #2b2f36,
    0 45px 90px rgba(0,0,0,0.65),
    0 0 60px rgba(56,189,248,0.05);
}
.ip-sbtn { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(180deg, #6a707b, #383d45 20%, #383d45 80%, #23262c); }
.sb-act { left: -8px; top: 108px; height: 26px; }
.sb-vu  { left: -8px; top: 152px; height: 46px; }
.sb-vd  { left: -8px; top: 206px; height: 46px; }
.sb-pw  { right: -8px; top: 168px; height: 78px; }
.ip-screen { background: #000; border-radius: 47px; overflow: hidden; position: relative; padding: 0 11px; }
.ip-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 14px 6px; position: relative; }
.ip-time { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.ip-island {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  width: 100px; height: 29px; border-radius: 100px; background: #060607;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}
.ip-island::after {
  content: ""; position: absolute; right: 8px; top: 7.5px; width: 14px; height: 14px;
  border-radius: 50%; background: radial-gradient(circle at 38% 35%, #1d2735, #05070a 65%);
}
.ip-sicons { display: flex; gap: 5px; align-items: center; }
.ip-homebar { width: 120px; height: 4.5px; border-radius: 100px; background: #fff; opacity: 0.35; margin: 12px auto 7px; }
.p-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; }
.p-symbol { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.p-price { font-size: 13px; color: var(--text-2); }
.p-chg { font-size: 12px; font-weight: 700; color: var(--green); background: rgba(52,211,153,0.12); padding: 3px 9px; border-radius: 7px; }
.p-chart { margin: 6px 4px 10px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 8px; }
.p-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 4px; }
.p-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.p-stat .k { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.p-stat .v { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.p-stat .v.up { color: var(--green); }
.p-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 4px 2px; }
.p-btn { text-align: center; border-radius: 12px; padding: 12px 0; font-weight: 700; font-size: 14px; font-family: var(--font-display); }
.p-btn.sell { background: rgba(248,113,113,0.14); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.p-btn.buy { background: rgba(52,211,153,0.14); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }

/* floating cards near phone */
.float-card {
  position: absolute; z-index: 2;
  background: rgba(13, 19, 33, 0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; }
.float-card .fc-value { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.fc-1 { top: 12%; left: -2%; animation-delay: 0s; }
.fc-2 { bottom: 16%; right: -4%; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.trust-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.trust-item svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

/* ---------- cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.35); background: var(--surface-2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25); color: var(--accent);
  margin-bottom: 22px;
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }

/* ---------- feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
  padding: 60px 0;
}
.feature-row.reverse .fr-visual { order: 2; }
.feature-row h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.feature-row p { color: var(--text-2); font-size: 16.5px; margin-bottom: 24px; }
.fr-points { list-style: none; display: grid; gap: 12px; }
.fr-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.fr-points li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.fr-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; position: relative; overflow: hidden;
}
.fr-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(56,189,248,0.08), transparent 60%);
  pointer-events: none;
}
.fr-stats { display: flex; gap: 14px; margin-top: 16px; }
.fr-stat { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.fr-stat .v { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.fr-stat .v.up { color: var(--green); }
.fr-stat .k { font-size: 12px; color: var(--text-3); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 30px;
}
.step-num {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3); margin-bottom: 22px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.2s, background 0.2s;
}
.why-item:hover { border-color: rgba(56,189,248,0.3); background: var(--surface-2); }
.why-item h4 { font-size: 16.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.why-item h4 svg { width: 18px; height: 18px; color: var(--accent); }
.why-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- feature list page ---------- */
.feat-cat { margin-bottom: 70px; }
.feat-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.feat-cat-head .card-icon { margin-bottom: 0; }
.feat-cat-head h3 { font-size: 24px; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.feat-item svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.feat-item span { color: var(--text-2); font-size: 15px; }
.feat-item b { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(99,102,241,0.12));
  border: 1px solid rgba(56,189,248,0.25); border-radius: 28px;
  padding: 70px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -30%, rgba(56,189,248,0.2), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--text-2); font-size: 17px; margin-bottom: 32px; position: relative; }
.cta-band .hero-ctas { justify-content: center; position: relative; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; cursor: pointer;
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform 0.25s; flex-shrink: 0; color: var(--text-3); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 34px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
  border-radius: 11px; padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 160px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.page-hero p { color: var(--text-2); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,0.015); padding: 70px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer h5 { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--text-3); font-size: 14.5px; transition: color 0.15s; }
.footer ul a:hover { color: var(--text); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }
.risk-warning {
  border-top: 1px solid var(--border); padding: 26px 0;
  font-size: 12.5px; color: var(--text-3); line-height: 1.65;
}
.risk-warning b { color: var(--text-2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-3);
}
.footer-bottom .legal-links { display: flex; gap: 22px; }
.footer-bottom .legal-links a:hover { color: var(--text); }

/* ---------- app UI (faithful screen recreations) ---------- */
.app-ui { background: #000; }
.as-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 12px; }
.as-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.as-cbtn {
  width: 34px; height: 34px; border-radius: 50%; background: #1b1c1f;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.as-cbtn svg { width: 15px; height: 15px; }
.as-hgroup { display: flex; gap: 8px; }
.as-up { color: #3d7ef7; }
.as-dn { color: #ef4444; }
.as-wh { color: #fff; }
.as-row { display: flex; align-items: center; padding: 8.5px 4px; }
.as-row > div:first-child { flex: 1.15; min-width: 0; }
.as-row > div { flex: 1; text-align: right; }
.as-row > div:first-child { text-align: left; }
.as-chg { display: block; font-size: 10.5px; font-weight: 600; }
.as-sym { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.as-meta { display: block; font-size: 9px; color: #5b6470; }
.as-px { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: 0.01em; }
.as-px sup { font-size: 9.5px; }
.as-lh { display: block; font-size: 9.5px; color: #5b6470; }
.as-tabbar {
  display: flex; justify-content: space-around; align-items: center;
  background: #161719; border-radius: 100px; padding: 7px 8px; margin: 12px 2px 2px;
}
.as-tab { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; color: #9aa3af; padding: 4px 9px; border-radius: 100px; }
.as-tab svg { width: 15px; height: 15px; }
.as-tab.on { color: #3d7ef7; background: #24262b; }
/* orders screen */
.as-pl-head { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #3d7ef7; padding: 8px 0 14px; position: relative; }
.as-pl-head .as-cbtn { position: absolute; right: 2px; top: 2px; }
.as-acct { background: #131417; border: 1px solid #222; border-radius: 16px; padding: 14px 16px; margin: 0 2px; }
.as-acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.as-acct-grid .k { font-size: 10px; color: #8b94a1; }
.as-acct-grid .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.as-acct-grid > div:nth-child(even) { text-align: right; }
.as-mlevel { display: flex; justify-content: space-between; font-size: 10px; color: #8b94a1; margin-top: 12px; }
.as-mlevel b { color: #34d399; font-size: 11.5px; }
.as-mbar { height: 6px; border-radius: 100px; background: #222; margin-top: 6px; overflow: hidden; }
.as-mbar span { display: block; height: 100%; width: 96%; border-radius: 100px; background: #34d399; }
.as-sec { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 6px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.as-sec span { color: #5b6470; letter-spacing: 0.2em; }
.as-trade { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; }
.as-trade .l1 { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.as-badge { background: #1e3a5f; color: #4d9df8; font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.as-trade .l2 { font-size: 10px; color: #8b94a1; margin-top: 2px; }
.as-trade .pl { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #3d7ef7; text-align: right; }
.as-trade .tid { font-size: 8.5px; color: #5b6470; text-align: right; }
/* chart screen bits */
.as-chart-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.as-tf { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.as-symbol { color: #2dd4bf; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.as-chart-wrap { position: relative; }
.as-tag { position: absolute; right: 6px; font-family: var(--font-display); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #fff; }
.as-tag.red { background: #dc2626; top: 12px; }
.as-tag.grn { background: #16a34a; top: 30px; }
/* splash screen */
.as-splash { display: grid; place-items: center; padding: 60px 0 70px; }
.as-splash .logo-icon { width: 110px; height: 110px; }
.as-splash-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.34em; margin: 22px 0 30px; text-indent: 0.34em; }
.as-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(61,126,247,0.2); border-top-color: #3d7ef7; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* showcase */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; justify-items: center; align-items: start; }
.showcase .phone { width: 302px; }
.showcase figure { margin: 0; display: grid; gap: 18px; justify-items: center; }
.showcase figcaption { font-size: 14.5px; color: var(--text-2); text-align: center; }
.showcase figcaption b { color: var(--text); font-family: var(--font-display); display: block; font-size: 16px; margin-bottom: 3px; }
@media (max-width: 980px) { .showcase { grid-template-columns: 1fr; } }

/* ---------- macbook mockup + cockpit ---------- */
.macbook { max-width: 1020px; margin: 0 auto; }
.mb-screen {
  background: #05070c; border: 2px solid #2b303b; border-bottom: none;
  border-radius: 18px 18px 0 0; padding: 12px 12px 0; position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}
.mb-cam { width: 7px; height: 7px; border-radius: 50%; background: #1c2029; margin: 0 auto 8px; }
.mb-display { border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid #161b24; border-bottom: none; }
.mb-base { height: 16px; background: linear-gradient(#454c5a, #232833 70%, #191d26); border-radius: 0 0 14px 14px; position: relative; box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.mb-base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 130px; height: 6px; background: #12151c; border-radius: 0 0 8px 8px; }

.ck { background: #0a0d13; font-family: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, monospace; color: #cbd5e1; display: flex; font-size: 10px; line-height: 1.45; }
.ck * { box-sizing: border-box; }
.ck-side { width: 168px; flex-shrink: 0; background: #0c0f16; border-right: 1px solid #1a202b; padding: 12px 10px; }
.ck-logo { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.ck-logo svg { width: 22px; height: 22px; }
.ck-logo b { font-family: var(--font-display); letter-spacing: 0.2em; font-size: 11px; color: #fff; }
.ck-vendor { background: #10141d; border: 1px solid #1c2330; border-radius: 8px; padding: 8px 9px; margin-bottom: 12px; }
.ck-vendor .k { font-size: 7.5px; letter-spacing: 0.14em; color: #59647a; }
.ck-vendor .v { font-size: 9.5px; color: #e2e8f0; font-weight: 600; margin: 2px 0; }
.ck-vendor .s { font-size: 7.5px; color: #59647a; }
.ck-nav-sec { font-size: 7.5px; letter-spacing: 0.16em; color: #4c5568; margin: 10px 0 5px 2px; }
.ck-nav a { display: flex; align-items: center; gap: 7px; padding: 5.5px 8px; border-radius: 6px; color: #97a3b6; font-size: 9.5px; }
.ck-nav a.on { background: #16233a; color: #7cb3f5; }
.ck-nav a svg { width: 10px; height: 10px; }
.ck-main { flex: 1; min-width: 0; }
.ck-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #1a202b; }
.ck-search { flex: 1; max-width: 300px; background: #10141d; border: 1px solid #1c2330; border-radius: 7px; padding: 5px 10px; color: #59647a; font-size: 9px; }
.ck-pills { display: flex; gap: 6px; align-items: center; }
.ck-pill { border: 1px solid #1c2330; background: #10141d; border-radius: 6px; padding: 4px 9px; font-size: 8.5px; color: #97a3b6; white-space: nowrap; }
.ck-pill .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 4px; }
.ck-user { display: flex; align-items: center; gap: 6px; }
.ck-avatar { width: 20px; height: 20px; border-radius: 5px; background: #2563eb; color: #fff; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.ck-user .n { font-size: 8.5px; color: #e2e8f0; font-weight: 600; line-height: 1.2; }
.ck-user .e { font-size: 7.5px; color: #59647a; }
.ck-ticker { display: flex; border-bottom: 1px solid #1a202b; }
.ck-tick { flex: 1; padding: 7px 10px; border-right: 1px solid #151a24; }
.ck-tick:last-child { border-right: none; }
.ck-tick .s { font-size: 7.5px; letter-spacing: 0.1em; color: #59647a; }
.ck-tick .p { font-size: 11.5px; font-weight: 700; color: #f1f5f9; display: flex; align-items: center; gap: 6px; }
.ck-tick .c { font-size: 7.5px; }
.ck-tick .lh { font-size: 7px; color: #454e60; margin-top: 1px; }
.ck-body { padding: 12px 14px 16px; }
.ck-crumb { font-size: 7.5px; letter-spacing: 0.18em; color: #4c5568; }
.ck-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.ck-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0; }
.ck-trhs { display: flex; align-items: center; gap: 7px; }
.ck-flow { border: 1px solid #14532d; background: rgba(34,197,94,0.08); color: #4ade80; border-radius: 100px; padding: 3px 9px; font-size: 8px; }
.ck-tabs { display: flex; border: 1px solid #1c2330; border-radius: 6px; overflow: hidden; }
.ck-tabs span { padding: 3px 9px; font-size: 8px; color: #97a3b6; }
.ck-tabs span.on { background: #1d4ed8; color: #fff; }
.ck-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 11px; }
.ck-stat { background: #0e1219; border: 1px solid #1a202b; border-left: 2px solid #22c55e; border-radius: 8px; padding: 9px 11px; }
.ck-stat.blue { border-left-color: #3b82f6; }
.ck-stat .k { font-size: 7.5px; letter-spacing: 0.14em; color: #59647a; }
.ck-stat .v { font-size: 16px; font-weight: 700; color: #4ade80; margin: 2px 0 1px; }
.ck-stat.blue .v, .ck-stat .v.wh { color: #f1f5f9; }
.ck-stat .s { font-size: 7.5px; color: #59647a; }
.ck-panel { background: #0e1219; border: 1px solid #1a202b; border-radius: 8px; padding: 10px 12px; margin-bottom: 11px; }
.ck-panel .ph { font-size: 7.5px; letter-spacing: 0.16em; color: #59647a; margin-bottom: 8px; }
.ck-revbar { height: 9px; border-radius: 4px; background: #f5b942; margin-bottom: 9px; }
.ck-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.ck-legend div { display: flex; justify-content: space-between; font-size: 8.5px; color: #97a3b6; }
.ck-legend i { width: 6px; height: 6px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.ck-legend b { color: #e2e8f0; font-weight: 600; }
.ck-legend b.grn { color: #4ade80; }
.ck-ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #0e1219; border: 1px solid #1a202b; border-radius: 8px; }
.ck-op { padding: 9px 11px; border-right: 1px solid #151a24; }
.ck-op:last-child { border-right: none; }
.ck-op .k { font-size: 7.5px; letter-spacing: 0.14em; color: #59647a; }
.ck-op .v { font-size: 14px; font-weight: 700; color: #f1f5f9; margin: 2px 0 1px; }
.ck-op .v.amber { color: #f5b942; }
.ck-op .s { font-size: 7.5px; color: #59647a; }
@media (max-width: 860px) { .ck-side { display: none; } .ck-ticker .ck-tick:nth-child(n+4) { display: none; } }
@media (max-width: 640px) { .ck-stats, .ck-ops { grid-template-columns: 1fr 1fr; } .ck-op:nth-child(2) { border-right: none; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- legal page ---------- */
.legal-body { max-width: 780px; margin: 0 auto; color: var(--text-2); }
.legal-body h2 { font-size: 24px; margin: 40px 0 14px; color: var(--text); }
.legal-body p { margin-bottom: 16px; font-size: 15.5px; }
.notice {
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3);
  border-radius: var(--radius); padding: 20px 24px; color: var(--gold); font-size: 14.5px; margin-bottom: 30px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero { padding-top: 140px; }
  .hero-sub { max-width: none; }
  .cards-3, .steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .feature-row.reverse .fr-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: block; }
  .cards-3, .steps, .why-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .trust-inner { justify-content: flex-start; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 54px 24px; }
}
