:root {
  --bg: #080a20;
  --bg-card: #0c0e26;
  --bg-elevated: #161934;
  --border: #1c1f3c;
  --text: #ecf5fc;
  --muted: #9ea2b4;
  --primary: #ff5127;
  --primary-strong: #ef4625;
  --secondary: #ffce00;
  --danger: #ef4444;
  --radius: 16px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--secondary);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 42ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 32, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 30px;
  color: var(--primary);
  display: block;
}

.brand b {
  color: var(--primary);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 90px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(40% 55% at 22% 8%, rgba(255, 81, 39, 0.28), transparent 70%),
    radial-gradient(36% 50% at 85% 0%, rgba(255, 206, 0, 0.14), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero__sub {
  margin-top: 22px;
}

.hero__cta {
  margin-top: 34px;
}

.hero__note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.store-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

/* ---------- phone mockups ---------- */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  min-height: 540px;
}

.phone {
  position: relative;
  width: 230px;
  border-radius: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
  padding: 9px;
}

.phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1290 / 2796;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__screen img,
.shot__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone--back {
  transform: translateX(34px) rotate(5deg) scale(0.9);
  opacity: 0.92;
  z-index: 1;
}

.phone--front {
  transform: translateX(-34px) rotate(-4deg);
  z-index: 2;
}

.phone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 20px;
}

.phone__placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.5;
}

/* ---------- sections ---------- */
section {
  position: relative;
}

.section {
  padding: clamp(56px, 9vw, 100px) 0;
}

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head .lead {
  margin: 18px auto 0;
  max-width: 52ch;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 81, 39, 0.5);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 81, 39, 0.12);
  color: var(--primary);
  margin: 0 auto 18px;
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- showcase ---------- */
.showcase {
  background: linear-gradient(180deg, transparent, rgba(12, 14, 38, 0.6));
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.shot__frame {
  position: relative;
  aspect-ratio: 1290 / 2796;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot__caption {
  padding: 16px 18px;
}

.shot__caption strong {
  display: block;
}

.shot__caption span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- signup ---------- */
.signup {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(255, 81, 39, 0.16), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.signup h2 {
  margin-bottom: 14px;
}

.signup .lead {
  margin: 0 auto 32px;
}

.form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.form__row {
  display: flex;
  gap: 12px;
}

.form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  transition: border-color 0.15s ease;
}

.form input[type="email"]::placeholder {
  color: var(--muted);
}

.form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.consent input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form__submit {
  margin-top: 22px;
  width: 100%;
}

.form__msg {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  display: none;
}

.form__msg.is-visible {
  display: block;
}

.form__msg.is-success {
  background: rgba(255, 206, 0, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(255, 206, 0, 0.35);
}

.form__msg.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- legal pages ---------- */
.legal {
  padding: clamp(48px, 8vw, 90px) 0;
}

.legal__doc {
  max-width: 760px;
  margin: 0 auto;
}

.legal__doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.legal__doc h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}

.legal__doc p,
.legal__doc li {
  color: #cdd5e3;
  font-size: 1.05rem;
}

.legal__doc ul {
  padding-left: 22px;
}

.legal__doc li {
  margin-bottom: 8px;
}

.legal__doc a {
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .phones {
    min-height: 480px;
    margin-top: 10px;
  }

  .lead {
    max-width: none;
  }

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

  .showcase__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

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

  .form__row {
    flex-direction: column;
  }

  .form input[type="email"] {
    width: 100%;
  }

  .phone {
    width: 200px;
  }

  .phone--front {
    transform: translateX(-18px) rotate(-4deg);
  }

  .phone--back {
    transform: translateX(18px) rotate(5deg) scale(0.9);
  }

  .nav__cta-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
