:root {
  color-scheme: dark;
  --canvas: #101714;
  --raised: #121716;
  --interactive: #18211e;
  --border: #425049;
  --text: #e8ece7;
  --muted: #aeb8b1;
  --accent: #ff6748;
  --accent-ink: #24130e;
  --max-width: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #101714;
  --raised: #121716;
  --interactive: #18211e;
  --border: #425049;
  --text: #e8ece7;
  --muted: #aeb8b1;
  --accent: #ff6748;
  --accent-ink: #24130e;
}

html[data-theme='light'] {
  color-scheme: light;
  --canvas: #f5f7f5;
  --raised: #fff;
  --interactive: #e7ece8;
  --border: #c8d1ca;
  --text: #18201b;
  --muted: #526057;
  --accent: #c83e2b;
  --accent-ink: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--text); margin: 0; }
a { color: inherit; }
.site-header, .site-footer, main { margin-inline: auto; max-width: var(--max-width); padding-inline: 28px; }
.site-header { align-items: center; display: flex; justify-content: space-between; min-height: 76px; }
.floating-header { backdrop-filter: blur(18px); background: color-mix(in srgb, var(--raised) 88%, transparent); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 14px 42px color-mix(in srgb, var(--text) 12%, transparent); display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 18px; min-height: 64px; padding: 8px 10px 8px 14px; position: sticky; top: 18px; z-index: 10; }
.wordmark { align-items: center; display: inline-flex; font-size: 18px; font-weight: 750; gap: 10px; letter-spacing: -0.04em; text-decoration: none; }
.brand-icon { border-radius: 10px; height: 34px; width: 34px; }
nav { align-items: center; display: flex; gap: 20px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--text); }
.primary-navigation { gap: 6px; }
.primary-navigation a { border-radius: 9px; font-weight: 650; padding: 9px 12px; }
.primary-navigation a:hover, .primary-navigation a:focus-visible { background: var(--interactive); }
.header-controls { align-items: center; display: flex; gap: 8px; justify-content: flex-end; }
.language-switcher { background: var(--interactive); border: 1px solid var(--border); border-radius: 11px; gap: 0; padding: 3px; }
.language-switcher a { border-radius: 8px; font-size: 12px; font-weight: 750; padding: 7px 10px; }
.language-switcher a[aria-current='page'] { background: var(--text); color: var(--canvas); }
.theme-toggle { align-items: center; background: var(--interactive); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; display: inline-flex; font: inherit; font-size: 15px; height: 34px; justify-content: center; padding: 0; width: 34px; }
.theme-toggle:hover { background: var(--raised); border-color: color-mix(in srgb, var(--border), var(--text) 20%); }
.theme-toggle:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); padding-block: 78px 96px; }
.eyebrow { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin: 0 0 18px; }
h1 { font-size: clamp(48px, 6vw, 78px); letter-spacing: -.055em; line-height: .98; margin: 0; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.55; margin: 28px 0; max-width: 590px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; }
.button { background: var(--accent); border: 1px solid var(--accent); border-radius: 10px; color: var(--accent-ink); display: inline-flex; font-size: 14px; font-weight: 750; gap: 8px; padding: 13px 17px; text-decoration: none; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button-quiet { background: transparent; border-color: var(--border); color: var(--text); }
.release-meta { color: var(--muted); font-size: 12px; margin: 15px 0 0; }
.release-integrity { display: inline-block; margin-top: 8px; }
.release-integrity summary { cursor: pointer; }
.release-integrity code { color: var(--text); display: block; margin-top: 8px; max-width: 360px; overflow-wrap: anywhere; }
.product-stage { background: linear-gradient(140deg, #202d29, #101714 55%); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 25px 80px rgba(0,0,0,.3); min-height: 430px; overflow: hidden; padding: 18px; }
.stage-bar { align-items: center; display: flex; gap: 7px; }
.stage-bar span { background: #607067; border-radius: 999px; height: 8px; width: 8px; }
.stage-window { background: #0c110f; border: 1px solid #2d3933; border-radius: 15px; margin-top: 16px; min-height: 360px; padding: 28px; }
.selection { border: 1.5px solid var(--accent); border-radius: 10px; height: 150px; position: relative; }
.selection::after { background: var(--accent); border-radius: 50%; box-shadow: 0 0 28px var(--accent); content: ""; height: 10px; position: absolute; right: -5px; top: -5px; width: 10px; }
.prompt-card { background: var(--raised); border: 1px solid var(--border); border-radius: 10px; margin-top: 18px; padding: 14px; }
.prompt-card p { color: #d6ddd8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.prompt-card span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.section { border-top: 1px solid var(--border); padding-block: 86px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.06em; margin: 0 0 16px; max-width: 680px; }
.section-intro { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 620px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 42px; }
.step, .cloud-card, .faq-item { background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.step-number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.step h3, .cloud-card h3 { font-size: 20px; letter-spacing: -.03em; margin: 34px 0 8px; }
.step p, .cloud-card p, .faq-item p { color: var(--muted); line-height: 1.6; margin: 0; }
.cloud-card { align-items: end; display: flex; justify-content: space-between; margin-top: 42px; }
.cloud-card h3 { margin-top: 0; }
.cloud-card p { max-width: 620px; }
.privacy-note { background: #18211e; border: 1px solid var(--border); border-radius: 14px; color: var(--muted); line-height: 1.65; margin-top: 28px; padding: 20px 24px; }
.privacy-note strong { color: var(--text); }
.waitlist-modal { background: transparent; border: 0; max-width: min(640px, calc(100vw - 40px)); padding: 0; width: 100%; }
.waitlist-modal::backdrop { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--canvas) 72%, transparent); }
.waitlist-modal-content { background: var(--raised); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 28px 90px color-mix(in srgb, var(--text) 28%, transparent); overflow: hidden; }
.waitlist-modal-content header { align-items: flex-start; display: flex; justify-content: space-between; padding: 22px 22px 16px; }
.waitlist-modal-content .eyebrow { margin-bottom: 7px; }
.waitlist-modal-content h2 { font-size: 24px; letter-spacing: -.04em; margin: 0; }
.waitlist-modal-close { align-items: center; background: var(--interactive); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; display: inline-flex; font: inherit; font-size: 24px; height: 34px; justify-content: center; line-height: 1; padding: 0 0 2px; width: 34px; }
.waitlist-modal-close:hover { background: var(--raised); border-color: color-mix(in srgb, var(--border), var(--text) 20%); }
.waitlist-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.waitlist-modal iframe { border: 0; display: block; height: 560px; width: 100%; }
.waitlist-modal-fallback { color: var(--muted); display: inline-flex; font-size: 13px; font-weight: 650; gap: 7px; padding: 16px 22px 20px; text-decoration: none; }
.waitlist-modal-fallback:hover, .waitlist-modal-fallback:focus-visible { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); display: flex; font-size: 13px; justify-content: space-between; padding-block: 28px; }
.site-footer nav { gap: 14px; }
.legal-header { border-bottom: 1px solid var(--border); max-width: none; }
.legal-document { max-width: 820px; padding-block: 72px; }
.legal-document h1 { font-size: 46px; margin-bottom: 28px; }
.legal-document h2 { font-size: 25px; margin-top: 38px; }
.legal-document p, .legal-document li { color: var(--muted); line-height: 1.7; }
.legal-document li + li { margin-top: 8px; }
.support-hero { padding-block: 70px 44px; }
.support-hero h1 { font-size: clamp(42px, 5vw, 62px); }
.support-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.faq-item h2 { font-size: 19px; letter-spacing: -.03em; margin: 0 0 10px; }

html[data-theme='light'] .product-stage { background: linear-gradient(140deg, #dce6df, #f5f7f5 55%); box-shadow: 0 22px 70px rgba(24,32,27,.12); }
html[data-theme='light'] .stage-window { background: #101714; }

@media (prefers-color-scheme: light) {
  html:not([data-theme]) { color-scheme: light; --canvas: #f5f7f5; --raised: #fff; --interactive: #e7ece8; --border: #c8d1ca; --text: #18201b; --muted: #526057; --accent: #c83e2b; --accent-ink: #fff; }
  html:not([data-theme]) .product-stage { background: linear-gradient(140deg, #dce6df, #f5f7f5 55%); box-shadow: 0 22px 70px rgba(24,32,27,.12); }
  html:not([data-theme]) .stage-window { background: #101714; }
}

@media (max-width: 760px) {
  .site-header { padding-inline: 20px; }
  .floating-header { grid-template-columns: 1fr auto; min-height: 60px; padding: 7px 8px 7px 12px; }
  .primary-navigation { display: none; }
  .wordmark { font-size: 16px; }
  .brand-icon { height: 32px; width: 32px; }
  main { padding-inline: 20px; }
  .hero { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .product-stage { min-height: 330px; }
  .stage-window { min-height: 265px; padding: 20px; }
  .steps, .support-grid { grid-template-columns: 1fr; }
  .cloud-card, .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .waitlist-modal { max-width: calc(100vw - 32px); }
  .waitlist-modal-content { border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
  .waitlist-modal-content header { padding: 18px 18px 14px; }
  .waitlist-modal iframe { flex: 1; height: min(560px, calc(100dvh - 190px)); min-height: 360px; }
  .waitlist-modal-fallback { padding: 14px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button:hover { transform: none; } }
