/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --color-bg:         #1E2028;
  --color-bg-raised:  #25272F;
  --color-bg-subtle:  #2C2F3A;
  --color-text:       #F2F0ED;
  --color-text-muted: #8B8FA8;
  --color-accent:     #FF8C42;
  --color-accent-dim: rgba(255, 140, 66, 0.12);
  --color-border:     rgba(242, 240, 237, 0.08);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-card: 12px;
  --radius-btn:  8px;
  --radius-tag:  6px;

  --section-pad:       120px 0;
  --section-pad-mobile: 64px 0;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; cursor: pointer; background: none; color: inherit; }

/* ── Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(37, 39, 47, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.nav__logo-text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav__logo-text .dot-md {
  color: var(--color-text-muted);
  font-weight: 400;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__platforms {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav__platforms svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text-muted);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.02); }
.btn--primary {
  background: var(--color-accent);
  color: #1E2028;
}
.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3);
}
.btn--outline {
  border: 1.5px solid var(--color-text-muted);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-text);
}
.btn--disabled {
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: var(--section-pad);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
}
.hero__subtitle {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero__proof {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}
.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__phone {
  max-width: 340px;
  width: 100%;
  transform: rotate(-2deg);
  filter: drop-shadow(0 32px 64px rgba(255, 140, 66, 0.15));
  transition: transform 0.8s ease;
}
.hero__phone.straight {
  transform: rotate(0deg);
}

/* ── Features ──────────────────────────────────────────── */
.features {
  padding: var(--section-pad);
}
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 12px;
}
.section-heading p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-bg-raised);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
}
.feature-card:hover {
  border-top-color: var(--color-accent);
  transform: translateY(-2px);
}
.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dim);
  border-radius: var(--radius-tag);
  color: var(--color-accent);
  font-family: var(--font-mono);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Screenshots iPhone ────────────────────────────────── */
.screenshots-iphone {
  padding: var(--section-pad);
  background: var(--color-bg-subtle);
}
.screenshots-iphone__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.screenshot-item {
  text-align: center;
}
.screenshot-item img {
  width: 100%;
  border-radius: var(--radius-card);
}
.screenshot-item figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ── Screenshots iPad ──────────────────────────────────── */
.screenshots-ipad {
  padding: var(--section-pad);
}
.screenshots-ipad__portrait {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.screenshots-ipad__portrait img {
  width: 100%;
  border-radius: var(--radius-card);
}
.screenshots-ipad__landscape {
  text-align: center;
}
.screenshots-ipad__landscape img {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-card);
  filter: drop-shadow(0 32px 64px rgba(255, 140, 66, 0.15));
}

/* ── Platforms ──────────────────────────────────────────── */
.platforms {
  padding: var(--section-pad);
  background: var(--color-bg-raised);
}
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.platform-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.platform-card__icon {
  margin-bottom: 16px;
}
.platform-card__icon svg {
  width: 48px;
  height: 48px;
  fill: var(--color-text);
}
.platform-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.platform-card__status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.platform-card__status .live {
  color: #4ADE80;
}
.platform-card__status .soon {
  color: var(--color-accent);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo .nav__logo-icon {
  width: 28px;
  height: 28px;
}
.footer__logo .nav__logo-text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.1rem;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer__links a {
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}
.footer__links a:hover {
  color: var(--color-accent);
}
.footer__badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Store Badges ─────────────────────────────────────── */
.store-badge {
  display: inline-flex;
  align-items: center;
  height: 48px;
  transition: transform 0.2s, opacity 0.2s;
}
.store-badge:hover {
  transform: scale(1.04);
}
.store-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
/* Google Play badge has ~25% internal padding; compensate */
.store-badge--gplay {
  height: 70px;
  margin: -11px 0;
}
.store-badge--sm {
  height: 40px;
}
.store-badge--sm.store-badge--gplay {
  height: 58px;
  margin: -9px 0;
}
.store-badge--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-iphone__grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-ipad__portrait { grid-template-columns: repeat(3, 1fr); }
  .platforms__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
  }
  .hero { min-height: auto; padding: 80px 0 64px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; flex-direction: column; align-items: center; }
  .hero__proof { text-align: center; }
  .hero__image { order: 2; }
  .hero__phone { max-width: 260px; }
  .features__grid { grid-template-columns: 1fr; }
  .screenshots-iphone__grid {
    grid-template-columns: repeat(4, 200px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
  .screenshot-item { scroll-snap-align: start; }
  .screenshots-ipad__portrait {
    grid-template-columns: repeat(2, 220px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
  .platforms__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .btn { justify-content: center; }
  .nav__platforms { display: none; }
}
