/* ==========================================================================
   Flickt Marketing Website — Main Stylesheet
   Dark theme: #1A1A2E / #FF6B6B / #4ECDC4
   Mobile-first responsive design
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --dark-bg:         #1A1A2E;
  --dark-surface:    #16162A;
  --dark-card:       #1E1E3A;
  --primary:         #FF6B6B;
  --primary-hover:   #FF5252;
  --secondary:       #4ECDC4;
  --text:            #EAEAEA;
  --text-muted:      #A0A0B8;
  --text-dim:        #6A6A84;
  --border-subtle:   rgba(255, 255, 255, 0.06);
  --radius:          12px;
  --radius-sm:       8px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --radius-full:     9999px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:       1200px;
  --nav-height:      72px;
  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow:     0 0 60px rgba(255, 107, 107, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary,
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
  color: #fff;
}

.btn--outline,
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text-dim);
}

.btn--outline:hover,
.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn--lg,
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn__icon {
  flex-shrink: 0;
}

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

.section-header__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* ---------- Page Hero (shared by subpages) ---------- */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero .subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Section (shared) ---------- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ---------- Card (shared) ---------- */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(26, 26, 46, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(22, 22, 42, 0.98);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #ff8e8e);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
}

.navbar__logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

/* Hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--dark-surface);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 8px;
  transition: right var(--transition);
  border-left: 1px solid var(--border-subtle);
}

.navbar__menu.open {
  right: 0;
}

.navbar__link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 0;
  transition: color var(--transition);
}

.navbar__link:hover {
  color: var(--text);
}

.navbar__link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.navbar__link--cta:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  position: relative;
  margin-left: 8px;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switcher__btn:hover {
  background: var(--dark-surface);
  border-color: rgba(255, 255, 255, 0.12);
}

.lang-switcher__flag { font-size: 1.1rem; }
.lang-switcher__code { font-weight: 600; }
.lang-switcher__arrow { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; }
.lang-switcher--open .lang-switcher__arrow { transform: rotate(180deg); }

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  z-index: 1000;
  overflow: hidden;
}

.lang-switcher--open .lang-switcher__dropdown { display: block; }

.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus { background: rgba(255, 255, 255, 0.06); }
.lang-switcher__item:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.lang-switcher__item--active { color: var(--primary); font-weight: 600; }

/* Mobile: language switcher in hamburger menu */
@media (max-width: 768px) {
  .lang-switcher { margin-left: 0; margin-top: 12px; }
  .lang-switcher__dropdown { right: auto; left: 0; }
}

/* Mobile overlay */
.navbar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.navbar__overlay.visible {
  display: block;
}

/* Desktop nav */
@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 32px;
    border: none;
  }

  .navbar__link {
    font-size: 0.9rem;
    padding: 0;
  }

  .navbar__link--cta {
    margin-top: 0;
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 48px) 0 64px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero__content {
  text-align: center;
  max-width: 560px;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badge {
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0.85;
}

.hero__badge:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Phone Mockup */
.hero__visual {
  position: relative;
  flex-shrink: 0;
}

.hero__phone {
  position: relative;
  width: 260px;
  animation: float 6s ease-in-out infinite;
}

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

.hero__phone-frame {
  background: #0D0D1A;
  border-radius: 36px;
  border: 3px solid var(--text-dim);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero__phone-screen {
  position: relative;
  padding: 16px;
  min-height: 460px;
  background: var(--dark-bg);
}

.hero__phone-notch {
  width: 100px;
  height: 24px;
  background: #0D0D1A;
  border-radius: 0 0 16px 16px;
  margin: -16px auto 16px;
}

.hero__phone-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.hero__phone-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__phone-header-dot--green {
  background: var(--secondary);
  box-shadow: 0 0 6px rgba(78, 205, 196, 0.5);
}

.hero__phone-header-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.hero__phone-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__phone-avatar {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
  border-radius: var(--radius);
}

.hero__phone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero__phone-tag {
  padding: 4px 10px;
  background: rgba(78, 205, 196, 0.15);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.hero__phone-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero__phone-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid;
  transition: transform var(--transition);
}

.hero__phone-btn:hover {
  transform: scale(1.1);
}

.hero__phone-btn--pass {
  border-color: var(--text-dim);
  background: rgba(106, 106, 132, 0.1);
}

.hero__phone-btn--super {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.hero__phone-btn--like {
  border-color: var(--primary);
  background: rgba(255, 107, 107, 0.1);
}

/* Hero background glow */
.hero__bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.08) 0%,
    transparent 70%
  );
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

/* Desktop hero layout */
@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
  }

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero__content {
    text-align: left;
  }

  .hero__actions,
  .hero__badges {
    justify-content: flex-start;
  }

  .hero__phone {
    width: 290px;
  }
}

@media (min-width: 1024px) {
  .hero__phone {
    width: 320px;
  }
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features {
  padding: 96px 0;
  background: var(--dark-surface);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.feature-card__icon--pink {
  background: rgba(255, 107, 107, 0.12);
  color: var(--primary);
}

.feature-card__icon--teal {
  background: rgba(78, 205, 196, 0.12);
  color: var(--secondary);
}

.feature-card__icon--blue {
  background: rgba(100, 149, 237, 0.12);
  color: #6495ed;
}

.feature-card__icon--purple {
  background: rgba(178, 102, 255, 0.12);
  color: #b266ff;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

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

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works {
  padding: 96px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step {
  text-align: center;
  max-width: 360px;
  padding: 32px 20px;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff8e8e);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25);
}

.step__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step__connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .step__connector {
    width: 80px;
    height: 2px;
    margin-top: 57px;
    background: linear-gradient(to right, var(--primary), transparent);
  }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  padding: 80px 0;
  background: var(--dark-surface);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 4px;
}

.stat__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat__suffix {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--primary);
}

.stat__label {
  width: 100%;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat__desc {
  width: 100%;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0.8;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: 96px 0;
}

.cta__inner {
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--dark-card),
    rgba(255, 107, 107, 0.06)
  );
  border: 1px solid rgba(255, 107, 107, 0.12);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(255, 107, 107, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.cta__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
  position: relative;
}

.cta__badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 64px 0 32px;
  background: var(--dark-surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__tagline {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   LEGACY SHARED CLASSES (used by about.html, etc.)
   Kept for backward compatibility with subpages using old class names
   ========================================================================== */

/* Legacy navbar (used by about.html pages.css) */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text);
}

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

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-subtle);
  }

  .navbar-links.open {
    transform: translateY(0);
  }
}

/* Legacy footer (used by about.html pages.css) */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  flex: 1 1 250px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.footer-col {
  flex: 0 1 160px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

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

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 6.5rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger feature cards */
.features__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features__grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Stagger stats */
.stats__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stats__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stats__grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__phone {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
