:root {
  --ink: #191b45;
  --muted: #5d5f7e;
  --soft: #8a8ca8;
  --accent: #7048e8;
  --accent-2: #3b82f6;
  --accent-soft: rgba(112, 72, 232, 0.1);
  --bg: #fbfaff;
  --surface: #ffffff;
  --line: rgba(25, 27, 69, 0.08);
  --line-2: rgba(25, 27, 69, 0.14);
  --shadow-window: 0 0 0 1px rgba(25, 27, 69, 0.07), 0 2px 4px rgba(25, 27, 69, 0.04),
    0 24px 48px -12px rgba(52, 36, 120, 0.22), 0 60px 120px -30px rgba(52, 36, 120, 0.28);
  --shadow-card: 0 0 0 1px rgba(25, 27, 69, 0.06), 0 10px 30px -14px rgba(52, 36, 120, 0.22);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px;
  --radius: 18px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--accent-soft); color: #4a2fb8; padding: 0.08em 0.38em; border-radius: 6px; }
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
h1 em, h2 em, h3 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0; }
.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ── Palettes (same soft gradients as the README art) ── */
.palette-dawn { background: radial-gradient(ellipse at 12% 8%, #ffe6d6 0%, transparent 46%), radial-gradient(ellipse at 58% 0%, #ece4ff 0%, transparent 52%), radial-gradient(ellipse at 100% 100%, #d4e9ff 0%, transparent 60%), radial-gradient(ellipse at 0% 100%, #fff4e4 0%, transparent 40%), #fbf8f3; }
.palette-lilac { background: radial-gradient(ellipse at 0% 0%, #e8ddff 0%, transparent 50%), radial-gradient(ellipse at 100% 10%, #ffe0ef 0%, transparent 44%), radial-gradient(ellipse at 80% 100%, #dbe8ff 0%, transparent 58%), #f7f3ff; }
.palette-mint { background: radial-gradient(ellipse at 0% 0%, #dcf5ec 0%, transparent 48%), radial-gradient(ellipse at 100% 0%, #e4e8ff 0%, transparent 50%), radial-gradient(ellipse at 100% 100%, #d6ecff 0%, transparent 56%), #f3fbf8; }
.palette-peach { background: radial-gradient(ellipse at 0% 0%, #ffe2d2 0%, transparent 48%), radial-gradient(ellipse at 100% 0%, #efe3ff 0%, transparent 52%), radial-gradient(ellipse at 90% 100%, #ffeccc 0%, transparent 50%), #fff7f1; }
.palette-sky { background: radial-gradient(ellipse at 0% 0%, #dcebff 0%, transparent 50%), radial-gradient(ellipse at 100% 0%, #e9e0ff 0%, transparent 50%), radial-gradient(ellipse at 100% 100%, #d6f4ee 0%, transparent 52%), #f2f7ff; }
.palette-rose { background: radial-gradient(ellipse at 0% 0%, #ffdcea 0%, transparent 48%), radial-gradient(ellipse at 100% 0%, #e6e0ff 0%, transparent 52%), radial-gradient(ellipse at 100% 100%, #ffe7d6 0%, transparent 50%), #fff5f8; }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(25, 27, 69, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 27, 69, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}

/* ── Type helpers ── */
.eyebrow { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 32rem; margin-top: 1.4rem; line-height: 1.55; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 4rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; margin-top: 0.9rem; }
.section-sub { color: var(--muted); font-size: 1.12rem; margin-top: 1.1rem; line-height: 1.6; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 44px; padding: 0 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 1rem; font-size: 0.9rem; }
.btn-lg { height: 52px; padding: 0 1.6rem; font-size: 1rem; }
.btn-primary { background: linear-gradient(95deg, var(--accent), #5b5cf0); color: #fff; box-shadow: 0 10px 24px -10px rgba(112, 72, 232, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(112, 72, 232, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.75); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}
.site-header.scrolled { background: rgba(251, 250, 255, 0.82); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.nav { display: flex; gap: 1.8rem; margin-left: 1rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { position: absolute; top: var(--header-h); left: 12px; right: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); padding: 0.6rem; display: grid; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; }
.mobile-nav a:hover { background: var(--accent-soft); }

/* ── Hero ── */
.hero { position: relative; padding: calc(var(--header-h) + 5rem) 0 6rem; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.0; margin-top: 1.4rem; }
.cmd {
  margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.7rem; height: 50px; padding: 0 1rem 0 1.2rem;
  border-radius: 999px; background: #fff; border: 0; cursor: pointer; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(25, 27, 69, 0.08), 0 10px 30px -10px rgba(52, 36, 120, 0.3);
  font: 500 0.92rem var(--mono); transition: box-shadow 0.15s;
}
.cmd { max-width: 100%; }
.cmd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cmd svg, .cmd b { flex: none; }
.cmd b { color: var(--accent); }
.cmd-icon { color: var(--soft); }
.cmd:hover .cmd-icon { color: var(--accent); }
.cmd.copied .cmd-icon { color: #2fa37a; }
.hero-meta { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.hero-visual { position: relative; margin-right: -9vw; }
.phone {
  position: absolute; left: -7%; bottom: -8%; width: min(30%, 230px);
  border-radius: 38px; background: #0f1024; padding: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 40px 80px -20px rgba(30, 20, 80, 0.45), 0 18px 36px -12px rgba(30, 20, 80, 0.3);
}
.phone .screen { border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.phone .notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 20px; border-radius: 12px; background: #0f1024; z-index: 2; }

/* ── Window chrome ── */
.window { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-window); }
.chrome { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #fbfbfd; border-bottom: 1px solid var(--line); position: relative; }
.chrome i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.chrome i:nth-child(2) { background: #febc2e; }
.chrome i:nth-child(3) { background: #28c840; }
.chrome .url {
  position: absolute; left: 50%; transform: translateX(-50%); height: 24px; min-width: min(300px, 55%); max-width: 60%;
  padding: 0 18px; border-radius: 7px; background: #eff0f5; color: #6b6d88; font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden;
}
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.clip { width: 100%; background: #f7f4ff; aspect-ratio: 16 / 10; object-fit: cover; }

/* ── Agents strip ── */
.agents { padding: 3.5rem 0; border-block: 1px solid var(--line); background: #fff; }
.agents-title { text-align: center; color: var(--soft); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.agent-chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.agent-chips li { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ── Tour ── */
.tour { padding: 7rem 0 3rem; }
.feature {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: center;
  padding: 4rem; border-radius: 32px; margin-bottom: 2rem; overflow: hidden;
}
.feature-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature-flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; margin-top: 0.9rem; }
.feature-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237048e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ── Open source ── */
.open-source { position: relative; padding: 7rem 0; overflow: hidden; }
.os-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.composer-card {
  position: relative; background: #fff; border-radius: 20px; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow-window);
}
.composer-chips { display: flex; gap: 0.4rem; }
.chip { font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.chip-project { background: #dff0ff; color: #1d5fa8; }
.chip-agent { background: #ffe6d6; color: #a2491c; transition: opacity 0.2s; }
.composer-text { margin-top: 0.9rem; min-height: 3.4em; font-size: 1.15rem; font-weight: 500; line-height: 1.5; padding-right: 3rem; }
.composer-text::before { content: "/"; color: var(--accent); font-weight: 700; margin-right: 0.1rem; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--accent); vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-send { position: absolute; right: 1rem; bottom: 1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #5b5cf0); }
.prompt-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.5rem; }
.prompt-list li {
  font-family: var(--mono); font-size: 0.86rem; color: var(--muted); padding: 0.55rem 0.9rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.prompt-list li::before { content: attr(data-agent) " · "; color: var(--accent); font-weight: 700; }
.prompt-list li:hover, .prompt-list li.active { background: #fff; border-color: var(--line-2); color: var(--ink); }
.os-cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 4rem; }

/* ── Cards ── */
.card { background: rgba(255, 255, 255, 0.82); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-card); backdrop-filter: blur(6px); }
.card h4 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin-top: 0.6rem; font-size: 0.97rem; }
.features { padding: 7rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #efe8ff, #e1ecff); margin-bottom: 1.1rem; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Get started ── */
.get-started { padding: 7rem 0; }
.gs-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
.gs-copy h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.045em; margin-top: 0.9rem; }
.gs-copy .section-sub { margin-top: 1.1rem; }
.terminal { background: #15163a; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-window); }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tabs { display: flex; gap: 0.3rem; }
.tabs button, .copy-btn { font: 600 0.85rem var(--font); border: 0; border-radius: 8px; padding: 0.45rem 0.85rem; cursor: pointer; background: transparent; color: #a9abd0; }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.copy-btn { background: rgba(255, 255, 255, 0.08); color: #fff; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.terminal pre { margin: 0; padding: 1.4rem 1.5rem 1.6rem; overflow-x: auto; }
.terminal code { background: none; color: #e7e8ff; padding: 0; font-size: 0.9rem; line-height: 1.85; }
.terminal .c { color: #8c8fc4; }

/* ── Closing ── */
.closing { padding: 7rem 0 8rem; background: radial-gradient(ellipse at 50% 100%, #ece4ff 0%, transparent 60%), var(--bg); }
.closing-inner { text-align: center; display: grid; justify-items: center; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; margin-top: 1.4rem; max-width: 16ch; }
.closing .cta-row { justify-content: center; }

/* ── Footer ── */
.site-footer { background: #13143a; color: #c9cae8; padding: 4rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.brand-light { color: #fff; }
.footer-brand p { margin-top: 0.8rem; color: #9fa1c8; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-cols h5 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-cols a { display: block; color: #a9abd0; margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; color: #8b8db8; }
.jambit { display: inline-flex; align-items: center; gap: 0.7rem; opacity: 0.85; transition: opacity 0.15s; }
.jambit:hover { opacity: 1; }
.jambit img { height: 22px; width: auto; }

/* ── Lightbox ── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1800px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(19, 20, 58, 0.72); backdrop-filter: blur(4px); }
.lightbox img { max-height: 94vh; width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-card); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .feature-grid, .os-cards { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem; }
  .feature-flip .feature-copy { order: 0; }
  .os-grid, .gs-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: calc(var(--header-h) + 3rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero-visual { margin-right: 0; }
  .phone { left: auto; right: -2%; bottom: -10%; width: 26%; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--max)); }
  .feature-grid, .os-cards { grid-template-columns: 1fr; }
  .feature { padding: 1.6rem; border-radius: 24px; }
  .header-actions .btn-primary { display: none; }
  .cmd { font-size: 0.8rem; }
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; }
  .chrome .url { display: none; }
  .phone { display: none; }
}
