:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #596579;
  --line: #dce3ec;
  --accent: #2f8f9d;
  --accent-strong: #1d6170;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #171d24;
    --text: #f3f6fa;
    --muted: #aeb8c6;
    --line: #2b3542;
    --accent: #55bdc8;
    --accent-strong: #9ee3ea;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.hero,
.site-section {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  padding: 18px 0 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 58vh;
  padding: 48px 0 36px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.app-status {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 3.2rem;
  line-height: 0.95;
}

.lead {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgb(23 32 51 / 0.12);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.site-section {
  padding: 20px 0 56px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.35;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.app-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.app-card p:not(.app-status) {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 0 0 28px;
  color: var(--muted);
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
    padding-top: 64px;
  }

  h1 {
    font-size: 6rem;
  }
}

@media (max-width: 560px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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