@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,600&display=swap');

:root {
  --color-parchment: #faf9f7;
  --color-paper: #ffffff;
  --color-mist: #f1efef;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-warm-ink: #1c1917;
  --color-charcoal: #292524;
  --color-ember: #f97316;

  --font-newsreader: 'Newsreader', ui-serif, Georgia, serif;
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body-lg: 17px;
  --text-heading: 34px;
  --text-display: 80px;

  --page-max-width: 1200px;
  --hero-max-width: 720px;
  --section-gap: 96px;
  --element-gap: 12px;

  --radius-cards: 8px;
  --radius-buttons: 999px;
  --shadow-sm: rgba(0, 0, 0, 0.05) 0 1px 4px, rgba(0, 0, 0, 0.03) 0 0 0 0.5px;
  --focus-ring: 0 0 0 2px var(--color-parchment), 0 0 0 4px var(--color-warm-ink);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--color-stone-300) var(--color-parchment);
}

body {
  background: var(--color-parchment);
  color: var(--color-warm-ink);
  font-family: var(--font-inter);
  font-size: var(--text-body-sm);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-mist);
  color: var(--color-warm-ink);
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

ul { list-style: none; }

.page {
  width: min(100% - 48px, var(--page-max-width));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: var(--radius-buttons);
  font-size: var(--text-body-sm);
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-filled {
  background: var(--color-warm-ink);
  color: var(--color-paper);
  border-color: var(--color-warm-ink);
}

.btn-filled:hover,
.btn-filled:active {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--color-stone-700);
  border-color: var(--color-stone-200);
}

.btn-ghost:hover,
.btn-ghost:active {
  border-color: var(--color-stone-300);
  color: var(--color-warm-ink);
  background: var(--color-mist);
}

.pill-tag {
  display: inline-flex;
  padding: 6px 13px;
  border-radius: var(--radius-buttons);
  background: var(--color-mist);
  color: var(--color-stone-600);
  font-size: 13px;
}

.logo-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ember);
  flex-shrink: 0;
}

/* Nav */
.nav { padding: 28px 0 12px; }

.nav__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -12px;
  border-radius: 8px;
}

.nav__logo .logo-mark {
  width: 10px;
  height: 10px;
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  font-weight: 500;
  color: var(--color-stone-600);
  line-height: 1.3;
}

.nav__links a:hover { color: var(--color-warm-ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

/* Hero */
.hero {
  padding: 56px 0 0;
  text-align: center;
}

.hero__inner {
  width: min(100% - 48px, var(--hero-max-width));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}

.display {
  font-family: var(--font-newsreader);
  font-weight: 600;
  font-size: clamp(42px, 9vw, var(--text-display));
  line-height: 1;
  letter-spacing: -0.04em;
  font-optical-sizing: auto;
}

.lede {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-stone-600);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--element-gap);
  margin-top: 8px;
}

.capability-strip {
  margin-top: 8px;
  color: var(--color-stone-600);
}

/* Demo placeholder */
.demo { margin: 0 auto var(--section-gap); }

.demo__chrome {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 480px;
  background: var(--color-paper);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: demo-rise 0.7s var(--ease-out) both;
}

@keyframes demo-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .demo__chrome { animation: none; }
}

.demo__sidebar {
  padding: 20px 16px;
  border-right: 1px solid var(--color-stone-200);
  background: var(--color-parchment);
  text-align: left;
}

.demo__brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0 8px;
  font-weight: 500;
}

.demo__nav-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-stone-500);
}

.demo__nav-item--active {
  background: var(--color-mist);
  color: var(--color-warm-ink);
}

.demo__main {
  display: flex;
  flex-direction: column;
}

.demo__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-stone-200);
  text-align: left;
}

.demo__toolbar-title { font-weight: 500; }

.demo__toolbar-meta {
  font-size: var(--text-caption);
  color: var(--color-stone-500);
}

.demo__canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 24px;
  background: var(--color-mist);
}

.demo__placeholder-label {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone-600);
}

.demo__placeholder-copy {
  color: var(--color-stone-700);
  max-width: 28em;
  line-height: 1.5;
}

/* Sections */
.section { padding-bottom: var(--section-gap); }

.section-heading {
  font-family: var(--font-newsreader);
  font-weight: 600;
  font-size: clamp(28px, 4vw, var(--text-heading));
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-stone-600);
  max-width: 36em;
  margin: 0 auto 48px;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  text-align: left;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row--reverse .feature-row__copy { order: 2; }
.feature-row--reverse .product-frame { order: 1; }

.feature-row__title {
  font-family: var(--font-newsreader);
  font-weight: 600;
  font-size: clamp(24px, 3vw, var(--text-heading));
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.feature-row__body {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-stone-700);
  margin-bottom: 16px;
}

.feature-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Trust */
.trust-panel {
  background: var(--color-paper);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-cards);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.trust-panel__title {
  font-family: var(--font-newsreader);
  font-weight: 600;
  font-size: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.trust-panel__body {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-stone-600);
  margin-bottom: 28px;
}

.trust-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.trust-stat__label {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone-500);
}

.trust-stat__value {
  font-size: var(--text-body-lg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Product frames */
.product-frame {
  background: var(--color-paper);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-cards);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.product-frame__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-stone-200);
}

.product-frame__title { font-weight: 500; }

.product-frame__meta {
  font-size: var(--text-caption);
  color: var(--color-stone-500);
}

.frame-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-stone-200);
}

.frame-row:first-of-type { padding-top: 0; }
.frame-row:last-child { border-bottom: none; padding-bottom: 0; }

.frame-row__label {
  color: var(--color-stone-700);
  font-weight: 500;
}

.frame-row__meta {
  color: var(--color-stone-500);
  font-family: var(--font-mono);
  font-size: 13px;
}

.frame-row__meta--ok {
  color: var(--color-stone-700);
}

.frame-row__meta--ok::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ember);
  margin-right: 8px;
  vertical-align: middle;
}

/* Closing CTA */
.cta-section {
  padding-bottom: var(--section-gap);
  text-align: center;
}

.cta-section .section-sub { margin-bottom: 28px; }

/* Footer */
.footer {
  border-top: 1px solid var(--color-stone-200);
  padding: 28px 0 40px;
}

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

.footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__links a { color: var(--color-stone-600); }
.footer__links a:hover { color: var(--color-warm-ink); }

/* Legal */
.legal-body {
  width: min(100% - 48px, 680px);
  margin: 40px auto var(--section-gap);
}

.legal-body h1 {
  font-family: var(--font-newsreader);
  font-weight: 600;
  font-size: clamp(28px, 5vw, var(--text-heading));
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.legal-body p {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-stone-700);
  margin-bottom: 16px;
}

.legal-body em {
  color: var(--color-stone-600);
  font-style: normal;
  font-size: var(--text-body-sm);
}

.legal-back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 500;
  color: var(--color-stone-600);
  border-bottom: 1px solid var(--color-stone-300);
  text-underline-offset: 3px;
}

.legal-back:hover { color: var(--color-warm-ink); }

/* Responsive */
@media (max-width: 900px) {
  .demo__chrome {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .demo__sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-stone-200);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
  }

  .demo__brand-row {
    margin: 0 12px 0 0;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-row--reverse .feature-row__copy,
  .feature-row--reverse .product-frame {
    order: unset;
  }
}

@media (max-width: 640px) {
  .nav__links,
  .nav-actions-secondary { display: none; }

  .page,
  .hero__inner,
  .legal-body {
    width: min(100% - 32px, var(--page-max-width));
  }

  .nav { padding: 20px 0 8px; }
  .hero { padding-top: 36px; }
  .hero__inner { margin-bottom: 36px; }

  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
    min-height: 44px;
  }

  .product-frame,
  .trust-panel { padding: 24px; }

  .trust-stats { gap: 20px; }
}
