/* ============================================================
   AlphaFXEdge — Marketing site
   Dark green-tinted terminal aesthetic (matches the platform).
   ============================================================ */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --green: #22c55e;
  --green-soft: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.18);
  --red: #ef4444;
  --amber: #f0b90b;
  --blue: #3b82f6;
  --purple: #a855f7;

  --bg: #07090a;
  --bg-2: #0b0e0d;
  --surface: #0f1311;
  --surface-2: #141917;
  --surface-3: #1a201d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8efe9;
  --text-2: #9aa6a0;
  --text-3: #67726c;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  line-height: 1.5;
}
::selection { background: var(--green-glow); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--bg); }

/* ---------- shared ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  padding: 7px 14px; border-radius: 99px;
  background: var(--green-glow); border: 1px solid rgba(34,197,94,0.28);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 20px 0 16px; }
.section-head p { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.grad { background: linear-gradient(110deg, #fff 10%, var(--green) 55%, #7ef0a8 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 0 24px; height: 50px; border-radius: 13px; border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green-soft)); color: #04140b; box-shadow: 0 8px 28px var(--green-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(34,197,94,0.4); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-3); border-color: var(--green); }
.btn-lg { height: 56px; font-size: 16px; padding: 0 30px; }

/* reveal animation — opacity stays 1 always (so content is NEVER invisible even if
   transitions are frozen); only a subtle slide animates and degrades gracefully */
.reveal { opacity: 1; transform: translateY(16px); transition: transform 0.6s var(--ease-out); }
.reveal.in { transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: none; } }

/* glow blobs */
.glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7,9,10,0.82); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { width: 100%; max-width: var(--maxw); display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--green), var(--green-soft)); display: grid; place-items: center; box-shadow: 0 4px 16px var(--green-glow); overflow: hidden; }
.brand-mark img { width: 76%; height: 76%; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 30px; flex-wrap: nowrap; }
.nav-links a { font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ============ HERO ============ */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero .glow.g1 { width: 620px; height: 620px; background: rgba(34,197,94,0.16); top: -180px; left: 50%; transform: translateX(-50%); }
.hero .glow.g2 { width: 420px; height: 420px; background: rgba(59,130,246,0.10); top: 240px; right: -120px; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line, rgba(255,255,255,0.035)) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); z-index: 0; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 5.6vw, 70px); margin: 22px 0 22px; }
.hero-copy p.sub { font-size: 19px; color: var(--text-2); line-height: 1.6; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.hero-trust .item { display: flex; flex-direction: column; }
.hero-trust .num { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.hero-trust .lbl { font-size: 12.5px; color: var(--text-3); }
.hero-trust .sep { width: 1px; height: 34px; background: var(--border); }

/* hero visual: app preview card */
.hero-visual { position: relative; }
.preview-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: 0 40px 100px rgba(0,0,0,0.6); overflow: hidden; transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); }
.preview-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-top .dotc { width: 11px; height: 11px; border-radius: 50%; }
.preview-top .t { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.preview-body { padding: 20px; }
.pv-row { display: flex; gap: 12px; margin-bottom: 14px; }
.pv-stat { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.pv-stat .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.pv-stat .v { font-family: var(--font-mono); font-weight: 700; font-size: 19px; margin-top: 6px; }
.pv-chart { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.pv-chart .ch-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pv-chart .ch-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.up { color: var(--green); } .down { color: var(--red); }
.float-badge { position: absolute; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 15px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 11px; }
.float-badge .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-badge .ttl { font-size: 12.5px; font-weight: 700; }
.float-badge .sub2 { font-size: 11px; color: var(--text-3); }
.fb-1 { top: -22px; right: -26px; animation: floaty 5s ease-in-out infinite; }
.fb-2 { bottom: 38px; left: -34px; animation: floaty 6s ease-in-out infinite 0.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ticker strip */
.tickerbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 13px 0; position: relative; z-index: 2; }
.tickerbar .track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: scroll-x 38s linear infinite; }
.tickerbar .tk { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13.5px; }
.tickerbar .tk b { font-weight: 700; }
.tickerbar .tk .px { color: var(--text-2); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ LOGO/STAT STRIP ============ */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stats-strip .cell { background: var(--bg); padding: 34px 24px; text-align: center; }
.stats-strip .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); background: linear-gradient(180deg, #fff, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip .lbl { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }

/* ============ BENTO FEATURES ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s; }
.feat:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 19px; margin-bottom: 9px; }
.feat p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.feat.col3 { grid-column: span 3; }
.feat.col2 { grid-column: span 2; }
.feat.col4 { grid-column: span 4; }
.feat-glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; filter: blur(70px); opacity: 0.14; top: -60px; right: -60px; }

/* feature mini chart / list */
.feat-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 18px; }
.feat-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--green), transparent); opacity: 0.85; }
.mini-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.mini-list .mi { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.mini-list .mi .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; position: relative; }
.step .n { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--green); background: var(--green-glow); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.step::after { content: ''; position: absolute; top: 46px; right: -12px; width: 24px; height: 1px; background: var(--border-strong); }
.step:last-child::after { display: none; }

/* ============ SPOTLIGHT (split) ============ */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight.rev { direction: rtl; } .spotlight.rev > * { direction: ltr; }
.spotlight h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 18px; }
.spotlight p.lead { font-size: 16.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.spot-list { display: flex; flex-direction: column; gap: 14px; }
.spot-list .li { display: flex; gap: 13px; align-items: flex-start; }
.spot-list .li .chk { width: 24px; height: 24px; border-radius: 8px; background: var(--green-glow); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.spot-list .li b { font-size: 14.5px; }
.spot-list .li p { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.spot-visual { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: 24px; box-shadow: 0 30px 70px rgba(0,0,0,0.45); }

/* AI verdict mock */
.ai-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ai-badge { font-size: 11px; font-weight: 700; color: var(--purple); background: rgba(168,85,247,0.14); padding: 5px 11px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }
.ai-verdict { font-family: var(--font-display); font-size: 15px; line-height: 1.6; font-weight: 500; }
.ai-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.tag.g { color: var(--green); background: var(--green-glow); }
.tag.a { color: var(--amber); background: rgba(240,185,11,0.13); }
.tag.b { color: var(--blue); background: rgba(59,130,246,0.13); }

/* leaderboard mock */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--text-3); width: 26px; }
.lb-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #04140b; }
.lb-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.lb-pct { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }

/* ============ SHOWCASE GALLERY ============ */
.shot-frame { border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5); background: var(--bg-2); }
.shot-frame img { display: block; width: 100%; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.shot-bar .lbl { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.show-item { position: relative; }
.show-cap { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.show-cap .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.show-cap h3 { font-size: 17px; }
.show-cap p { font-size: 13px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
@media (max-width: 820px) { .showcase { grid-template-columns: 1fr; } }

/* ============ PRICING ============ */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; position: relative; overflow: hidden; }
.plan.vip { border-color: rgba(240,185,11,0.4); background: linear-gradient(180deg, rgba(240,185,11,0.06), var(--surface) 60%); }
.plan .pp-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.plan .pp-price { font-family: var(--font-display); font-weight: 700; font-size: 46px; margin: 14px 0 4px; }
.plan .pp-price small { font-size: 16px; color: var(--text-3); font-weight: 500; }
.plan .pp-desc { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.plan li { display: flex; gap: 11px; font-size: 14px; color: var(--text); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.plan .vip-flag { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700; color: #1a1200; background: var(--amber); padding: 5px 12px; border-radius: 99px; }

/* ============ TESTIMONIALS ============ */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.quote .stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 14.5px; line-height: 1.65; color: var(--text); margin-bottom: 18px; }
.quote .who { display: flex; align-items: center; gap: 11px; }
.quote .who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #04140b; }
.quote .who .nm { font-size: 13.5px; font-weight: 600; }
.quote .who .rl { font-size: 11.5px; color: var(--text-3); }

/* ============ CTA ============ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid rgba(34,197,94,0.3); background: linear-gradient(135deg, rgba(34,197,94,0.14), rgba(7,9,10,0.2) 60%); padding: 72px 40px; text-align: center; }
.cta-band .glow { width: 500px; height: 380px; background: rgba(34,197,94,0.18); top: -120px; left: 50%; transform: translateX(-50%); }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 54px); position: relative; z-index: 2; }
.cta-band p { font-size: 17px; color: var(--text-2); max-width: 520px; margin: 18px auto 30px; position: relative; z-index: 2; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin-top: 16px; max-width: 280px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-ui); font-weight: 700; }
.foot-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 11px; transition: color 0.15s; }
.foot-col a:hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 14px; }
.foot-bottom p { font-size: 12.5px; color: var(--text-3); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all 0.15s; }
.foot-social a:hover { color: var(--green); border-color: var(--green); transform: translateY(-2px); }
.disclaimer { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .preview-card { transform: none; }
  .spotlight, .spotlight.rev { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat.col3, .feat.col2, .feat.col4 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .tgrid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-cta .btn-ghost { display: none; }
  .section { padding: 78px 0; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .hero-trust .sep { display: none; }
  .wrap { padding: 0 20px; }
  .cta-band { padding: 52px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
}
