:root {
  --bg: #001119;
  --surface: #061e27;
  --surface-2: #092833;
  --text: #e8fff0;
  --muted: #9db6ad;
  --soft: #d2ffe0;
  --primary: #24f04e;
  --primary-strong: #8afb9e;
  --cyan: #34d5ff;
  --amber: #ffd166;
  --danger: #ff5876;
  --border: rgba(232, 255, 240, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 8%,
      rgba(36, 240, 78, 0.18),
      transparent 28rem),
    radial-gradient(circle at 12% 24%,
      rgba(52, 213, 255, 0.09),
      transparent 22rem),
    linear-gradient(180deg, #001119 0%, #001119 48%, #031820 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

a,
button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 240, 78, 0.9);
  outline-offset: 4px;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.glass {
  border: 1px solid var(--border);
  background: linear-gradient(145deg,
      rgba(9, 40, 51, 0.78),
      rgba(1, 17, 25, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.btn-primary {
  background: var(--primary);
  color: #001119;
  box-shadow:
    0 0 0 1px rgba(36, 240, 78, 0.22),
    0 18px 44px rgba(36, 240, 78, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(232, 255, 240, 0.2);
  color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary:hover {
  border-color: rgba(36, 240, 78, 0.55);
  background: rgba(36, 240, 78, 0.08);
}

.language-switcher {
  position: relative;
  z-index: 50;
}

.language-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(232, 255, 240, 0.16);
  border-radius: 999px;
  background: rgba(6, 30, 39, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0 14px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  border-color: rgba(36, 240, 78, 0.52);
  background: rgba(36, 240, 78, 0.1);
  color: var(--primary-strong);
}

.language-button[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}

.language-chevron {
  transition: transform 180ms ease;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 164px;
  border: 1px solid rgba(232, 255, 240, 0.14);
  border-radius: 8px;
  background: rgba(3, 24, 32, 0.98);
  box-shadow: var(--shadow);
  padding: 6px;
}

.language-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 12px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: rgba(36, 240, 78, 0.1);
  color: var(--primary-strong);
}

.language-menu a[aria-current="page"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(36, 240, 78, 0.35);
  border-radius: 999px;
  background: rgba(36, 240, 78, 0.08);
  color: var(--primary-strong);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.phone-frame {
  position: relative;
  width: min(320px, 86vw);
  aspect-ratio: 0.49;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(145deg, #0a3340, #010b0f);
  border: 1px solid rgba(36, 240, 78, 0.4);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.46),
    0 0 80px rgba(36, 240, 78, 0.16);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(36, 240, 78, 0.2), transparent 36%),
    linear-gradient(180deg, #051d26 0%, #001119 100%);
  border: 1px solid rgba(232, 255, 240, 0.1);
}

.progress-ring {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, #041a21 0 56%, transparent 57%),
    conic-gradient(var(--primary) 0 292deg,
      rgba(232, 255, 240, 0.1) 292deg 360deg);
  box-shadow:
    inset 0 0 34px rgba(36, 240, 78, 0.12),
    0 0 40px rgba(36, 240, 78, 0.13);
}

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

.metric-card {
  border: 1px solid rgba(232, 255, 240, 0.1);
  border-radius: 18px;
  background: rgba(232, 255, 240, 0.055);
  padding: 12px;
}

.chart-bar {
  width: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--primary), rgba(36, 240, 78, 0.18));
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 30, 39, 0.66);
  padding: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 240, 78, 0.42);
  background: rgba(9, 40, 51, 0.78);
}

.icon-box {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(36, 240, 78, 0.1);
  color: var(--primary);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 18px;
}

.download-card {
  display: flex;
  min-height: 312px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(232, 255, 240, 0.14);
  border-radius: 8px;
  background: rgba(0, 17, 25, 0.48);
  padding: 18px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 240, 78, 0.48);
  background: rgba(6, 30, 39, 0.78);
  box-shadow: 0 20px 48px rgba(36, 240, 78, 0.14);
}

.qr-frame {
  display: grid;
  width: min(176px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 17, 25, 0.08);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
}

.store-badge img {
  display: block;
  width: min(180px, 100%);
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

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

.legal-content p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 2rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
}

.legal-content h3 {
  margin-top: 1.35rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-content h4 {
  margin-top: 1.15rem;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.legal-content ul,
.legal-content ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.legal-content li+li {
  margin-top: 0.35rem;
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .language-button {
    min-width: 48px;
    padding-inline: 12px;
  }

  .language-button span,
  .language-button .language-chevron {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-card {
    min-height: 288px;
  }

  .qr-frame {
    width: min(168px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
