/* ═══════════════════════════════════════════════════════════
   LuLuTrack Landing Page — styles.css
   Palette: #0d0d0d bg · #1a3a5c navy · #c9a84c gold · #f0f0f0 text
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --bg:           #0d0d0d;
  --bg-2:         #111111;
  --bg-card:      #161616;
  --bg-card-2:    #1c1c1c;
  --navy:         #1a3a5c;
  --navy-mid:     #1e4570;
  --navy-light:   #2a5a8c;
  --gold:         #c9a84c;
  --gold-light:   #e0be6a;
  --gold-dim:     #a88630;
  --text:         #f0f0f0;
  --text-2:       #aaaaaa;
  --text-3:       #666666;
  --border:       rgba(255,255,255,0.07);
  --border-gold:  rgba(201,168,76,0.25);
  --glow:         rgba(26, 90, 140, 0.35);
  --glow-strong:  rgba(26, 90, 140, 0.55);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --max-w:        1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Shared ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Reveal Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-sep {
  color: var(--text-3);
  font-size: 0.85rem;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 4px 2px;
  transition: color var(--transition);
}

.lang-btn:hover { color: var(--text-2); }
.lang-btn.active { color: var(--gold); }

/* Nav CTA */
.btn-nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--gold);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}

.btn-nav-cta:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(26, 58, 92, 0.45) 0%,
    rgba(26, 58, 92, 0.12) 45%,
    transparent 70%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Hero Icon */
.hero-icon-wrap {
  margin-bottom: 28px;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 40px rgba(26, 90, 140, 0.4),
    0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-icon:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 12px 50px rgba(26, 90, 140, 0.55),
    0 24px 70px rgba(0,0,0,0.65);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

/* Hero Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 760px;
}

/* Hero Subheadline */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* App Store Badges */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition), filter var(--transition);
}

.btn-appstore:hover {
  transform: scale(1.04) translateY(-2px);
  filter: brightness(1.08);
}

.badge-svg {
  height: 48px;
  width: auto;
}

/* macOS Badge (custom) */
.btn-appstore-mac {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  padding: 8px 16px;
  height: 48px;
}

.apple-logo-svg {
  width: 22px;
  height: 22px;
  fill: var(--bg);
  flex-shrink: 0;
}

.mac-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.mac-badge-top {
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}

.mac-badge-bottom {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-3));
  margin: 0 auto;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(0.7); }
}

/* ══════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════ */
.section-features {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-left-color: var(--gold);
  border-color: rgba(201,168,76,0.18);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   SCREENSHOTS
══════════════════════════════════════════════════════════ */
.section-screenshots {
  padding: 100px 0;
  background: var(--bg);
}

/* Tabs */
.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 10px 24px;
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.tab-btn:hover { color: var(--text-2); }

.tab-btn.active {
  background: var(--navy-mid);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(26, 58, 92, 0.5);
}

/* Tab Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* macOS Screenshots — horizontal scroll row */
.screenshots-mac {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* iPhone Screenshots — centered pair */
.screenshots-phone {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* iPad Screenshots — centered */
.screenshots-ipad {
  display: flex;
  justify-content: center;
}

/* Screenshot Figures */
.screenshot-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Screenshot Frames */
.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-frame:hover img {
  transform: scale(1.015);
}

/* macOS frame — blue glow */
.screenshot-mac-frame {
  border: 1px solid rgba(26, 90, 140, 0.25);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 4px 24px rgba(26, 90, 140, 0.25),
    0 16px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.screenshot-mac-frame:hover {
  box-shadow:
    0 0 0 1px rgba(26, 90, 140, 0.35),
    0 8px 36px rgba(26, 90, 140, 0.4),
    0 20px 70px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: box-shadow 0.4s ease;
}

/* Phone frame */
.screenshot-phone-frame {
  width: 220px;
  border: 1px solid rgba(26, 90, 140, 0.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 4px 20px rgba(26, 90, 140, 0.2),
    0 16px 50px rgba(0, 0, 0, 0.65);
  border-radius: 36px;
  overflow: hidden;
}

/* iPad frame */
.screenshot-ipad-frame {
  max-width: 680px;
  width: 100%;
  border: 1px solid rgba(26, 90, 140, 0.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 4px 24px rgba(26, 90, 140, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.65);
}

/* ══════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════ */
.section-pricing {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pricing-icon-wrap {
  margin-bottom: 28px;
}

.pricing-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto;
  box-shadow:
    0 4px 20px rgba(26, 90, 140, 0.35),
    0 10px 40px rgba(0,0,0,0.5);
}

.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}

.pricing-price-line {
  margin-bottom: 36px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
}

.pricing-amount::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin-top: 8px;
}

.pricing-perks {
  text-align: left;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 8px;
}

.pricing-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-2);
}

.perk-check {
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 5px;
}

.pricing-ctas {
  margin-bottom: 20px;
}

/* Primary Button */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 16px 40px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
.section-faq {
  padding: 100px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gold); }

.faq-question[aria-expanded="true"] { color: var(--gold); }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-3);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
  position: relative;
}

.faq-icon::before {
  content: '+';
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}

.faq-answer {
  padding: 0 4px 22px;
  animation: faqOpen 0.3s ease;
}

.faq-answer[hidden] { display: none; }

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}

.footer-by {
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-sep { color: var(--text-3); font-size: 0.7rem; }

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

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-mac {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .pricing-card {
    padding: 44px 36px;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤640px)
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Nav */
  .btn-nav-cta { display: none; }

  .nav-name { display: none; }

  /* Hero */
  .section-hero { padding: 100px 20px 64px; }

  .hero-icon { width: 80px; height: 80px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
  }

  .btn-appstore-mac,
  .btn-appstore-ios { justify-content: center; }

  .badge-svg { height: 44px; }

  .btn-appstore-mac { height: 44px; }

  /* Features */
  .section-features { padding: 72px 0; }

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

  /* Screenshots */
  .section-screenshots { padding: 72px 0; }

  .screenshot-tabs {
    gap: 2px;
    padding: 3px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .screenshots-phone {
    gap: 20px;
  }

  .screenshot-phone-frame {
    width: 160px;
  }

  /* Pricing */
  .section-pricing { padding: 72px 0; }

  .pricing-card {
    padding: 36px 24px;
    margin: 0 4px;
  }

  .pricing-amount { font-size: 2.6rem; }

  /* FAQ */
  .section-faq { padding: 72px 0; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════
   SELECTION & FOCUS STYLES
══════════════════════════════════════════════════════════ */
::selection {
  background: rgba(201, 168, 76, 0.25);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
