:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #b9c8d6;
  --ice: #8dd9ff;
  --ice-strong: #39b7f4;
  --night: #07131f;
  --panel: rgba(14, 35, 52, 0.78);
  --line: rgba(176, 221, 245, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 10%, rgba(57, 183, 244, 0.21), transparent 32rem),
    linear-gradient(155deg, #0b2438 0%, var(--night) 56%, #040b12 100%);
  line-height: 1.6;
}

a { color: var(--ice); }
a:hover { color: #d9f3ff; }

.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 31, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 9px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 8vw, 6.6rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }

.lead { max-width: 680px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { border-color: transparent; color: #032237; background: var(--ice); }
.button.disabled { cursor: not-allowed; color: var(--muted); opacity: 0.72; }

.mountain-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(141, 217, 255, 0.18), rgba(10, 28, 43, 0.9));
  box-shadow: var(--shadow);
}

.hero-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mountain-card::before,
.mountain-card::after {
  position: absolute;
  content: "";
  width: 120%;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border-radius: 14%;
}
.mountain-card::before { left: 28%; top: 70%; background: rgba(217, 241, 251, 0.24); }
.mountain-card::after { left: -30%; top: 85%; background: rgba(79, 138, 170, 0.3); }
.weather-chip {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  right: 1.25rem;
  top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.1rem;
  background: rgba(4, 16, 26, 0.64);
  backdrop-filter: blur(12px);
}
.weather-chip strong { display: block; font-size: 2rem; }
.weather-chip span { color: var(--muted); }

.section { padding: 5rem 0; }
.section[id] { scroll-margin-top: 120px; }
.section-intro { max-width: 720px; color: var(--muted); }
.screenshot-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.screenshot-gallery figure { min-width: 0; margin: 0; padding: 0.65rem 0.65rem 0.9rem; border-radius: 1.15rem; background: rgba(17, 42, 60, 0.72); text-align: center; }
.screenshot-gallery img { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; border-radius: 0.8rem; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28); }
.screenshot-gallery figcaption { margin-top: 0.7rem; color: var(--ink); font-size: 0.9rem; font-weight: 650; line-height: 1.3; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid .card { padding: 1.15rem 1.25rem; }
.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--panel);
}
.card p { margin-bottom: 0; color: var(--muted); }
.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.guide-links a { display: flex; flex-direction: column; gap: 0.7rem; min-height: 180px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--panel); text-decoration: none; }
.guide-links a:hover, .guide-links a:focus-visible { border-color: var(--ice); background: rgba(22, 54, 76, 0.9); }
.guide-links strong { font-size: 1.2rem; line-height: 1.25; }
.guide-links span { color: var(--muted); }
.guide-links .guide-arrow { margin-top: auto; color: var(--ice); font-weight: 700; }
.guide { width: min(780px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0 6rem; }
.guide h1 { max-width: 760px; font-size: clamp(2.7rem, 6vw, 4.6rem); }
.guide .lead { max-width: 65ch; }
.guide h2 { margin: 3rem 0 0.75rem; font-size: clamp(1.65rem, 3vw, 2.1rem); }
.guide p, .guide li { max-width: 70ch; color: var(--muted); }
.guide li + li { margin-top: 0.5rem; }
.guide a { text-underline-offset: 0.18em; }
.guide-callout { margin: 2.5rem 0; padding: 1.5rem; border-radius: 1rem; background: rgba(22, 54, 76, 0.85); }
.guide-callout p { margin-bottom: 0; }
.guide .guide-meta { margin: 0 0 1rem; color: var(--ice); font-size: 0.9rem; }
.card-kicker { display: block; margin-bottom: 0.65rem; color: var(--ice); font-size: 0.75rem; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.highlight-card { background: linear-gradient(155deg, rgba(25, 61, 86, 0.92), var(--panel)); }
.status { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; color: var(--ice); background: rgba(57, 183, 244, 0.12); font-size: 0.82rem; }

.language-section,
.store-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.language-cloud { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.language-cloud span { padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.04); }

.source-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.source-list div { display: grid; grid-template-columns: minmax(145px, 0.35fr) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.source-list span { color: var(--muted); }

.store-section { margin-bottom: 5rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 2rem; background: var(--panel); box-shadow: var(--shadow); }
.store-logo { width: min(300px, 70vw); justify-self: center; border-radius: 24%; box-shadow: var(--shadow); }
.store-section .button { margin: 0.6rem 0.6rem 0 0; }

.legal { width: min(800px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0; }
.legal h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.legal h2 { margin-top: 2.5rem; font-size: 1.55rem; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { color: var(--ice); }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 760px) {
  .shell { width: min(100% - 1.25rem, 1120px); }

  .site-header { position: sticky; }

  .nav {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.65rem 0 0.55rem;
  }

  .brand { align-self: flex-start; font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0 0 0.15rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    scroll-snap-align: start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3rem 0;
  }

  h1 { font-size: clamp(2.75rem, 14vw, 4.25rem); }
  h2 { font-size: clamp(1.9rem, 10vw, 2.75rem); }
  .lead { font-size: 1rem; }
  .actions { margin-top: 1.4rem; }
  .mountain-card { min-height: 280px; border-radius: 1.5rem; }
  .weather-chip { left: 0.85rem; right: 0.85rem; top: 0.85rem; }
  .weather-chip strong { font-size: 1.65rem; }

  .section { padding: 3.25rem 0; }
  .screenshot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.4rem; }
  .guide-links { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.4rem; }
  .guide-links a { min-height: 0; padding: 1.25rem; }
  .guide { padding: 3rem 0 4rem; }
  .grid, .feature-grid, .language-section, .store-section { grid-template-columns: 1fr; }
  .grid { gap: 0.75rem; margin-top: 1.35rem; }
  .card { padding: 1.15rem; border-radius: 1.1rem; }
  .feature-grid .card { padding: 1rem 1.1rem; }
  .source-list { margin-top: 1.35rem; }
  .source-list div { grid-template-columns: 1fr; gap: 0.2rem; }
  .store-section { margin-bottom: 3rem; padding: 1.5rem; border-radius: 1.5rem; }
  .legal { padding: 3rem 0; }
  footer { padding-bottom: 2rem; }
}

@media (max-width: 480px) {
  .actions .button,
  .store-section .button {
    width: 100%;
    justify-content: center;
  }

  .store-section .button { margin-right: 0; }

  .footer-row,
  .footer-links {
    flex-direction: column;
    gap: 0.6rem;
  }
}

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