:root {
  --bg: #0d0e0f;
  --bg-2: #141618;
  --text: #ece9e3;
  --muted: #9b968d;
  --accent: #f5f0e8;      /* beige */
  --accent-ink: #15120c;  /* dark text on beige */
  --line: rgba(245, 240, 232, 0.12);
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: inherit; }

/* ── Top bar ── */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding: 16px clamp(16px, 5vw, 28px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: var(--accent);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.brand img { display: block; border-radius: 6px; }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-2);
}
.hero img {
  display: block;
  width: 100%;
  height: auto;        /* mobile: show the whole bird + tail */
}
/* Bottom scrim so the tagline stays legible over the photo */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(13, 14, 15, 0.45) 0%, rgba(13, 14, 15, 0) 22%),
    linear-gradient(to top, var(--bg) 2%, rgba(13, 14, 15, 0.65) 22%, rgba(13, 14, 15, 0) 52%);
}
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 5vw, 44px);
  z-index: 2;
  padding: 0 clamp(18px, 5vw, 28px);
  text-align: center;
}
.hero__title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 8.6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero__credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: rgba(236, 233, 227, 0.62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ── Content ── */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8px, 4vw, 24px) clamp(20px, 6vw, 28px) 0;
}
.pitch {
  margin: 0 auto;
  font-size: clamp(1.08rem, 4.2vw, 1.3rem);
  color: #d8d4cc;
  text-align: center;
  max-width: 36ch;
}
.pitch strong { color: var(--text); font-weight: 650; }

/* ── Actions ── */
.actions {
  display: grid;
  gap: 14px;
  margin: clamp(28px, 7vw, 40px) auto 0;
  max-width: 420px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.action__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Primary button (browser app) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 640;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(245, 240, 232, 0.12);
}
.btn--primary:hover { transform: translateY(-1px); background: #fffaf2; }
.btn--primary:active { transform: translateY(0); }
.btn__arrow { transition: transform 0.15s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(3px); }

/* App Store badge (placeholder / live link share these styles) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.badge:not(.badge--soon):hover { transform: translateY(-1px); border-color: rgba(245, 240, 232, 0.3); }
.badge--soon { color: var(--muted); cursor: default; }
.badge__logo { width: 22px; height: 22px; flex: none; }
.badge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge__text small { font-size: 0.66rem; letter-spacing: 0.02em; }
.badge__text strong { font-size: 1.12rem; font-weight: 600; }

/* ── Footer ── */
.footer {
  max-width: var(--maxw);
  margin: clamp(40px, 10vw, 72px) auto 0;
  padding: 22px clamp(20px, 6vw, 28px) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer p { margin: 4px 0; }
.footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.footer a:hover { border-color: var(--accent); }

/* ── Desktop: wide hero band, framed on the bird's head & body ── */
@media (min-width: 768px) {
  .hero { height: min(80vh, 760px); }
  .hero img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
  }
  .hero__content { bottom: clamp(28px, 4vw, 52px); }
  .content { padding-top: clamp(28px, 4vw, 44px); }
  .actions {
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
    align-items: start;
  }
}

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