/* =========================
   LAYER 1: BASE
========================= */

/* =====================
   BASE
===================== */
:root {
  --bg:          #080b10;
  --bg-2:        #0d1117;
  --surface:     rgba(255, 255, 255, 0.04);
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);

  --blue-rgb:    16, 185, 129;
  --blue:        #10b981;
  --blue-glow:   rgba(var(--blue-rgb), 0.35);
  --blue-soft:   rgba(var(--blue-rgb), 0.12);

  --purple-rgb:  20, 184, 166;
  --purple:      #14b8a6;
  --purple-glow: rgba(var(--purple-rgb), 0.3);
  --purple-soft: rgba(var(--purple-rgb), 0.1);

  --cyan-rgb:    110, 231, 183;
  --cyan:        #6ee7b7;
  --cyan-soft:   rgba(var(--cyan-rgb), 0.1);

  --text:   #EFF2F5;
  --muted:  #8899A6;
  --muted2: #6B7F8C;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* =====================
   PAGE CONTAINER
===================== */
.page-container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .page-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.page-container--narrow {
  max-width: 42rem;
}

/* =====================
   SECTIONS (shared)
===================== */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--bg-2);
}

.section--overflow {
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--sm {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-title--narrow {
  max-width: 480px;
  margin: 0 auto;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* =========================
   LAYER 2: SHARED COMPONENTS
========================= */

/* =====================
   CTA BUTTON
===================== */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(var(--blue-rgb), 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  min-height: 44px;
}

.btn-cta:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 0 44px rgba(var(--blue-rgb), 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-cta:active { transform: scale(0.97); }

.btn-cta--sm { padding: 0.625rem 1.25rem; }
.btn-cta--lg { font-size: 1.0625rem; padding: 1rem 2.25rem; }

/* =====================
   GLASSMORPHISM CARDS
===================== */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.glass-card-blue:hover   { box-shadow: 0 12px 40px var(--blue-soft),   0 0 0 1px rgba(var(--blue-rgb), 0.2); }
.glass-card-purple:hover { box-shadow: 0 12px 40px var(--purple-soft), 0 0 0 1px rgba(var(--purple-rgb), 0.2); }
.glass-card-cyan:hover   { box-shadow: 0 12px 40px var(--cyan-soft),   0 0 0 1px rgba(var(--cyan-rgb), 0.2); }

/* =====================
   CARDS (shared)
===================== */
.card { padding: 1.75rem; }
.card--lg { padding: 2rem; }

.card-title {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}

.card-title--lg {
  font-size: 1.125rem;
}

.card-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card-text--lg {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =====================
   FEATURE ICON CONTAINERS
===================== */
.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.icon-box-blue   { background: var(--blue-soft);   border: 1px solid rgba(var(--blue-rgb), 0.25);   color: var(--blue); }
.icon-box-purple { background: var(--purple-soft); border: 1px solid rgba(var(--purple-rgb), 0.25); color: var(--purple); }
.icon-box-cyan   { background: var(--cyan-soft);   border: 1px solid rgba(var(--cyan-rgb), 0.25);   color: var(--cyan); }

/* =====================
   GRADIENT TEXT
===================== */
.gradient-text, .gradient-text-purple {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text        { background-image: linear-gradient(135deg, var(--blue), var(--purple)); }
.gradient-text-purple { background-image: linear-gradient(135deg, var(--purple), var(--blue)); }

/* =====================
   DIVIDER GRADIENT
===================== */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.3), rgba(var(--purple-rgb), 0.3), transparent);
}

/* =====================
   SLIDE DOTS
===================== */
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.35s ease, background 0.35s ease;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
}

.slide-dot-active {
  width: 20px;
  background: var(--blue);
}

/* =====================
   FADE ANIMATIONS
===================== */
.fade-up-hero {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-hero.delay-1 { animation-delay: 0.08s; }
.fade-up-hero.delay-2 { animation-delay: 0.2s; }
.fade-up-hero.delay-3 { animation-delay: 0.35s; }
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }

/* =========================
   LAYER 3: SECTIONS
========================= */

/* =====================
   NAVBAR
===================== */
.navbar {
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
}

.logo-text {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text--sm {
  font-size: 1rem;
}

/* =====================
   AURORA BACKGROUND
===================== */
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.aurora-orb-blue {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(var(--blue-rgb), 0.22) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.aurora-orb-purple {
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--purple-rgb), 0.2) 0%, transparent 70%);
  bottom: 0;
  right: 20%;
}

.aurora-spot {
  position: absolute;
  pointer-events: none;
  filter: blur(60px);
}

.aurora-spot--features-right {
  top: 20%;
  right: -10%;
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--blue-rgb), 0.08) 0%, transparent 70%);
}

.aurora-spot--features-left {
  bottom: 10%;
  left: -5%;
  width: 350px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(var(--purple-rgb), 0.08) 0%, transparent 70%);
}

.aurora-spot--cta {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--blue-rgb), 0.12) 0%, rgba(var(--purple-rgb), 0.08) 40%, transparent 70%);
  filter: blur(40px);
}

/* =====================
   HERO
===================== */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

/* =====================
   PHONE SLIDER
===================== */
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(24px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 310px;
  aspect-ratio: 591 / 1280;
  border-radius: 2rem;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-track {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.phone-slide {
  position: absolute;
  inset: 0;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 0.75rem;
}

/* =====================
   HOW IT WORKS
===================== */
.step-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--blue-glow);
}

.step-number--alt {
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.step-preview {
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: var(--blue-soft);
  border-radius: 0.625rem;
  font-size: 0.8rem;
  color: var(--blue);
  font-family: monospace;
}

/* =====================
   FEATURES - BENTO
===================== */
.family-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.family-card-content {
  flex: 1;
}

.family-avatars {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.avatar-group {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.avatar--1 { background: linear-gradient(135deg, var(--blue), var(--purple)); z-index: 3; }
.avatar--2 { background: linear-gradient(135deg, var(--purple), var(--blue)); z-index: 2; margin-left: -8px; }
.avatar--3 { background: linear-gradient(135deg, var(--purple), var(--blue)); z-index: 1; margin-left: -8px; }

.avatar-label {
  font-size: 0.72rem;
  color: var(--muted);
}

/* =====================
   STATISTICS
===================== */
.chart-img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
  margin-bottom: 1.25rem;
}

.chart-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* =====================
   MODES
===================== */
.mode-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mode-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.mode-title--strict { color: var(--blue); }
.mode-title--soft   { color: var(--purple); }

/* =====================
   FAQ
===================== */
.faq-container {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
}

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

.faq-item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 1.125rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .faq-arrow { transform: rotate(180deg); }

.faq-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--muted);
  margin-left: 1rem;
}

.faq-answer {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-bottom: 1.25rem;
}

/* =====================
   CTA
===================== */
.cta-desc {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* =====================
   FOOTER
===================== */
.footer-inner {
  padding: 2.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
}

.footer-center {
  color: var(--muted2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-link {
  color: var(--blue);
  font-size: 0.875rem;
  text-decoration: none;
  opacity: 0.85;
}

@media (min-width: 950px) {
  .footer-inner { flex-direction: row; justify-content: space-between; gap: 0; }
  .footer-center { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* =========================
   LAYER 4: UTILITIES
========================= */

/* =====================
   MISC
===================== */
.z-1 { position: relative; z-index: 1; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up-hero, .fade-up { animation: none; opacity: 1; transform: none; transition: none; }
  .glass-card, .btn-cta, .faq-arrow, .slide-dot, .phone-slide { transition: none !important; }
}
