/* =========================================================
   Cyvara — flagship site
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #05060d;
  --bg-2: #090a16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --text: #f4f5fa;
  --text-2: #a9adc0;
  --text-3: #7e8298;

  --indigo: #6366f1;
  --indigo-soft: #818cf8;
  --violet: #a78bfa;
  --green: #34d399;

  --grad: linear-gradient(120deg, #818cf8 0%, #c084fc 46%, #34d399 100%);
  --grad-btn: linear-gradient(135deg, #4f46e5, #7c3aed);

  --font-sans: "Inter", system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 24px;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[id] { scroll-margin-top: 110px; }

:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
.sec { padding-block: clamp(72px, 11vw, 140px); position: relative; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }

.h2 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; text-wrap: pretty; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.08em; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); }
.sec-head.center { justify-items: center; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}
.btn .i { transition: transform 0.25s var(--ease); }
.btn:hover .i { transform: translate(2px, -2px); }
.btn.to-right:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: #fff; color: #07080f; box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 10px 40px -8px rgba(129, 140, 248, 0.6); }
.btn-primary:hover { background: #e9eaff; box-shadow: 0 0 0 1px rgba(255,255,255,0.6), 0 14px 48px -6px rgba(129, 140, 248, 0.8); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav-shell { position: fixed; z-index: 100; top: 14px; left: 0; right: 0; padding-inline: 14px; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative;
  max-width: 1080px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(9, 10, 22, 0.55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-shell.scrolled .nav { background: rgba(7, 8, 18, 0.82); border-color: var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,0.45); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; font-size: 17px; }
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.55)); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-login { padding: 9px 14px; font-size: 14px; color: var(--text-2); border-radius: 999px; }
.nav-login:hover { color: var(--text); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.menu-btn .i { width: 20px; height: 20px; }
.menu-btn .i-x { display: none; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-x { display: block; }

.mobile-menu {
  pointer-events: auto; display: none; max-width: 1080px; margin: 8px auto 0; padding: 10px;
  border-radius: 24px; background: rgba(7, 8, 18, 0.92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: 14px; font-size: 17px; font-weight: 500; }
.mobile-menu a:hover { background: var(--surface-2); }
.mobile-menu .btn { width: 100%; margin-top: 6px; }
.mobile-menu.open { display: block; animation: menuIn 0.3s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nav-links, .nav-login, .nav-right .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(140px, 19vw, 210px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gridlines {
  position: absolute; inset: 0; opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
}
.aurora { position: absolute; inset: -10% -10% auto; height: 100%; filter: blur(70px); opacity: 0.85; }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 { left: 6%; top: 2%; width: min(46vw, 640px); aspect-ratio: 1; background: radial-gradient(circle, rgba(79, 70, 229, 0.6), transparent 66%); animation: drift1 24s ease-in-out infinite alternate; }
.aurora .a2 { right: 4%; top: -4%; width: min(42vw, 580px); aspect-ratio: 1; background: radial-gradient(circle, rgba(168, 85, 247, 0.42), transparent 66%); animation: drift2 28s ease-in-out infinite alternate; }
.aurora .a3 { left: 36%; top: 34%; width: min(34vw, 460px); aspect-ratio: 1; background: radial-gradient(circle, rgba(34, 197, 94, 0.26), transparent 66%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(90px, 50px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-80px, 70px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(60px, -40px) scale(1.15); } }

.hero-inner { display: grid; justify-items: center; text-align: center; gap: 28px; }

.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); font-size: 13.5px; color: var(--text-2);
  transition: border-color 0.25s, background 0.25s;
}
.announce:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); color: var(--text); }
.announce b { color: var(--text); font-weight: 600; }
.announce .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }
.announce .go { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); }
.announce .go .i { width: 14px; height: 14px; }

.hero h1 { font-size: clamp(46px, 9vw, 112px); line-height: 0.96; letter-spacing: -0.055em; font-weight: 600; max-width: 1000px; text-wrap: balance; }
.hero h1 .serif { display: inline-block; padding-right: 0.06em; }
.hero .lede { font-size: clamp(17px, 2vw, 21px); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

/* App window mock */
.stage { margin-top: clamp(48px, 8vw, 90px); perspective: 1600px; }
.window {
  --p: 1;
  max-width: 1060px; margin-inline: auto; text-align: left;
  border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0e0f1f, #080914);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 50px 140px -30px rgba(99, 102, 241, 0.45), 0 30px 70px rgba(0,0,0,0.6);
  overflow: hidden; transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 14deg)) scale(calc(0.93 + var(--p) * 0.07));
  will-change: transform;
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b2d44; }
.window-url { margin: 0 auto; font: 12px var(--font-mono); color: var(--text-3); padding: 5px 16px; border-radius: 999px; background: rgba(255,255,255,0.045); }
.window-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 230px; min-height: 440px; }

.w-side { padding: 18px 14px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 22px; }
.w-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; padding-inline: 6px; }
.w-brand svg { width: 22px; height: 22px; }
.w-steps { list-style: none; display: grid; gap: 2px; }
.w-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; color: var(--text-3); }
.w-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.w-steps li.done { color: var(--text-2); }
.w-steps li.done::before { background: var(--green); border-color: var(--green); }
.w-steps li.now { color: var(--text); background: rgba(99, 102, 241, 0.16); }
.w-steps li.now::before { background: var(--indigo-soft); border-color: var(--indigo-soft); box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.22); }

.w-main { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.msg { display: flex; gap: 10px; max-width: 92%; font-size: 14px; line-height: 1.55; }
.msg .av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(129, 140, 248, 0.4); }
.msg .av svg { width: 15px; height: 15px; }
.msg .bub { padding: 11px 15px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: #dfe1ee; }
.msg.me { align-self: flex-end; }
.msg.me .bub { background: rgba(99, 102, 241, 0.2); border-color: rgba(129, 140, 248, 0.35); color: #eef; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.opt { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); font-size: 12.5px; }
.opt b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.opt span { color: var(--text-3); font-size: 12px; line-height: 1.4; display: block; }
.opt.hl { border-color: rgba(129, 140, 248, 0.7); background: rgba(99, 102, 241, 0.14); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: bounce 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-3); }
.composer i { width: 32px; height: 32px; border-radius: 10px; background: var(--grad-btn); display: grid; place-items: center; color: #fff; font-style: normal; }
.composer i .i { width: 16px; height: 16px; }

.w-panel { padding: 18px 16px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 18px; }
.w-panel h4 { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.tag.on { color: #e0e3ff; border-color: rgba(129, 140, 248, 0.5); background: rgba(99, 102, 241, 0.16); }
.stage-note { text-align: center; font: 12px var(--font-mono); color: var(--text-3); margin-top: 18px; letter-spacing: 0.04em; }

@media (max-width: 980px) {
  .window-body { grid-template-columns: 180px minmax(0, 1fr); }
  .w-panel { display: none; }
}
@media (max-width: 720px) {
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .w-side { display: none; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .w-main { padding: 16px; }
  .window-url { margin-inline: auto 0; }
}

/* ---------- Thesis ---------- */
.thesis { padding-block: clamp(90px, 15vw, 190px); }
.thesis-text { font-size: clamp(28px, 5.4vw, 66px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 600; max-width: 1040px; text-wrap: balance; }
.thesis-text .w { opacity: 0.16; transition: opacity 0.25s linear; }
.thesis-text .serif { font-size: 1.1em; }
.thesis .eyebrow { margin-bottom: 26px; }

/* ---------- Cards ---------- */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, 0.16), transparent 42%);
}
.spot:hover::before { opacity: 1; }
.card > * { position: relative; }

/* ---------- Products ---------- */
.flagship { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(26px, 4.5vw, 56px); align-items: center; border-color: rgba(129, 140, 248, 0.32); background: radial-gradient(120% 90% at 0% 0%, rgba(79, 70, 229, 0.22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01)); }
@media (max-width: 900px) { .flagship { grid-template-columns: minmax(0, 1fr); } }

.p-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.p-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(99, 102, 241, 0.16); border: 1px solid rgba(129, 140, 248, 0.4); }
.p-mark svg { width: 26px; height: 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #bbf7d0; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.p-name { font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.p-tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(26px, 3.2vw, 38px); color: var(--text); margin: 10px 0 18px; letter-spacing: -0.02em; }
.p-body { color: var(--text-2); max-width: 470px; margin-bottom: 28px; font-size: 17px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.path { list-style: none; position: relative; display: grid; gap: 12px; padding-left: 0; }
.path::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(180deg, rgba(129, 140, 248, 0.6), rgba(52, 211, 153, 0.6)); opacity: 0.4; border-radius: 2px; }
.path li { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8, 9, 20, 0.7); font-weight: 500; font-size: 16px; animation: pathGlow 10s infinite; }
.path li b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--font-mono); background: #0d0e1f; border: 1.5px solid rgba(129, 140, 248, 0.6); color: var(--indigo-soft); margin-left: 0; }
.path li small { display: block; color: var(--text-3); font-weight: 400; font-size: 13px; line-height: 1.4; }
.path li:nth-child(2) { animation-delay: 2s; }
.path li:nth-child(3) { animation-delay: 4s; }
.path li:nth-child(4) { animation-delay: 6s; }
.path li:nth-child(5) { animation-delay: 8s; }
@keyframes pathGlow {
  0%, 18%, 100% { border-color: var(--line); background: rgba(8, 9, 20, 0.7); }
  4%, 14% { border-color: rgba(129, 140, 248, 0.65); background: rgba(79, 70, 229, 0.16); }
}

.soon-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 720px) { .soon-row { grid-template-columns: minmax(0, 1fr); } }
.soon { padding: 28px; border-style: dashed; border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.015); }
.soon .badge { color: var(--text-2); background: var(--surface); border-color: var(--line-2); }
.soon .badge::before { background: var(--text-3); }
.soon h3 { font-size: 22px; letter-spacing: -0.03em; margin: 18px 0 6px; }
.soon p { color: var(--text-3); font-size: 15px; max-width: 340px; }
.skel { display: grid; gap: 8px; margin-top: 18px; }
.skel i { height: 9px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.11), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 3.4s linear infinite; }
.skel i:nth-child(1) { width: 78%; } .skel i:nth-child(2) { width: 54%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Approach bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: minmax(0, 1fr); } }
.bento .card { padding: 26px; display: flex; flex-direction: column; min-height: 400px; }
.viz { flex: 1; display: grid; align-content: center; min-height: 190px; margin-bottom: 22px; }
.bento h3 { font-size: 21px; letter-spacing: -0.03em; margin-bottom: 8px; font-weight: 600; }
.bento p { color: var(--text-2); font-size: 15.5px; }
.bento .num { font: 500 12px var(--font-mono); color: var(--violet); letter-spacing: 0.14em; margin-bottom: 14px; }

.cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cloud .tag { font-size: 13px; padding: 7px 13px; animation: floaty 6s ease-in-out infinite; }
.cloud .tag:nth-child(2n) { animation-delay: -2s; } .cloud .tag:nth-child(3n) { animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-5px); } }

.bars { display: grid; gap: 16px; }
.bar-row { display: grid; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.bar-row div { display: flex; justify-content: space-between; }
.bar-row i { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; transition: transform 1.2s var(--ease) 0.3s; }
.js .bar-row i::after { transform: scaleX(0); }
.js .in .bar-row i::after { transform: scaleX(1); }

.todo { display: grid; gap: 10px; }
.todo div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); font-size: 14px; }
.todo b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); display: grid; place-items: center; flex: none; transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.todo b .i { width: 13px; height: 13px; stroke-width: 3; color: #04150c; transition: opacity 0.3s; }
.todo div:nth-child(-n+2) b { background: var(--green); border-color: var(--green); }
.js .todo div:nth-child(-n+2) b { background: transparent; border-color: var(--text-3); }
.js .todo b .i { opacity: 0; }
.js .in .todo div:nth-child(-n+2) b { background: var(--green); border-color: var(--green); }
.js .in .todo div:nth-child(-n+2) b .i { opacity: 1; }
.in .todo div:nth-child(1) b { transition-delay: 0.5s; } .in .todo div:nth-child(2) b { transition-delay: 1s; }
.in .todo div:nth-child(1) b .i { transition-delay: 0.6s; } .in .todo div:nth-child(2) b .i { transition-delay: 1.1s; }
.todo div:nth-child(3) { border-color: rgba(129, 140, 248, 0.5); background: rgba(79, 70, 229, 0.12); }

/* ---------- Vision ---------- */
.vision-stack { display: grid; gap: 0; max-width: 980px; margin-inline: auto; }
.v-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .v-products { grid-template-columns: minmax(0, 1fr); } }
.v-card { padding: 22px; }
.v-card .kicker { font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.v-card h3 { font-size: 22px; letter-spacing: -0.03em; margin: 10px 0 8px; }
.v-card p { color: var(--text-2); font-size: 14.5px; }
.v-card.live { border-color: rgba(129, 140, 248, 0.5); background: radial-gradient(100% 100% at 0% 0%, rgba(79, 70, 229, 0.25), transparent 70%), rgba(255,255,255,0.03); }
.v-card.later { border-style: dashed; background: rgba(255,255,255,0.012); }
.v-card.later h3, .v-card.later p { color: var(--text-2); }

.v-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; height: 64px; }
.v-links span { position: relative; justify-self: center; width: 2px; height: 100%; background: linear-gradient(180deg, rgba(129,140,248,0.6), rgba(129,140,248,0.1)); }
.v-links span::after { content: ""; position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo-soft); box-shadow: 0 0 14px var(--indigo-soft); animation: pulseDown 2.8s var(--ease) infinite; }
.v-links span:nth-child(2)::after { animation-delay: 0.5s; } .v-links span:nth-child(3)::after { animation-delay: 1s; }
@keyframes pulseDown { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@media (max-width: 820px) { .v-links { display: none; } .v-products { margin-bottom: 16px; } }

.v-core { padding: clamp(24px, 4vw, 40px); text-align: center; border-color: rgba(129, 140, 248, 0.4); background: radial-gradient(90% 140% at 50% 0%, rgba(79, 70, 229, 0.3), transparent 70%), rgba(255,255,255,0.02); }
.v-core .kicker { color: var(--violet); }
.v-core h3 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.04em; margin: 12px 0 10px; }
.v-core p { color: var(--text-2); max-width: 540px; margin: 0 auto 22px; }
.v-core .tags { justify-content: center; }
.v-core .tag { font-size: 13px; padding: 7px 14px; }

/* ---------- CTA ---------- */
.cta-panel { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 9vw, 110px) clamp(22px, 5vw, 60px); border-radius: 32px; border: 1px solid var(--line-2); background: #080915; isolation: isolate; }
.cta-panel::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; background: radial-gradient(45% 50% at 25% 40%, rgba(79, 70, 229, 0.5), transparent 70%), radial-gradient(40% 50% at 78% 30%, rgba(168, 85, 247, 0.38), transparent 70%), radial-gradient(35% 45% at 55% 85%, rgba(34, 197, 94, 0.22), transparent 70%); filter: blur(30px); }
.cta-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); opacity: 0.5; }
.cta-panel h2 { font-size: clamp(36px, 6.4vw, 78px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; max-width: 820px; margin: 0 auto 20px; text-wrap: balance; }
.cta-panel p { color: var(--text-2); max-width: 500px; margin: 0 auto 32px; font-size: 18px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact-copy { display: grid; gap: 22px; }
.contact-copy .h2 { font-size: clamp(34px, 4.6vw, 54px); }
.faq { display: grid; gap: 14px; margin-top: 8px; }
.faq div { padding-top: 16px; border-top: 1px solid var(--line); }
.faq strong { display: block; font-size: 15px; margin-bottom: 4px; }
.faq p { color: var(--text-2); font-size: 14.5px; }
.faq a { color: var(--indigo-soft); text-decoration: underline; text-underline-offset: 3px; }

.form-card { padding: clamp(22px, 3.5vw, 36px); }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
label { font-size: 13px; font-weight: 500; color: var(--text-2); }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a9adc0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select option { background: #0d0e1f; color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,0.26); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--indigo-soft); background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.checkbox-row input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; accent-color: #6366f1; flex: none; }
.checkbox-row label { font-size: 12px; line-height: 1.55; color: var(--text-2); font-weight: 400; }
.sms-consent { font-size: 12px; line-height: 1.55; color: var(--text-3); }
.checkbox-row a, .sms-consent a, .legal-section a, .foot a.u { color: #c7d2fe; text-decoration: underline; text-underline-offset: 3px; }
.form-card .btn { width: 100%; min-height: 50px; }
.form-card .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { min-height: 22px; font-size: 14px; }
.form-status.ok { color: #86efac; } .form-status.err { color: #fca5a5; }

/* ---------- Legal ---------- */
.legal { padding-block: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line); }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; align-items: start; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } }
.legal-section { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.legal-section h2 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 6px; }
.legal-section h3 { font-size: 14px; margin: 18px 0 5px; color: var(--text); }
.legal-section p, .legal-section li { font-size: 13px; color: var(--text-2); margin-bottom: 8px; line-height: 1.6; }
.legal-updated { font: 11.5px var(--font-mono); color: var(--violet) !important; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot .brand { margin-bottom: 14px; }
.foot p.tagline { color: var(--text-3); max-width: 300px; font-size: 14.5px; }
.foot h4 { font: 500 12px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.foot ul a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 54px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.wordmark { font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(90px, 25vw, 340px); text-align: center; margin-top: 10px; user-select: none; background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; pointer-events: none; padding-bottom: 0.22em; margin-bottom: -0.1em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .thesis-text .w { opacity: 1 !important; }
  .window { transform: none; }
  .bar-row i::after { transform: scaleX(1); }
  .todo div:nth-child(-n+2) b { background: var(--green); border-color: var(--green); }
  .todo div:nth-child(-n+2) b .i { opacity: 1; }
}
