/* ═══════════════════════════════════════════════════════════
   CHERRY — LANDING PAGE
   Aesthetic: Editorial fashion-dark · Vogue meets mobile app
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --bg:           #0A0A0A;
  --surface:      #141414;
  --glass-bg:     rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.075);
  --cherry:       #D62839;
  --cherry-dk:    #B71C2A;
  --cherry-glow:  rgba(214, 40, 57, 0.18);
  --text:         #F5F5F5;
  --muted:        #888;
  --dim:          #444;
  --border:       rgba(255, 255, 255, 0.06);
  --radius:       20px;
  --max-w:        1200px;
  --ph:           clamp(20px, 4vw, 60px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Editorial film grain — very subtle, adds texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--ph);
}

.section {
  padding-block: clamp(80px, 10vw, 140px);
}

/* ── GLASS ────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--cherry);
  color: #fff;
  border: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cherry-dk);
  transform: scale(1.025);
  box-shadow: 0 8px 32px var(--cherry-glow);
  outline: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(214, 40, 57, 0.55);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(214, 40, 57, 0.06);
  border-color: var(--cherry);
  transform: scale(1.025);
  outline: none;
}

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(40px, 6vw, 68px);
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title.centered {
  text-align: center;
  margin-bottom: 52px;
}

.section-accent {
  width: 36px;
  height: 2px;
  background: var(--cherry);
  margin-top: 16px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(80px, 12vw, 130px) var(--ph) 80px;
}

/* ─ Floating photo collage ─ */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.photo-float {
  position: absolute;
  border-radius: 14px;
  opacity: 0.42;
}

/* Organic arrangement — bleeds off all four edges */
.p1 {
  top: -60px; left: -45px;
  width: clamp(130px, 15vw, 210px);
  height: clamp(180px, 22vw, 300px);
  background: linear-gradient(158deg, #3d0d15 0%, #7a1828 55%, #1f0609 100%);
  animation: floatA 9s ease-in-out infinite alternate;
}
.p2 {
  top: -50px; left: clamp(100px, 17vw, 250px);
  width: clamp(110px, 13vw, 185px);
  height: clamp(150px, 18vw, 255px);
  background: linear-gradient(195deg, #0d0d2e 0%, #1a1a52 55%, #06060f 100%);
  animation: floatB 11s ease-in-out infinite alternate;
}
.p3 {
  top: -55px; right: clamp(50px, 11vw, 165px);
  width: clamp(120px, 14vw, 195px);
  height: clamp(165px, 20vw, 280px);
  background: linear-gradient(162deg, #0d1f08 0%, #1a3d10 55%, #060d04 100%);
  animation: floatC 8s ease-in-out infinite alternate;
}
.p4 {
  top: -60px; right: -35px;
  width: clamp(115px, 13vw, 180px);
  height: clamp(155px, 19vw, 265px);
  background: linear-gradient(172deg, #200508 0%, #400a10 55%, #100204 100%);
  animation: floatA 10s ease-in-out infinite alternate;
  animation-delay: -2s;
}
.p5 {
  top: 28%; left: -45px;
  width: clamp(95px, 11vw, 160px);
  height: clamp(130px, 16vw, 220px);
  background: linear-gradient(148deg, #210010 0%, #480028 55%, #110008 100%);
  animation: floatB 12s ease-in-out infinite alternate;
  animation-delay: -1s;
}
.p6 {
  top: 32%; right: -40px;
  width: clamp(105px, 12vw, 170px);
  height: clamp(140px, 17vw, 240px);
  background: linear-gradient(175deg, #180d00 0%, #3d2400 55%, #0b0600 100%);
  animation: floatC 9.5s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.p7 {
  bottom: -55px; left: clamp(70px, 13vw, 190px);
  width: clamp(120px, 15vw, 205px);
  height: clamp(165px, 19vw, 268px);
  background: linear-gradient(162deg, #0a0a20 0%, #16163a 55%, #050510 100%);
  animation: floatA 8.5s ease-in-out infinite alternate;
  animation-delay: -4s;
}
.p8 {
  bottom: -55px; right: clamp(80px, 14vw, 200px);
  width: clamp(115px, 13vw, 190px);
  height: clamp(155px, 18vw, 258px);
  background: linear-gradient(185deg, #1a0508 0%, #3d0d16 55%, #0d0205 100%);
  animation: floatB 10.5s ease-in-out infinite alternate;
  animation-delay: -2.5s;
}

@keyframes floatA {
  from { transform: translateY(0px) rotate(-1deg); }
  to   { transform: translateY(-14px) rotate(0.5deg); }
}
@keyframes floatB {
  from { transform: translateY(0px) rotate(1deg); }
  to   { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes floatC {
  from { transform: translateY(-7px) rotate(-0.5deg); }
  to   { transform: translateY(7px) rotate(1deg); }
}

/* Radial vignette — keeps text readable */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 62% 72% at center,
    rgba(10,10,10,0.78) 0%,
    rgba(10,10,10,0.5) 42%,
    rgba(10,10,10,0.88) 75%,
    #0a0a0a 100%
  );
}

/* Hero content stack */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.5vw, 28px);
  max-width: 820px;
}

.hero-logo img {
  width: clamp(140px, 17vw, 210px);
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(54px, 8.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
}

.hero-sub.centered { text-align: center; }

/* Animated scroll line */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 50px;
  margin-inline: auto;
  background: linear-gradient(to bottom, transparent, rgba(214,40,57,0.55), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0.4) translateY(-12px); }
  50%  { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.4) translateY(12px); }
}


/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px) clamp(22px, 3vw, 38px);
  overflow: hidden;
}

.step-num {
  position: absolute;
  top: -18px;
  right: 14px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 10vw, 130px);
  font-weight: 700;
  color: var(--cherry);
  opacity: 0.1;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.step-body { position: relative; z-index: 1; }

.step-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery-section {
  padding-block: clamp(60px, 8vw, 100px);
}

.gallery-masonry {
  columns: 3;
  column-gap: 10px;
  padding-inline: var(--ph);
  max-width: var(--max-w);
  margin-inline: auto;
}

.gal-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
}

/* Subtle inset border */
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.055);
  pointer-events: none;
}

.gal-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 1.5px rgba(214,40,57,0.45),
              0 10px 48px rgba(214,40,57,0.18);
}

/* Dark gradient portrait placeholders */
.gal-1 { height: 320px; background: linear-gradient(168deg, #200812 0%, #500e24 50%, #180407 100%); }
.gal-2 { height: 420px; background: linear-gradient(195deg, #0c1410 0%, #1d2c18 50%, #070c07 100%); }
.gal-3 { height: 260px; background: linear-gradient(148deg, #1b0d00 0%, #422200 50%, #0e0800 100%); }
.gal-4 { height: 368px; background: linear-gradient(162deg, #09051f 0%, #16093b 50%, #040212 100%); }
.gal-5 { height: 290px; background: linear-gradient(200deg, #240010 0%, #580028 50%, #110008 100%); }
.gal-6 { height: 435px; background: linear-gradient(145deg, #0e1018 0%, #1c2038 50%, #060710 100%); }
.gal-7 { height: 308px; background: linear-gradient(172deg, #1d0c00 0%, #422000 50%, #120800 100%); }
.gal-8 { height: 390px; background: linear-gradient(190deg, #0e0506 0%, #280b14 50%, #080203 100%); }
.gal-9 { height: 268px; background: linear-gradient(155deg, #060d08 0%, #102015 50%, #020806 100%); }

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 52px;
}

.gallery-cta-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(15px, 2vw, 21px);
  color: var(--muted);
}

.gallery-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cherry);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}
.gallery-arrow:hover {
  transform: translateY(5px);
  border-color: rgba(214,40,57,0.5);
  background: rgba(214,40,57,0.06);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(214,40,57,0.18);
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(214, 40, 57, 0.07);
  border: 1px solid rgba(214, 40, 57, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.feat-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD
═══════════════════════════════════════════════════════════ */
.download-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at center, rgba(214,40,57,0.1) 0%, transparent 68%);
  pointer-events: none;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.5vw, 26px);
}

.dl-icon img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 16px 52px rgba(214,40,57,0.22);
}

.dl-ctas {
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px var(--ph);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  height: 22px;
  width: auto;
}
.footer-brand span {
  font-size: 12px;
  color: var(--dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links a {
  font-size: 12px;
  color: #4a4a4a;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-links span {
  color: #2a2a2a;
  font-size: 16px;
}

.footer-social a {
  color: #4a4a4a;
  display: flex;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--cherry); }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--d, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .gallery-masonry { columns: 2; }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-headline { font-size: clamp(42px, 11vw, 62px); }

  .hero-logo img { width: clamp(120px, 38vw, 165px); }

  /* Stack CTAs */
  .cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
  }
  .btn { justify-content: center; width: 100%; }

  /* Reduce floating photos */
  .p2, .p3, .p5, .p6, .p7 { display: none; }
  .p1 { width: 105px; height: 145px; opacity: 0.28; }
  .p4 { width: 105px; height: 145px; opacity: 0.28; }
  .p8 { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .gallery-masonry { columns: 1; }

.footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-brand { flex-direction: column; gap: 6px; }

  .steps-grid { max-width: none; }
  .section-title.centered { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(36px, 12vw, 50px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .photo-float { animation: none; }
  .scroll-line { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
