@font-face {
  font-family: 'PolySans';
  src: url('fonts/PolySans-Neutral.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PolySans';
  src: url('fonts/PolySans-Median.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg:          #160d0b;
  --bg-mid:      #2E1714;
  --bg-raised:   #3A1E1A;
  --text:        #FFDCCC;
  --text-muted:  #8A5E58;
  --accent:      #FB591B;
  --accent-soft: #F2A58E;
  --radius-lg:   28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'PolySans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────── NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

.nav.scrolled {
  background: rgba(22, 13, 11, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(255,255,255,0.05);
}

.nav-logo img { height: 26px; width: auto; display: block; }

.nav-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(251,89,27,0.1);
  border: 1.5px solid rgba(251,89,27,0.35);
  border-radius: 100px;
  padding: 7px 16px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-pill:hover {
  background: rgba(251,89,27,0.18);
  border-color: rgba(251,89,27,0.55);
}

/* ─────────────────────────────────────────────────────── HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 48px 80px;
  gap: 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 110%;
  top: -5%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.38) saturate(0.7);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(22,13,11,0.97) 35%, rgba(22,13,11,0.45) 75%, rgba(22,13,11,0.1) 100%),
    linear-gradient(to top, rgba(22,13,11,1) 0%, transparent 45%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.hero h1 {
  font-size: clamp(50px, 6.5vw, 92px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.038em;
  color: #fff;
  margin-bottom: 26px;
}

.hero h1 .line-accent {
  display: block;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--accent-soft);
  max-width: 420px;
  margin-bottom: 44px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.25s, opacity 0.25s;
}
.app-store-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.app-store-badge img { height: 50px; width: auto; display: block; }

.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-wrap {
  position: relative;
}

.hero-phone-wrap::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, rgba(251,89,27,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

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

.hero-phone-wrap img {
  display: block;
  width: 100%;
  max-width: 310px;
  filter: drop-shadow(0 48px 96px rgba(0,0,0,0.65));
  transform: rotate(-7deg);
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: rotate(-7deg) translateY(0px); }
  50%       { transform: rotate(-7deg) translateY(-22px); }
}

/* ─────────────────────────────────────────────────── MARQUEE */
.marquee-wrap {
  overflow: hidden;
  background: var(--bg-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 20px;
  color: var(--text-muted);
}

.marquee-item.dot { color: var(--accent); padding: 0 4px; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────── FEATURES */
.features { padding: 80px 0 40px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow per section */
.feature::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(140px);
  opacity: 0.06;
  pointer-events: none;
}

.feature:nth-child(odd)::after  { left: -180px; top: 50%; transform: translateY(-50%); }
.feature:nth-child(even)::after { right: -180px; top: 50%; transform: translateY(-50%); }

.feature:nth-child(even) .feature-phone { order: 2; }
.feature:nth-child(even) .feature-copy  { order: 1; }

.feature-phone {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.feature-phone img {
  width: 100%;
  max-width: 270px;
  filter: drop-shadow(0 28px 56px rgba(0,0,0,0.55)) drop-shadow(0 0 28px rgba(251,89,27,0.08));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.feature:nth-child(odd)  .feature-phone img { transform: rotate(6deg); }
.feature:nth-child(even) .feature-phone img { transform: rotate(-6deg); }

.feature-phone img:hover {
  transform: rotate(0deg) scale(1.05) !important;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.65)) drop-shadow(0 0 40px rgba(251,89,27,0.2));
}

.feature-copy { position: relative; z-index: 1; }

.feature-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feature-copy h2 {
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.feature-copy h2 em {
  font-style: normal;
  color: var(--accent);
}

.feature-copy p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-muted);
  max-width: 400px;
}

/* ──────────────────────────────────────────── REVEAL ANIMS */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left  { transform: translateX(-52px); }
.reveal.from-right { transform: translateX(52px); }
.reveal.scale-up   { transform: scale(0.94); }

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.28s; }

/* ─────────────────────────────────────────────────── CTA */
.cta-wrap { padding: 40px 48px 120px; }

.cta-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 36px;
  padding: 100px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 200px;
  background: radial-gradient(ellipse at center bottom, rgba(251,89,27,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(251,89,27,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.05;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.app-store-badge-lg {
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: transform 0.25s, opacity 0.25s;
}
.app-store-badge-lg:hover { transform: translateY(-3px); opacity: 0.85; }
.app-store-badge-lg img { height: 58px; width: auto; display: block; }

/* ──────────────────────────────────────────────── FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,0.055);
  padding: 44px 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-logo img { height: 22px; width: auto; opacity: 0.6; display: block; }

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ────────────────────────────────────────────── RESPONSIVE */
@media (max-width: 860px) {
  .nav { padding: 16px 24px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 120px 24px 72px;
    gap: 0;
  }

  .hero-right {
    order: -1;
    margin-bottom: 48px;
  }

  .hero-phone-wrap img {
    max-width: 200px;
    animation: phone-float-sm 5s ease-in-out infinite;
  }

  @keyframes phone-float-sm {
    0%, 100% { transform: rotate(-4deg) translateY(0px); }
    50%       { transform: rotate(-4deg) translateY(-14px); }
  }

  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(22,13,11,0.55) 0%, rgba(22,13,11,0.95) 55%),
      linear-gradient(to top, rgba(22,13,11,1) 0%, transparent 40%);
  }

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

  .feature:nth-child(even) .feature-phone,
  .feature:nth-child(even) .feature-copy { order: unset; }

  .feature-copy p { max-width: 100%; }
  .feature-phone img { max-width: 220px; }
  .feature:nth-child(odd)  .feature-phone img { transform: rotate(4deg); }
  .feature:nth-child(even) .feature-phone img { transform: rotate(-4deg); }

  .cta-wrap { padding: 20px 24px 80px; }
  .cta-card { padding: 72px 32px; }

  footer { padding: 36px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
