:root {
  --bg: #06060c;
  --bg-soft: #0b0b15;
  --fg: #f3f3f8;
  --muted: #9b9bb4;
  --faint: #6c6c85;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --a1: #7c6cff;
  --a2: #4f9cff;
  --a3: #18d3c8;
  --grad: linear-gradient(120deg, #7c6cff 0%, #4f9cff 50%, #18d3c8 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,108,255,.18), rgba(24,211,200,.18));
  --r: 16px;
  --r-lg: 22px;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: 'Space Grotesk', var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- animated background ---------- */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at top, #0d0d1a 0%, var(--bg) 60%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora-1 { width: 52vw; height: 52vw; left: -10vw; top: -12vw; background: radial-gradient(circle, #7c6cff, transparent 65%); animation: drift1 26s ease-in-out infinite; }
.aurora-2 { width: 46vw; height: 46vw; right: -8vw; top: 6vw; background: radial-gradient(circle, #18d3c8, transparent 65%); animation: drift2 30s ease-in-out infinite; opacity: 0.4; }
.aurora-3 { width: 40vw; height: 40vw; left: 28vw; top: 38vw; background: radial-gradient(circle, #4f9cff, transparent 65%); animation: drift3 34s ease-in-out infinite; opacity: 0.35; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: 0.5; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,6vw) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,5vw) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-6vw) scale(1.15); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(8, 8, 16, 0.72); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; display: block; }
.brand-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.s-btn) { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:not(.s-btn):hover { color: var(--fg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 14.5px; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .3s, background .2s; white-space: nowrap; }
.s-btn:active { transform: translateY(1px); }
.s-btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(124, 108, 255, 0.6); }
.s-btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(124, 108, 255, 0.8); transform: translateY(-2px); }
.s-btn-ghost { background: var(--glass); color: var(--fg); border-color: var(--line); }
.s-btn-ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.2); }
.s-btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- section frame ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a2); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 90px; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 7vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .sub { max-width: 620px; margin: 26px auto 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero-strip { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-top: 58px; color: var(--faint); font-size: 13px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
.hero-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero-strip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 12px var(--a3); }

/* floating product preview cards under hero */
.hero-deck { display: flex; gap: 18px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.deck-card { width: 200px; padding: 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); text-align: left; animation: floaty 6s ease-in-out infinite; }
.deck-card:nth-child(2) { animation-delay: -2s; }
.deck-card:nth-child(3) { animation-delay: -4s; }
.deck-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: 14px; }
.deck-card h4 { font-size: 16px; margin-bottom: 4px; }
.deck-card p { font-size: 13px; color: var(--muted); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- glass card grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-glass { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .3s, border-color .3s, background .3s; overflow: hidden; }
.card-glass::before { 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; pointer-events: none; }
.card-glass:hover { transform: translateY(-6px); background: var(--glass-2); }
.card-glass:hover::before { opacity: 0.6; }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 20px; color: var(--a2); }
.card-glass h3 { font-size: 20px; margin-bottom: 10px; }
.card-glass > p { color: var(--muted); font-size: 15px; }

/* ---------- products ---------- */
.prod-card { display: flex; flex-direction: column; }
.prod-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prod-logo { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; flex-shrink: 0; }
.prod-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.prod-card h3 { font-size: 21px; }
.prod-tagline { color: var(--muted); font-size: 14px; margin-top: 2px; }
.prod-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); color: var(--muted); }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-link { font-weight: 600; font-size: 14px; color: var(--a2); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.prod-card:hover .prod-link { gap: 10px; }

/* ---------- approach / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 22px; padding: 26px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.step:hover { background: var(--glass-2); }
.step-num { counter-increment: step; font-family: var(--display); font-weight: 700; font-size: 15px; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); }
.step-num::before { content: "0" counter(step); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.stat-num.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding: 14px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--faint); white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: 80px 40px; border-radius: 28px; background: linear-gradient(140deg, rgba(124,108,255,0.16), rgba(24,211,200,0.12)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 64px 0 30px; background: rgba(8,8,16,0.5); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.socials { display: flex; gap: 14px; margin-top: 8px; }
.socials a { padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ---------- product detail page ---------- */
.prod-hero { padding: 130px 0 50px; }
.prod-hero-top { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.prod-hero .prod-logo { width: 68px; height: 68px; border-radius: 18px; font-size: 28px; }
.prod-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.prod-hero .lead { color: var(--muted); font-size: 20px; max-width: 680px; margin-top: 18px; }
.prod-cover { margin: 40px 0; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.feature-check { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; background: var(--grad-soft); display: grid; place-items: center; color: var(--a3); }
.feature span { font-size: 15px; }
.back-link { color: var(--muted); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.back-link:hover { color: var(--fg); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 70px 0 auto; flex-direction: column; gap: 4px; padding: 18px 24px 28px; background: rgba(8,8,16,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s cubic-bezier(.16,1,.3,1); align-items: stretch; }
  .nav-links.open { transform: none; }
  .nav-links a:not(.s-btn) { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; }
  .grid-3, .grid-2, .stats, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 60px; }
  .cta { padding: 56px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-strip { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .deck-card, .marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
