:root {
  --accent: #159fe0;
  --accent-soft: rgba(21, 159, 224, 0.12);
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --surface: #ffffff;
  --border: rgba(15, 40, 60, 0.12);
  --text: #0f2233;
  --text-dim: #566b7d;
  --radius: 16px;
  --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #42b8f3;
    --accent-soft: rgba(66, 184, 243, 0.14);
    --bg: #0a1320;
    --bg-alt: #0e1a2a;
    --surface: #101e30;
    --border: rgba(140, 180, 215, 0.16);
    --text: #eaf2f9;
    --text-dim: #9fb3c6;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .site-header nav { display: none; }
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-soft), transparent 70%);
}

.hero img.app-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(10, 40, 70, 0.22);
  display: block;
  margin: 0 auto 26px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero p.lead {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-dim);
}

/* Store buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  min-width: 208px;
  border-radius: 12px;
  background: #101820;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 30, 50, 0.28);
}

.store-btn svg { flex: none; }

.store-btn .label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-btn .label small {
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.store-btn .label strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-btn.pending {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}

.store-btn.pending:hover {
  transform: none;
  box-shadow: none;
}

.store-btn.pending svg { opacity: 0.55; }

.store-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* Sections */

section { padding: 64px 0; }

section.alt { background: var(--bg-alt); }

section h2 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3.6vw, 33px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

section > .wrap > p.sub {
  margin: 0 0 34px;
  color: var(--text-dim);
  max-width: 620px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* Spec list */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs div {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.specs dt {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.specs dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Legal / text pages */

.page {
  padding: 56px 0 72px;
}

.page h1 {
  font-size: clamp(29px, 4.5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.page .updated {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 36px;
}

.page h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}

.page p, .page li {
  color: var(--text-dim);
  max-width: 720px;
}

.page li { margin-bottom: 6px; }

.page strong { color: var(--text); }

.page code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--text);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  font-size: 14px;
  color: var(--text-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }
