/* ===========================
   Stompbox Layout — splash site
   =========================== */

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

:root {
  /* Exact dark-mode tokens from the app's index.css */
  --bg:           oklch(0.2223 0.006  271.14);  /* --background  */
  --surface:      oklch(0.2568 0.0076 274.65);  /* --card        */
  --surface-2:    oklch(0.294  0.013  272.93);  /* --secondary / --muted */
  --sidebar:      oklch(0.2011 0.0039 286.04);  /* --sidebar     */
  --border:       oklch(0.3289 0.0092 268.38);  /* --border      */
  --text:         oklch(0.9551 0      0);        /* --foreground  */
  --muted:        oklch(0.7058 0      0);        /* --muted-foreground */
  --accent:       oklch(0.6132 0.2294 291.74);  /* --primary (dark) */
  --accent-hover: oklch(0.65   0.22   291.74);
  --accent-muted: oklch(0.6132 0.2294 291.74 / 0.12);
  --accent-ring:  oklch(0.6132 0.2294 291.74 / 0.28);
  --radius:       0.6rem;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img, svg { display: block; }

/* ===========================
   Layout
   =========================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===========================
   Navigation
   =========================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

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

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-mark img {
  height: 18px;
  width: auto;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--muted); }

.btn--sm  { padding: 8px 16px;  font-size: 13.5px; }
.btn--md  { padding: 11px 22px; font-size: 15px; }
.btn--lg  { padding: 14px 30px; font-size: 16px; }
.btn--xl  { padding: 16px 36px; font-size: 17px; }

/* ===========================
   Hero
   =========================== */

.hero {
  padding: 88px 0 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent-ring);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 13px;
  color: var(--muted);
}

.hero__visual {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 80px rgba(0, 0, 0, 0.6);
}

.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Highlights strip
   =========================== */

.highlights {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.highlight {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.highlight:last-child { border-right: none; }

.highlight__value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.highlight__label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* ===========================
   Section typography
   =========================== */

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 56px;
}

/* ===========================
   Steps
   =========================== */

.steps {
  padding: 100px 0 80px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__number {
  width: 38px;
  height: 38px;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent-ring);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step__title {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.step__body {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================
   Live preview
   =========================== */

.preview {
  padding: 0 0 100px;
}

.preview__frame {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  height: 500px;
  background: var(--surface);
}

.preview__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===========================
   Features grid
   =========================== */

.features {
  padding: 0 0 100px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.feature {
  padding: 32px 32px;
  background: var(--bg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--accent-muted);
  border-radius: calc(var(--radius) - 0.1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature__title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.feature__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================
   CTA section
   =========================== */

.cta-section {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}

.cta-section__inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-section__body {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13.5px;
  color: var(--muted);
}

.footer__link {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s;
}

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

/* ===========================
   Docs pages (embed-docs)
   =========================== */

.docs-hero {
  padding: 88px 0 24px;
}

.docs-hero__title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.docs-hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

.docs-hero__subtitle code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
}

.docs-section {
  padding: 0 0 80px;
}

/* Code block */
.docs-code-wrapper {
  position: relative;
}

.docs-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}

.docs-code code {
  font-family: inherit;
}

.docs-code__copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.docs-code__copy:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Options table */
.docs-options {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

.docs-options th,
.docs-options td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.docs-options thead th {
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.docs-options tbody td {
  background: var(--bg);
}

.docs-options tbody tr:last-child td {
  border-bottom: none;
}

.docs-options code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero__visual {
    max-width: 580px;
    margin: 0 auto;
  }

  .steps__grid {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .docs-hero {
    padding: 64px 0 16px;
  }

  .docs-options {
    font-size: 13.5px;
  }

  .docs-options th,
  .docs-options td {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .highlights__grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 20px;
  }
  .highlight:last-child { border-bottom: none; }

  .container { padding: 0 20px; }

  .steps { padding: 72px 0 60px; }
  .features { padding: 0 0 72px; }
  .cta-section { padding: 64px 0 80px; }

  .hero__actions .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
