/* ---------- Theme tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f5;
  --bg-tint: #efefff;
  --bg-story: #ffffff;
  --nav-bg: rgba(239, 239, 255, 0.85);
  --text: #16151c;
  --text-2: #4a4856;
  --muted: #74717f;
  --accent: #423ce8;
  --accent-strong: #322cc9;
  --border: rgba(22, 21, 28, 0.12);
  --border-faint: rgba(22, 21, 28, 0.07);
  --card-bg: #ffffff;
  --input-bg: #f8f8f5;
  --pricing-bg: #423ce8;
  --pricing-text: #ffffff;
  --pricing-eyebrow: rgba(255, 255, 255, 0.86);
  --patch-bg: #ffffff;
  --patch-text: #000000;
  --pattern: url("assets/pattern.svg");
  --shadow-soft: 0 1px 2px rgba(22, 21, 28, 0.06), 0 8px 24px rgba(22, 21, 28, 0.08);
  --shadow-card: 0 1px 2px rgba(22, 21, 28, 0.05), 0 4px 12px rgba(22, 21, 28, 0.06);
  --shadow-btn: 0 1px 2px rgba(22, 21, 28, 0.18);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #1b1b1b;
  --bg-alt: #1b1b1b;
  --bg-tint: #1a1928;
  --bg-story: #211f2e;
  --nav-bg: rgba(27, 27, 27, 0.85);
  --text: #f2f1ee;
  --text-2: #a8a5b3;
  --muted: #898695;
  --accent: #7b77ff;
  --accent-strong: #7b77ff;
  --border: rgba(255, 255, 255, 0.12);
  --border-faint: rgba(255, 255, 255, 0.07);
  --card-bg: #211f2e;
  --input-bg: #1b1b1b;
  --pricing-bg: #7b77ff;
  --pricing-text: #16151c;
  --pricing-eyebrow: rgba(22, 21, 28, 0.86);
  --patch-bg: #0f0f0f;
  --patch-text: #ffffff;
  --pattern: url("assets/pattern-dark.svg");
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1b;
    --bg-alt: #1b1b1b;
    --bg-tint: #1a1928;
    --bg-story: #211f2e;
    --nav-bg: rgba(27, 27, 27, 0.85);
    --text: #f2f1ee;
    --text-2: #a8a5b3;
    --muted: #898695;
    --accent: #7b77ff;
    --accent-strong: #7b77ff;
    --border: rgba(255, 255, 255, 0.12);
    --border-faint: rgba(255, 255, 255, 0.07);
    --card-bg: #211f2e;
    --input-bg: #1b1b1b;
    --pricing-bg: #7b77ff;
    --pricing-text: #16151c;
    --pricing-eyebrow: rgba(22, 21, 28, 0.86);
    --patch-bg: #0f0f0f;
    --patch-text: #ffffff;
    --pattern: url("assets/pattern-dark.svg");
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* Theme-dependent asset switching */
.only-dark { display: none !important; }
[data-theme="dark"] .only-light { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

section { scroll-margin-top: 96px; }

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 1.1rem + 2.9vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(32px, 1rem + 3.1vw, 54px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.019em;
}

h3 {
  font-size: clamp(22px, 0.9rem + 1.5vw, 29px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.029em;
}

a { color: inherit; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--accent-strong);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 36px;
  border: 0;
  border-radius: 96px;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: #423ce8;
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover { filter: brightness(1.12); }

.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-outline:hover { background: var(--border-faint); }

.btn-light {
  background: #f8f8f5;
  color: #16151c;
  box-shadow: var(--shadow-btn);
}

.btn-light:hover { filter: brightness(0.96); }

.btn-nav { padding: 12px 24px; }

.btn-block { width: 100%; }

.icon-arrow, .icon-ext { width: 14px; height: 14px; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 16px clamp(20px, 5.5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img { width: 176px; height: 37px; }

.nav-right { display: flex; align-items: center; gap: 21px; }

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-2);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); }

.link-ext { display: inline-flex; align-items: center; gap: 2px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle svg { width: 18px; height: 18px; }

.theme-toggle:hover { background: var(--border-faint); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-alt); }

.hero-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(48px, 6.6vw, 96px) clamp(20px, 5.5vw, 80px) clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 654fr) minmax(0, 570fr);
  align-items: center;
  gap: clamp(40px, 3.9vw, 56px);
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.hero-lead { color: var(--text); }

.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }

.status-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: #1fb46a;
}

.hero-visual { position: relative; }

.hero-graphic {
  position: absolute;
  width: 102%;
  left: -40%;
  top: -23%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Browser mockup ---------- */
.browser {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f0ea;
  border-bottom: 1px solid rgba(22, 21, 28, 0.07);
}

.bdot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.bdot-r { background: #ff5f57; }
.bdot-y { background: #febc2e; }
.bdot-g { background: #28c840; }

.browser-url {
  margin-left: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
  color: #6e6b79;
}

.browser-shot { position: relative; }

.shot-patch { position: absolute; background: var(--patch-bg); }

.shot-patch-corner {
  left: 0.4%;
  bottom: 1%;
  width: 17%;
  height: 6.5%;
  border-radius: 8px;
}

/* ---------- Quote ---------- */
.quote {
  background: var(--bg-tint) var(--pattern) no-repeat center -271px / 1440px 810px;
}

.quote-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px clamp(20px, 19.4vw, 200px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

blockquote p {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(24px, 1rem + 1.4vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.026em;
  color: var(--accent);
  text-wrap: balance;
}

.attribution { display: flex; align-items: center; gap: 16px; }

.attribution img {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

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

.attribution-name { font-size: 20px; line-height: 1.3; color: var(--text); }

.attribution-title { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ---------- Story ---------- */
.story { background: var(--bg-story); }

.story-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px clamp(20px, 8.3vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 524fr) minmax(0, 580fr);
  gap: clamp(40px, 6.6vw, 96px);
  align-items: start;
}

.story-grid p a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: bolder;
}

.story-left { display: flex; flex-direction: column; gap: 20px; }

.story-left h2 { letter-spacing: -0.019em; }

.timeline { display: flex; flex-direction: column; margin-top: 20px; }

.timeline-row {
  display: flex;
  gap: 16px;
  padding-block: 36px;
  border-bottom: 1px solid var(--border);
}

.timeline-row:first-child { padding-top: 0; }

.timeline-row dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--accent-strong);
  flex: none;
  width: 36px;
}

.timeline-row dd { display: flex; flex-direction: column; gap: 2px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

.timeline-row dd strong {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
}

.story-right { display: flex; flex-direction: column; gap: 28px; color: var(--text); }

.story-logos {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.story-logos-divider { width: 1px; height: 70px; margin-block: -12px; background: var(--border); }

/* ---------- Features ---------- */
.features {
  background: var(--bg-tint) var(--pattern) no-repeat center 859px / 1440px 810px;
}

.features-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 56px clamp(20px, 8.3vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.features-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.card-list { list-style: none; display: flex; flex-direction: column; gap: 6px; padding-bottom: 24px; }

.card-list li {
  position: relative;
  padding-block: 3px;
  padding-left: 23px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: calc(0.55em + 3px);
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent-strong);
  transform: rotate(45deg);
}

.card-list .li-tight { font-size: 15.5px; }

.browser-features { max-width: 850px; width: 100%; margin-inline: auto; border-radius: 8.5px; }

.browser-features .browser-bar { padding: 8px 10px; }

.browser-features .bdot { width: 6px; height: 6px; }

.browser-features .browser-url { font-size: 8px; }

/* ---------- Availability / Pricing ---------- */
.availability { background: var(--bg-story); }

.availability-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(56px, 6.6vw, 96px) clamp(20px, 8.3vw, 120px);
}

.pricing-card {
  position: relative;
  overflow: hidden;
  max-width: 1072px;
  margin-inline: auto;
  background: var(--pricing-bg);
  border-radius: 16px;
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  box-shadow: var(--shadow-soft);
  color: var(--pricing-text);
}

.pricing-card h2 { color: var(--pricing-text); max-width: 660px; }

.eyebrow-onaccent { color: var(--pricing-eyebrow); }

.eyebrow-onaccent::before { background: var(--pricing-eyebrow); }

.pricing-copy {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 17.5px;
  line-height: 1.6;
}

.pricing-graphic {
  position: absolute;
  top: 55px;
  right: -49px;
  width: 483px;
  max-width: 55%;
  pointer-events: none;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }

.contact-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(48px, 5vw, 72px) clamp(20px, 8.3vw, 120px) clamp(56px, 6.6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 524fr) minmax(0, 580fr);
  align-items: center;
  gap: clamp(40px, 6.6vw, 96px);
}

.contact-copy { display: flex; flex-direction: column; gap: 24px; }

.contact-lead { font-size: 20px; line-height: 1.55; color: var(--text-2); }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-2);
}

.contact-list .icon-arrow { color: var(--text-2); }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: 22px;
  padding: clamp(24px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-2);
}

.form-field input,
.form-field textarea {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 88px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.form-submitted .form-row,
.form-submitted .form-field,
.form-submitted button,
.form-submitted .form-note { display: none; }

.form-submitted { justify-content: center; }

.form-success {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-success[hidden] { display: none; }

.form-success-title {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(36px, 1rem + 2.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-success-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.form-status {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.form-status-error { color: #d04545; }

button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.form-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer { background: #16151c; color: #817e8c; }

.footer-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px clamp(20px, 8.3vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(40px, 8vw, 179px);
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 24px; max-width: 375px; }

.footer-brand p { font-size: 15px; line-height: 1.6; }

.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.footer-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.footer-col a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #817e8c;
  text-decoration: none;
}

.footer-col a:hover { color: #ffffff; }

.footer-copyright {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner,
  .story-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-visual { max-width: 570px; }

  .hero-graphic { display: none; }

  .quote-inner { padding-inline: clamp(20px, 8.3vw, 120px); }

  .story-logos { align-self: flex-start; }

  .pricing-graphic { display: none; }
}

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

@media (max-width: 720px) {
  .nav-links { display: none; }

  .nav-inner { padding-inline: 16px; }

  .nav-logo img { width: 140px; height: auto; }

  .nav-right { gap: 12px; }

  .btn-nav { padding: 10px 18px; }

  body { font-size: 16px; }

  .card { padding: 28px 24px 36px; }

  .card-list li { font-size: 16px; }

  .form-row { grid-template-columns: 1fr; }

  .contact-lead { font-size: 18px; }

  .status-dot { display: none; }

  .features-header { align-items: flex-start; text-align: left; }

  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
