/* ZapWell landing page. No external resources, no build step. */

:root {
  color-scheme: dark;
  --bg: #0b141a;
  --bg-deep: #081116;
  --panel: #111b21;
  --panel-soft: #0e191f;
  --border: rgba(233, 237, 239, 0.09);
  --border-strong: rgba(233, 237, 239, 0.16);
  --text: #e9edef;
  --text-soft: #cfd8dc;
  --muted: #8696a0;
  --accent: #00a884;
  --accent-bright: #25d366;
  --accent-deep: #005c4b;
  --accent-ink: #04140f;
  --accent-soft: rgba(0, 168, 132, 0.12);
  --focus: #7ee6c8;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --shadow-window: 0 32px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 168, 132, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2b3b43 transparent;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(80rem 46rem at 78% -12%, rgba(0, 168, 132, 0.17), transparent 62%),
    radial-gradient(52rem 34rem at -6% 18%, rgba(0, 92, 75, 0.12), transparent 70%),
    linear-gradient(180deg, #0b141a 0%, #0a1217 46%, #0b141a 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

img,
video {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

:where(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 168, 132, 0.32);
  color: #ffffff;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 26, 0.78);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(11, 20, 26, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
}

.site-header.is-scrolled {
  background: rgba(10, 18, 23, 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 5px 10px rgba(0, 168, 132, 0.24));
}

.brand-name {
  transform: translateY(-0.5px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.header-download:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.github-link:hover {
  border-color: rgba(233, 237, 239, 0.2);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.github-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.lang-option {
  min-width: 40px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.lang-option + .lang-option {
  border-left: 1px solid var(--border);
}

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

.lang-option[aria-pressed="true"] {
  background: var(--accent-deep);
  color: #eafff8;
}

.lang-option:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

/* Hero */

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(44px, 6.5vw, 80px) 0 clamp(24px, 4vw, 40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(0, 168, 132, 0.26);
  border-radius: 999px;
  background: rgba(0, 168, 132, 0.07);
  color: #b5ded6;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.12);
  flex: none;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 168, 132, 0.02);
  }
}

h1 {
  max-width: 11ch;
  margin-top: 22px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn svg.icon-brand {
  fill: currentColor;
  stroke: none;
}

.btn-primary {
  background: linear-gradient(180deg, #06b995 0%, var(--accent) 100%);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px -12px rgba(0, 168, 132, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #16c9a3 0%, #01b18c 100%);
  box-shadow: 0 16px 36px -14px rgba(0, 168, 132, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: rgba(17, 27, 33, 0.7);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  border-color: rgba(233, 237, 239, 0.26);
  background: rgba(23, 35, 42, 0.9);
  transform: translateY(-1px);
}

.platform-note {
  margin-top: 16px;
  color: #778993;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -5% -12% 3%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 168, 132, 0.22), rgba(0, 92, 75, 0.08) 46%, transparent 72%);
  filter: blur(36px);
  pointer-events: none;
}

.app-window {
  overflow: hidden;
  border: 1px solid rgba(233, 237, 239, 0.12);
  border-radius: 18px;
  background: var(--panel-soft);
  box-shadow: var(--shadow-window);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 42px;
  flex: none;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4b53;
}

.window-dot-red {
  background: #e16b62;
}

.window-dot-yellow {
  background: #d9a441;
}

.window-dot-green {
  background: #4b9c64;
}

.window-title {
  flex: 1;
  color: #97a6ae;
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.window-spacer {
  width: 42px;
  flex: none;
}

.hero-video {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 864;
  object-fit: contain;
  background: #071014;
}

.hero-video p {
  padding: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(38px, 5vw, 60px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    rgba(10, 18, 23, 0.5);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 18px 22px;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: var(--border);
}

.stat-value {
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Sections */

.section {
  position: relative;
  padding: clamp(68px, 9vw, 112px) 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(34px, 4.5vw, 48px);
}

.section-head-wide {
  max-width: 840px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

h2 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(1.95rem, 3.7vw, 3rem);
  font-weight: 680;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 168, 132, 0.035), transparent 52%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.007)),
    rgba(13, 23, 29, 0.72);
  box-shadow: var(--shadow-card);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: rgba(0, 168, 132, 0.3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 168, 132, 0.22);
  border-radius: 12px;
  background: rgba(0, 168, 132, 0.08);
  color: #59d9bb;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.feature-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

/* Screens */

.section-screens {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(60rem 28rem at 50% -5%, rgba(0, 168, 132, 0.065), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 42%),
    rgba(8, 16, 21, 0.45);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.screen {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(13, 23, 29, 0.8);
  box-shadow: var(--shadow-card);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.screen:hover {
  border-color: rgba(233, 237, 239, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.screen-media {
  overflow: hidden;
  border: 1px solid rgba(233, 237, 239, 0.07);
  border-radius: 11px;
  background: #071014;
}

.screen img {
  width: 100%;
  height: auto;
}

.screen figcaption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 8px 9px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.screen figcaption > span[aria-hidden] {
  width: 5px;
  height: 5px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.privacy-copy {
  max-width: 590px;
}

.privacy-copy h2 {
  max-width: 13ch;
}

.privacy-copy > p {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--muted);
}

.privacy-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(0, 168, 132, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(85% 70% at 100% 0%, rgba(0, 168, 132, 0.12), transparent 64%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(13, 23, 29, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.privacy-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 168, 132, 0.26);
  border-radius: 12px;
  background: rgba(0, 168, 132, 0.1);
  color: #67dcc0;
  flex: none;
}

.privacy-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-card h3 {
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.privacy-list {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.privacy-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(0, 168, 132, 0.28);
  border-radius: 50%;
  background: rgba(0, 168, 132, 0.11);
  color: #62ddbd;
  flex: none;
}

.check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-list li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-list strong {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
}

.privacy-list li > span:last-child > span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 18px;
  color: #6fe2c5;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(111, 226, 197, 0.36);
  text-underline-offset: 0.24em;
}

.text-link:hover {
  color: #a1f3de;
  text-decoration-color: currentColor;
}

.text-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* Download */

.section-download {
  padding-top: clamp(58px, 7vw, 88px);
}

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

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(0, 168, 132, 0.045), transparent 56%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.008)),
    rgba(13, 23, 29, 0.76);
  box-shadow: var(--shadow-card);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.platform-card:hover,
.platform-card:focus-within {
  border-color: rgba(0, 168, 132, 0.32);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.platform-card.is-detected {
  border-color: rgba(0, 168, 132, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 168, 132, 0.12), 0 18px 46px -18px rgba(0, 168, 132, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(233, 237, 239, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.platform-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-card h3 {
  margin-top: 18px;
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.platform-formats {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.platform-detail {
  margin-top: 5px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: #6fe2c5;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.platform-link:hover {
  color: #a1f3de;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.platform-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}

.platform-link:hover svg {
  transform: translateX(3px);
}

.detected-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: none;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(0, 168, 132, 0.28);
  border-radius: 999px;
  background: rgba(0, 92, 75, 0.45);
  color: #a8f0de;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.detected-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.platform-card.is-detected .detected-badge {
  display: inline-flex;
}

.download-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 840px;
  margin-top: 22px;
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.download-note-icon {
  color: #69ddc0;
  flex: none;
  margin-top: 1px;
}

.download-note-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* Footer */

.site-footer {
  padding: clamp(48px, 6vw, 68px) 0 28px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(50rem 22rem at 50% 0%, rgba(0, 168, 132, 0.045), transparent 68%),
    rgba(7, 14, 18, 0.36);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 0.72fr));
  gap: clamp(32px, 5vw, 56px);
}

.footer-brand {
  min-width: 0;
}

.footer-brand > p {
  max-width: 31ch;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-col h2 {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col ul {
  margin-top: 9px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 40px;
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: #7b8c95;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-credit {
  white-space: nowrap;
  flex: none;
}

.footer-credit a {
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(233, 237, 239, 0.24);
  text-underline-offset: 0.2em;
}

.footer-credit a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.footer-disclaimer {
  max-width: 72ch;
}

/* Reveal, only enabled by app.js for elements below the fold. */

[data-reveal] {
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(16px);
}

/* Not found */

.not-found {
  display: grid;
  place-items: center;
  min-height: clamp(420px, 62vh, 620px);
  padding: clamp(56px, 9vw, 96px) 0;
  text-align: center;
}

.not-found-inner {
  max-width: 620px;
}

.not-found .eyebrow {
  margin-bottom: 20px;
}

.not-found h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
}

.not-found p {
  max-width: 46ch;
  margin: 18px auto 28px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-self: center;
    max-width: 680px;
  }

  .screens-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .privacy-copy,
  .privacy-copy h2,
  .privacy-copy > p {
    max-width: 680px;
  }

  .privacy-card {
    max-width: 680px;
    margin-inline: auto;
  }

  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 700px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd)::before {
    display: none;
  }

  .stat:nth-child(even)::before {
    display: block;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 639px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .github-link {
    width: 44px;
    padding: 0;
  }

  .github-text {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .btn {
    min-height: 48px;
    padding: 0 17px;
  }

  .app-window {
    border-radius: 15px;
  }

  .window-bar {
    height: 34px;
  }

  .stat {
    padding: 15px 16px;
  }

  .stat-value {
    font-size: 1.12rem;
  }

  .platform-card,
  .privacy-card {
    padding: 20px;
  }

  .detected-badge {
    top: 20px;
    right: 20px;
  }

  .download-note {
    padding: 13px 14px;
  }
}

@media (max-width: 440px) {
  h1 {
    max-width: 12ch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    gap: 12px;
  }

  .footer-credit {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    gap: 8px;
  }

  .header-download {
    padding: 0 8px;
  }

  .brand {
    gap: 7px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .lang-option {
    min-width: 36px;
    padding: 0 6px;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .stat {
    padding: 14px 13px;
  }

  .platform-card,
  .privacy-card {
    padding: 18px;
  }

  .detected-badge {
    top: 18px;
    right: 18px;
  }
}

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

  .eyebrow-dot {
    animation: none;
  }

  [data-reveal],
  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .text-link svg,
  .platform-link svg,
  .skip-link {
    transition: none;
  }
}
