:root {
  --bg: #f5f3ef;
  --bg-soft: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #21252b;
  --muted: #5f6874;
  --border: rgba(78, 101, 126, 0.16);
  --accent: #4f7a8a;
  --accent-deep: #365966;
  --accent-soft: #d9e7ec;
  --shadow: 0 20px 45px rgba(43, 53, 63, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

[data-theme="dark"] {
  --bg: #151a1f;
  --bg-soft: #1d252d;
  --surface: rgba(25, 32, 39, 0.88);
  --surface-strong: #202933;
  --text: #eef2f5;
  --muted: #b3bfca;
  --border: rgba(181, 205, 224, 0.14);
  --accent: #78aebc;
  --accent-deep: #a9d3df;
  --accent-soft: #1f3943;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 122, 138, 0.12), transparent 28%),
    radial-gradient(circle at right center, rgba(114, 138, 180, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfbf8 0%, var(--bg) 100%);
  line-height: 1.6;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(120, 174, 188, 0.16), transparent 28%),
    radial-gradient(circle at right center, rgba(122, 139, 188, 0.15), transparent 24%),
    linear-gradient(180deg, #11161b 0%, var(--bg) 100%);
}

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

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

button,
a.button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 840px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 247, 0.76);
  border-bottom: 1px solid rgba(78, 101, 126, 0.1);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 22, 27, 0.8);
  border-bottom-color: rgba(181, 205, 224, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: auto;
  height: clamp(2rem, 3.2vw, 2.45rem);
  flex-shrink: 0;
}

.brand-text {
  font-size: clamp(1.58rem, 2.5vw, 2.15rem);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--accent-deep);
  background: rgba(79, 122, 138, 0.12);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.32rem 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero,
.page-hero {
  padding: 5rem 0 3rem;
}

.two-column {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

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

.about-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  align-items: stretch;
}

.about-split > .content-card {
  height: 100%;
}

.about-followup-card {
  margin-top: 1.5rem;
}

.inline-link-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 122, 138, 0.14);
  color: var(--accent-deep);
  font-weight: 700;
}

[data-theme="dark"] .inline-link-pill {
  background: rgba(169, 211, 223, 0.14);
  color: #d9edf3;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.hero-text,
.lead,
.section-heading p + h2,
.info-card p,
.content-card p,
.requirements-card,
.footer-inner p {
  color: var(--muted);
}

.hero-text,
.lead {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 28px rgba(54, 89, 102, 0.2);
}

[data-theme="dark"] .button-primary {
  color: #10252d;
}

.button-secondary {
  color: var(--accent-deep);
  background: rgba(79, 122, 138, 0.12);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.theme-toggle-nav {
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  margin-left: 0.2rem;
  white-space: nowrap;
}

.button-large {
  margin-top: 1.75rem;
  min-height: 3.5rem;
  padding-inline: 1.6rem;
}

.info-card,
.content-card,
.requirements-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section,
.section-muted {
  padding: 2.5rem 0 5rem;
}

.section-muted {
  background: rgba(255, 255, 255, 0.36);
}

[data-theme="dark"] .section-muted {
  background: rgba(255, 255, 255, 0.03);
}

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

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

.info-card,
.content-card {
  padding: 1.6rem;
}

.info-card h3,
.content-card h2 {
  margin-bottom: 0.85rem;
}

.content-card p + p {
  margin-top: 1rem;
}

.status-card {
  margin-bottom: 1.5rem;
  border-color: rgba(168, 74, 74, 0.24);
  background: linear-gradient(180deg, rgba(255, 236, 236, 0.96), rgba(255, 247, 247, 0.9));
}

.status-card-inline {
  margin-top: 1.75rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
}

.download-helper-card {
  margin-top: 1.75rem;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.panel-header-row h2 {
  margin-bottom: 0;
}

.panel-header-button {
  flex-shrink: 0;
}

.panel-header-button-line + .panel-header-button-line {
  margin-left: 0.35rem;
}

.verify-list {
  margin: 1rem 0 1.15rem;
  padding-left: 1.2rem;
  list-style: none;
  color: var(--text);
}

.verify-list li {
  padding-left: 0.15rem;
}

.verify-list li + li {
  margin-top: 0.65rem;
}

.verify-platform {
  margin-right: 0.45rem;
}

.verify-command {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(79, 122, 138, 0.12);
}

[data-theme="dark"] .verify-command {
  background: rgba(169, 211, 223, 0.12);
}

[data-theme="dark"] .status-card {
  border-color: rgba(223, 120, 120, 0.24);
  background: linear-gradient(180deg, rgba(87, 45, 49, 0.82), rgba(56, 31, 35, 0.78));
}

.download-requirements-section {
  padding-top: 1rem;
}

.status-list {
  margin: 1rem 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--text);
}

.status-list li + li {
  margin-top: 0.65rem;
}

.accent-card {
  background: linear-gradient(180deg, rgba(217, 231, 236, 0.88), rgba(255, 255, 255, 0.8));
}

[data-theme="dark"] .accent-card {
  background: linear-gradient(180deg, rgba(31, 57, 67, 0.92), rgba(25, 32, 39, 0.88));
}

.requirements-card {
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 248, 0.92));
}

[data-theme="dark"] .requirements-card {
  background: linear-gradient(180deg, rgba(32, 41, 51, 0.95), rgba(24, 31, 38, 0.92));
}

.requirements-header {
  margin-bottom: 1.5rem;
}

.requirements-subsection {
  margin-top: 2.25rem;
}

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

.requirement-item {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid rgba(79, 122, 138, 0.14);
}

.requirement-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(78, 101, 126, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(181, 205, 224, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-size: 0.95rem;
}

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

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

@media (max-width: 900px) {
  .two-column,
  .cards-grid,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 1.45rem;
  }

  .brand-logo {
    height: 2rem;
  }

  .navbar {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 0.2rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    background: rgba(251, 250, 247, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  [data-theme="dark"] .nav-links {
    background: rgba(17, 22, 27, 0.98);
  }

  .nav-link {
    border-radius: 14px;
  }

  .theme-toggle-nav {
    width: 100%;
    margin-left: 0;
    border-radius: 14px;
  }

  .hero,
  .page-hero {
    padding-top: 4rem;
  }

  .panel-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header-button {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .panel-header-button-line + .panel-header-button-line {
    margin-left: 0;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
