/* =============================================
   AHLATCI APP - Professional Landing Page CSS
   Design System: Clean Light Theme + Green Accent
   ============================================= */

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

:root {
  /* ─── App Color Palette ─── */
  --clr-primary: #04AA3C;
  --clr-primary-light: #5CD02D;
  --clr-primary-dark: #038A30;
  --clr-secondary: #002ABD;
  --clr-tertiary: #E15C3B;
  --clr-pink: #E13B70;

  --clr-positive: #07B943;
  --clr-negative: #DC2F3F;
  --clr-error: #DA172A;

  /* Backgrounds */
  --clr-bg: #F5F5F7;
  --clr-bg-secondary: #F2F2F2;
  --clr-surface: #FFFFFF;
  --clr-surface-variant: #E4E6E8;
  --clr-surface-primary-tint: #F3FAFA;
  --clr-surface-secondary-tint: #FAF6F3;
  --clr-surface-tertiary-tint: #FAF3F7;

  /* Text */
  --clr-on-surface: #141515;
  --clr-on-background: #18191A;
  --clr-text-secondary: #494949;
  --clr-text-muted: #797979;
  --clr-text-placeholder: #8F7E53;

  /* Nav */
  --clr-nav-selected: #282828;
  --clr-nav-unselected: #494949;
  --clr-nav-icon-selected: #5CD02D;
  --clr-nav-icon-unselected: rgba(92, 208, 45, 0.54);
  --clr-nav-def: #444444;

  /* Category Colors */
  --clr-nav1: #5D5C5B;
  --clr-nav2: #04B84B;
  --clr-nav3: #EEBE49;
  --clr-nav4: #5BB7E7;
  --clr-nav5: #EA85BF;

  /* UI */
  --clr-button-def: #F0F2F3;
  --clr-topbar: #E5E5E5;
  --clr-border: rgba(0, 0, 0, 0.06);
  --clr-border-hover: rgba(0, 0, 0, 0.12);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #04AA3C, #5CD02D);
  --gradient-hero: linear-gradient(135deg, #04AA3C 0%, #002ABD 100%);
  --gradient-warm: linear-gradient(135deg, #E15C3B, #E13B70);
  --gradient-cool: linear-gradient(135deg, #002ABD, #5BB7E7);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-green: 0 4px 24px rgba(4, 170, 60, 0.25);
  --shadow-green-lg: 0 8px 32px rgba(4, 170, 60, 0.3);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-primary);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Borders & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--clr-bg);
  color: var(--clr-on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Background Pattern ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(4, 170, 60, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-blob {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-blob.blob-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(4, 170, 60, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.bg-gradient-blob.blob-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 42, 189, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--clr-on-surface);
}

.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-green);
}

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

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.navbar-links a:hover {
  color: var(--clr-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  background: var(--clr-surface);
  color: var(--clr-on-surface);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  font-size: 1.15em;
}

/* ── Mobile Menu Toggle ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-on-surface);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
  background: var(--clr-surface);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-surface-primary-tint) 0%, rgba(4, 170, 60, 0.04) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--clr-surface-primary-tint);
  border: 1px solid rgba(4, 170, 60, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 24px;
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--clr-on-background);
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--clr-text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-primary);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 50px rgba(4, 170, 60, 0.12));
  animation: float 6s ease-in-out infinite;
}

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

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(4, 170, 60, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ── Section Titles ── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-primary);
  margin-bottom: 14px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--clr-primary);
  opacity: 0.3;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--clr-on-background);
}

.section-description {
  font-size: 1.05rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* ── Features Section ── */
.features {
  padding: var(--section-padding);
}

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

.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(4, 170, 60, 0.15);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.feature-icon.icon-green {
  background: rgba(4, 170, 60, 0.08);
  border: 1px solid rgba(4, 170, 60, 0.1);
}

.feature-icon.icon-blue {
  background: rgba(0, 42, 189, 0.06);
  border: 1px solid rgba(0, 42, 189, 0.08);
}

.feature-icon.icon-orange {
  background: rgba(225, 92, 59, 0.06);
  border: 1px solid rgba(225, 92, 59, 0.08);
}

.feature-icon.icon-pink {
  background: rgba(225, 59, 112, 0.06);
  border: 1px solid rgba(225, 59, 112, 0.08);
}

.feature-icon.icon-yellow {
  background: rgba(238, 190, 73, 0.1);
  border: 1px solid rgba(238, 190, 73, 0.12);
}

.feature-icon.icon-cyan {
  background: rgba(91, 183, 231, 0.08);
  border: 1px solid rgba(91, 183, 231, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-on-surface);
}

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

/* ── Screenshots Marquee Carousel ── */
.screenshots {
  padding: var(--section-padding);
  background: var(--clr-surface);
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Edge fade gradients */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-surface), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-surface), transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 12px 0;
}

/* Row 1 scrolls left */
.marquee-track.scroll-left {
  animation: marquee-scroll-left 35s linear infinite;
}

/* Row 2 scrolls right */
.marquee-track.scroll-right {
  animation: marquee-scroll-right 40s linear infinite;
  margin-top: 20px;
}

@keyframes marquee-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Pause on hover */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Screenshot items */
.marquee-item {
  flex-shrink: 0;
  width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--clr-bg);
  position: relative;
}

.marquee-item:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(4, 170, 60, 0.2);
  z-index: 5;
}

.marquee-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Subtle label under each screen */
.marquee-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.marquee-item:hover .marquee-item-label {
  opacity: 1;
}

.marquee-item-label span {
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

/* Responsive marquee sizes */
@media (max-width: 768px) {
  .marquee-item {
    width: 180px;
  }
  
  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .marquee-item {
    width: 150px;
  }
  
  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 32px;
  }
  
  .marquee-track {
    gap: 12px;
  }
}

/* ── How It Works ── */
.how-it-works {
  padding: var(--section-padding);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: 0.12;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-green);
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-on-surface);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--clr-text-secondary);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Testimonials ── */
.testimonials {
  padding: var(--section-padding);
}

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

.testimonial-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(4, 170, 60, 0.12);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--clr-nav3);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-on-surface);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ── Stats Banner ── */
.stats-banner {
  padding: 80px 0;
  background: var(--clr-surface);
}

.stats-container {
  background: linear-gradient(135deg, #04AA3C, #038A30, #002ABD);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  box-shadow: var(--shadow-green-lg);
  position: relative;
  overflow: hidden;
}

.stats-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 50%);
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ── Firebase Section ── */
.firebase-section {
  padding: var(--section-padding);
}

.firebase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.firebase-text {
  max-width: 480px;
}

.firebase-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.firebase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-smooth);
}

.firebase-feature-item:hover {
  border-color: rgba(255, 160, 0, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.firebase-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(255, 160, 0, 0.08);
  border: 1px solid rgba(255, 160, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.firebase-feature-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: var(--clr-on-surface);
}

.firebase-feature-desc {
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  line-height: 1.5;
}

.firebase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.firebase-logo-container {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.firebase-orbit {
  position: absolute;
  border: 1.5px dashed rgba(255, 160, 0, 0.12);
  border-radius: 50%;
  animation: orbit-spin 20s linear infinite;
}

.firebase-orbit:nth-child(1) { width: 180px; height: 180px; }
.firebase-orbit:nth-child(2) { width: 260px; height: 260px; animation-duration: 28s; animation-direction: reverse; }
.firebase-orbit:nth-child(3) { width: 320px; height: 320px; animation-duration: 36s; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.firebase-orbit-dot {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid rgba(255, 160, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.firebase-orbit:nth-child(1) .firebase-orbit-dot { top: -19px; left: 50%; margin-left: -19px; }
.firebase-orbit:nth-child(2) .firebase-orbit-dot { bottom: -19px; right: -19px; }
.firebase-orbit:nth-child(3) .firebase-orbit-dot { top: 50%; left: -19px; margin-top: -19px; }

.firebase-center-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFA000, #FF6F00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 28px rgba(255, 160, 0, 0.25);
  z-index: 2;
  position: relative;
}

/* ── CTA Section ── */
.cta-section {
  padding: var(--section-padding);
  background: var(--clr-surface);
}

.cta-card {
  background: linear-gradient(135deg, #04AA3C 0%, #038A30 40%, #002ABD 100%);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-green-lg);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--clr-primary);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ── Contact Section ── */
.contact-section {
  padding: var(--section-padding);
}

.contact-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-on-surface);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(4, 170, 60, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 32px;
  background: var(--clr-on-background);
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer .navbar-logo {
  color: white;
  margin-bottom: 4px;
}

.footer .navbar-logo .logo-icon {
  box-shadow: none;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: white;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--clr-primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all var(--transition-smooth);
}

.footer-social a:hover {
  background: rgba(4, 170, 60, 0.15);
  border-color: rgba(4, 170, 60, 0.3);
  color: var(--clr-primary-light);
  transform: translateY(-2px);
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Particles ── */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: translateY(90vh) translateX(8px) scale(1);
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-10vh) translateX(-15px) scale(0);
    opacity: 0;
  }
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-on-surface);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--clr-primary);
}

/* ── 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(--clr-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  animation: bounce-down 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--clr-primary), transparent);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── App Showcase Badges (for category colors) ── */
.color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.color-dot.c1 { background: var(--clr-nav1); }
.color-dot.c2 { background: var(--clr-nav2); }
.color-dot.c3 { background: var(--clr-nav3); }
.color-dot.c4 { background: var(--clr-nav4); }
.color-dot.c5 { background: var(--clr-nav5); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero::before {
    width: 100%;
    clip-path: none;
    height: 50%;
    bottom: 0;
    top: auto;
  }

  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    max-width: 500px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image img {
    max-width: 320px;
  }

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

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

  .steps-grid::before {
    display: none;
  }

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

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

  .firebase-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .firebase-text {
    max-width: 100%;
  }

  .firebase-features {
    align-items: center;
  }

  .firebase-feature-item {
    max-width: 420px;
    width: 100%;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-links,
  .navbar-cta {
    display: none;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

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

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

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

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .firebase-logo-container {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}
