:root {
  color-scheme: light dark;
  --bg: #f3f0e8;
  --bg-strong: #e7e1d3;
  --surface: rgba(255, 251, 244, 0.76);
  --surface-strong: rgba(255, 251, 244, 0.92);
  --surface-dark: rgba(16, 24, 26, 0.82);
  --ink: #172123;
  --ink-soft: #536064;
  --line: rgba(23, 33, 35, 0.12);
  --line-strong: rgba(23, 33, 35, 0.22);
  --accent: #986a34;
  --accent-strong: #774f22;
  --signal: #2f6a62;
  --signal-soft: rgba(47, 106, 98, 0.12);
  --shadow-lg: 0 28px 70px rgba(26, 31, 31, 0.14);
  --shadow-md: 0 16px 38px rgba(26, 31, 31, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(152, 106, 52, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(47, 106, 98, 0.16), transparent 24rem),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 55%, #e7e1d4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 35, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 35, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 84%);
}

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

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

.page-shell {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.hero,
.section,
.summary-band,
.site-footer,
.info-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin-inline: auto;
}

.hero {
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
  background: rgba(255, 251, 244, 0.62);
  border: 1px solid rgba(255, 251, 244, 0.68);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(26, 31, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(26, 31, 31, 0.16);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 40px;
  align-items: center;
  padding-top: 56px;
}

.hero-copy h1,
.section-heading h2,
.spotlight-copy h2,
.closing h2,
.info-header h1,
.info-card h2,
.policy-card h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 7vw, 6.1rem);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede,
.summary-band p,
.feature-card p,
.spotlight-copy p,
.closing p,
.info-header p,
.info-card p,
.info-card li,
.policy-card p,
.policy-card li {
  color: var(--ink-soft);
  line-height: 1.72;
}

.lede {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.closing-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffaf2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 30px rgba(119, 79, 34, 0.22);
}

.button-secondary,
.button-tertiary {
  border-color: var(--line);
  background: rgba(255, 251, 244, 0.74);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-tertiary:hover,
.button-tertiary:focus-visible {
  border-color: var(--line-strong);
}

.hero-points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-soft);
}

.screen-stack {
  position: relative;
  min-height: 520px;
}

.screen-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 251, 244, 0.58);
  background: rgba(18, 24, 25, 0.9);
  box-shadow: var(--shadow-lg);
}

.screen-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090d0e;
}

.screen-main {
  top: 36px;
  left: 0;
  width: 82%;
  aspect-ratio: 16 / 10;
  z-index: 1;
}

.screen-side {
  width: 44%;
  right: 0;
  top: 0;
  aspect-ratio: 16 / 10;
  z-index: 2;
}

.screen-detail {
  width: 38%;
  right: 18px;
  bottom: 0;
  aspect-ratio: 4 / 3;
  z-index: 3;
}

.screenshots {
  padding-top: 70px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 251, 244, 0.72);
  background: rgba(18, 24, 25, 0.9);
  box-shadow: var(--shadow-md);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  background: #090d0e;
}

.screenshot-card figcaption {
  padding: 12px 16px 14px;
  color: #f8f1e8;
  background: rgba(17, 24, 26, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.screenshot-wide {
  grid-column: span 2;
}

.summary-band {
  padding: 18px 26px;
  background: rgba(23, 33, 35, 0.9);
  color: #f6efe2;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.summary-band p {
  margin: 0;
  color: inherit;
  font-size: 1.02rem;
}

.section {
  padding-top: 78px;
}

.section-heading {
  max-width: 52rem;
}

.section-heading h2,
.spotlight-copy h2,
.closing h2 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
}

.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card,
.info-card,
.policy-card,
.spotlight-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 251, 244, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.feature-card h3,
.faq-item h3,
.stack-item strong,
.spotlight-row strong {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.info-card p,
.policy-card p {
  margin: 0;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.spotlight-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.9), rgba(245, 238, 226, 0.88)),
    var(--surface);
}

.spotlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spotlight-row:last-child {
  border-bottom: 0;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.site-footer {
  padding-top: 72px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.info-shell {
  padding: 24px 0 40px;
}

.info-header {
  max-width: 50rem;
  padding: 54px 0 22px;
}

.info-header h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-weight: 600;
}

.meta-note {
  margin-top: 14px;
  font-size: 0.92rem;
}

.stack-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.stack-item p,
.faq-item p {
  margin: 0;
}

.faq-item + .faq-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--signal-soft);
  color: var(--signal);
  font-weight: 600;
}

.policy-shell {
  display: grid;
  gap: 18px;
}

.info-card ul,
.policy-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .spotlight,
  .closing,
  .feature-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .screen-stack {
    min-height: 620px;
  }

  .screen-main {
    top: 34px;
    width: 82%;
  }

  .screen-side {
    width: 42%;
  }

  .screen-detail {
    width: 38%;
  }
}

@media (max-width: 720px) {
  .hero,
  .section,
  .summary-band,
  .site-footer,
  .info-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 18px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-grid {
    gap: 28px;
    padding-top: 36px;
  }

  .screen-stack {
    min-height: 420px;
  }

  .screen-main {
    top: 34px;
    width: 82%;
  }

  .screen-side {
    width: 44%;
  }

  .screen-detail {
    width: 40%;
    right: 10px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-wide {
    grid-column: auto;
  }

  .feature-card,
  .info-card,
  .policy-card,
  .spotlight-panel {
    padding: 20px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181a;
    --bg-strong: #182325;
    --surface: rgba(19, 29, 31, 0.74);
    --surface-strong: rgba(19, 29, 31, 0.9);
    --ink: #edf0ea;
    --ink-soft: #b3beb8;
    --line: rgba(237, 240, 234, 0.1);
    --line-strong: rgba(237, 240, 234, 0.2);
    --accent: #c89a58;
    --accent-strong: #efbf77;
    --signal: #63b8aa;
    --signal-soft: rgba(99, 184, 170, 0.14);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.24);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(200, 154, 88, 0.14), transparent 28rem),
      radial-gradient(circle at top right, rgba(99, 184, 170, 0.16), transparent 24rem),
      linear-gradient(180deg, #0f1719 0%, #121c1f 56%, #172427 100%);
  }

  body::before {
    background-image:
      linear-gradient(rgba(237, 240, 234, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(237, 240, 234, 0.03) 1px, transparent 1px);
  }

  .topbar {
    background: rgba(18, 28, 31, 0.62);
    border-color: rgba(237, 240, 234, 0.08);
  }

  .screen-card,
  .screenshot-card,
  .feature-card,
  .info-card,
  .policy-card,
  .spotlight-panel {
    border-color: rgba(237, 240, 234, 0.08);
  }

  .button-secondary,
  .button-tertiary {
    background: rgba(19, 29, 31, 0.84);
  }

  .summary-band {
    background: rgba(10, 15, 16, 0.92);
    color: #f5ebdc;
  }

  .spotlight-panel {
    background:
      linear-gradient(180deg, rgba(24, 36, 39, 0.96), rgba(18, 28, 31, 0.9)),
      var(--surface);
  }
}
