:root {
  --bg: #f5efe6;
  --bg-accent: rgba(255, 154, 77, 0.24);
  --surface: rgba(255, 251, 246, 0.78);
  --surface-strong: #fffaf4;
  --surface-inset: rgba(255, 255, 255, 0.55);
  --text: #181512;
  --muted: #645d56;
  --line: rgba(24, 21, 18, 0.1);
  --accent: #f1662d;
  --accent-strong: #d84d16;
  --shadow: 0 24px 70px rgba(67, 42, 20, 0.12);
}

html[data-theme="dark"] {
  --bg: #10141b;
  --bg-accent: rgba(255, 122, 69, 0.15);
  --surface: rgba(19, 25, 35, 0.78);
  --surface-strong: #151c27;
  --surface-inset: rgba(255, 255, 255, 0.04);
  --text: #edf2f7;
  --muted: #a6b2c2;
  --line: rgba(237, 242, 247, 0.12);
  --accent: #ff7a45;
  --accent-strong: #ff9466;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-accent), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(0, 202, 166, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, black 12%) 100%);
  transition: background-color 180ms ease, color 180ms ease;
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 96px;
}

.site-header,
.hero-panel,
.signal-strip,
.feature-card,
.screen-card,
.download-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-inset);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.theme-toggle__moon {
  color: var(--muted);
}

html[data-theme="dark"] .theme-toggle__sun {
  color: var(--muted);
}

html[data-theme="dark"] .theme-toggle__moon {
  color: var(--accent-strong);
}

html[data-theme="light"] .theme-toggle__sun {
  color: var(--accent-strong);
}

h1,
h2,
h3,
.brand span {
  font-family: "Space Grotesk", sans-serif;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 92px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.lead,
.section-copy,
.feature-card p,
.screen-copy p,
.download-copy p {
  color: var(--muted);
  line-height: 1.7;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent-strong);
  border-color: transparent;
  color: #fff;
}

.button-secondary {
  background: var(--surface-inset);
}

.hero-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 22px;
  padding: 22px;
  border-radius: 30px;
}

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

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-inset);
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
}

.stat-card span {
  color: var(--muted);
}

.hero-shot-frame {
  padding: 14px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 75%, black 25%);
}

.hero-shot-frame img,
.screen-card img {
  width: 100%;
  border-radius: 16px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 22px;
  text-align: center;
  font-weight: 600;
}

.section {
  padding-top: 112px;
}

.section-heading {
  max-width: 760px;
}

.section-heading-tight {
  max-width: 860px;
}

.section-copy {
  margin: 16px 0 0;
}

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

.feature-card {
  padding: 28px;
  border-radius: 24px;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.explain-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.explain-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.screen-card {
  overflow: hidden;
  border-radius: 24px;
}

.screen-card-featured {
  grid-column: span 2;
}

.screen-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0f1623;
}

.screen-copy {
  padding: 18px 20px 22px;
}

.download-shell {
  display: grid;
  gap: 28px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.download-card {
  display: grid;
  gap: 20px;
  align-content: space-between;
  padding: 24px;
  border-radius: 24px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-inset);
  color: var(--accent-strong);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent);
}

.text-link:hover {
  border-bottom-color: var(--accent-strong);
}

.changelog-list {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  align-content: flex-start;
}

.changelog-version {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.changelog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--bg-accent);
  border: 1px solid color-mix(in srgb, var(--accent-strong) 30%, transparent);
}

.changelog-date {
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.changelog-body h3 {
  margin: 0 0 12px;
}

.changelog-body ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.changelog-body li {
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 96px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.site-footer__brand img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.site-footer__links a {
  border-bottom: 1px solid transparent;
}

.site-footer__links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-strong);
}

.site-footer__legal {
  margin: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

a:focus-visible,
.button:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

a,
.button,
.theme-toggle {
  outline: none;
}

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

  * {
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 1040px) {
  .hero,
  .screen-grid,
  .download-grid,
  .feature-grid,
  .explain-grid,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .screen-card-featured {
    grid-column: auto;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
    padding-bottom: 72px;
  }

  .site-header,
  .hero-panel,
  .signal-strip,
  .feature-card,
  .screen-card,
  .download-card,
  .site-footer {
    border-radius: 20px;
  }

  .site-footer__legal {
    margin-left: 0;
  }

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

  h1 {
    line-height: 1;
  }

  .hero-stat-grid {
    grid-template-columns: 1fr;
  }
}
