:root {
  --pink:       #FF2D55;
  --pink-dim:   #E41E45;
  --bg:         #000000;
  --label1:     #FFFFFF;
  --label2:     rgba(255,255,255,0.55);
  --label3:     rgba(255,255,255,0.3);
  --sep:        rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: -apple-system, "Inter", sans-serif;
  color: var(--label1);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Global background glow */
#site-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% -14rem, rgba(255,45,85,0.12), transparent 32rem),
    radial-gradient(circle at 88% 40%, rgba(255,45,85,0.05), transparent 24rem),
    #000;
}

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 100;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}
.nav.scrolled {
  background: linear-gradient(160deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 20px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-family: "Inter", sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 9999px;
  background: var(--pink); color: #fff;
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,45,85,0.32);
  transition: opacity 180ms ease, transform 180ms ease;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh; padding: calc(68px + 60px) 0 80px;
  display: grid; align-items: center;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%;
  display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center;
}
h1 {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1.0; letter-spacing: -0.04em; color: #fff;
  margin-bottom: 22px;
}
h1 .accent { color: var(--pink); }
.hero-body { color: var(--label2); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; max-width: 500px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 18px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  opacity: 0.75;
  transform: translateX(-50%);
  transition: opacity 180ms ease, border-color 180ms ease, visibility 180ms ease;
}
.scroll-hint:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.55);
}
.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.68);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* ── Phone mockup ───────────────────────────────── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  min-height: 540px;
}

.phone-halo {
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,45,85,0.20) 0%,
    rgba(255,45,85,0.07) 42%,
    transparent 68%);
  filter: blur(36px);
  pointer-events: none; z-index: 0;
  animation: haloPulse 5s ease-in-out infinite;
}
@keyframes haloPulse {
  0%,100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.07); opacity: 1; }
}

.phone-wrap {
  position: absolute;
  animation: phoneFloat 5s ease-in-out infinite;
}
.phone-wrap-back {
  z-index: 1;
  transform: translate(-110px, 10px) rotate(-7deg);
  animation-name: phoneFloatBack;
  animation-delay: -2.5s;
}
.phone-wrap-front {
  z-index: 2;
  transform: translate(70px, -10px) rotate(5deg);
}
@keyframes phoneFloat {
  0%,100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
@keyframes phoneFloatBack {
  0%,100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.phone-img {
  width: 260px;
  display: block;
  user-select: none; pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

/* ── STATS ─────────────────────────────────────────── */
.stats-section { position: relative; z-index: 1; scroll-margin-top: 88px; padding: 0 0 80px; }
.stats-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--sep); gap: 1px; background: var(--sep);
}
.stat-block { padding: 28px; background: rgba(28,28,30,0.7); }
.stat-value {
  font-family: -apple-system, "Inter", sans-serif; font-size: clamp(2.4rem,4.5vw,3.8rem);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; color: #fff; margin-bottom: 12px;
}
.stat-value .accent { color: var(--pink); }
.stat-label { color: var(--label2); font-size: 14px; font-family: -apple-system, "Inter", sans-serif; max-width: 200px; }

/* ── SECTION TITLE ─────────────────────────────────── */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.section-eyebrow { color: var(--pink); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-family: "Inter", sans-serif; margin-bottom: 14px; }
.section-title { font-family: "Inter", sans-serif; font-weight: 700; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.0; letter-spacing: -0.038em; color: #fff; margin-bottom: 32px; }
.section-title .accent { color: var(--pink); }
.section-title.tight { margin-bottom: 0; }
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--label2); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}
.section-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ── TRACK COFFEES SECTION ────────────────────────── */
.track-section { padding: 60px 0 80px; }
.track-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.track-copy .section-title { margin-bottom: 18px; }
.track-body {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--label2);
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 480px;
}

.track-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 560px;
}
.track-halo {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,45,85,0.18) 0%,
    rgba(255,45,85,0.06) 45%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.track-phone {
  position: relative;
  z-index: 1;
  width: 320px;
  overflow: hidden;
}
.track-phone img {
  display: block;
  width: 100%; height: auto;
  border-radius: 31px;
}

@media (max-width: 880px) {
  .track-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .track-visual { min-height: 480px; order: 2; }
  .track-phone { width: 260px; }
  .track-halo { width: 360px; height: 360px; }
}
@media (max-width: 640px) {
  .track-section { padding: 40px 0 60px; }
  .track-list { gap: 18px; }
  .track-bullet { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
  .track-phone { width: clamp(220px, 60vw, 260px); }
  .track-halo { width: min(320px, 80vw); height: min(320px, 80vw); }
  .track-visual { min-height: clamp(380px, 80vw, 480px); }
}

/* ── COFFEE SHOPS HORIZONTAL STRIP ────────────────── */
.shops-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shops-strip::-webkit-scrollbar { display: none; }

/* Shop card */
.shop-card {
  flex-shrink: 0; width: 140px; height: 195px; border-radius: 18px; overflow: hidden;
  position: relative; cursor: pointer;
  background: linear-gradient(160deg, #7A1228 0%, #3D0A14 55%, #2A0810 100%);
  transition: transform 200ms ease;
}
.shop-card:hover { transform: translateY(-3px); }
.shop-card-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(255,45,85,0.2), transparent 65%); }
.shop-card-thumb {
  position: absolute; top: 0; left: 0; right: 0; bottom: 50px;
  display: flex; align-items: center; justify-content: center;
}
.shop-thumb-img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.shop-thumb-placeholder {
  width: 96px; height: 96px; border-radius: 14px;
  background: linear-gradient(145deg, var(--pink) 0%, var(--pink-dim) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-size: 26px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(255,45,85,0.35);
}
.shop-card-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 7px 8px 9px; text-align: center;
  background: rgba(12,3,7,0.9); backdrop-filter: blur(8px);
}
.shop-card-name { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card-location { font-family: "Inter", sans-serif; font-size: 11px; color: var(--label2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Loading skeleton */
.shop-card-skeleton { background: linear-gradient(90deg, #1C1C1E 25%, #2C2C2E 50%, #1C1C1E 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── APP STORE BUTTON ──────────────────────────────── */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 16px;
  background: #050505; color: #fff;
  border: 1px solid rgba(255,45,85,0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,45,85,0.08);
  text-decoration: none; cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 56px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,45,85,0.14); }
.appstore-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.appstore-btn small { display: block; font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; font-family: "Inter", sans-serif; margin-bottom: 2px; }
.appstore-btn strong { display: block; font-size: 18px; letter-spacing: -0.025em; font-family: "Inter", sans-serif; }

/* ── CTA SECTION ───────────────────────────────────── */
.cta-section { position: relative; z-index: 1; padding: 0 0 120px; }
.cta-panel {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.cta-inner {
  text-align: center; padding: clamp(40px, 7vw, 80px);
  border: 1px solid var(--sep); border-radius: clamp(28px, 4vw, 50px);
  background: radial-gradient(circle at 50% 110%, rgba(255,45,85,0.1), transparent 36%), rgba(28,28,30,0.7);
}
.cta-title { font-family: "Inter", sans-serif; font-weight: 700; font-size: clamp(2.6rem,6vw,5.5rem); line-height: 1.0; letter-spacing: -0.04em; color: #fff; margin-bottom: 18px; }
.cta-body { color: var(--label2); font-size: 16px; max-width: 440px; margin: 0 auto 32px; font-family: "Inter", sans-serif; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--sep); padding: 28px 24px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-logo { width: 26px; height: 26px; object-fit: contain; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-link { height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9999px; color: var(--label3); font-size: 14px; text-decoration: none; font-family: "Inter", sans-serif; transition: color 180ms ease, background 180ms ease; }
.footer-link:hover { color: var(--pink); background: rgba(255,45,85,0.07); }
.footer-copy { color: var(--label3); font-size: 13px; font-family: "Inter", sans-serif; }

/* ── RESPONSIVE ────────────────────────────────────── */

/* Tablet landscape / small desktop (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; grid-template-columns: 1fr 420px; }
  .phone-img { width: 230px; }
  .phone-wrap-back  { transform: translate(-95px, 8px) rotate(-7deg); }
  .phone-wrap-front { transform: translate(60px, -8px) rotate(5deg); }
}

/* Tablet portrait (≤ 880px) — stack hero, compress stats */
@media (max-width: 880px) {
  .hero {
    min-height: unset;
    padding: calc(68px + 48px) 0 64px;
  }
  .scroll-hint { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-body  { text-align: center; }
  .hero-actions { justify-content: center; }

  .hero-copy   { order: 1; }
  .hero-visual { order: 2; }
  .phone-img   { width: clamp(190px, 26vw, 250px); }
  .phone-halo  { width: min(340px, 60vw); height: min(340px, 60vw); }
  .hero-visual { min-height: clamp(380px, 60vw, 500px); }
  .phone-wrap-back  { transform: translate(clamp(-100px, -18vw, -70px), 8px) rotate(-7deg); }
  .phone-wrap-front { transform: translate(clamp(50px, 14vw, 80px), -8px) rotate(5deg); }

  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .stat-block:last-child { grid-column: span 2; }

  .section { padding: 60px 0; }
  .cta-section { padding: 0 0 80px; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  /* Nav — hide text links, shrink CTA */
  .nav-cta   { padding: 0 14px; font-size: 13px; height: 34px; }
  .brand-name { font-size: 1.05rem; }

  /* Hero */
  .hero { padding: calc(68px + 36px) 0 56px; }
  h1    { font-size: clamp(2.4rem, 13vw, 3.6rem); line-height: 1.02; }
  .hero-body { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .appstore-btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Phone mockup — KEY FIX: constrain to viewport width */
  .hero-visual { overflow: visible; min-height: clamp(320px, 70vw, 460px); }
  .phone-img  { width: clamp(160px, 38vw, 200px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }
  .phone-halo { width: min(320px, 80vw); height: min(320px, 80vw); }
  .phone-wrap-back  { transform: translate(-22vw, 8px) rotate(-6deg); }
  .phone-wrap-front { transform: translate(16vw, -6px) rotate(4deg); }

  /* Stats → single column */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-block:last-child { grid-column: span 1; }
  .stat-value { font-size: clamp(2rem, 10vw, 2.8rem); }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .section-inner { padding: 0 16px; }

  /* Shop cards — slightly narrower on small screens */
  .shop-card { width: 124px; height: 178px; }
  .shop-thumb-placeholder, .shop-thumb-img { width: 82px; height: 82px; }

  /* CTA */
  .cta-inner { padding: 36px 20px; }
  .cta-title  { font-size: clamp(2rem, 10vw, 3rem); }
  .cta-body   { font-size: 15px; }
  .cta-section { padding: 0 0 64px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 2px; }
}

/* Small mobile (≤ 390px) */
@media (max-width: 390px) {
  .nav-inner { padding: 0 16px; }
  h1 { font-size: clamp(2rem, 12vw, 2.8rem); }
  .phone-img  { width: clamp(140px, 42vw, 180px); }
  .phone-halo { width: min(260px, 70vw); height: min(260px, 70vw); }
  .stat-value  { font-size: 2rem; }
  .section-inner { padding: 0 14px; }
  .shop-card { width: 112px; height: 165px; }
  .shop-thumb-placeholder, .shop-thumb-img { width: 74px; height: 74px; font-size: 20px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .phone-wrap, .phone-halo, .scroll-hint span { animation: none !important; }
}

@media (max-width: 640px) {
  .nav-cta {
    padding: 0 12px;
    font-size: 12px;
    height: 32px;
    white-space: nowrap;
    width: auto;
  }
  .nav-cta svg { display: none; }
}
