:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #172033;
  --muted: #5c6983;
  --border: #d7deea;
  --brand: #2f6bff;
  --brand-strong: #174ad6;
  --shadow: 0 14px 40px rgba(19, 33, 68, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #111a32;
  --surface-2: #172543;
  --text: #e8edff;
  --muted: #afbddf;
  --border: #2b3c65;
  --brand: #6d98ff;
  --brand-strong: #4f7eff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  background: radial-gradient(circle at top right, var(--surface-2), var(--bg) 30%);
  color: var(--text);
}

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

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

.container {
  width: min(70rem, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 10rem;
  height: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.link {
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 0.65rem;
}

.link:hover,
.link:focus-visible {
  color: var(--text);
}

.button {
  border: 1px solid transparent;
  border-radius: 0.8rem;
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
}

.button.ghost {
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
}

.button.icon {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.button.disabled,
button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.hero {
  padding: 4.8rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-transform: uppercase;
  font-size: 0.84rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0.4rem 0 0.7rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  margin: 0 0 0.9rem;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.lead {
  color: var(--muted);
  max-width: 44ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.stats {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats li {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  background: var(--surface);
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.feature-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-0.12rem);
  border-color: var(--brand);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 35%, #000 65%);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(62rem, 92vw);
  max-height: 92vh;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.8rem;
}

.lightbox-image {
  width: 100%;
  max-height: calc(92vh - 5rem);
  object-fit: contain;
  border-radius: 0.7rem;
}

.lightbox-close {
  margin-bottom: 0.55rem;
}

body.lightbox-open {
  overflow: hidden;
}

.spotlight ul,
.checklist {
  margin: 0;
  padding-left: 1.2rem;
}

.checklist li {
  position: relative;
  margin-bottom: 0.45rem;
}

.inline-note-trigger {
  margin-left: 0.3rem;
  border: 0;
  padding: 0 0.2rem;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.inline-note-trigger:hover,
.inline-note-trigger:focus-visible {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}

.inline-note-popup {
  position: absolute;
  top: 1.45rem;
  left: 0;
  z-index: 2;
  width: min(28rem, 78vw);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  font-size: 0.93rem;
}

.inline-note-popup[hidden] {
  display: none;
}

.section {
  padding: 2.4rem 0;
}

.section.alt {
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-grid p,
.split p,
.card p,
.small {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.download {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
}

.qr {
  width: min(14rem, 70vw);
  justify-self: center;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  padding: 0.55rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
}

@media (max-width: 55rem) {
  .hero-grid,
  .split,
  .download {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-actions .link {
    display: none;
  }
}

@media (max-width: 38rem) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .inline-note-popup {
    width: min(20rem, 78vw);
  }

  .brand img {
    width: 8.7rem;
  }

  .button {
    width: auto;
  }
}
