:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --ink: #ececf4;
  --muted: #9b9bb4;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(110deg, var(--violet), var(--indigo) 40%, var(--cyan));
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Geist", Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 7, 13, .72); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 680px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  color: #fff !important; background: var(--grad); background-size: 160% auto;
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--ease), box-shadow .25s, background-position .5s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background-position: right center; box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; border-color: rgba(255, 255, 255, .2); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before { /* dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px); opacity: .55; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s var(--ease) infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 8%; top: 10%; background: var(--violet); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 6%; top: 0; background: var(--cyan); animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 40%; bottom: 0; background: var(--pink); opacity: .6; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.12); }
  100% { transform: translate(-4vw, -3vh) scale(.92); }
}
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); backdrop-filter: blur(8px); margin-bottom: 26px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); max-width: 980px; font-weight: 700; letter-spacing: -.04em; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; filter: none; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.stats { list-style: none; padding: 26px 0 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Tech marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; gap: 48px; width: max-content; list-style: none; margin: 0; padding: 0; animation: scroll-x 40s linear infinite; }
.marquee li { color: var(--muted); font-size: .9rem; white-space: nowrap; letter-spacing: .02em; }
.marquee li::before { content: "◆"; margin-right: 12px; font-size: .55rem; vertical-align: middle; color: var(--violet); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.kicker { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 0 48px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Glass card with cursor spotlight and gradient border on hover */
.card, .product, .glass {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card { padding: 28px; overflow: hidden; }
.card::before, .product::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .16), transparent 45%);
}
.card:hover, .product:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); background: var(--surface-2); }
.card:hover::before, .product:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(139, 92, 246, .25), rgba(34, 211, 238, .18)); border: 1px solid rgba(255, 255, 255, .12); }
.icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Products ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 22px; margin-bottom: 22px; }
.product:nth-of-type(even) .shot { order: 2; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.product:hover .shot img { transform: scale(1.04); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7, 7, 13, .35)); }
.ptitle { display: flex; align-items: center; gap: 12px; }
.ptitle img { border-radius: 10px; }
.pbody h3 { font-size: 1.7rem; margin: 0; }
.tag { color: var(--cyan); font-size: .8rem; letter-spacing: .04em; margin: 8px 0 14px; }
.pbody p { color: var(--muted); }
.tech { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech li { background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3); color: #c4b5fd; font-size: .76rem; padding: 4px 10px; border-radius: 999px; }
.links { font-weight: 500; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 22px; } .product:nth-of-type(even) .shot { order: 0; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.founder p { color: var(--muted); }
.name { font-size: 2rem; margin: 0; }
.timeline { list-style: none; padding: 28px; margin: 0; }
.timeline li { position: relative; padding: 0 0 24px 26px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(139, 92, 246, .8); }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 22px; bottom: 2px; width: 2px; background: linear-gradient(var(--violet), transparent); opacity: .5; }
.timeline li:last-child::after { display: none; }
.timeline span { display: block; font-size: .78rem; color: var(--cyan); }
.timeline strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Steps ---------- */
.steps > div { padding: 26px; }
.steps b { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { text-align: center; overflow: hidden; isolation: isolate; }
.contact .glow { position: absolute; left: 50%; top: 50%; width: 700px; height: 400px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(139, 92, 246, .35), transparent); filter: blur(30px); z-index: -1; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.15); } }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.contact .sub { margin: 0 auto 8px; }
.contact .cta { justify-content: center; }
.where { color: var(--muted); font-size: .9rem; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .88rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { color: var(--muted); }

.legal { padding: 130px 16px 90px; max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .rotator > span { opacity: 0; } .rotator > span.on { opacity: 1; transform: none; filter: none; }
}
