/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Foundations */
  --ivory: #FDFBF7;
  --surface: #F7F5F0;

  /* Primary — Deccan Indigo (refined) */
  --primary: #1E3A5F;
  --primary-dark: #162D4A;
  --primary-light: #EDF1F5;

  /* Accent — Sandstone Champagne */
  --accent: #C2A87D;
  --accent-dark: #A89272;
  --accent-tint: #F5F0E8;
  --gold: #B8A07E;

  /* Text */
  --text-primary: #2C2C2C;
  --text-secondary: #6B6560;
  --text-on-dark: #F0EDE8;

  /* Background */
  --bg-dark: #162D4A;

  /* Layout */
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(44, 44, 44, 0.06);
  --shadow-lg: 0 12px 36px rgba(44, 44, 44, 0.10);
  --transition: 0.3s ease;
  --container: 1200px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  outline: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(194, 168, 125, 0.25);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 24px rgba(168, 146, 114, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-underline {
  width: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto;
  transition: width 0.8s ease-out 0.3s;
}

.section-header.visible .section-underline {
  width: 60px;
}

/* ===== GRADIENT TEXT ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}

/* Scroll progress bar */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 1001;
  pointer-events: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo-text {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}
.nav-links a:hover,
.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--text-primary) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text-primary);
}

body.menu-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

/* Launch banner — "Coming Soon" highlight */
.launch-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-tint);
  border: 1px solid rgba(194, 168, 125, 0.3);
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.launch-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-dark);
  display: inline-block;
  animation: live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.launch-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Phone mockup */
.hero-mockup {
  flex: 0 0 auto;
  will-change: transform;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(160deg, #1E3A5F, #162D4A);
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.phone-placeholder span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  z-index: 1;
  opacity: 0.5;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 0;
  position: relative;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  padding: 16px 32px;
  flex: 1;
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  perspective: 1200px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform-style: preserve-3d;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: #fff;
  position: relative;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-line {
  display: none;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  max-width: 240px;
}

/* Horizontal connecting line between steps (desktop) */
.steps-container::before {
  content: '';
  position: absolute;
  top: 70px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0,
    var(--primary) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  padding: 14px;
  position: relative;
  z-index: 1;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots {
  padding: 100px 0;
  background: var(--surface);
  overflow: hidden;
}

.screenshots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  perspective: 1000px;
}

.screenshot-phone {
  flex-shrink: 0;
}

.phone-frame-sm {
  width: 220px;
  height: 440px;
  border-radius: 32px;
  padding: 10px;
}

.phone-frame-sm .phone-screen {
  border-radius: 24px;
}

.screenshot-phone-center {
  transform: scale(1.1);
  z-index: 2;
}

.screenshot-phone:not(.screenshot-phone-center) {
  opacity: 0.85;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta {
  padding: 100px 0;
  background: var(--accent-tint);
  text-align: center;
}

.download-container {
  max-width: 700px;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.download-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.play-badge-link {
  display: inline-block;
}

.play-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  padding: 14px 32px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.play-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.play-badge-small {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-badge-large {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   GRADIENT SECTION DIVIDERS
   ============================================ */
.hero::after,
.features::after,
.how-it-works::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  background: linear-gradient(to bottom, var(--surface), var(--surface) 50%, transparent);
}

.features::after {
  background: linear-gradient(to bottom, var(--surface), #fff);
}

.how-it-works::after {
  background: linear-gradient(to bottom, #fff, var(--surface));
}

/* ============================================
   CTA SHIMMER + MAGNETIC
   ============================================ */
.btn-accent {
  position: relative;
  overflow: hidden;
}

.btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transition: none;
  pointer-events: none;
}

.btn-accent:hover::after {
  animation: shimmer 1.2s ease forwards;
}

/* ============================================
   STEP NUMBER POP
   ============================================ */
.step-number {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.visible .step-number {
  transform: scale(1);
}

/* ============================================
   SCREENSHOT 3D FAN-OUT
   ============================================ */
.screenshots-container .screenshot-phone {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.screenshots-container .screenshot-phone:first-child {
  opacity: 0;
  transform: translateX(60px) rotateY(-5deg) scale(0.95);
}

.screenshots-container .screenshot-phone:first-child.visible {
  opacity: 0.85;
  transform: translateX(0) rotateY(0deg) scale(1);
}

.screenshots-container .screenshot-phone-center {
  opacity: 0;
  transform: scale(0.9) translateY(30px);
}

.screenshots-container .screenshot-phone-center.visible {
  opacity: 1;
  transform: scale(1.1) translateY(0);
}

.screenshots-container .screenshot-phone:last-child {
  opacity: 0;
  transform: translateX(-60px) rotateY(5deg) scale(0.95);
}

.screenshots-container .screenshot-phone:last-child.visible {
  opacity: 0.85;
  transform: translateX(0) rotateY(0deg) scale(1);
}

/* ============================================
   HERO WORD REVEAL
   ============================================ */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  padding: 64px 0 0;
  color: var(--text-on-dark);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-love {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Mobile: < 480px already base styles */

/* Small: 480px+ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
    transition: right var(--transition);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.1);
  }

  body.menu-open .nav-links {
    right: 0;
  }

  .nav-links a {
    color: var(--text-primary) !important;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    padding: 100px 0 80px;
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 32px;
    padding: 10px;
  }

  .phone-frame::before {
    width: 96px;
    height: 22px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .scroll-indicator {
    display: none;
  }

  .stats-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    min-width: 120px;
    padding: 12px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .steps-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding-left: 40px;
  }

  .steps-container::before {
    display: none;
  }

  .steps-line {
    display: block;
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(30, 58, 95, 0.2);
  }

  .steps-line-progress {
    width: 100%;
    background: var(--primary);
  }

  .step {
    text-align: left;
    max-width: 100%;
  }

  .step-number {
    position: absolute;
    left: -40px;
    top: 0;
    margin: 0;
  }

  .step.visible .step-number {
    transform: scale(1);
  }

  .step-icon {
    margin: 0 0 12px 0;
  }

  .screenshots-container {
    flex-direction: column;
    gap: 24px;
    perspective: none;
  }

  .screenshots-container .screenshot-phone:first-child,
  .screenshots-container .screenshot-phone:last-child {
    transform: translateX(0) rotateY(0) scale(1);
    opacity: 0;
  }

  .screenshots-container .screenshot-phone:first-child.visible,
  .screenshots-container .screenshot-phone:last-child.visible {
    opacity: 0.85;
    transform: none;
  }

  .screenshots-container .screenshot-phone-center {
    transform: scale(1) translateY(30px);
  }

  .screenshots-container .screenshot-phone-center.visible {
    transform: none;
  }

  .phone-frame-sm {
    width: 200px;
    height: 400px;
  }

  .download-title {
    font-size: 1.75rem;
  }

  .download-actions {
    gap: 32px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
  }
}

/* Tablet: 768px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* Small desktop: 1024px+ */
@media (min-width: 1025px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
