/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* LIGHT THEME VARIABLES */
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-light: #dbeafe;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);

  --container-max: 1240px;
  --nav-height: 80px;

  --heading-font: 'Fraunces', serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  line-height: 1.2;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -10px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* === NAVIGATION === */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* === HERO SECTION === */
.hero-vault {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--nav-height);
  text-align: center;
  background: radial-gradient(circle at top right, #e0f2fe, transparent),
              radial-gradient(circle at bottom left, #dbeafe, transparent),
              var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-vault h1 {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 1000px;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rating-pill {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === FEATURES SECTION === */
.privacy-rows {
  background: var(--bg);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-info {
  flex: 0 1 55%;
}

.feature-visual {
  flex: 0 1 45%;
  position: relative;
}

.feature-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 80%;
  background: var(--accent-light);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.5;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.feature-info h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-info p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.screenshot-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}

.feature-row:nth-child(even) .screenshot-img {
  transform: rotate(2deg);
}

.feature-row:hover .screenshot-img {
  transform: rotate(0deg) scale(1.05);
}

/* === HOW IT WORKS === */
.timeline-section {
  background: var(--bg-secondary);
}

.vertical-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.vertical-steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: #e2e8f0;
}

.step-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.step-marker {
  width: 66px;
  height: 66px;
  background: var(--white);
  border: 2px solid #e2e8f0;
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.step-card:hover .step-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.step-content {
  padding-top: 0.75rem;
}

.step-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* === GALLERY === */
.stacked-gallery {
  padding: 8rem 0;
  background: var(--bg);
}

.gallery-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.gallery-item {
  width: 100%;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.showcase-img {
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
  margin-bottom: 2rem;
}

.gallery-caption {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

/* === STATS === */
.stats-bar {
  background: var(--accent-gradient);
  padding: 4rem 0;
  color: var(--white);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: var(--body-font);
}

.stat-item p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* === REVIEWS === */
.reviews-section {
  background: var(--bg-secondary);
}

.rating-header {
  text-align: center;
  margin-bottom: 5rem;
}

.aggregate-score {
  font-size: 5rem;
  font-weight: 900;
  color: var(--text);
  font-family: var(--body-font);
  margin-bottom: 1rem;
}

.rating-breakdown {
  max-width: 500px;
  margin: 2rem auto;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.bar-bg {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #fbbf24;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.review-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.initials-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  background: var(--accent);
}

/* === DOWNLOAD CTA === */
.final-cta {
  background: var(--bg);
  padding: 10rem 0;
  overflow: hidden;
}

.cta-mesh-bg {
  background: radial-gradient(at 0% 0%, #dbeafe 0, transparent 50%),
              radial-gradient(at 100% 0%, #fee2e2 0, transparent 50%),
              radial-gradient(at 100% 100%, #fef3c7 0, transparent 50%),
              radial-gradient(at 0% 100%, #eff6ff 0, transparent 50%);
  padding: 6rem 1.5rem;
  border-radius: 40px;
  text-align: center;
}

.cta-glass-card {
  max-width: 800px;
  margin: 0 auto;
}

.cta-glass-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.cta-glass-card h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

/* === FOOTER === */
.main-footer {
  background: #f8fafc;
  padding: 5rem 0 2rem;
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .nav-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 250px;
}

.footer-col h5 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  flex: 1;
  font-family: inherit;
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: white;
}

/* === UTILS === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 2000;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* === MOBILE ADAPTIVITY === */
@media (max-width: 1024px) {
  .hero-vault h1 { font-size: clamp(3rem, 10vw, 6rem); }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .main-nav { height: 64px; }
  .mobile-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .feature-row {
    flex-direction: column !important;
    gap: 2rem;
    text-align: center;
  }

  .feature-icon-wrapper { margin: 0 auto 1.5rem; }

  .feature-info, .feature-visual { flex: 0 1 100%; }

  .stats-grid { gap: 2rem; }

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

  .vertical-steps::before { left: 24px; }
  .step-marker { width: 50px; height: 50px; font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; }
  .newsletter-form { flex-direction: column; }
}
