/* ============================================================
   BITHAVEN VAULT — Dark Premium Fintech Design System
   Redesign stylesheet (self-contained, no framework dependency)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --bg:            #070A12;
  --bg-2:          #0A0F1C;
  --bg-3:          #0E1424;
  --surface:       rgba(255,255,255,.028);
  --surface-2:     rgba(255,255,255,.05);
  --surface-3:     rgba(255,255,255,.08);
  --border:        rgba(255,255,255,.09);
  --border-2:      rgba(255,255,255,.15);

  --text:          #EAF0FA;
  --text-dim:      #9AA6BC;
  --text-mute:     #64708A;

  --brand:         #4F7DFF;
  --brand-2:       #9B6BFF;
  --brand-3:       #22D3EE;
  --grad:          linear-gradient(135deg,#4F7DFF 0%,#9B6BFF 100%);
  --grad-3:        linear-gradient(120deg,#22D3EE 0%,#4F7DFF 45%,#9B6BFF 100%);
  --glow:          0 0 0 1px rgba(79,125,255,.35), 0 12px 40px -12px rgba(79,125,255,.55);

  --up:            #2FD48A;
  --down:          #FB6A78;
  --gold:          #F5B451;

  --r-xs: 10px; --r-sm: 14px; --r: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  --shadow-1: 0 2px 8px rgba(0,0,0,.3);
  --shadow-2: 0 18px 50px -18px rgba(0,0,0,.7);
  --shadow-card: 0 24px 60px -30px rgba(4,8,20,.9);

  --maxw: 1200px;
  --nav-h: 76px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; background:var(--bg); }
body{
  margin:0;
  font-family:var(--font-body);
  background:transparent;
  color:var(--text);
  font-size:16px;
  line-height:1.65;
  letter-spacing:.1px;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
ul{ margin:0; padding:0; }
h1,h2,h3,h4,h5,h6{ margin:0; font-family:var(--font-display); font-weight:700; line-height:1.12; letter-spacing:-.02em; color:#fff; }
p{ margin:0 0 1rem; color:var(--text-dim); }
::selection{ background:rgba(79,125,255,.35); color:#fff; }

/* ---------- Ambient background decoration ---------- */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(155,107,255,.20), transparent 60%),
    radial-gradient(55% 45% at 12% 4%, rgba(79,125,255,.20), transparent 60%),
    radial-gradient(45% 40% at 50% 108%, rgba(34,211,238,.10), transparent 60%),
    var(--bg);
}
/* Animated crypto/financial canvas background (drawn by #cryptoBg script in base layout).
   Sits above the ambient gradients (z-index:-2) but behind all page content, and ignores
   pointer events so it never interferes with clicks/scroll. */
#cryptoBg{ position:fixed; inset:0; z-index:0; pointer-events:none; }

/* ---------- Layout ---------- */
.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 22px; }
.section{ padding:88px 0; position:relative; }
.section--tight{ padding:56px 0; }
.section-head{ max-width:720px; margin:0 auto 52px; text-align:center; }
.section-head.left{ margin-left:0; text-align:left; }
.grid{ display:grid; gap:22px; }
.g-2{ grid-template-columns:repeat(2,1fr); }
.g-3{ grid-template-columns:repeat(3,1fr); }
.g-4{ grid-template-columns:repeat(4,1fr); }
.center{ text-align:center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-0{margin-bottom:0}

/* ---------- Typography helpers ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-display);
  font-size:12.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--text-dim);
  padding:7px 14px; border:1px solid var(--border); border-radius:var(--r-pill);
  background:var(--surface); backdrop-filter:blur(8px);
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%;
  background:var(--grad); box-shadow:0 0 10px rgba(79,125,255,.9);
}
.display{ font-size:clamp(2.35rem, 5.4vw, 4.35rem); line-height:1.04; }
.h2{ font-size:clamp(1.8rem, 3.4vw, 2.9rem); }
.h3{ font-size:clamp(1.35rem, 2.1vw, 1.8rem); }
.lead{ font-size:clamp(1.02rem,1.4vw,1.2rem); color:var(--text-dim); line-height:1.7; }
.grad-text{
  background:var(--grad-3); -webkit-background-clip:text; background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
}
.dim{ color:var(--text-dim); }
.mute{ color:var(--text-mute); }

/* ---------- Buttons ---------- */
.btn{
  --pad:13px 22px;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:var(--pad); border-radius:var(--r-pill);
  font-family:var(--font-display); font-weight:600; font-size:15px; letter-spacing:.01em;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn svg{ width:18px; height:18px; }
.btn--primary{ background:var(--grad); color:#fff; box-shadow:0 10px 30px -10px rgba(79,125,255,.7); }
.btn--primary:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -12px rgba(120,110,255,.85); }
.btn--ghost{ background:var(--surface-2); color:#fff; border-color:var(--border-2); backdrop-filter:blur(8px); }
.btn--ghost:hover{ background:var(--surface-3); transform:translateY(-2px); }
.btn--outline{ background:transparent; color:var(--text); border-color:var(--border-2); }
.btn--outline:hover{ border-color:var(--brand); color:#fff; background:rgba(79,125,255,.08); }
.btn--light{ background:#fff; color:#0B1020; }
.btn--light:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -14px rgba(255,255,255,.4); }
.btn--sm{ --pad:9px 16px; font-size:13.5px; }
.btn--lg{ --pad:16px 30px; font-size:16px; }
.btn--block{ width:100%; }

/* ---------- Navbar ---------- */
.nav{
  position:sticky; top:0; z-index:100; height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(7,10,18,.6); backdrop-filter:blur(18px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:background .3s, border-color .3s;
}
.nav.scrolled{ background:rgba(7,10,18,.86); border-bottom-color:var(--border); }
.nav__inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ display:inline-flex; align-items:center; gap:11px; }
.brand__mark{ width:38px; height:38px; flex:none; filter:drop-shadow(0 6px 14px rgba(79,125,255,.5)); }
.brand__img{ height:40px; width:auto; display:block; }
.footer .brand__img{ height:48px; }
.brand__text{ font-family:var(--font-display); font-weight:700; font-size:20px; letter-spacing:-.02em; color:#fff; line-height:1; }
.brand__text b{ font-weight:700; }
.brand__text span{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }

.nav__links{ display:flex; align-items:center; gap:6px; list-style:none; }
.nav__links a{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 14px; border-radius:var(--r-pill);
  font-size:14.5px; font-weight:500; color:var(--text-dim);
  transition:color .2s, background .2s;
}
.nav__links a:hover{ color:#fff; background:var(--surface-2); }
.nav__cta{ display:flex; align-items:center; gap:10px; }
.nav__toggle{
  display:none; width:44px; height:44px; border-radius:12px;
  background:var(--surface-2); border:1px solid var(--border); color:#fff;
  align-items:center; justify-content:center; cursor:pointer;
}
.nav__toggle svg{ width:22px; height:22px; }

/* dropdown */
.nav__drop{ position:relative; }
.nav__menu{
  position:absolute; top:calc(100% + 10px); left:0; min-width:210px;
  background:rgba(14,20,36,.96); backdrop-filter:blur(20px);
  border:1px solid var(--border); border-radius:var(--r); padding:8px;
  box-shadow:var(--shadow-2); opacity:0; visibility:hidden; transform:translateY(8px);
  transition:.22s; z-index:20;
}
.nav__drop:hover .nav__menu{ opacity:1; visibility:visible; transform:translateY(0); }
.nav__menu a{ display:block; padding:10px 12px; border-radius:10px; color:var(--text-dim); font-size:14px; }
.nav__menu a:hover{ background:var(--surface-2); color:#fff; }

/* mobile drawer */
.drawer{
  position:fixed; inset:0; z-index:200; display:none;
  background:rgba(4,7,14,.72); backdrop-filter:blur(6px);
}
.drawer.open{ display:block; }
.drawer__panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw,360px);
  background:var(--bg-2); border-left:1px solid var(--border);
  padding:22px; display:flex; flex-direction:column; gap:6px;
  transform:translateX(100%); animation:slideIn .3s forwards;
}
@keyframes slideIn{ to{ transform:translateX(0); } }
.drawer__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.drawer a.dl{ padding:14px 12px; border-radius:12px; font-weight:500; color:var(--text); border:1px solid transparent; }
.drawer a.dl:hover{ background:var(--surface-2); }
.drawer__close{ width:42px;height:42px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);color:#fff;cursor:pointer; }

/* ---------- Hero ---------- */
.hero{ position:relative; padding:64px 0 40px; }
.hero__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; }
.hero__title{ font-size:clamp(2.5rem,5.6vw,4.4rem); line-height:1.02; margin:20px 0 18px; }
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:30px; }
.hero__trust{ display:flex; align-items:center; gap:22px; margin-top:34px; flex-wrap:wrap; color:var(--text-mute); font-size:13.5px; }
.hero__trust .av{ display:flex; }
.hero__trust .av span,
.hero__trust .av img{ width:34px;height:34px;border-radius:50%;border:2px solid var(--bg);margin-left:-10px; }
.hero__trust .av span{ background:var(--grad);display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;font-family:var(--font-display); }
.hero__trust .av img{ object-fit:cover;object-position:50% 14%;background:var(--surface-3); }
.hero__trust .av > *:first-child{ margin-left:0; }

/* Hero visual: floating trading card */
.hero__visual{ position:relative; }
.glasscard{
  position:relative; border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--border-2); box-shadow:var(--shadow-card);
  backdrop-filter:blur(14px); overflow:hidden;
}
.hero__visual .glasscard{ padding:22px; }
.hero__visual::before{
  content:""; position:absolute; inset:-40px; z-index:-1;
  background:radial-gradient(closest-side, rgba(79,125,255,.35), transparent 70%);
  filter:blur(20px);
}
.tv-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 6px; border-bottom:1px solid var(--border); }
.tv-row:last-child{ border-bottom:0; }
.tv-asset{ display:flex; align-items:center; gap:11px; }
.tv-ic{ width:38px;height:38px;border-radius:11px;background:var(--surface-3);display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:13px;color:#fff; }
.tv-name b{ display:block; color:#fff; font-size:14.5px; font-family:var(--font-display); }
.tv-name small{ color:var(--text-mute); font-size:12px; }
.tv-val{ text-align:right; }
.tv-val b{ display:block; color:#fff; font-size:14.5px; }
.tv-up{ color:var(--up); font-size:12.5px; font-weight:600; }
.tv-down{ color:var(--down); font-size:12.5px; font-weight:600; }
.spark{ height:26px; width:82px; }
.float-badge{
  position:absolute; display:flex; align-items:center; gap:9px;
  padding:11px 15px; border-radius:14px; font-size:13px; font-weight:600; color:#fff;
  background:rgba(14,20,36,.85); border:1px solid var(--border-2); backdrop-filter:blur(12px);
  box-shadow:var(--shadow-2); font-family:var(--font-display);
}
.float-badge .dot{ width:9px;height:9px;border-radius:50%;background:var(--up);box-shadow:0 0 10px var(--up); }
.fb-1{ top:-18px; left:-26px; animation:floaty 6s ease-in-out infinite; }
.fb-2{ bottom:-16px; right:-18px; animation:floaty 7s ease-in-out infinite reverse; }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-12px); } }

/* ---------- Marquee / ticker ---------- */
.marquee{ overflow:hidden; position:relative; padding:14px 0; border-block:1px solid var(--border); background:rgba(255,255,255,.015); -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee__track{ display:flex; gap:14px; width:max-content; animation:scrollx 42s linear infinite; }
.marquee:hover .marquee__track{ animation-play-state:paused; }
@keyframes scrollx{ to{ transform:translateX(-50%); } }
.tick{ display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); font-size:13.5px; white-space:nowrap; }
.tick b{ color:#fff; font-family:var(--font-display); }
.tick .up{ color:var(--up); font-weight:600; }
.tick .down{ color:var(--down); font-weight:600; }
.tick .type{ color:var(--text-mute); font-size:12px; }

/* Live activity ticker (deposits/withdrawals) */
.live-tick .tick .kind{ width:8px;height:8px;border-radius:50%; }
.live-tick .kind.dep{ background:var(--up); box-shadow:0 0 8px var(--up); }
.live-tick .kind.wd{ background:var(--brand); box-shadow:0 0 8px var(--brand); }

/* ---------- Cards / features ---------- */
.card{
  position:relative; border-radius:var(--r-lg); padding:26px;
  background:var(--surface); border:1px solid var(--border);
  transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover{ transform:translateY(-4px); border-color:var(--border-2); background:var(--surface-2); }
.card--glow::after{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background:var(--grad); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity .3s;
}
.card--glow:hover::after{ opacity:.6; }
.ic-tile{
  width:52px; height:52px; border-radius:15px; display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(79,125,255,.22), rgba(155,107,255,.18));
  border:1px solid var(--border-2); color:#bcd0ff; margin-bottom:18px;
}
.ic-tile svg{ width:24px; height:24px; }
.card h3, .card h4{ margin-bottom:9px; font-size:1.18rem; }
.card p{ font-size:14.5px; margin-bottom:0; }

/* ---------- Stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat{
  text-align:center; padding:30px 18px; border-radius:var(--r-lg);
  background:var(--surface); border:1px solid var(--border);
}
.stat b{ display:block; font-family:var(--font-display); font-size:clamp(1.9rem,3.4vw,2.7rem); font-weight:700; color:#fff; line-height:1; }
.stat b .grad-text{ font-size:inherit; }
.stat span{ display:block; margin-top:9px; color:var(--text-dim); font-size:13.5px; letter-spacing:.02em; }

/* ---------- Plan / pricing cards ---------- */
.plans{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; align-items:stretch; }
.plan{
  position:relative; display:flex; flex-direction:column;
  padding:28px 24px; border-radius:var(--r-lg);
  background:var(--surface); border:1px solid var(--border);
  transition:transform .3s, border-color .3s;
}
.plan:hover{ transform:translateY(-6px); border-color:var(--border-2); }
.plan--featured{
  background:linear-gradient(180deg, rgba(79,125,255,.14), rgba(155,107,255,.06));
  border-color:rgba(122,120,255,.5);
  box-shadow:0 30px 70px -34px rgba(79,125,255,.7);
}
.plan__tag{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  padding:5px 14px; border-radius:var(--r-pill); font-size:11.5px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:#fff; background:var(--grad);
  font-family:var(--font-display); white-space:nowrap;
}
.plan__name{ font-family:var(--font-display); font-size:1.15rem; color:#fff; }
.plan__roi{ margin:14px 0 4px; }
.plan__roi b{ font-family:var(--font-display); font-size:2.5rem; font-weight:700; }
.plan__roi span{ color:var(--text-dim); font-size:14px; }
.plan__range{ color:var(--text-mute); font-size:13px; margin-bottom:18px; }
.plan__list{ list-style:none; display:flex; flex-direction:column; gap:11px; margin:6px 0 22px; }
.plan__list li{ display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--text-dim); }
.plan__list li svg{ width:18px; height:18px; color:var(--brand-3); flex:none; margin-top:2px; }
.plan .btn{ margin-top:auto; }

/* ---------- Partner / trust logos ---------- */
.logos{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:22px 44px; }
/* Real brand logos rendered as a uniform muted-white wall (legible + cohesive on dark) */
.plogo{
  height:26px; width:auto; max-width:130px; object-fit:contain;
  filter:brightness(0) invert(1);   /* flatten any brand colour to clean white */
  opacity:.55; transition:opacity .25s ease;
}
.plogo--lg{ height:34px; }
.plogo:hover{ opacity:.9; }

/* ---------- Split feature block ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:46px; align-items:center; }
.checklist{ list-style:none; display:grid; gap:14px; margin-top:22px; }
.checklist li{ display:flex; gap:12px; align-items:flex-start; color:var(--text-dim); font-size:15px; }
.checklist li svg{ width:22px;height:22px;color:var(--brand-3);flex:none; }
.checklist li b{ color:#fff; font-family:var(--font-display); font-weight:600; }

/* ---------- Accordion ---------- */
.acc{ display:flex; flex-direction:column; gap:12px; max-width:820px; margin:0 auto; }
.acc__item{ border:1px solid var(--border); border-radius:var(--r); background:var(--surface); overflow:hidden; transition:border-color .25s, background .25s; }
.acc__item.open{ border-color:var(--border-2); background:var(--surface-2); }
.acc__q{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; background:transparent; border:0; cursor:pointer; text-align:left; color:#fff; font-family:var(--font-display); font-weight:600; font-size:16px; }
.acc__q .pm{ width:30px;height:30px;border-radius:9px;background:var(--surface-3);display:grid;place-items:center;flex:none;transition:transform .3s, background .3s; }
.acc__item.open .pm{ background:var(--grad); transform:rotate(45deg); }
.acc__q .pm svg{ width:16px;height:16px; }
.acc__a{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.acc__a p{ padding:0 22px 20px; margin:0; font-size:14.5px; }

/* ---------- Testimonials ---------- */
.tcard{ padding:26px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); }
.tcard .stars{ display:flex; gap:3px; color:var(--gold); margin-bottom:14px; }
.tcard .stars svg{ width:16px;height:16px; }
.tcard p{ color:var(--text); font-size:15px; }
.tcard .who{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.tcard .who .ava{ width:44px;height:44px;border-radius:50%;background:var(--grad);display:grid;place-items:center;color:#fff;font-weight:700;font-family:var(--font-display); overflow:hidden; }
.tcard .who b{ display:block; color:#fff; font-size:14.5px; font-family:var(--font-display); }
.tcard .who small{ color:var(--text-mute); font-size:12.5px; }

/* ---------- CTA band ---------- */
.cta{
  position:relative; overflow:hidden; border-radius:var(--r-xl);
  padding:56px; text-align:center;
  background:linear-gradient(135deg, rgba(79,125,255,.20), rgba(155,107,255,.14));
  border:1px solid var(--border-2);
}
.cta::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(60% 120% at 50% 0%, rgba(79,125,255,.3), transparent 60%); }
.cta h2{ margin-bottom:14px; }
.cta .btns{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }

/* ---------- Page hero (interior pages) ---------- */
.pagehero{ position:relative; padding:72px 0 20px; text-align:center; }
.crumbs{ display:inline-flex; align-items:center; gap:8px; color:var(--text-mute); font-size:13px; margin-top:18px; }
.crumbs a:hover{ color:var(--text); }
.crumbs svg{ width:14px;height:14px;opacity:.5; }

/* ---------- Legal / doc content ---------- */
.doc{ max-width:860px; margin:0 auto; }
.doc-card{ padding:38px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); }
.doc h3{ font-size:1.5rem; margin:0 0 18px; }
.doc h5{ font-size:1.08rem; color:#fff; margin:28px 0 8px; font-family:var(--font-display); }
.doc p{ color:var(--text-dim); font-size:15px; line-height:1.8; }
.doc .tags{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }

/* ---------- Chips / badges ---------- */
.chip{ display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); font-size:13px; color:var(--text-dim); }
.chip svg{ width:15px;height:15px;color:var(--brand-3); }

/* ---------- Forms ---------- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--text-dim); margin-bottom:7px; font-weight:500; }
.input, .textarea, select.input{
  width:100%; padding:14px 16px; border-radius:var(--r-sm);
  background:var(--bg-3); border:1px solid var(--border); color:#fff; font-size:15px;
  font-family:var(--font-body); transition:border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder{ color:var(--text-mute); }
.input:focus, .textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(79,125,255,.18); }
.textarea{ resize:vertical; min-height:130px; }
.input-ic{ position:relative; }
.input-ic svg{ position:absolute; left:15px; top:50%; transform:translateY(-50%); width:18px;height:18px; color:var(--text-mute); }
.input-ic .input{ padding-left:44px; }

/* ---------- Info blocks (contact) ---------- */
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.info-card{ text-align:center; padding:26px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); }
.info-card .ic-tile{ margin:0 auto 16px; }
.info-card h5{ color:#fff; font-family:var(--font-display); margin-bottom:6px; }
.info-card p{ font-size:14px; margin:0; }

/* ---------- Footer ---------- */
.footer{ position:relative; border-top:1px solid var(--border); padding:64px 0 28px; margin-top:40px; background:linear-gradient(180deg, transparent, rgba(79,125,255,.04)); }
.footer__grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; }
.footer__brand p{ font-size:14px; margin-top:16px; max-width:320px; }
.footer h6{ font-family:var(--font-display); font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-mute); margin-bottom:16px; }
.footer__links{ list-style:none; display:flex; flex-direction:column; gap:11px; }
.footer__links a{ color:var(--text-dim); font-size:14.5px; transition:color .2s; }
.footer__links a:hover{ color:#fff; }
.footer__soc{ display:flex; gap:10px; margin-top:20px; }
.footer__soc a{ width:40px;height:40px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);display:grid;place-items:center;color:var(--text-dim);transition:.2s; }
.footer__soc a:hover{ color:#fff; border-color:var(--border-2); transform:translateY(-2px); }
.footer__soc svg{ width:18px;height:18px; }
.footer__bar{ margin-top:44px; padding-top:22px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--text-mute); font-size:13px; }

/* ---------- Back to top / loader ---------- */
.to-top{ position:fixed; right:22px; bottom:22px; z-index:80; width:48px;height:48px;border-radius:14px; background:var(--grad); color:#fff; display:grid; place-items:center; box-shadow:var(--shadow-2); opacity:0; transform:translateY(14px); pointer-events:none; transition:.3s; cursor:pointer; }
.to-top.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
.to-top svg{ width:20px;height:20px; }
.loader{ position:fixed; inset:0; z-index:9999; background:var(--bg); display:grid; place-items:center; transition:opacity .5s; }
.loader.hide{ opacity:0; pointer-events:none; }
.loader .ring{ width:52px;height:52px;border-radius:50%;border:3px solid rgba(255,255,255,.12); border-top-color:var(--brand); animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; } .reveal.d3{ transition-delay:.24s; } .reveal.d4{ transition-delay:.32s; }

/* ---------- Flash / alert ---------- */
.flash{ max-width:var(--maxw); margin:14px auto 0; padding:14px 18px; border-radius:var(--r-sm); font-size:14px; display:flex; align-items:center; gap:10px; }
.flash svg{ width:18px;height:18px;flex:none; }
.flash--ok{ background:rgba(47,212,138,.12); border:1px solid rgba(47,212,138,.35); color:#8ef0c2; }
.flash--err{ background:rgba(251,106,120,.12); border:1px solid rgba(251,106,120,.35); color:#ffb3ba; }

/* ---------- Responsive ---------- */
/* Global guards so nothing can ever push the page wider than the screen.
   Use overflow-x:clip (not hidden) so it doesn't create a scroll container and break the sticky nav. */
html{ overflow-x:clip; }
img, svg, canvas, video, iframe, table{ max-width:100%; }
.marquee{ max-width:100%; }

@media (max-width:1024px){
  .hero__grid{ grid-template-columns:1fr; gap:40px; }
  .hero__visual{ max-width:520px; margin-inline:auto; }
  .g-4,.plans,.stats{ grid-template-columns:repeat(2,1fr); }
  .footer__grid{ grid-template-columns:1fr 1fr; gap:30px; }
  .footer__brand{ grid-column:1 / -1; }
}

@media (max-width:820px){
  .nav__links, .nav__cta .btn--ghost, .nav__cta .desk-only{ display:none; }
  .nav__toggle{ display:inline-flex; }
  .split{ grid-template-columns:1fr; gap:34px; }
  .g-3,.info-grid{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
}

/* ---- Phones (≤640) ---- */
@media (max-width:640px){
  :root{ --nav-h:64px; }
  .container{ padding:0 16px; }
  .section{ padding:52px 0; }
  .section--tight{ padding:38px 0; }
  .section-head{ margin-bottom:34px; }
  .hero{ padding:26px 0 16px; }
  .pagehero{ padding:44px 0 6px; }

  .g-2,.g-3,.g-4,.plans,.stats{ grid-template-columns:1fr; }
  .stats{ gap:12px; }
  .footer__grid{ grid-template-columns:1fr; }

  /* full-width, stacked CTAs — easy thumb targets */
  .hero__actions{ flex-direction:column; align-items:stretch; }
  .hero__actions .btn{ width:100%; }
  .cta .btns{ flex-direction:column; align-items:stretch; }
  .cta .btns .btn{ width:100%; }

  /* fluid type down-scaling */
  .hero__title{ font-size:2.3rem; }
  .display{ font-size:2.25rem; }
  .h2{ font-size:1.7rem; }
  .lead{ font-size:1rem; }

  .stat{ padding:22px 14px; }
  .stat b{ white-space:nowrap; }
  .doc-card{ padding:22px; }
  .cta{ padding:30px 20px; }
  .eyebrow{ font-size:11.5px; padding:6px 12px; }
  .info-card, .card{ padding:22px; }

  .brand__img{ height:34px; }
  .nav__cta{ gap:8px; }
  .to-top{ right:16px; bottom:16px; width:44px; height:44px; }
  .marquee__track{ animation-duration:28s; }
  .float-badge{ display:none; }
}

/* ---- Small phones (≤380) ---- */
@media (max-width:380px){
  .hero__title{ font-size:2rem; }
  .display{ font-size:1.95rem; }
  .h2{ font-size:1.5rem; }
  .plan__roi b{ font-size:2.1rem; }
  .brand__img{ height:30px; }
  .btn{ font-size:14px; padding:12px 18px; }
  .btn--lg{ font-size:15px; padding:14px 20px; }
  .eyebrow{ letter-spacing:.1em; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .reveal{ opacity:1; transform:none; }
}
