:root {
  --ink: #15171a;
  --paper: #ffffff;
  --canvas: #f7f7f8;
  --muted: #666c75;
  --subtle: #9299a3;
  --line: #e1e4e8;
  --line-strong: #c9ced5;
  --action: #1769e0;
  --action-hover: #0d57c7;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wordmark { font-size: 19px; font-weight: 760; letter-spacing: -.04em; }

.site-header { position: sticky; top: 0; z-index: 10; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.language-toggle { height: 34px; min-width: 48px; padding: 0 10px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 620; transition: color 140ms ease, background 140ms ease, border-color 140ms ease; }
.language-toggle:hover { color: var(--ink); background: var(--canvas); border-color: var(--line); }
.language-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--action) 45%, transparent); outline-offset: 2px; }
.login-link { height: 34px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 620; transition: background 140ms ease, border-color 140ms ease; }
.login-link:hover { background: var(--canvas); border-color: #aeb4bc; }

.hero { min-height: 700px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0 88px; }
.dataset-badge { display: inline-flex; align-items: center; gap: 8px; color: #444950; font-size: 12px; font-weight: 620; }
.dataset-badge i, .preview-status i { width: 7px; height: 7px; border-radius: 50%; background: #25845b; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(46px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; }
.primary-action, .secondary-action { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border-radius: 6px; font-weight: 650; transition: background 140ms ease, border-color 140ms ease; }
.primary-action { background: var(--action); color: white; }
.primary-action:hover { background: var(--action-hover); }
.secondary-action { background: white; border: 1px solid var(--line-strong); }
.secondary-action:hover { background: var(--canvas); }
.hero-copy > small { display: block; margin-top: 17px; color: var(--subtle); font-size: 10px; }

.product-preview { min-width: 0; height: 510px; display: grid; grid-template-columns: 142px minmax(0,1fr); overflow: hidden; background: white; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 20px 50px rgba(30,34,40,.10); }
.preview-sidebar { display: flex; flex-direction: column; padding: 17px 11px; background: #fbfbfc; border-right: 1px solid var(--line); }
.preview-sidebar > strong { padding: 0 7px 15px; font-size: 12px; }
.preview-label { margin: 12px 7px 4px; color: var(--subtle); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.preview-nav { min-height: 28px; display: flex; align-items: center; padding: 0 7px; border-radius: 4px; color: #555b64; font-size: 9px; }
.preview-nav.active { background: #e9eaed; color: var(--ink); font-weight: 650; }
.preview-status { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 10px 7px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.preview-main { min-width: 0; }
.preview-topbar { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 650; }
.preview-topbar small { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 8px; }
.preview-content { height: calc(100% - 48px); display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.preview-eyebrow { color: var(--action); font-size: 8px; font-weight: 650; }
.preview-content h2 { margin: 8px 0 6px; font-size: 22px; letter-spacing: -.04em; }
.preview-content > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.preview-prompts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 22px; }
.preview-prompts > div { padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
.preview-prompts strong, .preview-prompts span { display: block; }
.preview-prompts strong { font-size: 9px; }
.preview-prompts span { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.preview-input { height: 58px; display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 13px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 6px; }
.preview-input span { align-self: start; color: var(--subtle); font-size: 8px; }
.preview-input button { width: 42px; height: 22px; border: 0; border-radius: 4px; background: var(--action); color: white; font-size: 7px; }

.metrics { display: grid; grid-template-columns: repeat(4,1fr); width: min(1180px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.metrics > div:first-child { padding-left: 0; }
.metrics > div:last-child { border-right: 0; }
.metrics strong, .metrics span { display: block; }
.metrics strong { font-size: 25px; letter-spacing: -.035em; }
.metrics span { margin-top: 7px; color: var(--muted); font-size: 11px; }

.features, .question-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 112px 0; }
.section-intro > span, .question-section > div > span, .final-cta span { color: var(--action); font-size: 11px; font-weight: 650; }
.section-intro h2, .question-section h2, .final-cta h2 { max-width: 670px; margin: 11px 0 0; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.feature-grid article { padding: 25px 36px 0 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 36px; }
.feature-grid article:last-child { border-right: 0; }
.feature-number { color: var(--subtle); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-grid h3 { margin: 24px 0 10px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.question-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; border-top: 1px solid var(--line); }
.question-section h2 { font-size: 34px; }
.question-section dl { margin: 0; }
.question-section dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.question-section dl > div:first-child { padding-top: 0; }
.question-section dt { font-weight: 650; }
.question-section dd { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.final-cta { width: min(1180px, calc(100% - 48px)); margin: 0 auto 80px; display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 55px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; }
.final-cta h2 { font-size: 34px; }
footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.auth-body { min-height: 100vh; display: grid; grid-template-rows: 64px 1fr 60px; background: var(--canvas); }
.auth-header, .auth-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); }
.auth-header { background: white; border-bottom: 1px solid var(--line); }
.auth-header .header-actions > a { color: var(--muted); font-size: 12px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(420px,100%); padding: 36px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.auth-product { color: var(--action); font-size: 11px; font-weight: 650; }
.auth-card h1 { margin: 9px 0 7px; font-size: 28px; letter-spacing: -.04em; }
.auth-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.provider-list { display: grid; gap: 9px; margin-top: 27px; }
.provider-button { position: relative; height: 46px; display: grid; grid-template-columns: 34px 1fr 78px; align-items: center; padding: 0 12px; background: white; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-weight: 600; text-align: center; transition: background 140ms ease, border-color 140ms ease; }
.provider-button .provider-icon { justify-self: start; color: var(--muted); font-size: 10px; font-weight: 750; }
.provider-button .provider-label { justify-self: center; }
.provider-button small { justify-self: end; color: var(--subtle); font-size: 9px; font-weight: 500; }
.provider-button[aria-disabled="true"] { cursor: not-allowed; color: #8d929a; }
.provider-button:not([aria-disabled="true"]):hover { background: var(--canvas); border-color: #aeb4bc; }
.auth-error { margin-top: 14px; padding: 10px 11px; background: #fff4f3; border: 1px solid #efcfcb; border-radius: 5px; color: #9b3029; font-size: 10px; line-height: 1.5; }
.auth-card .auth-note { margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 9px; text-align: center; }
.auth-card .auth-note a, footer a:not(.wordmark), .legal-page a { text-decoration: underline; text-underline-offset: 2px; }
.auth-footer { justify-content: space-between; color: var(--subtle); font-size: 9px; }

.legal-body { min-height: 100vh; background: var(--paper); }
.legal-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 820px) / 2)); border-bottom: 1px solid var(--line); }
.legal-header .header-actions > a { color: var(--muted); font-size: 12px; }
.legal-page { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 100px; }
.legal-page > span { color: var(--action); font-size: 11px; font-weight: 650; }
.legal-page h1 { margin: 10px 0 8px; font-size: 40px; letter-spacing: -.045em; }
.legal-updated { margin: 0 0 44px; color: var(--subtle); font-size: 11px; }
.legal-page section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin: 0 0 10px; font-size: 16px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 13px; line-height: 1.75; }
.legal-page p { margin: 0; }
.legal-page ul { margin: 10px 0 0; padding-left: 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { padding-top: 20px; }
  .product-preview { width: 100%; }
  .question-section { grid-template-columns: 1fr; gap: 52px; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .header-actions { gap: 3px; }
  .language-toggle { min-width: 42px; padding: 0 7px; }
  .hero, .metrics, .features, .question-section, .final-cta, footer { width: calc(100% - 32px); }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 43px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .product-preview { height: 420px; grid-template-columns: 92px minmax(0,1fr); }
  .preview-sidebar { padding: 13px 7px; }
  .preview-content { padding: 22px 18px; }
  .preview-prompts { grid-template-columns: 1fr; }
  .preview-prompts > div:nth-child(n+3) { display: none; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metrics > div { padding: 22px 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article + article { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .features, .question-section { padding: 78px 0; }
  .final-cta { align-items: stretch; flex-direction: column; padding: 30px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .auth-card { padding: 27px 22px; }
  .legal-header { padding: 0 16px; }
  .legal-page { width: calc(100% - 32px); padding-top: 52px; }
  .legal-page h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
