/* =========================================================
   Verda — AI Investment Platform
   Palette: deep forest black · emerald · gold
   ========================================================= */
:root {
  --bg: #040a07;
  --bg-2: #07110c;
  --panel: #0b1712;
  --panel-2: #0f1f18;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f7f5;
  --muted: rgba(226, 240, 233, .64);
  --dim: rgba(226, 240, 233, .42);
  --brand: #16e08a;
  --brand-2: #0bb26b;
  --brand-3: #0a5c3a;
  --brand-glow: rgba(22, 224, 138, .35);
  --gold: #f4c55b;
  --gold-2: #d89b2b;
  --danger: #ff5d6c;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --container: 1200px;
  /* turns the template's orange artwork into emerald */
  --recolor: hue-rotate(128deg) saturate(1.05) brightness(1.02);
}

*, *::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.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.bento .card .art img { width: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #04150d; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.recolor { filter: var(--recolor); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- grain + page frame (template look) ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: url(../img/noise.png); opacity: .035; mix-blend-mode: overlay;
}
.ambient {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 0% 20%, rgba(22, 224, 138, .16), transparent 70%),
    radial-gradient(35% 40% at 100% 60%, rgba(244, 197, 91, .08), transparent 70%),
    var(--bg);
}
.frame {
  position: relative;
  max-width: calc(var(--container) + 2px);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 23, 18, .75), rgba(4, 10, 7, .92));
}
.frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 56px 56px; background-position: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 60%, #000 100%);
}
.guides { position: absolute; inset: 0; pointer-events: none; }
.guides::before, .guides::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.guides::before { left: 10.5%; }
.guides::after { right: 10.5%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
section { position: relative; }
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; margin-top: 18px; }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--brand) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(22, 224, 138, .45);
  background: rgba(22, 224, 138, .08); color: #c9f7e2;
  box-shadow: inset 0 0 18px rgba(22, 224, 138, .15);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
}
.btn:active { transform: scale(.98); }
.btn-light { background: #fff; color: #06140d; padding-right: 6px; }
.btn-light .arrow {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #06140d; color: #fff; transition: transform .25s ease, background .25s;
}
.btn-light:hover .arrow { transform: rotate(-45deg); background: var(--brand-2); }
.btn-brand { background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #03140b; box-shadow: 0 10px 30px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-brand:hover { box-shadow: 0 16px 40px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1c1203; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 7, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: .25s; }
.nav.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 90px 0 0; overflow: hidden; text-align: center; }
.hero-shape {
  position: absolute; inset: 0 0 auto 0; height: 100%; z-index: 0; pointer-events: none;
  background: url(../img/hero-shape.png) center 40px / min(1100px, 120%) auto no-repeat;
  filter: var(--recolor); opacity: .9;
  mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
}
.hero .container { z-index: 1; }
.hero h1 { margin: 26px auto 0; max-width: 920px; text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.hero .lead { max-width: 560px; margin: 24px auto 0; color: rgba(255,255,255,.82); }
.hero-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.trusted { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(4,10,7,.55); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.trusted small { color: var(--muted); font-size: 14px; }
.trusted b { color: #fff; }

.hero-preview {
  position: relative; margin: 70px auto 0; max-width: 1000px;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(15, 31, 24, .9), rgba(7, 17, 12, .95));
  padding: 18px 18px 0; box-shadow: 0 -30px 120px -40px var(--brand-glow);
  text-align: left;
}
.hero-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, var(--bg-2)); pointer-events: none; }

/* ---------- marquee ---------- */
.logos { padding: 34px 0 40px; border-top: 1px solid var(--line); text-align: center; }
.logos p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: rgba(255,255,255,.55); white-space: nowrap; }
.brand-logo svg { width: 24px; height: 24px; opacity: .8; }

/* ---------- split section ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-visual { position: relative; aspect-ratio: 1 / .95; display: grid; place-items: center; }
.split-visual img { width: 88%; filter: var(--recolor); animation: float 7s ease-in-out infinite; }
.split-visual::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 65%); filter: blur(30px); }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.checklist { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); }
.checklist svg { flex: none; margin-top: 3px; color: var(--brand); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 38, 30, .7), rgba(9, 19, 14, .85));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(22, 224, 138, .28); }
.card p { color: var(--muted); margin-top: 10px; }
.bento .card { min-height: 360px; display: flex; flex-direction: column; }
.bento .card .art { margin-top: auto; display: flex; justify-content: center; }
.bento .card .art img { filter: var(--recolor); max-height: 230px; object-fit: contain; transition: transform .6s ease; }
.bento .card:hover .art img { transform: scale(1.04) translateY(-4px); }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(22, 224, 138, .25), rgba(22, 224, 138, .05));
  border: 1px solid rgba(22, 224, 138, .35); color: var(--brand);
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 14px; color: var(--brand); }
.link-arrow:hover { gap: 12px; }

/* ---------- feature list ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(9, 19, 14, .5); transition: background .3s; }
.feature:hover { background: rgba(22, 224, 138, .04); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature .num { font-family: var(--font-display); font-size: 14px; color: var(--brand); }
.feature h3 { margin-top: 18px; }
.feature p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: left; }
.stat .value { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat .value small { font-size: .5em; color: var(--brand); }
.stat .label { color: var(--muted); margin-top: 12px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan .plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan .plan-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.plan .tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.plan .price { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -.04em; margin-top: 22px; line-height: 1; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .rate { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.plan .rate b { font-size: 28px; color: var(--brand); font-family: var(--font-display); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.plan ul li { display: flex; gap: 10px; align-items: center; }
.plan ul svg { color: var(--brand); flex: none; }
.plan .btn { margin-top: auto; }
.plan.featured { border-color: rgba(22, 224, 138, .5); background: radial-gradient(120% 70% at 50% 0%, rgba(22, 224, 138, .22), transparent 60%), linear-gradient(180deg, rgba(20, 38, 30, .9), rgba(9, 19, 14, .95)); box-shadow: 0 30px 90px -40px var(--brand-glow); }
.plan.featured .tag { background: var(--brand); color: #03140b; border-color: transparent; font-weight: 600; }
.plan.gold { border-color: rgba(244, 197, 91, .45); }
.plan.gold .rate b { color: var(--gold); }
.plan.gold .tag { background: var(--gold); color: #1c1203; border-color: transparent; font-weight: 600; }

.calc { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; }
.calc-in { padding: 34px; border-right: 1px solid var(--line); }
.calc-out { padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: center; }
.calc-out .k { color: var(--muted); font-size: 14px; }
.calc-out .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; }
.calc-out .v.brand { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); transition: .2s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chip.active { background: var(--brand); color: #03140b; border-color: transparent; font-weight: 600; }
.range { width: 100%; margin-top: 26px; accent-color: var(--brand); }
.range-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- testimonials ---------- */
.t-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; height: 640px; overflow: hidden; mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.t-col { display: flex; flex-direction: column; gap: 18px; animation: vscroll 40s linear infinite; }
.t-col.reverse { animation-direction: reverse; }
.t-col.slow { animation-duration: 52s; }
.t-columns:hover .t-col { animation-play-state: paused; }
@keyframes vscroll { to { transform: translateY(-50%); } }
.testimonial { padding: 26px; }
.testimonial blockquote { margin: 0; color: rgba(255,255,255,.88); font-size: 16px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.testimonial .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial .who b { display: block; font-size: 15px; }
.testimonial .who small { color: var(--muted); font-size: 13px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 19, 14, .6); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(22, 224, 138, .35); background: rgba(15, 31, 24, .8); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .3s, background .3s; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--brand); color: #03140b; border-color: transparent; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta-box { position: relative; overflow: hidden; text-align: center; padding: 90px 30px; border-radius: 28px; border: 1px solid rgba(22, 224, 138, .3);
  background: radial-gradient(70% 90% at 50% 120%, rgba(22, 224, 138, .45), transparent 70%), linear-gradient(180deg, #0b1a13, #06100b); }
.cta-box .dots { position: absolute; width: 360px; opacity: .5; filter: var(--recolor); }
.cta-box .dots.l { left: -60px; top: -40px; } .cta-box .dots.r { right: -80px; bottom: -120px; }
.cta-box h2, .cta-box p, .cta-box .hero-ctas { position: relative; }
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font); font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; } .footer ul a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.disclaimer { color: var(--dim); font-size: 12px; margin-top: 16px; max-width: 420px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s 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 }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Forms / auth
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; border-right: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(80% 60% at 30% 100%, rgba(22, 224, 138, .25), transparent 70%), var(--bg-2); }
.auth-side .shape { position: absolute; inset: 0; background: url(../img/hero-shape.png) center / cover no-repeat; filter: var(--recolor); opacity: .55; }
.auth-side > * { position: relative; }
.auth-side blockquote { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; line-height: 1.2; margin: 0; max-width: 460px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 38px; }
.form { display: grid; gap: 16px; margin-top: 30px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: rgba(255,255,255,.85); }
.input, select.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 224, 138, .15); background: rgba(255,255,255,.05); }
.input::placeholder { color: var(--dim); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .prefix { position: absolute; left: 16px; color: var(--muted); font-size: 15px; pointer-events: none; }
.input-group .input { padding-left: 62px; }
.hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.form-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.form-foot a { color: var(--brand); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--brand); }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: rgba(255, 93, 108, .08); border-color: rgba(255, 93, 108, .35); color: #ffc2c8; }
.alert-success { background: rgba(22, 224, 138, .08); border-color: rgba(22, 224, 138, .35); color: #c9f7e2; }
.alert-info { background: rgba(244, 197, 91, .08); border-color: rgba(244, 197, 91, .35); color: #fbe6b5; }
.alerts { display: grid; gap: 10px; }

/* =========================================================
   App (dashboard)
   ========================================================= */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: rgba(7, 17, 12, .85); padding: 24px 18px; display: flex; flex-direction: column; gap: 28px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-size: 15px; font-weight: 500; transition: .2s; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(22, 224, 138, .16), rgba(22, 224, 138, .02)); box-shadow: inset 2px 0 0 var(--brand); }
.side-nav svg { width: 19px; height: 19px; flex: none; }
.side-foot { margin-top: auto; }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.user-chip .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #03140b; flex: none; }
.user-chip b { display: block; font-size: 14px; line-height: 1.2; }
.user-chip small { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 150px; white-space: nowrap; }

.main { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(4, 10, 7, .7); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 24px; font-family: var(--font-display); }
.topbar .sub { color: var(--muted); font-size: 13px; }
.content { padding: 32px; display: grid; gap: 22px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(22, 224, 138, .1); border: 1px solid rgba(22, 224, 138, .3); color: #c9f7e2; }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: pulse 1.4s infinite; }

.grid-kpi { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 18px; }
.kpi { padding: 24px; }
.kpi .k { color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kpi .v { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--dim); font-size: 13px; margin-top: 6px; }
.kpi.hero-kpi { background: radial-gradient(90% 120% at 100% 0%, rgba(22, 224, 138, .25), transparent 60%), linear-gradient(180deg, rgba(20, 38, 30, .9), rgba(9, 19, 14, .95)); border-color: rgba(22, 224, 138, .35); }
.kpi.hero-kpi .v { font-size: clamp(36px, 4vw, 48px); }
.kpi.hero-kpi .v .dec { color: var(--brand); }
.kpi .up { color: var(--brand); font-weight: 600; }
.kpi .actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.tick { animation: tick .6s ease; }
@keyframes tick { 0% { color: var(--brand); } 100% { color: inherit; } }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.panel { padding: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 17px; }
.panel-body { padding: 20px 24px; }
.chart-wrap { position: relative; height: 260px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; color: var(--dim); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table .num { text-align: right; }
.pos { color: var(--brand); } .neg { color: var(--danger); }
.sym { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sym i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.side { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.side.long { background: rgba(22, 224, 138, .12); color: var(--brand); }
.side.short { background: rgba(255, 93, 108, .12); color: var(--danger); }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.status.active, .status.approved { background: rgba(22, 224, 138, .12); color: var(--brand); }
.status.pending, .status.processing { background: rgba(244, 197, 91, .12); color: var(--gold); }
.status.rejected, .status.failed { background: rgba(255, 93, 108, .12); color: var(--danger); }
.flash-row { animation: flashrow 1.2s ease; }
@keyframes flashrow { from { background: rgba(22, 224, 138, .12); } to { background: transparent; } }

.feed { display: grid; gap: 2px; max-height: 360px; overflow: hidden; }
.feed-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; animation: slidein .5s ease; }
.feed-item .t { color: var(--dim); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 50px 20px; }
.empty img { width: 160px; margin: 0 auto 20px; filter: var(--recolor); }
.empty p { color: var(--muted); margin: 10px auto 22px; max-width: 380px; }

.plan-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-option { position: relative; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option .card { padding: 22px; height: 100%; }
.plan-option input:checked + .card { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px -30px var(--brand-glow); }
.plan-option input:focus-visible + .card { outline: 2px solid var(--brand); outline-offset: 3px; }
.plan-option .price { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 8px; letter-spacing: -.03em; }
.plan-option .rate { color: var(--brand); font-weight: 600; margin-top: 6px; }
.plan-option small { color: var(--dim); display: block; margin-top: 4px; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; transition: .2s; }
.pay-opt i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.pay-opt .mtn { background: #ffcb05; color: #00395d; }
.pay-opt .orange { background: #ff7900; color: #fff; }
.pay-opt input:checked + span { border-color: var(--brand); background: rgba(22, 224, 138, .06); }

.summary { display: grid; gap: 12px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary .k { color: var(--muted); }
.summary .total { padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 17px; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.rules li { display: flex; gap: 10px; }
.rules li svg { color: var(--brand); flex: none; margin-top: 2px; }
.rules li.bad svg { color: var(--danger); }

/* language switch */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.lang-switch a { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1; }
.lang-switch a.active { background: var(--brand); color: #03140b; }
.lang-switch a:not(.active):hover { color: #fff; }
@media (max-width: 600px) { .hide-sm { display: none !important; } }

/* social-proof toast */
.toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 340px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; border: 1px solid rgba(22, 224, 138, .3);
  background: rgba(9, 22, 16, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03);
  transform: translateY(140%); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.toast.show { transform: none; opacity: 1; }
.toast .av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #03140b; background: linear-gradient(135deg, var(--brand), var(--gold)); }
.toast .txt { font-size: 14px; line-height: 1.35; }
.toast .txt b { color: #fff; }
.toast .txt .pl { color: var(--brand); font-weight: 600; }
.toast .meta { display: block; color: var(--dim); font-size: 12px; margin-top: 3px; }
.toast .close { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 16px; line-height: 1; padding: 4px; }
@media (max-width: 600px) { .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* payment waiting screen */
.pay-wait { max-width: 520px; margin: 30px auto; text-align: center; padding: 44px 30px; }
.spinner { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%; border: 3px solid rgba(22,224,138,.15); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-wait .big-icon { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; }
.pay-wait .big-icon.ok { background: rgba(22,224,138,.15); color: var(--brand); }
.pay-wait .big-icon.ko { background: rgba(255,93,108,.12); color: var(--danger); }
.pay-wait ol { text-align: left; color: var(--muted); font-size: 14px; margin: 22px auto 0; max-width: 360px; display: grid; gap: 6px; }
.demo-banner { text-align: center; font-size: 12px; padding: 6px 12px; background: rgba(244,197,91,.12); color: var(--gold); border-bottom: 1px solid rgba(244,197,91,.25); }

.nav-links .m-only { display: none; }
@media (max-width: 900px) { .nav.open .nav-links .m-only { display: block; } }
.mobile-bar, .only-mobile { display: none; }
@media (max-width: 900px) { .only-mobile { display: block; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .plans, .plan-select { grid-template-columns: repeat(2, 1fr); }
  .grid-kpi { grid-template-columns: 1fr 1fr; }
  .grid-kpi .hero-kpi { grid-column: span 2; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 76px; left: 0; right: 0; padding: 16px 24px 24px; background: rgba(4, 10, 7, .97); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .bento .card { grid-column: span 12; min-height: 300px; }
  .benefits, .features-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feature:last-child { border-bottom: 0 !important; }
  .t-columns { grid-template-columns: 1fr; height: 560px; }
  .t-col:nth-child(n+2) { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .guides { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 100px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(7, 17, 12, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: grid; justify-items: center; gap: 4px; padding: 10px 0; font-size: 11px; color: var(--muted); }
  .mobile-bar a.active { color: var(--brand); }
  .mobile-bar svg { width: 20px; height: 20px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .plans, .plan-select, .pay-methods { grid-template-columns: 1fr; }
  .grid-kpi { grid-template-columns: 1fr; }
  .grid-kpi .hero-kpi { grid-column: auto; }
  .calc-out { grid-template-columns: 1fr 1fr; padding: 24px; }
  .calc-in { padding: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-preview { padding: 10px 10px 0; margin-top: 50px; }
  .topbar h1 { font-size: 20px; }
  .topbar .sub { display: none; }
}
