@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b12;
  --bg-2: #11111b;
  --panel: #14141f;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --fg: #f4f4fa;
  --muted: #a3a3bd;
  --subtle: #6e6e88;
  --accent: #6d63ff;
  --accent-2: #8a8dff;
  --accent-deep: #3a2bb8;
  --radius: 18px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
code, kbd {
  font: 500 0.85em ui-monospace, 'SFMono-Regular', Consolas, monospace;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line);
}

/* The canvas: dot grid and a soft brand glow behind the hero. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 36rem at 50% -8rem, rgb(109 99 255 / 0.28), transparent 70%),
    radial-gradient(40rem 30rem at 85% 30%, rgb(58 43 184 / 0.18), transparent 70%),
    radial-gradient(circle, rgb(255 255 255 / 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--bg);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgb(0 0 0 / 0.35) 100%);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgb(11 11 18 / 0.85), rgb(11 11 18 / 0.55));
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 700; background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #7b72ff, #5b4bf5);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 10px 30px -10px rgb(109 99 255 / 0.8);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18) inset, 0 14px 40px -10px rgb(109 99 255 / 0.95); }
.btn-ghost { color: var(--fg); background: rgb(255 255 255 / 0.04); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); }

/* --------------------------------------------------------------- hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  background: rgb(255 255 255 / 0.04);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgb(138 141 255 / 0.18); }
h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.gradient {
  background: linear-gradient(100deg, #c9c5ff 0%, var(--accent-2) 35%, var(--accent) 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 720px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fineprint { margin: 18px 0 0; font-size: 13.5px; color: var(--subtle); }

/* ------------------------------------------------------------ windows */
.window {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -30px rgb(0 0 0 / 0.8);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #101019;
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a3a; }
.window-bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12.5px; color: var(--subtle); }
.demo { width: 100%; height: auto; aspect-ratio: 1280 / 760; background: #0e0e11; }

.hero-window { margin-top: 64px; }
/* The same glow the editor shows while the AI is editing. */
.hero-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(138 141 255 / 0.35);
}
.hero-window { box-shadow: 0 0 0 1px rgb(138 141 255 / 0.25), 0 40px 140px -30px rgb(109 99 255 / 0.55), 0 30px 80px -30px rgb(0 0 0 / 0.9); }
.window figcaption { padding: 12px 16px; font-size: 13px; color: var(--subtle); border-top: 1px solid var(--line); background: #101019; text-align: center; }

/* ------------------------------------------------------------- models */
.models { max-width: var(--max); margin: 56px auto 0; padding: 0 24px; text-align: center; }
.models p { margin: 0 0 16px; font-size: 14px; color: var(--subtle); }
.models ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.models li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--muted); background: rgb(255 255 255 / 0.03); box-shadow: 0 0 0 1px var(--line) inset; }
.models li.local { color: #c9c5ff; box-shadow: 0 0 0 1px rgb(138 141 255 / 0.35) inset; }

/* ----------------------------------------------------------- sections */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 720; }
.section-head p:not(.kicker) { margin: 18px 0 0; font-size: 18px; color: var(--muted); }

.showcase { display: grid; gap: 96px; }
.show { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 56px; }
.show.reverse .show-copy { order: 2; }
.show h3 { margin: 0 0 14px; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.show p { margin: 0; color: var(--muted); font-size: 16.5px; }
.ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgb(109 99 255 / 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.015));
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(138 141 255 / 0.3) inset, 0 20px 40px -24px rgb(109 99 255 / 0.5); }
.card svg { width: 40px; height: 40px; padding: 9px; border-radius: 11px; fill: none; stroke: #c9c5ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgb(109 99 255 / 0.16); box-shadow: 0 0 0 1px rgb(138 141 255 / 0.25) inset; }
.card h3 { margin: 18px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.oss { max-width: var(--max); margin: 120px auto 0; padding: 0 24px; }
.oss-inner {
  padding: 64px 32px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(30rem 16rem at 50% 0%, rgb(109 99 255 / 0.35), transparent 70%),
    radial-gradient(circle, rgb(255 255 255 / 0.06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.oss-inner p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 96px auto 0;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--subtle);
}
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--fg); }

/* --------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .show, .show.reverse { grid-template-columns: 1fr; gap: 28px; }
  .show.reverse .show-copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 48px 16px 24px; }
  .hero-window { margin-top: 44px; }
  .window-bar span { display: none; }
  .section { padding: 88px 16px 0; }
  .grid { grid-template-columns: 1fr; }
  .oss { padding: 0 16px; }
  .oss-inner { padding: 48px 20px; }
  .footer { padding: 24px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
