/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #080a0a;
  --surface: #111313;
  --border:  #1e2020;
  --blue:    #1E40AF;
  --blue-lt: #3B60CF;
  --neon:    #D9FF00;
  --text:    #e2e2e2;
  --muted:   #6b7a7a;
  --radius:  12px;
}

html, body {
  width: 100%; min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.page-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 8px;
}
.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #60A5FA 0%, #1E40AF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  max-width: 480px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 40px;
  gap: 0;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #60A5FA;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60A5FA 0%, #1E40AF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 300px;
  margin-bottom: 32px;
}

/* ── App icon mockup ─────────────────────────────────────────────────────── */
.app-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 32px;
}
.app-icon {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue) 0%, #0F2680 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  box-shadow: 0 0 40px rgba(30,64,175,.5);
}
.app-icon-glow {
  position: absolute;
  inset: -12px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(30,64,175,.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 18px 28px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 30px rgba(30,64,175,.45);
  transition: box-shadow .2s, transform .1s, background .2s;
}
.cta-btn:hover  { background: var(--blue-lt); box-shadow: 0 0 50px rgba(30,64,175,.65); }
.cta-btn:active { transform: scale(.97); }
.cta-btn:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
}
.cta-btn:disabled { opacity: .5; cursor: default; }

/* ── Info strip under CTA ────────────────────────────────────────────────── */
.info-strip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-strip svg { flex-shrink: 0; }

/* ── Fallback / status messages ──────────────────────────────────────────── */
.android-fallback,
.ios-non-safari,
.install-success {
  margin-top: 16px;
  width: 100%;
  max-width: 320px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.install-success {
  border-color: rgba(30,64,175,.4);
  color: var(--neon);
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--border);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.copy-link-btn:hover { background: #2a2c2c; }
.copy-link-btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* ── Features list ───────────────────────────────────────────────────────── */
.features {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 48px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30,64,175,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.feature-text strong { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.feature-text span   { font-size: 12px; color: var(--muted); }

/* ── iOS overlay ─────────────────────────────────────────────────────────── */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}

.ios-overlay-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 40px;
  position: relative;
}

.ios-overlay-sheet .drag-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.ios-overlay-sheet h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-align: center;
}

.ios-overlay-sheet .sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.share-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: rgba(30,64,175,.1);
  border: 1px solid rgba(30,64,175,.3);
  border-radius: 10px;
}
.share-arrow { font-size: 18px; display: block; text-align: center; margin-bottom: 4px; }

.ios-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.ios-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.step-text span   { font-size: 12px; color: var(--muted); }

.ios-overlay-dismiss {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.ios-overlay-dismiss:hover { background: var(--blue-lt); }
.ios-overlay-dismiss:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

/* Share icon SVG representation */
.share-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.share-icon-svg {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── In-app browser overlay ──────────────────────────────────────────────── */
.inapp-overlay-full {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}
.inapp-overlay-full .warning-icon {
  font-size: 56px;
  margin-bottom: 20px;
}
.inapp-overlay-full h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.inapp-overlay-full .inapp-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.inapp-overlay-full .inapp-instruction {
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 320px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 16px 0 24px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero { padding-top: 48px; }
  .overlay-backdrop { align-items: center; padding: 24px; }
  .ios-overlay-sheet { border-radius: 20px; max-width: 420px; }
}
