:root {
  --bg: #07111f;
  --bg-soft: #0d1c30;
  --card: rgba(8, 22, 41, 0.78);
  --text: #f5f7fb;
  --muted: #9bb0c9;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #59e3b2;
  --accent-strong: #1bbf89;
  --accent-warm: #ffd166;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 227, 178, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(255, 209, 102, 0.16), transparent 22%),
    linear-gradient(135deg, #040913 0%, #07111f 45%, #102540 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 28px;
}

.brand,
.ghost-link,
.store-button {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 24px rgba(89, 227, 178, 0.8);
}

.ghost-link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 32px 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  max-width: 10ch;
}

.lead {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.store-button {
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.store-button span,
.store-button strong {
  display: block;
}

.store-button .store-label {
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.store-button strong {
  font-size: 1.02rem;
}

.store-button.apple {
  background: linear-gradient(135deg, #ffffff, #d9ebff);
  color: #05101f;
}

.store-button.google {
  background: linear-gradient(135deg, rgba(89, 227, 178, 0.18), rgba(15, 41, 70, 0.92));
  border-color: rgba(89, 227, 178, 0.25);
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.helper-text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.helper-text code {
  font-family: "Space Grotesk", monospace;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 390px);
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 620px;
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 209, 102, 0.22), transparent 28%),
    linear-gradient(180deg, #16314e 0%, #07111f 100%);
}

.screen-header {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(89, 227, 178, 0.14);
  border: 1px solid rgba(89, 227, 178, 0.26);
  color: var(--accent);
  font-size: 0.85rem;
}

.badge.muted {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.stat-panel {
  margin-top: 28px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.stat-panel p,
.stat-panel span {
  margin: 0;
}

.stat-panel p {
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-panel strong {
  display: block;
  margin: 10px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
}

.stat-panel span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-list p {
  margin: 0;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  flex-shrink: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 560px);
  padding: 32px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.auth-card p {
  color: var(--muted);
  line-height: 1.7;
}

.status-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(89, 227, 178, 0.12);
  color: var(--accent);
  border: 1px solid rgba(89, 227, 178, 0.18);
}

.cookie-banner {
  background: rgba(7, 17, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: min(380px, calc(100vw - 24px));
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
}

.cookie-copy {
  max-width: 100%;
}

.cookie-copy strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.cookie-copy p,
.cookie-option small {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
}

.cookie-button.primary {
  background: linear-gradient(135deg, var(--accent), #8df3d0);
  color: #05101f;
  font-weight: 700;
}

.cookie-button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(17, 191, 137, 0.96);
  color: #041019;
  box-shadow: var(--shadow);
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-content: flex-start;
  }

  .cookie-banner {
    right: 16px;
    width: min(360px, calc(100vw - 32px));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  h1 {
    max-width: 12ch;
  }

  .store-button {
    width: 100%;
  }

  .phone-screen {
    min-height: 540px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .cookie-button {
    width: 100%;
  }

  .cookie-toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }
}
