@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #09090b;
  --bg-panel: #111113;
  --bg-raise: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fill: rgba(255, 255, 255, 0.05);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-dim: #63636b;
  --accent: #e11d48;
  --primary: #fafafa;
  --primary-hover: #e4e4e7;
  --primary-fg: #111113;
  --r-lg: 16px;
  --r-md: 8px;
  --font: 'Geist', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(250, 250, 250, 0.55);
  outline-offset: 2px;
}

/* ===== BRAND GLYPH ===== */
.brand-glyph {
  width: 26px;
  height: 26px;
  color: var(--text);
  flex-shrink: 0;
}

.brand-glyph.sm { width: 16px; height: 16px; }
.brand-glyph.lg { width: 40px; height: 40px; }

/* ===== SCROLL REVEAL ===== */
/* Content is visible by default. Only once we know scripting is available do
   we hide it to animate it in, so a crawler or a reader without JavaScript
   gets the whole page instead of an empty one. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== SESSION-AWARE CTA ===== */
/* Both labels ship in the HTML; the signed-in flag on <html> picks one. */
.cta-in { display: none; }
.signed-in .cta-out { display: none; }
.signed-in .cta-in { display: inline; }

/* ===== LANGUAGE MENU ===== */
/* A <details> element, so it opens and closes without any JavaScript. */
.lang-menu {
  position: relative;
}

.lang-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}

.lang-menu summary::-webkit-details-marker { display: none; }

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--text);
  background: var(--fill);
}

.lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 148px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-raise);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.lang-list a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.lang-list a:hover {
  color: var(--text);
  background: var(--fill);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: #d4d4d8; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--fill);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-nav {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-big {
  padding: 14px 30px;
  font-size: 15.5px;
  border-radius: 12px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: calc(64px + 88px) 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background:
    radial-gradient(46% 52% at 50% 40%, rgba(250, 250, 250, 0.06), transparent 70%),
    radial-gradient(72% 70% at 50% 30%, rgba(225, 29, 72, 0.05), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.038em;
  text-wrap: balance;
  max-width: 15ch;
  margin: 0 auto 22px;
  animation: riseIn 0.7s var(--ease) 0.05s backwards;
}

.hero-sub {
  position: relative;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 34px;
  animation: riseIn 0.7s var(--ease) 0.15s backwards;
}

.hero-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: riseIn 0.7s var(--ease) 0.25s backwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== PRODUCT WINDOW ===== */
.window {
  position: relative;
  max-width: 880px;
  margin: 64px auto 0;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 0 8px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  text-align: left;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.url-pill {
  margin: 0 auto;
  padding: 5px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.window-body {
  padding: 0 0 22px;
}

.w-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.w-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.w-chip {
  padding: 7px 14px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.w-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 22px;
}

.w-card {
  position: relative;
}

.w-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: block;
}

.w-card figcaption {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-time {
  position: absolute;
  top: calc((100% - 26px) * 0.62);
  right: 6px;
  padding: 2px 6px;
  background: rgba(5, 6, 8, 0.85);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: white;
}

.w-card-playing img {
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--accent);
}

.w-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  top: calc((100% - 26px) - 12px);
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.w-bar span {
  display: block;
  width: 58%;
  height: 100%;
  background: var(--accent);
}

/* ===== STATS ===== */
.stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 56px auto 0;
  padding-bottom: 8px;
  max-width: 720px;
}

.stats li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 32px;
}

.stats li + li {
  border-left: 1px solid var(--line);
}

.stats strong {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 24px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 18px;
}

.section-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 62ch;
  margin: 36px auto 0;
  text-align: center;
}

/* ===== BENTO ===== */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.cell {
  position: relative;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s;
}

.cell:hover {
  border-color: var(--line-strong);
}

.cell h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}

.cell > p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: 22px;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 320px;
}

.bubble {
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 13px;
  width: fit-content;
}

.bubble-me {
  background: var(--fill);
  border: 1px solid var(--line);
  border-bottom-right-radius: 5px;
  align-self: flex-end;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.bubble-bot {
  background: var(--primary);
  color: var(--primary-fg);
  border-bottom-left-radius: 5px;
}

.qr-img {
  width: 104px;
  height: 104px;
  padding: 8px;
  background: white;
  border-radius: 12px;
}

.mini-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-thumbs img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.seek-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
}

.seek-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  overflow: hidden;
}

.seek-fill {
  width: 62%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.seek-time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== STEPS ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-num {
  position: absolute;
  top: -17px;
  left: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 14px 0 8px;
}

.step p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== MODELS ===== */
.models {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.models-three {
  grid-template-columns: repeat(3, 1fr);
}

.model {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.model:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.model-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.model-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== MODEL SUBPAGES ===== */
.hero-model .stats {
  margin-top: 48px;
}

.prose {
  max-width: 62ch;
  margin: 0 auto;
}

.prose p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

.prose p + p {
  margin-top: 18px;
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  max-width: 980px;
  margin: 0 auto;
}

.qa {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.qa h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}

.qa p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== FINAL CTA ===== */
.cta-final {
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 24px 0;
}

.cta-box {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(250, 250, 250, 0.05), transparent 65%),
    var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.cta-box .brand-glyph {
  margin-bottom: 24px;
}

.cta-box h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-size: 15px;
  font-weight: 600;
}

.footer-brand span {
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .models,
  .models-three {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .w-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: calc(64px + 56px) 20px 0;
  }

  .section,
  .cta-final {
    padding: 80px 20px 0;
  }

  .stats {
    margin-top: 44px;
  }

  .stats li {
    padding: 4px 16px;
  }

  .stats strong {
    font-size: 26px;
  }

  .models,
  .models-three {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 52px 24px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== BLOG ===== */
/* Index */
.post-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.post-card {
  display: block;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.post-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-raise);
  transform: translateY(-2px);
}

.post-card-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.post-card h2 {
  margin: 9px 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post-card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

.post-card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* Article */
.post {
  max-width: var(--container);
  margin: 0 auto;
  padding: 62px 24px 0;
}

.post-head {
  max-width: 62ch;
  margin: 0 auto 40px;
}

.post-back {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}

.post-back:hover { color: var(--text); }

.post-head h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.post-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.post-body h2 {
  margin: 42px 0 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post-body h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.post-body ul,
.post-body ol {
  margin: 16px 0 16px 22px;
}

.post-body li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.post-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s;
}

.post-body a:hover { text-decoration-color: var(--accent); }

.post-body strong {
  color: var(--text);
  font-weight: 500;
}

.post-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--fill);
  color: var(--text);
}

/* ===== TESTIMONIALS ===== */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
}

.stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.quote blockquote {
  flex: 1;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.quote-note {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-dim);
}
