:root {
  --bg: #0a0a0f;
  --bg-raised: #121218;
  --text: #f5f1e8;
  --text-dim: #a8a6a0;
  --accent-start: #ff000b;
  --accent-end: #700007;
  --border: rgba(245, 241, 232, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 0, 11, 0.22), transparent 65%);
  filter: blur(40px);
  animation: glow-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-content {
  position: relative;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
  border-radius: 22.5%;
  box-shadow:
    0 20px 50px -14px rgba(255, 0, 11, 0.55),
    0 0 0 1px rgba(245, 241, 232, 0.08);
}

.kicker {
  margin: 0 0 20px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wordmark {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark-underline {
  width: 140px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-start) 0, var(--accent-start) 10px,
    transparent 10px, transparent 16px
  );
}

.tagline {
  max-width: 560px;
  margin: 32px auto 0;
  font-size: 1.25rem;
  color: var(--text-dim);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}

.app-store-badge .apple-logo {
  width: 26px;
  height: 26px;
  fill: var(--text);
  flex-shrink: 0;
}

.app-store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.app-store-badge-small {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.app-store-badge-large {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.coming-soon-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.coming-soon-caption .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 0 10px rgba(255, 0, 11, 0.7);
}

.scroll-cue {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 72px auto 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--accent-start);
  box-shadow: 0 0 24px rgba(255, 0, 11, 0.25);
  animation: bob 2s ease-in-out infinite;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-cue:hover {
  border-color: var(--accent-start);
  box-shadow: 0 0 32px rgba(255, 0, 11, 0.45);
  transform: translateY(4px);
}

.scroll-cue svg {
  width: 26px;
  height: 26px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ---------- Features ---------- */

.features {
  padding: 40px 0 120px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.feature:first-child {
  border-top: none;
}

.feature-reverse .feature-text {
  order: 2;
}

.feature-reverse .feature-shot {
  order: 1;
}

.feature-index {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-start);
  margin-bottom: 16px;
}

.feature-text h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.feature-text p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 440px;
}

.feature-shot {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 240px;
  aspect-ratio: 1179 / 2556;
  background: #000;
  border: 10px solid #1c1c22;
  border-radius: 2.75rem;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 241, 232, 0.06);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.phone-frame:hover {
  transform: translateY(-6px);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .scroll-cue {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-content {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-content a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

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

.attribution {
  margin: 20px 0;
  line-height: 1.6;
}

.copyright {
  margin: 0;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .feature,
  .feature-reverse .feature-text,
  .feature-reverse .feature-shot {
    order: initial;
  }

  .feature {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 64px 0;
  }

  .feature-text p {
    margin-left: auto;
    margin-right: auto;
  }
}
