/* =====================================================================
   AdFlows — Design System & Landing Page
   Palette: Ink #0B0A18 · Surface #14122B · Violet #7C3AED · Magenta #EC4899
            Flare #F97316 · Volt (signature accent) #D7FF3D
   Display: Space Grotesk · Body: Inter · Utility/labels: IBM Plex Mono
===================================================================== */

:root {
  --ink: #0B0A18;
  --surface: #14122B;
  --surface-alt: #1C1938;
  --surface-hi: #241F47;
  --border: #2C2856;
  --violet: #7C3AED;
  --magenta: #EC4899;
  --flare: #F97316;
  --volt: #D7FF3D;
  --text: #F5F3FF;
  --text-muted: #9C97BE;
  --text-dim: #6B6690;
  --gradient-brand: linear-gradient(90deg, var(--violet), var(--magenta), var(--flare));
  --gradient-brand-v: linear-gradient(160deg, var(--violet), var(--magenta) 60%, var(--flare));
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 8px 40px -8px rgba(124, 58, 237, 0.45);
  --container: 1180px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 8%, rgba(124,58,237,0.28), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(236,72,153,0.20), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(249,115,22,0.14), transparent 45%),
    var(--ink);
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--volt);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt);
}

.text-muted-custom { color: var(--text-muted); }
.container-xl { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 12px 46px -6px rgba(236,72,153,0.55); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #4A4480; color: #fff; }

.btn-volt {
  background: var(--volt);
  color: #0B0A18;
  border: none;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 100px;
  transition: transform .2s ease;
}
.btn-volt:hover { transform: translateY(-2px); color: #0B0A18; }

/* ---------- Nav ---------- */
.nav-adflows {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  background: rgba(11,10,24,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-adflows .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 21px; color: #fff;
  letter-spacing: -0.03em;
}
.nav-adflows .brand .dot { color: var(--volt); }
.nav-adflows a.nav-link-custom {
  color: var(--text-muted); font-weight: 600; font-size: 14.5px;
  padding: 8px 14px; transition: color .15s;
}
.nav-adflows a.nav-link-custom:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 100px; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 19px; color: var(--text-muted); max-width: 560px; margin: 22px 0 34px; }

.trust-row { display: flex; gap: 28px; align-items: center; margin-top: 46px; flex-wrap: wrap; }
.trust-row .stat { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; color: #fff; }
.trust-row .stat-label { font-size: 12.5px; color: var(--text-dim); }

/* ---- Signature element: campaign fan-out visual ---- */
.fanout-wrap {
  position: relative;
  height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.fanout-core {
  position: relative; z-index: 5;
  width: 210px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; box-shadow: 0 20px 60px -12px rgba(0,0,0,0.6);
  animation: coreFloat 6s ease-in-out infinite;
}
.fanout-core .tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--volt); letter-spacing: .08em; }
.fanout-core .pname { font-weight: 700; margin: 6px 0 4px; font-size: 14.5px; }
.fanout-core .pdesc { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.fanout-core .bar { height: 6px; border-radius: 4px; background: var(--gradient-brand); margin-top: 12px; opacity: .85; }

@keyframes coreFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.fanout-node {
  position: absolute; width: 168px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 13px;
  opacity: 0; transform: scale(0.7);
  animation: nodeIn 0.6s cubic-bezier(.2,.8,.2,1) forwards;
}
.fanout-node .plat { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }
.fanout-node .snippet { font-size: 12px; margin-top: 5px; color: #fff; line-height: 1.35; }
.fanout-node.n1 { top: 2%; left: 4%; animation-delay: .3s; }
.fanout-node.n2 { top: -2%; right: 2%; animation-delay: .55s; }
.fanout-node.n3 { top: 40%; left: -6%; animation-delay: .8s; }
.fanout-node.n4 { top: 42%; right: -6%; animation-delay: 1.05s; }
.fanout-node.n5 { bottom: 0%; left: 18%; animation-delay: 1.3s; }
.fanout-node.n6 { bottom: 2%; right: 14%; animation-delay: 1.55s; }

@keyframes nodeIn { to { opacity: 1; transform: scale(1); } }

.fanout-wrap svg.beams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.fanout-wrap svg.beams path {
  stroke: url(#beamGrad); stroke-width: 1.4; fill: none; opacity: 0;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: drawBeam 1s ease forwards;
}
.fanout-wrap svg.beams path:nth-child(1) { animation-delay: .2s; }
.fanout-wrap svg.beams path:nth-child(2) { animation-delay: .45s; }
.fanout-wrap svg.beams path:nth-child(3) { animation-delay: .7s; }
.fanout-wrap svg.beams path:nth-child(4) { animation-delay: .95s; }
.fanout-wrap svg.beams path:nth-child(5) { animation-delay: 1.2s; }
.fanout-wrap svg.beams path:nth-child(6) { animation-delay: 1.45s; }
@keyframes drawBeam { to { opacity: .55; stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fanout-node, .fanout-wrap svg.beams path, .fanout-core { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------- Logos / platform strip ---------- */
.platform-strip { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.platform-strip .items { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; align-items: center; }
.platform-strip span { font-family: 'IBM Plex Mono', monospace; letter-spacing: .1em; color: var(--text-dim); font-size: 13px; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 620px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }

/* ---------- Feature cards ---------- */
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; height: 100%;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: #4A4480; }
.feature-card .icon-wrap {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gradient-brand-v); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
}
.feature-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- How it works (real sequence — numbers justified) ---------- */
.step-row { position: relative; }
.step-item { text-align: center; position: relative; padding: 0 14px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--volt);
  position: relative; z-index: 2;
}
.step-item h4 { font-size: 16px; margin-bottom: 8px; }
.step-item p { font-size: 13.5px; color: var(--text-muted); }
.step-connector {
  position: absolute; top: 26px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 8%, var(--border) 92%, transparent);
  z-index: 1;
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 30px; height: 100%;
  position: relative;
}
.price-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--gradient-brand) border-box;
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}
.price-card .badge-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--volt); color: #0B0A18; font-weight: 800; font-size: 11.5px;
  padding: 5px 16px; border-radius: 100px; letter-spacing: .04em;
}
.price-card .plan-name { font-family: 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; color: var(--text-muted); }
.price-card .amount { font-family: 'Space Grotesk', sans-serif; font-size: 46px; font-weight: 700; margin: 10px 0 2px; color: #fff; }
.price-card .amount span { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 13px; font-size: 14.5px; color: #E6E3F7; }
.price-card ul li .ck { color: var(--volt); flex-shrink: 0; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; height: 100%;
}
.quote-card p.quote { font-size: 15px; color: #E6E3F7; line-height: 1.6; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar-circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff;
}
.who .name { font-weight: 700; font-size: 13.5px; }
.who .role { font-size: 12px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 16px; }
.faq-q .plus { font-size: 22px; color: var(--volt); transition: transform .25s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-muted); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 240px; margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-brand); border-radius: 28px;
  padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 14px 0 30px; }
.cta-band .btn-volt { box-shadow: 0 12px 40px -8px rgba(0,0,0,0.35); }

/* ---------- Footer ---------- */
.footer-adflows { padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-adflows a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-adflows a:hover { color: #fff; }
.footer-adflows h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Forms (auth pages reuse) ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 34px;
}
.form-control-custom {
  width: 100%; background: var(--surface-alt); border: 1px solid var(--border); color: #fff;
  padding: 12px 14px; border-radius: 10px; font-size: 14.5px; margin-bottom: 4px;
}
.form-control-custom:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,0.25); }
label.form-label-custom { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: block; font-weight: 600; }
.field-error { color: #FB7185; font-size: 12.5px; margin-top: 4px; margin-bottom: 10px; }
.alert-custom { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.alert-success-custom { background: rgba(52,211,153,0.12); color: #34D399; border: 1px solid rgba(52,211,153,0.3); }
.alert-error-custom { background: rgba(251,113,133,0.12); color: #FB7185; border: 1px solid rgba(251,113,133,0.3); }
.otp-input { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.otp-input input {
  width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; color: #fff;
}

@media (max-width: 991px) {
  .fanout-wrap { height: 420px; transform: scale(0.85); }
  .hero { padding-top: 140px; }
  #navMenu { display: none; flex-direction: column; gap: 6px; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; }
  #navMenu.mobile-open { display: flex; }
  #navToggle { display: flex !important; }
}
@media (max-width: 767px) {
  .fanout-wrap { height: 380px; transform: scale(0.7); }
  .section { padding: 74px 0; }
}
#navToggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; color: #fff; }
