/* =========================================================
   NextApps AI — monochrome SaaS theme
   ========================================================= */
:root {
  --bg: #050505;
  --bg-2: #0b0b0c;
  --surface: #0f0f10;
  --surface-2: #151517;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #9a9a9e;
  --dim: #5f5f64;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Geist", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Cursor spotlight */
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.055), transparent 40%);
  transition: background .2s;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.display { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.055em; line-height: .95; }
.h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.grad-text {
  background: linear-gradient(180deg, #fff 0%, #fff 35%, #6b6b6f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shine-text {
  background: linear-gradient(110deg, #6b6b6f 0%, #6b6b6f 35%, #fff 50%, #6b6b6f 65%, #6b6b6f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: #fff; color: #000; box-shadow: 0 0 0 0 rgba(255,255,255,.4), 0 10px 40px -10px rgba(255,255,255,.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 18px 50px -12px rgba(255,255,255,.6); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 0;
  transition: padding .4s var(--ease);
}
.header .nav-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 10px 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.header.scrolled { padding: 10px 0; }
.header.scrolled .nav-wrap { background: rgba(12,12,13,.7); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 18px; }
.logo-mark { width: 30px; height: 30px; }
.logo .ai { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--muted); transition: color .25s, background .25s;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.06); }
.header .btn { height: 42px; padding: 0 18px; font-size: 14px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(5,5,5,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 24px 40px; gap: 6px;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.mobile-menu a { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; color: var(--muted); transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .2s; }
.mobile-menu a:hover { color: #fff; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }

@media (max-width: 860px) {
  .nav, .header .nav-cta { display: none; }
  .burger { display: block; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 140px 0; }
@media (max-width: 760px) { .section { padding: 90px 0; } }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 80px; overflow: hidden; min-height: 100vh; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 64px 64px; } }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb-1 { width: 520px; height: 520px; top: -180px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; top: 40%; left: -120px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); animation: float2 18s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; top: 30%; right: -160px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); animation: float2 16s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(-50%, 0) scale(1); } 50% { transform: translate(-46%, 40px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,-40px); } }

.beam {
  position: absolute; top: 0; left: 50%; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-50%); opacity: .25;
}

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--muted); backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.pill b { font-weight: 500; color: #000; background: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%); transform: translateX(-100%); animation: pillShine 4s ease-in-out infinite; }
@keyframes pillShine { 60%,100% { transform: translateX(100%); } }

.hero h1 { max-width: 1000px; }
.hero h1 .serif { font-size: 1.05em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* word reveal */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-words .w > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease) forwards; }
@keyframes wordUp { to { transform: none; } }

.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Browser mockup */
.mock-wrap { position: relative; width: 100%; max-width: 1040px; margin: 70px auto 0; perspective: 1600px; }
.mock {
  position: relative; border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #111113, #0a0a0b);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 120px -20px rgba(0,0,0,.9), 0 -20px 80px -30px rgba(255,255,255,.15);
  overflow: hidden; transform: rotateX(14deg) scale(.96); transform-origin: center top;
  transition: transform 1.2s var(--ease);
}
.mock.in { transform: rotateX(0) scale(1); }
.mock::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); z-index: 3; }
.mock-glow { position: absolute; inset: -2px; border-radius: 22px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(255,255,255,.6) 80%, transparent 90%); z-index: -1; filter: blur(14px); opacity: .5; animation: spin 8s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }

.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2d; }
.url { flex: 1; height: 30px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); max-width: 460px; margin: 0 auto; }
.url svg { width: 12px; height: 12px; }
.ext-icons { display: flex; gap: 8px; }
.ext-icons span { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); background: #18181a; display: grid; place-items: center; }
.ext-icons span svg { width: 14px; height: 14px; }
.ext-icons span.on { background: #fff; border-color: #fff; box-shadow: 0 0 20px rgba(255,255,255,.5); animation: pulseIcon 2.4s ease-in-out infinite; }
.ext-icons span.on svg { color: #000; }
@keyframes pulseIcon { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 0 30px rgba(255,255,255,.6); } }

.mock-body { display: grid; grid-template-columns: 1fr 320px; min-height: 420px; text-align: left; }
.page { padding: 34px 38px; display: flex; flex-direction: column; gap: 14px; }
.sk { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #1b1b1e, #232327, #1b1b1e); background-size: 200% 100%; animation: sk 2.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.sk.t { height: 22px; width: 60%; margin-bottom: 10px; }
.sk.hl { background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.45), rgba(255,255,255,.18)); background-size: 200% 100%; box-shadow: 0 0 20px rgba(255,255,255,.15); }
.page-img { height: 120px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 30% 30%, #2a2a2e, #111 70%); margin: 8px 0; position: relative; overflow: hidden; }
.page-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); animation: sweep 3.5s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.panel { border-left: 1px solid var(--line); background: linear-gradient(180deg, #0f0f11, #0b0b0c); padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; transform: translateX(100%); transition: transform 1s var(--ease) .6s; }
.mock.in .panel { transform: none; }
.panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.panel-head .av { width: 26px; height: 26px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.panel-head .av svg { width: 14px; height: 14px; color: #000; }
.panel-head .st { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.panel-head .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.msg { font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; max-width: 92%; opacity: 0; transform: translateY(10px); }
.msg.user { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #1a1a1d; border: 1px solid var(--line); color: #d7d7da; border-bottom-left-radius: 4px; }
.msg.show { animation: fadeUp .6s var(--ease) forwards; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.panel-input { margin-top: auto; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--dim); gap: 8px; }
.panel-input .caret { width: 1px; height: 14px; background: #fff; animation: blink 1s steps(1) infinite; }
.panel-input .send { margin-left: auto; width: 24px; height: 24px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.panel-input .send svg { width: 12px; height: 12px; color: #000; }

.fake-cursor { position: absolute; width: 20px; height: 20px; z-index: 5; left: 70%; top: 30%; animation: cursorPath 9s var(--ease) infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
@keyframes cursorPath {
  0% { left: 30%; top: 60%; } 20% { left: 46%; top: 36%; } 35% { left: 46%; top: 36%; }
  55% { left: 88%; top: 6%; } 65% { left: 88%; top: 6%; } 85% { left: 60%; top: 70%; } 100% { left: 30%; top: 60%; }
}

.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(16,16,18,.8); backdrop-filter: blur(12px); font-size: 13px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.8); animation: bob 6s ease-in-out infinite;
}
.float-chip .ic { width: 28px; height: 28px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.float-chip .ic svg { width: 14px; height: 14px; color: #000; }
.float-chip small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.chip-1 { left: -40px; top: 120px; }
.chip-2 { right: -30px; bottom: 60px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

@media (max-width: 900px) {
  .mock-body { grid-template-columns: 1fr; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .page { display: none; }
  .float-chip { display: none; }
  .fake-cursor { display: none; }
}
@media (max-width: 600px) {
  .ext-icons span:nth-child(n+3) { display: none; }
  .url { font-size: 11px; }
}

/* ---------- Marquee ---------- */
.marquee { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--dim); white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; }
.marquee-item.star { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  padding: 32px; overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 50%), rgba(255,255,255,.08), transparent 45%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 24px; display: block; }
.b-1 { grid-column: span 4; min-height: 380px; }
.b-2 { grid-column: span 2; }
.b-3 { grid-column: span 2; }
.b-4 { grid-column: span 2; }
.b-5 { grid-column: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .b-1 { grid-column: span 2; } .b-2, .b-3, .b-4, .b-5 { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .b-1, .b-2, .b-3, .b-4, .b-5 { grid-column: span 1; } .card { padding: 24px; } }

.illu { height: 180px; margin: -8px -8px 24px; position: relative; display: grid; place-items: center; }
.b-1 .illu { height: 220px; }

/* Illustration: orbit */
.orbit { position: relative; width: 200px; height: 200px; }
.orbit .ring { position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,.15); border-radius: 50%; animation: rot 30s linear infinite; }
.orbit .ring.r2 { inset: 30px; border-style: solid; border-color: rgba(255,255,255,.08); animation-duration: 20s; animation-direction: reverse; }
.orbit .core { position: absolute; inset: 70px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 60px rgba(255,255,255,.4); }
.orbit .core svg { width: 30px; height: 30px; color: #000; }
.orbit .sat { position: absolute; width: 38px; height: 38px; border-radius: 11px; background: #18181b; border: 1px solid var(--line-2); display: grid; place-items: center; top: -19px; left: calc(50% - 19px); }
.orbit .sat svg { width: 18px; height: 18px; }
.orbit .ring > .sat { animation: rot 30s linear infinite reverse; }
.orbit .ring > .sat.s2 { top: auto; bottom: -19px; }
.orbit .ring > .sat.s3 { top: calc(50% - 19px); left: -19px; }
.orbit .ring > .sat.s4 { top: calc(50% - 19px); left: auto; right: -19px; }
.orbit .ring.r2 > .sat { animation-duration: 20s; animation-direction: normal; width: 30px; height: 30px; top: -15px; left: calc(50% - 15px); border-radius: 9px; }
.orbit .ring.r2 > .sat svg { width: 14px; height: 14px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Illustration: speed bars */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.bars i { width: 18px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.08)); animation: bar 2.4s var(--ease) infinite; transform-origin: bottom; }
.bars i:nth-child(1) { height: 40%; animation-delay: 0s; } .bars i:nth-child(2) { height: 70%; animation-delay: .1s; }
.bars i:nth-child(3) { height: 55%; animation-delay: .2s; } .bars i:nth-child(4) { height: 90%; animation-delay: .3s; }
.bars i:nth-child(5) { height: 65%; animation-delay: .4s; } .bars i:nth-child(6) { height: 100%; animation-delay: .5s; }
@keyframes bar { 0%,100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* Illustration: shield */
.shield { position: relative; width: 120px; height: 140px; }
.shield svg.sh { width: 100%; height: 100%; }
.shield .scan { position: absolute; left: 10%; right: 10%; height: 2px; background: #fff; box-shadow: 0 0 20px 4px rgba(255,255,255,.6); animation: scan 2.6s ease-in-out infinite; border-radius: 2px; }
@keyframes scan { 0%,100% { top: 18%; opacity: 0; } 15% { opacity: 1; } 50% { top: 78%; } 85% { opacity: 1; } }
.ripple { position: absolute; inset: 50% auto auto 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); animation: ripple 3s ease-out infinite; }
.ripple.d2 { animation-delay: 1s; } .ripple.d3 { animation-delay: 2s; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* Illustration: toggles */
.toggles { display: flex; flex-direction: column; gap: 12px; width: 200px; }
.tg { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 12px; color: var(--muted); }
.tg .sw { width: 34px; height: 20px; border-radius: 99px; background: #26262a; position: relative; }
.tg .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #777; animation: sw 4s var(--ease) infinite; }
.tg:nth-child(2) .sw::after { animation-delay: .6s; } .tg:nth-child(3) .sw::after { animation-delay: 1.2s; }
@keyframes sw { 0%,15% { transform: none; background: #777; } 30%,85% { transform: translateX(14px); background: #fff; box-shadow: 0 0 10px #fff; } 100% { transform: none; background: #777; } }

/* Illustration: globe */
.globe { width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); position: relative; overflow: hidden; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), transparent 60%); }
.globe::before, .globe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.globe::before { transform: scaleX(.5); }
.globe::after { transform: scaleY(.5); }
.globe .mer { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); animation: mer 6s linear infinite; }
.globe .mer.m2 { animation-delay: -2s; } .globe .mer.m3 { animation-delay: -4s; }
@keyframes mer { from { transform: scaleX(1); } to { transform: scaleX(-1); } }
.globe-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: blink 2s infinite; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.step { position: relative; padding-top: 80px; }
.step .dot { position: absolute; top: 8px; left: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; transition: background .4s, color .4s, box-shadow .4s; }
.step.on .dot { background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,.4); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 40px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: 18px; min-height: 320px; }
.product .p-top { display: flex; justify-content: space-between; align-items: flex-start; }
.p-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, #fff, #bdbdc2); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(255,255,255,.4), inset 0 -2px 6px rgba(0,0,0,.2); transition: transform .5s var(--ease); }
.p-icon svg { width: 26px; height: 26px; color: #000; }
.product:hover .p-icon { transform: rotate(-8deg) scale(1.06); }
.badge { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badge.live { background: #fff; color: #000; border-color: #fff; }
.product .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.product .tags span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.product.ghost { border-style: dashed; align-items: center; justify-content: center; text-align: center; }
.product.ghost .plus { width: 56px; height: 56px; border-radius: 50%; border: 1px dashed var(--line-2); display: grid; place-items: center; animation: rot 12s linear infinite; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .pm { background: #fff; color: #000; transform: rotate(180deg); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 26px; color: var(--muted); max-width: 680px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 36px; border: 1px solid var(--line-2); overflow: hidden;
  padding: 110px 40px; text-align: center; isolation: isolate;
  background: radial-gradient(ellipse 80% 120% at 50% 120%, rgba(255,255,255,.22), transparent 60%), #08080a;
}
.cta .grid-bg { mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%); z-index: -1; }
.cta h2 { margin: 18px auto 20px; max-width: 800px; }
.cta p { margin: 0 auto 36px; }
@media (max-width: 600px) { .cta { padding: 70px 22px; border-radius: 26px; } }

/* ---------- Footer ---------- */
.footer { padding: 90px 0 40px; border-top: 1px solid var(--line); margin-top: 140px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer .about-f p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 18px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.giant { font-size: clamp(64px, 15.5vw, 220px); font-weight: 700; letter-spacing: -0.07em; line-height: .8; text-align: center; margin-top: 60px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .about-f { grid-column: span 2; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].visible { transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 190px 0 90px; overflow: hidden; position: relative; }
.page-hero .hero-inner { gap: 24px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 50px; } }
.big-quote { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 500; }
.big-quote .dimw { color: var(--dim); transition: color .4s; }
.big-quote .dimw.lit { color: var(--text); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }
.value-ic { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 26px; background: rgba(255,255,255,.03); }
.value-ic svg { width: 22px; height: 22px; }

.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline .tl-fill { position: absolute; left: 20px; top: 0; width: 1px; height: var(--fill, 0%); background: linear-gradient(180deg, #fff, rgba(255,255,255,.2)); box-shadow: 0 0 10px #fff; }
.tl-item { position: relative; padding: 0 0 56px 72px; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, box-shadow .4s; }
.tl-item.visible::before { background: #fff; box-shadow: 0 0 16px #fff; }
.tl-item .yr { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.tl-item h3 { font-size: 24px; margin: 8px 0 8px; }
.tl-item p { color: var(--muted); margin: 0; }

/* Puzzle illustration (about) */
.puzzle-illu { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin: 0 auto; }
.puzzle-illu svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .3s, transform .4s var(--ease); }
.contact-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.contact-card .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.contact-card .v { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px; color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select { appearance: none; }
.field select option { background: #111; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 4px rgba(255,255,255,.06); background: rgba(255,255,255,.05); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--dim); }
.form-ok { display: none; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); font-size: 14px; }
.form-ok.show { display: block; animation: fadeUp .5s var(--ease) forwards; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 70px; align-items: start; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { font-size: 14px; color: var(--dim); padding: 6px 0 6px 18px; margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: #fff; border-left-color: #fff; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 28px; margin: 60px 0 18px; scroll-margin-top: 110px; letter-spacing: -0.03em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin: 30px 0 10px; }
.legal-body p, .legal-body li { color: #bdbdc1; font-size: 16px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.legal-body strong { color: #fff; font-weight: 500; }
.legal-meta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.legal-meta span { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.callout { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); margin: 0 0 40px; }
.callout p { margin: 0; color: var(--text); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 30px; } .toc { display: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.nf .code { font-size: clamp(120px, 28vw, 340px); font-weight: 700; letter-spacing: -0.08em; line-height: .85; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-words .w > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
}

/* gradient text survives word-splitting */
.grad-text .w > span, .reveal-words .grad-text .w > span {
  background: linear-gradient(180deg, #fff 0%, #fff 30%, #7a7a7f 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 600px) { .hide-sm { display: none; } }
