/* ============================================================
   PromptVault — Minimal Landing Page
   Clean, responsive, pixel-perfect
   ============================================================ */

/* ===== DESIGN TOKENS — LIGHT ===== */
:root {
  --bg:          #fafafa;
  --bg-2:        #f5f4f2;
  --surface:     #ffffff;
  --surface-2:   #f3f0ff;

  --border:      rgba(0,0,0,0.06);
  --border-2:    rgba(0,0,0,0.10);

  --text:        #0c0a18;
  --text-2:      #4a4662;
  --text-3:      #7c789a;

  --primary:     #7c3aed;
  --primary-2:   #6d28d9;
  --primary-3:   #a78bfa;
  --primary-glow:rgba(124,58,237,0.12);
  --accent:      #06b6d4;

  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-xl:24px; --r-pill:100px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.10);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

/* ===== DESIGN TOKENS — DARK ===== */
[data-theme="dark"] {
  --bg:          #08070f;
  --bg-2:        #0e0d18;
  --surface:     #111020;
  --surface-2:   #1a1830;

  --border:      rgba(255,255,255,0.06);
  --border-2:    rgba(255,255,255,0.10);

  --text:        #f2f0ff;
  --text-2:      #9490b2;
  --text-3:      #6b6888;

  --primary:     #8b5cf6;
  --primary-2:   #7c3aed;
  --primary-3:   #c4b5fd;
  --primary-glow:rgba(139,92,246,0.20);
  --accent:      #22d3ee;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.5);
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
em { font-style: normal; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; z-index: 9999;
}
.skip-link:focus { top: 16px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary-3); outline-offset: 3px; border-radius: var(--r-sm); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, var(--primary-3) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-header { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }
.section-title {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
}
.section-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-2); margin-top: 12px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-md); padding: 10px 20px;
  transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-2);
  box-shadow: 0 4px 24px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(.97); }
.btn-full { width: 100%; justify-content: center; }

.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text); flex-shrink: 0;
}
.logo-img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(124,58,237,.25));
}
.logo-img-sm { width: 28px; height: 28px; border-radius: 7px; }
[data-theme="dark"] .logo-img { filter: drop-shadow(0 2px 8px rgba(139,92,246,.4)); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.nav-cta { font-size: 13px; padding: 8px 16px; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all .2s; position: relative; overflow: hidden;
}
.theme-toggle:hover {
  color: var(--text); border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.theme-toggle svg { width: 16px; height: 16px; position: absolute; transition: opacity .25s, transform .25s; }
.icon-sun  { opacity: 0; transform: rotate(90deg); }
.icon-moon { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .icon-sun  { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(-90deg); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 7px;
  border-radius: var(--r-sm); border: 1px solid var(--border-2);
}
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
  transition: all .3s var(--ease);
}

/* Mobile nav */
.nav-mobile {
  display: flex; position: fixed; top: 64px; left: 0; right: 0;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px clamp(16px, 4vw, 32px) 20px;
  z-index: 99; flex-direction: column; gap: 4px;
  visibility: hidden; transform: translateY(-8px); opacity: 0;
  transition: opacity .25s, transform .25s, visibility 0s .25s;
  pointer-events: none;
}
.nav-mobile.open {
  visibility: visible; opacity: 1; transform: translateY(0);
  pointer-events: auto; transition: opacity .25s, transform .25s, visibility 0s;
}
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile a {
  font-size: 15px; font-weight: 500; color: var(--text-2);
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn { margin-top: 16px; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(100px, 14vh, 140px) 0 clamp(60px, 8vh, 100px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); will-change: transform; opacity: .3;
}
.hero-orb-1 {
  width: 500px; height: 500px; top: -150px; left: -80px;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  animation: orb1 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px; bottom: -100px; right: -60px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  animation: orb2 24s ease-in-out infinite;
}
[data-theme="dark"] .hero-orb { opacity: .5; filter: blur(80px); }
[data-theme="dark"] .hero-orb-1 { background: color-mix(in srgb, var(--primary) 28%, transparent); }
[data-theme="dark"] .hero-orb-2 { background: color-mix(in srgb, var(--accent) 18%, transparent); }

@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,30px) scale(1.04); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px,-20px) scale(1.03); }
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 3%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 10%, transparent 100%);
  opacity: .5;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: 1fr 400px;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-content { max-width: 560px; }

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--primary-3);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--r-pill); padding: 6px 14px; margin-bottom: 28px;
}
.badge-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
  50% { opacity: .4; box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900; line-height: 1.04; letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2); line-height: 1.6; margin-bottom: 36px;
  max-width: 400px;
}

/* Store buttons */
.hero-stores { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: var(--r-lg); padding: 12px 20px;
  transition: all .25s var(--ease); cursor: pointer;
}
.store-btn-active {
  background: var(--text); color: var(--bg);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .store-btn-active { background: #fff; color: #0c0a18; }
.store-btn-active:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn-active:active { transform: scale(.97); }

.store-btn-soon {
  background: transparent; cursor: default;
  border: 1px solid var(--border-2); color: var(--text-3);
  opacity: .65;
}
.store-btn-soon svg { opacity: .5; }

.store-btn-text { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.store-btn-text span { font-size: 9px; font-weight: 600; letter-spacing: .5px; opacity: .7; }
.store-btn-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }

/* Hero proof bar — rating + stats */
.hero-proof {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap; margin-bottom: 20px;
}
.proof-rating {
  display: flex; align-items: center; gap: 8px;
  transition: opacity .2s;
}
.proof-rating:hover { opacity: .8; }
.proof-stars { display: flex; gap: 2px; }
.proof-score {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -.3px; line-height: 1;
}
.proof-label {
  font-size: 11px; color: var(--text-3); font-weight: 500;
}
.proof-divider {
  width: 1px; height: 24px;
  background: var(--border-2); margin: 0 20px;
}
.proof-stat { display: flex; flex-direction: column; gap: 2px; }
.proof-stat strong {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -.5px; line-height: 1;
}
.proof-stat span {
  font-size: 10px; color: var(--text-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
}

/* Product Hunt badge */
.hero-ph { margin-top: 0; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3); font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  transition: all .25s var(--ease);
}
.ph-badge:hover {
  border-color: #da552f;
  background: color-mix(in srgb, #da552f 6%, transparent);
  color: var(--text-2);
  transform: translateY(-1px);
}
.ph-badge strong { font-weight: 700; color: var(--text); }
.ph-logo { flex-shrink: 0; }


/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.hero-phone {
  position: relative; display: flex;
  justify-content: center; align-items: center;
  perspective: 1400px;
}
.phone-scene {
  position: relative; width: 280px; margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateY(-12deg) rotateX(2deg);
  transition: transform .5s var(--ease);
  cursor: grab;
  animation: phone-in 1.2s var(--ease) .3s both;
}
.phone-scene:active { cursor: grabbing; }
.phone-scene.dragging { transition: none; }
@keyframes phone-in {
  from { opacity: 0; transform: rotateY(-24deg) rotateX(10deg) translateY(60px) scale(.9); }
  to   { opacity: 1; transform: rotateY(-12deg) rotateX(2deg) translateY(0) scale(1); }
}

.phone-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%);
  bottom: -80px; left: 50%; transform: translateX(-50%) translateZ(-40px);
  filter: blur(50px); pointer-events: none; z-index: 0;
  animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%,100% { opacity: .4; transform: translateX(-50%) translateZ(-40px) scale(1); }
  50% { opacity: .7; transform: translateX(-50%) translateZ(-40px) scale(1.08); }
}

.phone-bezel {
  position: relative; width: 280px; height: 596px;
  border-radius: 48px;
  background: linear-gradient(145deg, #8e8e93, #636366 15%, #48484a 40%, #3a3a3c 60%, #48484a 80%, #8e8e93);
  padding: 3px; z-index: 1;
  box-shadow:
    0 1px 1px rgba(255,255,255,.1),
    0 8px 16px rgba(0,0,0,.1),
    0 24px 48px rgba(0,0,0,.12),
    0 48px 96px rgba(0,0,0,.1);
}
[data-theme="dark"] .phone-bezel {
  background: linear-gradient(145deg, #5a5a5e, #3a3a3c 15%, #2c2c2e 40%, #1c1c1e 60%, #2c2c2e 80%, #5a5a5e);
  box-shadow:
    0 1px 1px rgba(255,255,255,.04),
    0 8px 16px rgba(0,0,0,.2),
    0 24px 48px rgba(0,0,0,.25),
    0 48px 96px rgba(0,0,0,.2);
}

.phone-frame {
  width: 100%; height: 100%; background: #000;
  border-radius: 45px; overflow: hidden; position: relative; z-index: 1;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.06);
}
.phone-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 45px;
  background: linear-gradient(125deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 20%, transparent 45%);
  z-index: 60; pointer-events: none;
}

.phone-btn-power {
  position: absolute; top: 155px; right: -5px; width: 4px; height: 62px;
  background: linear-gradient(180deg, #9a9a9f, #6e6e73, #58585c, #6e6e73, #9a9a9f);
  border-radius: 0 2px 2px 0; z-index: 6;
}
.phone-btn-vol1 {
  position: absolute; top: 155px; left: -5px; width: 4px; height: 34px;
  background: linear-gradient(180deg, #9a9a9f, #6e6e73, #58585c, #6e6e73, #9a9a9f);
  border-radius: 2px 0 0 2px; z-index: 6;
}
.phone-btn-vol2 {
  position: absolute; top: 200px; left: -5px; width: 4px; height: 34px;
  background: linear-gradient(180deg, #9a9a9f, #6e6e73, #58585c, #6e6e73, #9a9a9f);
  border-radius: 2px 0 0 2px; z-index: 6;
}
[data-theme="dark"] .phone-btn-power,
[data-theme="dark"] .phone-btn-vol1,
[data-theme="dark"] .phone-btn-vol2 {
  background: linear-gradient(180deg, #5a5a5e, #3a3a3c, #2c2c2e, #3a3a3c, #5a5a5e);
}

.phone-screen {
  width: 100%; height: 100%; background: #fff;
  overflow: hidden; padding: 48px 0 0; border-radius: 43px; position: relative;
}
.phone-home-indicator {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 4px; background: rgba(0,0,0,.15); border-radius: 4px; z-index: 20;
}
.phone-shadow {
  position: absolute; bottom: -20px; left: 50%;
  width: 200px; height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,.2), transparent 70%);
  transform: translateX(-50%) translateZ(-50px);
  filter: blur(8px); pointer-events: none;
}

/* Status bar */
.phone-statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 0; z-index: 10; background: #fff;
}
.statusbar-time {
  font-size: 12px; font-weight: 700; color: #0c0a18;
  letter-spacing: -.2px; font-variant-numeric: tabular-nums;
}
.statusbar-icons { display: flex; align-items: center; gap: 5px; }
.statusbar-battery { display: flex; align-items: center; gap: 1.5px; }
.battery-body {
  width: 18px; height: 9px; border: 1.3px solid #0c0a18;
  border-radius: 2.5px; display: flex; align-items: center; padding: 1.5px;
}
.battery-fill { width: 80%; height: 100%; background: #34c759; border-radius: 1px; }
.battery-cap {
  width: 1.5px; height: 4px; background: #0c0a18;
  border-radius: 0 1px 1px 0; opacity: .4;
}

.phone-notch {
  width: 92px; height: 26px; background: #000; border-radius: 20px;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
}
.notch-cam {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e2030, #0c0e18);
  box-shadow: inset 0 0 2px rgba(0,0,0,.8), 0 0 0 .5px rgba(0,0,0,.3);
}

/* App content inside phone */
.app-screen {
  height: 100%; display: flex; flex-direction: column;
  overflow: hidden; background: #fff; color: #0c0a18;
}
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 6px;
}
.app-header-brand { display: flex; align-items: center; gap: 7px; }
.app-logo-mini {
  width: 26px; height: 26px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.app-logo-mini img { border-radius: 6px; object-fit: cover; }
.app-brand-text { font-size: 13px; font-weight: 700; color: #0c0a18; letter-spacing: -.2px; }
.app-brand-text em { font-style: normal; color: #7c3aed; }
.app-header-bell {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f5f3ff; display: flex; align-items: center; justify-content: center;
  color: #6b6888;
}

.app-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 4px;
}
.app-section-title { font-size: 11px; font-weight: 800; color: #0c0a18; letter-spacing: -.2px; }
.app-see-all { font-size: 8px; font-weight: 600; color: #7c3aed; }

.app-trending-row { display: flex; gap: 5px; padding: 4px 14px 6px; overflow: hidden; }
.app-photo-card {
  flex: 1; height: 130px; border-radius: 10px; overflow: hidden;
  position: relative; flex-shrink: 0; background: #ede9fe;
}
.app-photo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .5s;
}
.app-photo-card img.loaded { opacity: 1; }
.app-photo-card .app-card-scrim {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent); z-index: 1;
}
.app-photo-card .app-card-stats {
  position: absolute; bottom: 5px; left: 6px;
  display: flex; align-items: center; gap: 6px; z-index: 2;
}
.app-card-stat {
  display: flex; align-items: center; gap: 2px;
  font-size: 6.5px; font-weight: 600; color: #fff;
}
.app-card-stat svg { width: 8px; height: 8px; }

.app-arrivals-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px; padding: 4px 14px 6px;
}
.app-arrival-card {
  border-radius: 10px; overflow: hidden;
  position: relative; aspect-ratio: 1; background: #ede9fe;
}
.app-arrival-card img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s;
}
.app-arrival-card img.loaded { opacity: 1; }
.app-arrival-card .app-card-scrim {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent); z-index: 1;
}
.app-arrival-card .app-card-stats {
  position: absolute; bottom: 5px; left: 6px;
  display: flex; align-items: center; gap: 6px; z-index: 2;
}

.app-card-skeleton { animation: sk-wave 1.6s ease-in-out infinite; }
@keyframes sk-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.app-card-skeleton {
  background: linear-gradient(105deg, #ede9fe 30%, #e0dafb 50%, #ede9fe 70%);
  background-size: 200% 100%;
}

.app-bottomnav {
  display: flex; justify-content: space-around; align-items: center;
  margin-top: auto; padding: 5px 2px 6px;
  background: #fff; border-top: 1px solid rgba(0,0,0,.05);
}
.app-navitem {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  color: #a09cb8; padding: 3px 5px; border-radius: 8px;
}
.app-navitem span { font-size: 6px; font-weight: 600; }
.app-navitem-active {
  color: #7c3aed; background: #f5f3ff; border-radius: 10px; padding: 4px 8px;
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: clamp(60px, 8vw, 100px) 0; background: var(--surface); }

.gallery-filters {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap;
}
.filter-chip {
  font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--border-2);
  color: var(--text-2); transition: all .25s var(--ease);
}
.filter-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.filter-active {
  background: var(--primary) !important; color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.gallery-grid {
  column-count: 4; column-gap: 12px;
  max-width: 1100px; margin: 0 auto;
}

.gal-card {
  break-inside: avoid; border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s;
  background: var(--surface-2); margin-bottom: 12px;
  display: inline-block; width: 100%;
}
.gal-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,.25); z-index: 2;
}
.gal-card:active { transform: scale(.97); transition-duration: .1s; }

.gal-card-img {
  width: 100%; display: block; opacity: 0;
  transition: opacity .5s var(--ease);
}
.gal-card-img.loaded { opacity: 1; }

.gal-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 45%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.gal-card:hover .gal-card-overlay { opacity: 1; }

.gal-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px; z-index: 2;
  transform: translateY(6px); opacity: 0;
  transition: all .3s var(--ease);
}
.gal-card:hover .gal-card-info { transform: translateY(0); opacity: 1; }

.gal-card-title {
  font-size: 12px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gal-card-meta { display: flex; align-items: center; gap: 6px; }
.gal-card-tag {
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
}
.gal-card-likes { font-size: 10px; color: rgba(255,255,255,.6); }
.gal-card-pro {
  position: absolute; top: 10px; left: 10px;
  background: #f59e0b; color: #fff; font-size: 8px; font-weight: 800;
  padding: 3px 7px; border-radius: 5px; z-index: 3; letter-spacing: .3px;
}


/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { padding: clamp(60px, 8vw, 100px) 0; background: var(--surface); }
.reviews-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 16px;
}
.reviews-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  transition: all .3s var(--ease);
}
.review-card:hover {
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.review-stars {
  font-size: 14px; color: #facc15; letter-spacing: 1px;
  margin-bottom: 16px; display: block;
}
.review-card p {
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.review-card footer { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}
cite.review-name {
  display: block; font-size: 13px; font-weight: 700;
  font-style: normal; color: var(--text);
}
.review-source {
  display: block; font-size: 10px; color: var(--text-3); margin-top: 1px;
}


/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: clamp(60px, 8vw, 100px) 0; }
.faq-list {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 0; text-align: left;
  color: var(--text); font-size: 15px; font-weight: 600;
  letter-spacing: -.2px; transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--text-3); transition: transform .3s var(--ease);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg); color: var(--primary);
}
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 560px; }


/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); }
.cta-inner {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%);
  pointer-events: none; animation: cta-glow 6s ease-in-out infinite;
}
@keyframes cta-glow {
  0%,100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50% { opacity: .9; transform: translateX(-50%) scale(1.1); }
}

.cta-title {
  font-size: clamp(24px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cta-sub {
  font-size: clamp(14px, 1.4vw, 16px); color: var(--text-2);
  line-height: 1.6; margin-bottom: 32px; position: relative; z-index: 1;
}
.cta-stores {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 1;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(28px, 4vw, 48px) 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: var(--text-3);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom { }
.footer-bottom p { font-size: 12px; color: var(--text-3); }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px var(--primary-glow); z-index: 90;
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.scroll-top:hover {
  background: var(--primary-2);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--primary) 40%, transparent);
  transform: translateY(-2px) scale(1.05);
}
.scroll-top:active { transform: scale(.92); }


/* ============================================================
   RESPONSIVE — Pixel-perfect at every breakpoint
   ============================================================ */

/* Large desktops */
@media (min-width: 1400px) {
  .hero-inner { gap: 80px; }
  .hero-title { font-size: 72px; }
}

/* Standard desktop — already covered by base styles */

/* Small desktop / large tablet landscape */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 360px; gap: 40px; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .gallery-grid { column-count: 3; }
}

/* Tablet / Layout switch */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: clamp(90px, 12vh, 120px) 0 clamp(48px, 6vh, 72px);
  }
  .hero-inner {
    grid-template-columns: 1fr; text-align: center; gap: 40px;
  }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-stores { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-ph { text-align: center; }
  .hero-phone { order: -1; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }

  .phone-scene { width: 260px; transform: rotateY(-10deg) rotateX(2deg); }
  .phone-bezel { width: 260px; height: 554px; border-radius: 44px; }
  .phone-frame { border-radius: 41px; }
  .phone-screen { border-radius: 39px; }

  .nav-link { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* Small tablet */
@media (max-width: 768px) {
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .gal-card { margin-bottom: 10px; border-radius: 12px; }

  .phone-scene { width: 240px; }
  .phone-bezel { width: 240px; height: 512px; border-radius: 42px; }
  .phone-frame { border-radius: 39px; }
  .phone-screen { border-radius: 37px; }
  .phone-glow { width: 280px; height: 280px; }

  .hero-title { letter-spacing: -1.5px; }
  .hero-sub br { display: none; }

  .reviews-grid { grid-template-columns: 1fr; max-width: 480px; }
  .review-card { padding: 24px; }

  .faq-question { font-size: 14px; padding: 18px 0; }
  .faq-answer p { font-size: 13px; }

  .footer-top {
    flex-direction: column; align-items: center; text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-bottom { text-align: center; }
}

/* Large phones */
@media (max-width: 640px) {
  .hero { padding: clamp(88px, 12vh, 110px) 0 48px; }

  .hero-stores { gap: 10px; }
  .store-btn { padding: 10px 16px; gap: 10px; }
  .store-btn svg { width: 20px; height: 20px; }
  .store-btn-text strong { font-size: 14px; }
  .store-btn-text span { font-size: 8px; }

  .section-header { margin-bottom: 28px; }

  .proof-score { font-size: 16px; }
  .proof-label { font-size: 10px; }
  .proof-divider { margin: 0 14px; height: 20px; }
  .proof-stat strong { font-size: 16px; }
  .ph-badge { font-size: 11px; padding: 5px 12px; }

  .gallery { padding: clamp(48px, 6vw, 72px) 0; }
  .gallery-filters { gap: 6px; margin-bottom: 20px; }
  .filter-chip { font-size: 12px; padding: 6px 16px; }

  .reviews-section { padding: clamp(48px, 6vw, 72px) 0; }

  .faq-section { padding: clamp(48px, 6vw, 72px) 0; }
  .cta-section { padding: 32px 0 60px; }
  .cta-inner { padding: 36px 20px; border-radius: var(--r-lg); }

  .footer { padding: 24px 0; }
  .footer-links { gap: 14px; }
  .footer-links a { font-size: 12px; }

  .scroll-top { bottom: 16px; right: 16px; width: 36px; height: 36px; }
}

/* Phones */
@media (max-width: 480px) {
  .hero-stores { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }

  .hero-proof { flex-direction: column; gap: 12px; align-items: center; }
  .proof-divider { width: 40px; height: 1px; margin: 0; }

  .phone-scene { width: 220px; transform: rotateY(-8deg) rotateX(1deg); }
  .phone-bezel { width: 220px; height: 470px; border-radius: 38px; }
  .phone-frame { border-radius: 35px; }
  .phone-screen { border-radius: 33px; }
  .phone-glow { width: 240px; height: 240px; }

  .gallery-grid { column-gap: 8px; }
  .gal-card { margin-bottom: 8px; border-radius: 10px; }

  .cta-stores { flex-direction: column; align-items: center; }
  .cta-stores .store-btn { width: 100%; max-width: 260px; justify-content: center; }
}

/* Small phones (iPhone SE, Galaxy S20) */
@media (max-width: 375px) {
  .hero { padding: 84px 0 40px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 20px; }
  .hero-title { letter-spacing: -1px; margin-bottom: 16px; }
  .hero-sub { margin-bottom: 24px; font-size: 14px; }
  .hero-stores { margin-bottom: 28px; }

  .proof-stars svg { width: 12px; height: 12px; }
  .proof-score { font-size: 15px; }

  .phone-scene { width: 200px; }
  .phone-bezel { width: 200px; height: 426px; border-radius: 34px; }
  .phone-frame { border-radius: 31px; }
  .phone-screen { border-radius: 29px; }

  .section-title { letter-spacing: -.5px; }
  .gallery-grid { column-count: 2; column-gap: 6px; }
  .gal-card { margin-bottom: 6px; border-radius: 8px; }

  .faq-question { font-size: 13px; gap: 12px; }
  .faq-chevron { width: 16px; height: 16px; }

  .footer-links { gap: 10px; }
}

/* Very small screens */
@media (max-width: 320px) {
  .hero { padding: 80px 0 32px; }
  .nav-inner { height: 56px; }
  .nav-mobile { top: 56px; }
  .nav-logo span { font-size: 15px; }
  .logo-img { width: 28px; height: 28px; }

  .hero-badge { font-size: 9px; }
  .hero-title { font-size: 28px; letter-spacing: -.8px; }
  .hero-sub { font-size: 13px; }

  .store-btn { padding: 10px 14px; }
  .store-btn-text strong { font-size: 13px; }

  .phone-scene { width: 180px; }
  .phone-bezel { width: 180px; height: 384px; border-radius: 30px; }
  .phone-frame { border-radius: 27px; }
  .phone-screen { border-radius: 25px; }

  .filter-chip { font-size: 11px; padding: 5px 12px; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto; padding: 72px 0 32px;
  }
  .hero-inner {
    grid-template-columns: 1fr 200px; text-align: left; gap: 24px;
  }
  .hero-phone { order: 0; }
  .hero-stores { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }

  .phone-scene { width: 160px; }
  .phone-bezel { width: 160px; height: 342px; border-radius: 28px; }
  .phone-frame { border-radius: 25px; }
  .phone-screen { border-radius: 23px; }
}

/* TV / ultra-wide */
@media (min-width: 1800px) {
  .container { max-width: 1400px; }
  .hero-inner { grid-template-columns: 1fr 480px; gap: 100px; }
  .phone-scene { width: 320px; }
  .phone-bezel { width: 320px; height: 682px; border-radius: 52px; }
  .phone-frame { border-radius: 49px; }
  .phone-screen { border-radius: 47px; }
  .gallery-grid { column-count: 5; max-width: 1400px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* High DPI — crisp images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img { image-rendering: -webkit-optimize-contrast; }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(clamp(28px, 4vw, 48px) + env(safe-area-inset-bottom)); }
  .scroll-top { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .nav-mobile { padding-left: calc(clamp(16px, 4vw, 32px) + env(safe-area-inset-left)); padding-right: calc(clamp(16px, 4vw, 32px) + env(safe-area-inset-right)); }
}

/* iPad specific refinement */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 1000px) {
  .hero { padding: 140px 0 80px; }
  .hero-inner { gap: 48px; }
  .phone-scene { width: 280px; }
  .phone-bezel { width: 280px; height: 596px; border-radius: 48px; }
  .phone-frame { border-radius: 45px; }
  .phone-screen { border-radius: 43px; }
  .gallery-grid { column-count: 3; }
}

/* iPad Pro landscape */
@media (min-width: 1024px) and (max-width: 1400px) and (min-height: 700px) {
  .hero-inner { grid-template-columns: 1fr 380px; }
}
