:root {
  --bg: #06070d;
  --bg-soft: #0b0d18;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --muted: #9aa0b5;
  --accent: #6e8bff;
  --accent-2: #b16bff;
  --accent-3: #2ad4c0;
  --grad: linear-gradient(120deg, #6e8bff 0%, #b16bff 50%, #2ad4c0 100%);
  --radius: 20px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.glow-1 { width: 520px; height: 520px; top: -120px; left: -80px; background: #3a4cff; animation: float1 14s ease-in-out infinite; }
.glow-2 { width: 480px; height: 480px; top: 30%; right: -120px; background: #8a2cff; animation: float2 18s ease-in-out infinite; }
.glow-3 { width: 420px; height: 420px; bottom: -120px; left: 30%; background: #11a89a; animation: float1 16s ease-in-out infinite reverse; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,50px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,30px); } }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 360px; height: 360px;
  margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,139,255,.14), transparent 60%);
  pointer-events: none; z-index: -1; transition: opacity .3s; opacity: 0;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 100; box-shadow: 0 0 12px rgba(110,139,255,.6);
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
  transition: all .3s ease;
}
.header.scrolled {
  background: rgba(8,9,16,.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  top: 0; padding: 12px 24px;
  border-radius: 0;
}
@media (min-width: 880px) {
  .header { left: 50%; transform: translateX(-50%); top: 16px; border-radius: 16px; }
  .header.scrolled { left: 0; transform: none; width: 100%; max-width: 100%; padding: 12px 0; }
  .header.scrolled .logo, .header.scrolled .nav, .header.scrolled .btn-sm { }
  .header.scrolled > * { max-width: var(--maxw); }
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; font-family: "Space Grotesk", sans-serif; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #06070d; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 20px rgba(110,139,255,.4);
}
.logo-text { letter-spacing: -.5px; }

.nav { display: flex; gap: 30px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
.nav a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px; background: var(--grad); transition: width .25s; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 600; font-size: 15px; border-radius: 12px; border: 1px solid transparent;
  padding: 13px 22px; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; background: var(--surface-2); border-color: var(--border); }
.btn-sm:hover { border-color: var(--border-bright); background: var(--surface); }
.btn-primary { background: var(--grad); color: #06070d; box-shadow: 0 8px 30px rgba(110,139,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(110,139,255,.5); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-bright); transform: translateY(-2px); background: var(--surface-2); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface);
  color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(42,212,192,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(42,212,192,.5);} 70%{box-shadow:0 0 0 10px rgba(42,212,192,0);} 100%{box-shadow:0 0 0 0 rgba(42,212,192,0);} }

.hero-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -1.5px;
  max-width: 16ch; margin-bottom: 24px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

.hero-stats { display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; }
.stat { text-align: center; }
.stat-num { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-bright); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; background: var(--accent); border-radius: 4px; animation: scrolldown 1.8s ease-in-out infinite; }
@keyframes scrolldown { 0%{opacity:0;transform:translateY(-4px);} 40%{opacity:1;} 80%,100%{opacity:0;transform:translateY(12px);} }

/* ---------- Marquee strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--bg-soft); }
.strip-track { display: flex; gap: 28px; align-items: center; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.strip-track span { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 18px; letter-spacing: 2px; color: var(--muted); }
.strip-track i { color: var(--accent-2); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -1px; line-height: 1.1; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.1rem; }

/* ---------- Cases ---------- */
.cases { display: flex; flex-direction: column; gap: 20px; }
.case {
  display: flex; gap: 28px; align-items: flex-start; padding: 34px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s, transform .3s, background .3s; position: relative; overflow: hidden;
}
.case::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.case:hover { border-color: var(--border-bright); transform: translateY(-4px); background: var(--surface-2); }
.case:hover::before { transform: scaleY(1); }
.case-index { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--border-bright); line-height: 1; flex-shrink: 0; }
.case-body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -.4px; }
.case-body p { color: var(--muted); margin-bottom: 18px; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case-tags span { font-size: 13px; padding: 5px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }

/* ---------- Stack ---------- */
.section-stack { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stack-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .3s, border-color .3s, box-shadow .3s; }
.stack-card:hover { transform: translateY(-6px); border-color: var(--border-bright); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.stack-icon { font-size: 2rem; margin-bottom: 16px; }
.stack-card h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: color .2s, border-color .2s; }
.stack-card:hover .chips span { color: var(--text); border-color: var(--border-bright); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card { padding: 36px 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.trust-card:hover { transform: translateY(-6px); border-color: var(--border-bright); }
.trust-card::after { content:""; position:absolute; right:-40px; top:-40px; width:120px; height:120px; border-radius:50%; background: var(--grad); opacity:0; filter: blur(40px); transition: opacity .35s; }
.trust-card:hover::after { opacity:.4; }
.trust-num { font-family: "Space Grotesk", sans-serif; font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; letter-spacing: 2px; }
.trust-card h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -.4px; }
.trust-card p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; border: 1px solid var(--border-bright); border-radius: 28px; padding: 70px 40px; text-align: center; overflow: hidden; background: linear-gradient(180deg, rgba(110,139,255,.08), rgba(177,107,255,.04)); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(110,139,255,.25), transparent 70%); }
.cta-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-content h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.cta-content p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 30px; background: var(--bg-soft); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer-col h5 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-req span { font-size: 13.5px; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav, .header > .btn-sm { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,9,16,.96); backdrop-filter: blur(16px); padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .case { flex-direction: column; gap: 14px; padding: 26px; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 520px) {
  .stack-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .cta { padding: 50px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
