:root {
  color-scheme: dark;
  --bg: #07060f;
  --bg-2: #0d0b1d;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ecebf5;
  --muted: #a3a1b8;
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --cyan: #06b6d4;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #06b6d4 100%);
  --radius: 18px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }
.glow { position: fixed; z-index: -1; filter: blur(110px); opacity: .55; pointer-events: none; border-radius: 50%; }
.glow-a { width: 620px; height: 620px; background: #4c1d95; top: -260px; left: -160px; }
.glow-b { width: 560px; height: 560px; background: #0e7490; top: 120px; right: -240px; opacity: .35; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(20px, 5vw, 64px); backdrop-filter: blur(14px);
  background: rgba(7, 6, 15, 0.72); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--violet-2); }
.brand.small { font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-cta[hidden] { display: none; }
.link { color: var(--muted); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: 600 15px/1 var(--font); text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .7); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(124, 58, 237, .85); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.05); box-shadow: none; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 64px) 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--violet-2); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.eyebrow.center { display: table; margin: 0 auto 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.fine { color: #7d7a95; font-size: 13.5px; margin-top: 18px; }

/* demo window */
.window {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 20, 46, .92), rgba(12, 10, 26, .95));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(167,139,250,.06) inset;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2945; }
.window-bar b { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.window-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.msg { padding: 13px 16px; border-radius: 14px; max-width: 92%; }
.msg p { margin: 0 0 8px; }
.msg ul { margin: 0; padding-left: 18px; }
.msg li { margin: 3px 0; }
.msg-user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot { background: rgba(255,255,255,.045); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chip { align-self: flex-start; font-size: 12.5px; color: var(--muted); padding: 6px 11px; border-radius: 999px; border: 1px dashed rgba(167,139,250,.35); background: rgba(124,58,237,.08); }
.typing { display: inline-flex; gap: 4px; margin-top: 8px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* strip */
.strip {
  max-width: 1100px; margin: 0 auto 40px; padding: 0 clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
}
.strip div { padding: 22px 20px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip b { display: block; font-size: 18px; letter-spacing: -.01em; }
.strip span { color: var(--muted); font-size: 14px; }

/* sections */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px) 0; }
.section.narrow { max-width: 780px; }
h2 { text-align: center; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; font-weight: 800; }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(167,139,250,.35); transform: translateY(-2px); }
.icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: rgba(124,58,237,.14); border: 1px solid rgba(167,139,250,.22); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(124,58,237,.08), transparent); }
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 12px 0; background: var(--card); }
details[open] { border-color: rgba(167,139,250,.3); }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '+'; color: var(--violet-2); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 16px; color: var(--muted); }
.cta {
  max-width: 1060px; margin: clamp(72px, 10vw, 120px) auto 0; padding: 64px 24px; text-align: center;
  border-radius: 26px; border: 1px solid rgba(167,139,250,.25);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124,58,237,.35), rgba(6,182,212,.08) 60%, transparent);
}
.cta p { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1160px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 64px) 40px; color: #7d7a95; font-size: 14px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }

/* auth pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 36px 32px; border-radius: 22px; border: 1px solid var(--line); background: rgba(16, 14, 34, .85); backdrop-filter: blur(10px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.auth-card .brand { margin-bottom: 26px; }
.auth-card h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: #d4d2e6; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); font: 15px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.field.bad input { border-color: #f87171; }
.field .err { color: #fca5a5; font-size: 13px; margin-top: 6px; min-height: 0; }
.form-error { display: none; padding: 11px 14px; border-radius: 11px; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #fecaca; font-size: 14px; margin-bottom: 16px; }
.form-error.show { display: block; }
.auth-card .btn { width: 100%; margin-top: 6px; padding: 14px; }
.switch { text-align: center; color: var(--muted); font-size: 14.5px; margin: 22px 0 0; }
.switch a { color: var(--violet-2); text-decoration: none; font-weight: 600; }
.back { position: fixed; top: 20px; left: 22px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }
.center-page { min-height: 80vh; display: grid; place-content: center; text-align: center; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .window { transform: none; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .nav { gap: 12px; }
  .nav-cta { gap: 12px; }
  .footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
