:root {
  --river-abyss: #040a12;
  --river-deep: #071018;
  --river-mid: #0c1e38;
  --river-surface: #143252;
  --foam: #6eb0e8;
  --foam-bright: #9acbfa;
  --moon: #e8f2fc;
  --text: #e6eef8;
  --text-muted: #9aafc9;
  --border: rgba(110, 176, 232, 0.16);
  --accent: #5a9fe0;
  --accent-strong: #3a7fc4;
  --glow: rgba(90, 159, 224, 0.38);
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.35rem + 2vw, 2.5rem);
  --step-5: clamp(2.25rem, 1.5rem + 3.75vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

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

  .river-backdrop__flow,
  .hero-ripple {
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--river-abyss);
  position: relative;
}

.river-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.river-backdrop__depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 72% at 50% 100%, rgba(20, 50, 82, 0.55), transparent 56%),
    radial-gradient(ellipse 82% 52% at 14% 18%, rgba(6, 16, 28, 0.58), transparent 46%),
    radial-gradient(ellipse 58% 42% at 86% 28%, rgba(58, 127, 196, 0.14), transparent 52%),
    linear-gradient(180deg, var(--river-abyss) 0%, var(--river-deep) 48%, var(--river-mid) 100%);
}

.river-backdrop__flow {
  position: absolute;
  inset: -20% -30%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(90, 159, 224, 0.05) 24%,
    transparent 50%,
    rgba(120, 185, 235, 0.055) 74%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: river-drift 28s ease-in-out infinite;
  opacity: 0.88;
}

.river-backdrop__surface {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  background: linear-gradient(
    180deg,
    rgba(58, 127, 196, 0.09) 0%,
    rgba(90, 159, 224, 0.035) 38%,
    transparent 100%
  );
}

@keyframes river-drift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent-strong);
  color: #050a14;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--foam-bright);
  outline-offset: 2px;
}

a {
  color: var(--foam);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--foam-bright);
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--river-deep) 82%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: nowrap;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.logo-text {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--river-surface) 45%, transparent);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--foam-bright);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background: var(--text);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle__bar {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step--1);
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--river-surface) 55%, transparent);
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--foam-bright) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--river-deep) 96%, black);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav a:hover {
    background: color-mix(in srgb, var(--river-surface) 40%, transparent);
  }

  .nav-cta {
    margin-top: 0.35rem;
    text-align: center;
    justify-content: center;
  }
}

.hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(440px, 58vw);
  height: min(440px, 58vw);
  pointer-events: none;
  opacity: 0.72;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 22%, transparent));
}

@media (max-width: 768px) {
  .hero-visual {
    right: -20%;
    opacity: 0.5;
  }
}

.hero-ripple {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--foam-bright) 58%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 20px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: ripple-expand 9s ease-out infinite;
}

.hero-ripple--1 {
  width: 40%;
  height: 40%;
  animation-delay: 0s;
}

.hero-ripple--2 {
  width: 40%;
  height: 40%;
  animation-delay: 3s;
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--foam-bright) 28%, transparent),
    0 0 24px color-mix(in srgb, var(--foam) 32%, transparent);
}

.hero-ripple--3 {
  width: 40%;
  height: 40%;
  animation-delay: 6s;
  border-color: color-mix(in srgb, var(--foam) 45%, transparent);
}

@keyframes ripple-expand {
  0% {
    width: 18%;
    height: 18%;
    opacity: 0.92;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: var(--step-5);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}

.lead {
  margin: 0 0 2rem;
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-paths {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero-paths a {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--foam-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent-strong), #1a5088);
  color: var(--moon);
  box-shadow: 0 14px 40px rgba(58, 127, 196, 0.34);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(58, 127, 196, 0.44);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--foam-bright);
}

.btn-secondary {
  background: color-mix(in srgb, var(--river-surface) 50%, transparent);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--foam-bright);
}

.btn-block {
  width: 100%;
}

.hero-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero-meta li {
  padding-left: 1.25rem;
  position: relative;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.wave-seam {
  position: relative;
  z-index: 1;
  line-height: 0;
  color: color-mix(in srgb, var(--river-mid) 82%, var(--accent-strong) 18%);
}

.wave-seam--top {
  margin-top: -1px;
}

.wave-seam--bottom {
  margin-bottom: -1px;
}

.wave-seam__svg {
  display: block;
  width: 100%;
  height: clamp(56px, 10vw, 100px);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  z-index: 1;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: var(--step-3);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.follow-intro {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}

.follow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.follow-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  color: var(--moon);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-strong) 28%, transparent), color-mix(in srgb, var(--river-surface) 35%, transparent));
  box-shadow: 0 6px 24px rgba(5, 18, 36, 0.5);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.follow-chip:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--foam-bright) 42%, var(--border));
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(58, 127, 196, 0.28);
}

.follow-chip:focus-visible {
  outline: 2px solid var(--foam-bright);
  outline-offset: 3px;
}

.features {
  background: linear-gradient(180deg, var(--river-mid) 0%, var(--river-deep) 100%);
  border-block: 1px solid var(--border);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foam) 8%, transparent);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--river-deep) 88%, var(--river-surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.feature-card .feature-fact {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--foam) 15%, transparent);
  position: relative;
  overflow: hidden;
}

.feature-icon--wave::after {
  content: "";
  position: absolute;
  inset: 30% 10% 35%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border: 2px solid var(--accent);
  border-bottom: none;
  opacity: 0.85;
}

.feature-icon--rings::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.7;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}

.feature-icon--current::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 45%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--foam), transparent);
  box-shadow: 0 0 14px var(--glow);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.inline-code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.apk-meta {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.apk-meta__size {
  color: color-mix(in srgb, var(--foam) 75%, var(--text-muted));
}

.download {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.download-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.download-card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--river-deep) 75%, transparent);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  backdrop-filter: blur(8px);
}

.download-card--highlight {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    0 20px 50px rgba(0, 0, 0, 0.25);
}

.download-card--muted {
  opacity: 0.97;
}

.download-card__head {
  margin-bottom: 0.65rem;
}

.download-card__head h3 {
  margin: 0;
  font-size: var(--step-1);
}

.download-card__body {
  flex: 1 1 auto;
  margin-bottom: 1.25rem;
}

.download-card__body > p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.download-card__body > p + p {
  margin-top: 0.75rem;
}

.download-card__body .fineprint {
  margin-top: 0.85rem;
}

.download-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.download-card__cta {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
}

.download-card__cta .btn-download {
  width: 100%;
}

.download-card__cta .store-soon {
  width: 100%;
  justify-content: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.25;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.btn-download:focus-visible {
  outline: 2px solid var(--foam-bright);
  outline-offset: 3px;
}

.btn-download--primary {
  background: linear-gradient(145deg, var(--accent-strong), #1a5088);
  color: var(--moon);
  box-shadow: 0 10px 28px rgba(58, 127, 196, 0.3);
}

.btn-download--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(58, 127, 196, 0.4);
}

.btn-download--secondary {
  background: color-mix(in srgb, var(--river-surface) 55%, transparent);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foam) 6%, transparent);
}

.btn-download--secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--foam-bright);
  transform: translateY(-1px);
}

.btn-download--unavailable {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  transform: none !important;
}

.fineprint {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  opacity: 0.9;
}

.store-soon {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.badge {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.badge-soon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.download-card__cta .badge-soon {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: color-mix(in srgb, var(--river-abyss) 92%, var(--river-deep));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-links a {
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--foam-bright);
}

.footer-brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: var(--step-1);
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border);
}

.footer-copy {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}
