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

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface2: #1a1a1a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8e8e8;
  --text-secondary: #999;
  --text-muted: #666;
  --accent: #ffffff;
  --accent-soft: rgba(255,255,255,0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --max-w: 1120px;
}

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

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* =====================
   NAV
   ===================== */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 450;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #0a0a0a !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.hero-text { flex: 1; max-width: 480px; }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text);
}

.accent { color: var(--text-secondary); }

.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 380px;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }

/* =====================
   HERO PHONES
   ===================== */
.hero-phones {
  flex-shrink: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  perspective: 1000px;
}

.phone {
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.dark-phone {
  width: 200px;
  max-height: 500px;
  transform: translateY(20px) rotateY(2deg);
}
.light-phone {
  width: 200px;
  max-height: 500px;
  transform: translateY(0px) rotateY(-2deg);
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* =====================
   STATS BAR
   ===================== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 56px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 450;
}

.divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =====================
   SECTION COMMON
   ===================== */
section { padding: 120px 32px; }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text);
}

/* =====================
   HOW IT WORKS
   ===================== */
.how {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how h2 { margin-bottom: 48px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s;
}
.step:hover { border-color: var(--border-hover); }

.step-number {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* =====================
   STORY / YEAR SHOWCASE
   ===================== */
.story {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story > .section-label,
.story > h2,
.story > .story-sub {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.story-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 64px;
  max-width: 440px;
  line-height: 1.65;
}

.year-showcase {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}

.year-phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.year-phone {
  width: 280px;
  border-radius: 44px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.year-phone-light {
  border: 1px solid rgba(0,0,0,0.06);
}

.year-img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =====================
   FEATURES
   ===================== */
.features { max-width: var(--max-w); margin: 0 auto; }

.features h2 { margin-bottom: 48px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--border-hover); }

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.testimonials .section-label,
.testimonials h2 { text-align: center; }

.testimonials h2 { margin-bottom: 48px; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}

.testi-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.td {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.td.on { background: var(--text); }
.td.off { background: rgba(255,255,255,0.1); }

.testi-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}

.testi-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* =====================
   PURCHASE SECTION
   ===================== */
.download {
  text-align: center;
  padding: 120px 32px;
  position: relative;
}

.download::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

.download-inner { max-width: 680px; margin: 0 auto; position: relative; }

.download h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.download p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* Wallpaper selector cards */
.wallpaper-selector {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.wp-option {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  width: 260px;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s;
  text-align: left;
}

.wp-option:hover {
  border-color: var(--border-hover);
}

.wp-option.selected {
  border-color: rgba(255,255,255,0.3);
}

.wp-preview {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  padding: 14px;
  overflow: hidden;
}

.dark-wp { background: #000; }
.light-wp { background: #f2f2f7; }

.wp-preview-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wp-info { display: flex; flex-direction: column; gap: 2px; }

.wp-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.wp-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wp-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.wp-check svg {
  width: 13px;
  height: 13px;
  color: transparent;
  transition: color 0.2s;
}

.wp-option.selected .wp-check {
  background: var(--text);
}

.wp-option.selected .wp-check svg {
  color: #0a0a0a;
}

/* Price tag */
.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* PayPal button area */
#paypal-button-container {
  max-width: 380px;
  margin: 0 auto 24px;
  min-height: 50px;
}

.secure-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* PayPal placeholder */
.paypal-placeholder {
  background: var(--surface);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 8px;
}

.paypal-placeholder p {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 8px !important;
}

.setup-note {
  font-size: 0.76rem !important;
  color: var(--text-muted) !important;
}

.setup-note code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
}

/* Payment success */
.payment-success {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: #0a0a0a;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.payment-success h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.payment-success p {
  font-size: 0.92rem !important;
  margin-bottom: 20px !important;
}

.btn-download-wp {
  display: inline-block;
  background: var(--text);
  color: #0a0a0a;
  padding: 13px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
  margin-bottom: 14px;
}
.btn-download-wp:hover { opacity: 0.85; }

.success-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

.pay-error {
  color: #ff6b6b !important;
  font-size: 0.88rem !important;
  margin-top: 12px !important;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 32px;
}

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

.footer-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 400;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* =====================
   ANIMATIONS
   ===================== */

/* Floating phone animation */
@keyframes float {
  0%, 100% { transform: translateY(20px) rotateY(2deg); }
  50% { transform: translateY(8px) rotateY(2deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotateY(-2deg); }
  50% { transform: translateY(-10px) rotateY(-2deg); }
}

@keyframes float-mobile {
  0%, 100% { transform: translateY(10px); }
  50% { transform: translateY(0px); }
}

@keyframes float-reverse-mobile {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(-15px); }
}

.dark-phone { animation: float 5s ease-in-out infinite; }
.light-phone { animation: float-reverse 5s ease-in-out 0.5s infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text entrance */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text .badge { animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-text h1 { animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hero-text p { animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero-cta { animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }

@keyframes phone-entrance {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-phones .dark-phone { animation: phone-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both, float 5s ease-in-out 1.4s infinite; }
.hero-phones .light-phone { animation: phone-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both, float-reverse 5s ease-in-out 1.6s infinite; }

/* Stat counter animation */
.stat-num {
  display: inline-block;
  transition: transform 0.3s;
}

/* Card lift on hover */
.step, .feature-card, .testi-card {
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.step:hover, .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

/* Wallpaper selector hover */
.wp-option {
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.wp-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

/* Pulse on CTA */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.btn-primary { animation: subtle-pulse 3s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

/* Year phone entrance */
.year-phone-wrap {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.year-phone-wrap.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.year-phone-wrap:nth-child(2) { transition-delay: 0.15s; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero { flex-direction: column-reverse; text-align: center; padding-top: 90px; gap: 28px; min-height: auto; padding-bottom: 40px; }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
  .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; margin-bottom: 24px; font-size: 0.95rem; }
  .hero-cta { justify-content: center; }
  .hero-phones { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 28px; }
  .stat { padding: 0 28px; }
  .divider { display: none; }
  .nav-links a:not(.btn-nav) { display: none; }
  .year-showcase { gap: 32px; }
  .year-phone { width: 260px; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 14px 16px; }
  .btn-nav { padding: 8px 16px; font-size: 0.8rem; }
  section { padding: 80px 20px; }
  .wallpaper-selector { flex-direction: column; align-items: center; }

  .hero { padding-top: 90px; gap: 24px; }
  .hero-text h1 { font-size: 2rem; margin-bottom: 12px; }
  .hero-text p { font-size: 0.9rem; margin-bottom: 20px; }
  .badge { margin-bottom: 12px; font-size: 0.65rem; }

  /* Hero phones — scale down for mobile */
  .hero-phones { gap: 8px; padding: 0 16px; max-width: 100%; justify-content: center; }
  .phone { border-radius: 28px; }
  .dark-phone, .light-phone {
    width: 42%;
    max-width: 145px;
    max-height: 340px;
    transform: none;
  }
  .dark-phone { animation: float-mobile 5s ease-in-out infinite; }
  .light-phone { animation: float-reverse-mobile 5s ease-in-out 0.5s infinite; }

  .hero-phones .dark-phone {
    animation: phone-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both, float-mobile 5s ease-in-out 1.4s infinite;
  }
  .hero-phones .light-phone {
    animation: phone-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both, float-reverse-mobile 5s ease-in-out 1.6s infinite;
  }

  /* Year showcase phones */
  .year-showcase { gap: 20px; padding: 0 16px; }
  .year-phone { width: 160px; }
}
