:root,
[data-theme="light"] {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --fg: #12202e;
  --muted: #526376;
  --primary: #1b4f9c;
  --on-primary: #f7fafc;
  --line: #d5dee7;
  --accent: #0f6e6b;
  --plate: #ffffff;
  --header: rgba(243, 245, 247, 0.9);
  --veil-fg: #f7fafc;
  --lift: #c5d0db;
  --lift-soft: rgba(18, 32, 46, 0.16);
  --veil: rgba(18, 32, 46, 0.46);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e141c;
  --surface: #161e28;
  --fg: #e7eef5;
  --muted: #9aabbc;
  --primary: #8eb7ff;
  --on-primary: #07111c;
  --line: #2c3b4c;
  --accent: #5dccc4;
  --plate: #1a2430;
  --header: rgba(14, 20, 28, 0.9);
  --veil-fg: #f7fafc;
  --lift: #05080c;
  --lift-soft: rgba(0, 0, 0, 0.5);
  --veil: rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

section[id] { scroll-margin-top: 5.5rem; }

.kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { margin-top: 1rem; font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 600; }
h2 { margin-top: 0.75rem; font-size: 1.9rem; font-weight: 600; }
h3 { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }

.muted { color: var(--muted); }
.lede { margin: 1.25rem 0 0; max-width: 36rem; font-size: 1.125rem; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(12px);
}

.header-bar,
.footer-bar,
.hero,
.product .wrap,
.screenshots,
.pricing-grid {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark { width: 2rem; height: 2.25rem; flex-shrink: 0; fill: var(--primary); stroke: var(--primary); }
.logo-text { line-height: 1; }
.logo-name { display: block; font-size: 1.125rem; font-weight: 600; }
.logo-num { color: var(--primary); }
.logo-sub {
  display: block;
  margin-top: 0.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.desktop-nav { display: none; align-items: center; gap: 2rem; }
.desktop-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.desktop-nav a:hover { color: var(--fg); }
.desktop-nav .btn { color: var(--on-primary); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); padding: 0.75rem 1.25rem 1rem; }
.mobile-nav a { display: flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }

.hero {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
  align-items: center;
}

.cta-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.pills li {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.hero-shot { margin: 0; }
.hero-shot figcaption { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }

.shot {
  display: block;
  width: 100%;
  padding: 0.55rem;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 12px 14px 0 0 var(--lift), 18px 24px 28px var(--lift-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-align: left;
}
.shot img { display: block; width: 100%; height: auto; border-radius: 0.4rem; }
.shot:hover { transform: translate(-3px, -5px); box-shadow: 16px 20px 0 0 var(--lift), 24px 32px 36px var(--lift-soft); }
.shot:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

.product { border-block: 1px solid var(--line); background: var(--surface); }
.product .wrap { padding: 4rem 0; }
.section-intro { max-width: 42rem; }
.section-intro .muted { margin-top: 1rem; }

.feature-grid {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
}
.feature-grid article { background: var(--surface); padding: 1.5rem; }
.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary);
}
.icon-bubble svg { width: 1.25rem; height: 1.25rem; }
.feature-grid p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }

.screenshots { padding: 4rem 0; }
.shot-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
.shot-grid figure { margin: 0; }
.shot-grid figcaption { margin-top: 1.25rem; padding: 0 0.25rem; }
.shot-grid strong { display: block; font-weight: 500; }
.shot-grid span { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

.pricing { border-top: 1px solid var(--line); background: var(--surface); }
.pricing-grid { display: grid; gap: 2.5rem; padding: 4rem 0; }
.price-card, .contact-form {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg);
  padding: 1.5rem;
}
.price { margin: 0.5rem 0 0; font-size: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.included { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.included li { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.875rem; }
.included svg { width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; color: var(--accent); }

.contact-form h2 { font-size: 1.5rem; }
.contact-form .muted { margin-top: 0.5rem; font-size: 0.875rem; }
.form-row { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: block; margin-top: 1rem; font-size: 0.875rem; font-weight: 500; }
.form-row label { margin-top: 0; }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}
.contact-form .btn { margin-top: 1.25rem; }
.form-status { margin-top: 1rem; font-size: 0.875rem; color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding-bottom: 6rem; }
.footer-bar { display: flex; flex-direction: column; gap: 1.5rem; padding: 2.5rem 0; }
.footer-note { margin: 0.75rem 0 0; max-width: 24rem; font-size: 0.875rem; }

.theme-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 8px 10px 0 0 var(--lift), 12px 16px 22px var(--lift-soft);
}
.theme-dock button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.theme-dock button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.theme-dock svg { width: 1rem; height: 1rem; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--veil);
}
.veil[hidden] { display: none; }
.lb-stage { display: flex; flex-direction: column; align-items: center; width: min(90rem, 100%); max-height: 100%; }
.lb-count {
  margin: 0 0 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--veil-fg);
}
.lb-plate-wrap { padding-right: 1.5rem; padding-bottom: 2rem; }
.shot-lite { width: fit-content; max-width: 100%; }
.shot-lite img {
  width: auto;
  max-width: min(90rem, calc(100vw - 4.5rem));
  max-height: min(calc(100vh - 9rem), calc(86vh * 1.25));
}
.lb-caption { margin-top: 0.25rem; max-width: 36rem; text-align: center; color: var(--veil-fg); }
#shot-title { margin: 0; font-size: 1.125rem; font-weight: 600; }
.lb-cap { margin: 0.25rem 0 0; font-size: 0.875rem; }

.lb-btn {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--plate);
  color: var(--fg);
}
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { top: 50%; left: 0.5rem; transform: translateY(-50%); }
.lb-next { top: 50%; right: 0.5rem; transform: translateY(-50%); }

@media (min-width: 640px) {
  .cta-row { flex-direction: row; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-bar { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
  .lb-plate-wrap { padding-right: 2rem; padding-bottom: 2.5rem; }
  .veil { padding: 1.25rem; }
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; padding: 6rem 0; }
  .product .wrap, .screenshots, .pricing-grid { padding-block: 5rem; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shot { box-shadow: 8px 10px 0 0 var(--lift), 12px 16px 18px var(--lift-soft); }
  .shot:hover { box-shadow: 10px 12px 0 0 var(--lift), 14px 18px 22px var(--lift-soft); }
  .theme-dock { right: 0.75rem; bottom: 0.75rem; }
}

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