/* ==========================================================================
   Focus Aura CSS Design System
   ========================================================================== */

/* Variables & Design Tokens */
:root {
  /* Color Palette */
  --bg-color: #0f0f12;
  --surface-color: rgba(26, 26, 34, 0.65);
  --surface-elevated: rgba(34, 34, 46, 0.8);
  --border-color: rgba(45, 45, 53, 0.6);
  --divider-color: rgba(45, 45, 53, 0.4);

  --primary-color: #a855f7; /* Purple */
  --primary-light: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.35);

  --secondary-color: #22c55e; /* Neon Green */
  --secondary-light: #4ade80;
  --secondary-glow: rgba(34, 197, 94, 0.25);

  --accent-color: #c084fc;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-hint: #475569;

  --gold-color: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.3);

  /* Section & Structural Backgrounds */
  --header-bg: rgba(15, 15, 18, 0.8);
  --nav-mobile-bg: rgba(15, 15, 18, 0.98);
  --section-secondary-bg: #131317;
  --card-bg: #121216;
  --footer-bg: #0b0b0d;

  /* Navigation Hover Styles */
  --nav-hover-bg: rgba(168, 85, 247, 0.15);
  --nav-hover-text: var(--primary-light);

  /* Phone Mockup Sim Variables */
  --phone-mockup-bg: #000000;
  --phone-mockup-border: #27272a;
  --phone-bg: #0b0b0e;
  --phone-border: #18181b;
  --phone-display-bg: rgba(255, 255, 255, 0.02);
  --phone-display-border: rgba(255, 255, 255, 0.03);
  --phone-chip-bg: rgba(255, 255, 255, 0.03);
  --phone-chip-border: rgba(255, 255, 255, 0.05);
  --phone-chip-hover-bg: rgba(255, 255, 255, 0.06);
  --phone-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
}

body.light-theme {
  --bg-color: #f8fafc;
  --surface-color: rgba(255, 255, 255, 0.75);
  --surface-elevated: rgba(255, 255, 255, 0.9);
  --border-color: rgba(226, 232, 240, 0.8);
  --divider-color: rgba(226, 232, 240, 0.6);

  --primary-color: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-glow: rgba(139, 92, 246, 0.15);

  --secondary-color: #16a34a;
  --secondary-light: #22c55e;
  --secondary-glow: rgba(22, 163, 74, 0.1);

  --accent-color: #a78bfa;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-hint: #94a3b8;

  --gold-color: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.15);

  /* Section & Structural Backgrounds (Light Theme) */
  --header-bg: rgba(248, 250, 252, 0.85);
  --nav-mobile-bg: rgba(248, 250, 252, 0.98);
  --section-secondary-bg: #f1f5f9;
  --card-bg: #ffffff;
  --footer-bg: #e2e8f0;

  /* Navigation Hover Styles (Light Theme) */
  --nav-hover-bg: rgba(139, 92, 246, 0.08);
  --nav-hover-text: var(--primary-color);

  /* Phone Mockup Sim Variables (Light Theme) */
  --phone-mockup-bg: #0f172a;
  --phone-mockup-border: #cbd5e1;
  --phone-bg: #ffffff;
  --phone-border: #e2e8f0;
  --phone-display-bg: rgba(15, 23, 42, 0.02);
  --phone-display-border: rgba(15, 23, 42, 0.04);
  --phone-chip-bg: rgba(15, 23, 42, 0.03);
  --phone-chip-border: rgba(15, 23, 42, 0.05);
  --phone-chip-hover-bg: rgba(15, 23, 42, 0.06);
  --phone-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 40px rgba(139, 92, 246, 0.1);
}

:root {
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Fonts */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;

  /* Transition Speed */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   Modern engine primitives (2026): registered custom props, cross-document
   view transitions and shared keyframes. All are progressive enhancements —
   browsers without support simply ignore them.
   ========================================================================== */

/* Smooth cross-fade between same-origin pages (e.g. language switch),
   replacing the hard white reload. Enhancement only. */
@view-transition {
  navigation: auto;
}

/* The aurora gradient is painted once into its own layer, then rotated purely
   on the compositor (transform) — no per-frame repaint, so it stays cheap. */
@keyframes aurora-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes text-shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle film grain for a premium, matte finish. A single static SVG noise
   tile painted once over everything — no per-frame cost. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

body.light-theme::after {
  opacity: 0.02;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

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

/* Typography Helper Classes */
.font-poppins {
  font-family: var(--font-primary);
}

.font-inter {
  font-family: var(--font-secondary);
}

.font-serif-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: inherit;
  text-transform: none;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(
    100deg,
    var(--primary-light),
    #6366f1,
    #22d3ee,
    var(--primary-light)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .text-gradient {
    animation: text-shimmer 7s linear infinite;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--surface-elevated);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Section Header Shared Styles */
.section-header {
  margin-bottom: var(--space-xxl);
}

.section-tagline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Typographic polish: balance headings so no orphan word dangles on its own
   line, and use `pretty` for body copy to avoid widows. Progressive — ignored
   where unsupported. */
h1,
h2,
h3,
.hero-title,
.section-title,
.download-title {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p,
.hero-description,
.section-subtitle,
.feature-content p,
.plant-card-desc {
  text-wrap: pretty;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 0;
  transition: var(--transition-smooth);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.app-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.app-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 12px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--nav-hover-text);
  background-color: var(--nav-hover-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-header-download {
  padding: 8px 18px;
  font-size: 14px;
}

/* Hamburger Toggle Button */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.toggle-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xxl);
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: calc(100vh - 70px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: clamp(1.5rem, 0.9rem + 3.4vw, 3.6rem);
  overflow-wrap: break-word;
  hyphens: auto;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xxl);
}

/* Hero Platforms Badges */
.hero-platforms {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.platform-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.platform-badges {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.platform-ios {
  border-color: rgba(168, 85, 247, 0.15);
}

.platform-ios .ios-icon {
  color: var(--primary-light);
  filter: drop-shadow(0 0 3px var(--primary-glow));
}

.platform-ios:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.platform-android {
  border-color: rgba(34, 197, 94, 0.15);
}

.platform-android .android-icon {
  color: var(--secondary-light);
  filter: drop-shadow(0 0 3px var(--secondary-glow));
}

.platform-android:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.platform-badge:hover .platform-icon {
  transform: scale(1.15);
}

/* Light Theme overrides */

body.light-theme .platform-badge {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .platform-ios {
  border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .platform-ios .ios-icon {
  color: var(--primary-color);
}

body.light-theme .platform-ios:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

body.light-theme .platform-android {
  border-color: rgba(22, 163, 74, 0.2);
}

body.light-theme .platform-android .android-icon {
  color: var(--secondary-color);
}

body.light-theme .platform-android:hover {
  background: rgba(22, 163, 74, 0.06);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--divider-color);
}

/* ==========================================================================
   Hero Screenshot (Real App Image)
   ========================================================================== */
.hero-screenshot-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-screenshot-frame {
  max-width: 340px;
  animation: float 6s ease-in-out infinite;
  transition: var(--transition-smooth);
  position: relative;
}

/* Remove bottom fade gradient since the mockup is transparent and not full-bleed */
.hero-screenshot-frame::after {
  display: none;
}

.hero-screenshot-frame:hover {
  transform: scale(1.02);
}

.hero-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Interactive Split-Screen "How It Works" Section
   ========================================================================== */
.how-it-works-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xxl);
  align-items: center;
  margin-top: var(--space-xl);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-item.active {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
  background: rgba(168, 85, 247, 0.02);
}

.step-item.active::before {
  opacity: 1;
}

.step-item:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
}

.step-num-badge {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-light);
  background: rgba(168, 85, 247, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-color);
  transition: color 0.3s ease;
}

.step-item.active .step-content h3 {
  color: var(--primary-light);
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mobile image - hidden by default on desktop */
.step-mobile-screenshot {
  display: none;
}

.step-screenshot-img {
  width: 100%;
  max-width: 300px;
  transition: transform 0.4s ease;
}

.how-it-works-mockup {
  display: flex;
  justify-content: center;
}

.interactive-phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 450 / 900;
  margin: 0 auto;
}

.step-mockup-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.step-mockup-img.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Feature Row Layout (vertical list with alternating screenshots)
   ========================================================================== */
/* ==========================================================================
   Unique Features Interactive Layout (matching How It Works)
   ========================================================================== */
.features-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xxl);
  align-items: center;
  margin-top: var(--space-xl);
}

.features-interactive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  align-items: flex-start;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item.active {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
  background: rgba(168, 85, 247, 0.02);
}

.feature-item.active::before {
  opacity: 1;
}

.feature-item:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
}

.feature-item .feature-icon-box {
  margin-bottom: 0;
  margin-top: 4px;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-color);
  transition: color 0.3s ease;
}

.feature-item.active .feature-content h3 {
  color: var(--primary-light);
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-mobile-screenshot {
  display: none;
}

.feature-screenshot-img {
  width: 100%;
  max-width: 280px;
  transition: transform 0.4s ease;
}

.features-mockup {
  display: flex;
  justify-content: center;
}

.feature-mockup-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.feature-mockup-img.active {
  opacity: 1;
  pointer-events: auto;
}

.feature-mockup-dual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.feature-mockup-dual.active {
  opacity: 1;
  pointer-events: auto;
}

.feature-mockup-dual .feature-screenshot-img {
  max-width: 260px;
}

.feature-mockup-dual .feature-screenshot-secondary {
  max-width: 220px;
  opacity: 0.9;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--section-secondary-bg) 100%);
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Deprecated steps-grid and step-card classes replaced by how-it-works-container */

/* ==========================================================================
   App Screenshots Showcase (Auto-scrolling Carousel)
   ========================================================================== */
.app-showcase-section {
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, var(--section-secondary-bg) 0%, var(--bg-color) 50%, var(--section-secondary-bg) 100%);
  border-top: 1px solid var(--border-color);
}

.showcase-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
}

/* Fade edges for premium look */
.showcase-carousel-wrapper::before,
.showcase-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.showcase-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.showcase-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.showcase-carousel {
  display: flex;
  gap: var(--space-xl);
  animation: showcase-scroll 80s linear infinite;
  width: max-content;
}

.showcase-carousel:hover {
  animation-play-state: paused;
}

@keyframes showcase-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move exactly half (8 items worth) to create seamless loop */
    transform: translateX(calc(-50%));
  }
}

.showcase-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition-smooth);
}

.showcase-item:hover {
  transform: scale(1.03) translateY(-4px);
}

.showcase-phone-frame {
  width: 260px;
  transition: var(--transition-smooth);
  position: relative;
}

.showcase-item:hover .showcase-phone-frame {
  /* Clean design for transparent mockups */
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.showcase-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.showcase-item:hover .showcase-label {
  color: var(--primary-light);
}

/* Light theme adjustments */
body.light-theme .showcase-carousel-wrapper::before {
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

body.light-theme .showcase-carousel-wrapper::after {
  background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

/* No shadows or borders for light theme showcase mockups */

/* ==========================================================================
   Plants showcase
   ========================================================================== */
.plants-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.plants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.plant-card {
  border-radius: var(--radius-xl);
  padding: 1px; /* gradient border */
  transition: var(--transition-smooth);
}

/* Custom Gradients from constant values */
.plant-ember {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(245, 158, 11, 0.02) 100%
  );
}
.plant-moss {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(34, 197, 94, 0.02) 100%
  );
}
.plant-ivy {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1) 0%,
    rgba(168, 85, 247, 0.02) 100%
  );
}
.plant-void {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(99, 102, 241, 0.02) 100%
  );
}

.plant-card-inner {
  background: var(--card-bg);
  border-radius: calc(var(--radius-xl) - 1px);
  padding: var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.rarity-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.rarity-badge.common {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.rarity-badge.rare {
  background: rgba(34, 197, 94, 0.1);
  color: var(--secondary-light);
}
.rarity-badge.epic {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary-light);
}
.rarity-badge.legendary {
  background: rgba(251, 191, 36, 0.1);
  color: var(--gold-color);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.plant-card-img-container {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.plant-card-img {
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.plant-card:hover .plant-card-img {
  transform: scale(1.1) translateY(-6px);
}

.plant-card:hover {
  transform: translateY(-4px);
}

/* Specific glows on hover */
.plant-ember:hover {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
}
.plant-moss:hover {
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.08);
}
.plant-ivy:hover {
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
}
.plant-void:hover {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.plant-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.plant-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.plant-meta {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 10px;
  color: var(--text-hint);
  text-transform: uppercase;
}

.meta-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  background: var(--section-secondary-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-md);
}

/* Feature Colors */
.feature-icon-box.orange {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.feature-icon-box.green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.feature-icon-box.purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary-light);
}
.feature-icon-box.blue {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.feature-svg-icon {
  width: 22px;
  height: 22px;
}

.feature-card-content {
  display: flex;
  flex-direction: column;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ Section Accordions
   ========================================================================== */
.faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  padding: var(--space-lg);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-arrow {
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: none; /* JS will toggle */
  animation: slideDown 0.3s ease forwards;
}

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

.faq-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.03);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-item.faq-item-hidden {
  display: none;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.faq-item-visible {
  display: block;
  animation: faqFadeIn 0.4s ease forwards;
}

.faq-more-btn-container {
  margin-top: var(--space-xl);
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */
.download-section {
  background:
    linear-gradient(135deg, var(--section-secondary-bg) 0%, var(--bg-color) 100%),
    radial-gradient(
      ellipse at center,
      var(--primary-glow) 0%,
      transparent 60%
    );
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.download-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.download-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl) auto;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.store-badge {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.store-badge:hover {
  border-color: var(--primary-color);
  background: var(--surface-elevated);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

.store-icon {
  width: 24px;
  height: 24px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-subtext {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.badge-maintext {
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xxl) 0 var(--space-lg) 0;
}

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

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 260px;
}

.footer-links-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links-list a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links-list a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--divider-color);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright-text {
  font-size: 12px;
  color: var(--text-hint);
  text-align: center;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Layout (under 992px) */
@media screen and (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: var(--space-xxl);
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin: 0 auto var(--space-xl) auto;
  }

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

  .hero-platforms {
    justify-content: center;
    margin-bottom: var(--space-xxl);
  }

  .how-it-works-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .how-it-works-mockup {
    display: none;
  }

  .step-mobile-screenshot {
    display: block;
    margin-top: var(--space-md);
    width: 100%;
    text-align: center;
  }

  .step-mobile-screenshot img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .step-item {
    cursor: default;
  }

  .step-item::before {
    display: none;
  }

  .step-item.active {
    border-color: var(--border-color);
    box-shadow: none;
    background: var(--surface-color);
  }

  .step-item.active .step-content h3 {
    color: var(--text-color);
  }

  .plants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .features-mockup {
    display: none;
  }

  .feature-mobile-screenshot {
    display: block;
    margin-top: var(--space-md);
    width: 100%;
    text-align: center;
  }

  .feature-mobile-screenshot img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .feature-mobile-screenshot .feature-screenshot-secondary {
    display: block;
    margin: var(--space-md) auto 0 auto;
    max-width: 200px;
    opacity: 0.9;
  }

  .feature-item {
    cursor: default;
  }

  .feature-item::before {
    display: none;
  }

  .feature-item.active {
    border-color: var(--border-color);
    box-shadow: none;
    background: var(--surface-color);
  }

  .feature-item.active .feature-content h3 {
    color: var(--text-color);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    text-align: left;
  }

  .footer-brand-column {
    align-items: flex-start;
  }

  .footer-tagline {
    max-width: 100%;
  }
}
/* Mobile Menu Interaction (under 992px) */
@media screen and (max-width: 992px) {
  .nav-toggle-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-mobile-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 999;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: 16px;
  }

  /* Toggle active animation */
  .nav-toggle-btn.open .toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle-btn.open .toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-btn.open .toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .btn-header-download {
    display: none;
  }


  .hero-description {
    font-size: 15px;
  }

  .steps-grid {
    max-width: 100%;
    margin: 0 auto;
  }

  .features-list {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .how-it-works-section,
  .app-showcase-section,
  .plants-section,
  .features-section,
  .faq-section,
  .download-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .showcase-phone-frame {
    width: 220px;
  }

  .showcase-carousel-wrapper::before,
  .showcase-carousel-wrapper::after {
    width: 80px;
  }
}

/* Small Mobile Layout (under 576px) */
@media screen and (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-platforms {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-lg);
  }

  .hero-stats {
    flex-direction: column;
    width: 100%;
    gap: var(--space-md);
    padding: var(--space-lg);
    text-align: center;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    background-color: var(--divider-color);
  }

  .plants-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .showcase-phone-frame {
    width: 190px;
  }

  .showcase-carousel {
    gap: var(--space-lg);
  }

  .showcase-carousel-wrapper::before,
  .showcase-carousel-wrapper::after {
    width: 50px;
  }

  .showcase-label {
    font-size: 11px;
  }


  .download-subtitle {
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-brand-column {
    align-items: center;
  }
}

/* Narrow Screen/Extra Small Phones (under 400px) */
@media screen and (max-width: 400px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .hero-screenshot-frame {
    max-width: 260px;
  }

  .step-screenshot-img,
  .feature-screenshot-img {
    max-width: 200px;
  }

  .feature-item {
    padding: var(--space-lg);
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .store-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ==========================================================================
   Theme & Language Selector Components
   ========================================================================== */

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-toggle-btn .theme-icon-sun {
  display: block;
}

.theme-toggle-btn .theme-icon-moon {
  display: none;
}

body.light-theme .theme-toggle-btn .theme-icon-sun {
  display: none;
}

body.light-theme .theme-toggle-btn .theme-icon-moon {
  display: block;
}

/* Custom Language Dropdown */
.lang-selector-wrapper {
  position: relative;
  z-index: 1010;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-secondary);
}

.lang-btn:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
}

.lang-btn svg.arrow-icon {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.lang-selector-wrapper.open .lang-btn svg.arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 145px;
  padding: var(--space-xs) 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-smooth);
  list-style: none;
  margin: 0;
}

.lang-selector-wrapper.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  padding: 8px var(--space-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-secondary);
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

body.light-theme .lang-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.lang-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* ==========================================================================
/* Ambient Background Glows */
.ambient-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Aurora: a slowly rotating conic color wheel behind the soft glows. Smooth
   color stops (no hard transparent gaps) read as shifting northern light
   rather than a pinwheel. Animated only on capable, non-touch displays. */
.ambient-glow-container::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 90%;
  background: conic-gradient(
    from 90deg,
    var(--primary-glow),
    var(--secondary-glow),
    rgba(34, 211, 238, 0.18),
    var(--primary-glow)
  );
  opacity: 0.4;
  border-radius: var(--radius-full);
  pointer-events: none;
  transform: rotate(0deg);
  transform-origin: center;
  /* Feather the edges so it blends into the page instead of reading as a hard
     ellipse — a static mask, far cheaper than a blur filter. */
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 35%,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
}

@media (min-width: 993px) and (prefers-reduced-motion: no-preference) {
  .ambient-glow-container::before {
    animation: aurora-spin 48s linear infinite;
  }
}

body.light-theme .ambient-glow-container::before {
  opacity: 0.25;
}

.bg-ambient-blur {
  position: absolute;
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.3s ease;
}

body.light-theme .bg-ambient-blur {
  opacity: 0.06;
  filter: blur(140px);
}

.blur-1 {
  top: 10%;
  left: -10%;
  background: var(--primary-color);
}

.blur-2 {
  top: 40%;
  right: -10%;
  background: var(--secondary-color);
}

.blur-3 {
  top: 80%;
  left: 20%;
  background: var(--primary-color);
}

/*
 * Mobile performance: `filter: blur(120px)` on full-viewport layers is
 * extremely expensive to composite on iOS Safari (it allocates a huge
 * offscreen buffer and re-rasterizes it on every paint), which is the main
 * cause of multi-second freezes / blank screens on phones. On touch/small
 * screens we drop the GPU blur entirely and fake the same soft glow with a
 * radial-gradient, which costs effectively nothing to paint.
 */
@media screen and (max-width: 992px) {
  .bg-ambient-blur,
  body.light-theme .bg-ambient-blur {
    filter: none;
    background: radial-gradient(
      circle at center,
      var(--primary-color) 0%,
      transparent 70%
    );
    opacity: 0.18;
  }

  .blur-2 {
    background: radial-gradient(
      circle at center,
      var(--secondary-color) 0%,
      transparent 70%
    );
  }

  body.light-theme .bg-ambient-blur {
    opacity: 0.1;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Native scroll-driven reveal: where supported, the browser ties the reveal
   animation directly to the element's position in the scrollport — smoother
   than JS and runs off the main thread. The JS IntersectionObserver fallback
   is skipped at runtime when this is available (see script.js). */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Staggered delays for premium feel */
.steps-grid .step-card:nth-child(1).reveal-visible {
  transition-delay: 0.1s;
}
.steps-grid .step-card:nth-child(2).reveal-visible {
  transition-delay: 0.2s;
}
.steps-grid .step-card:nth-child(3).reveal-visible {
  transition-delay: 0.3s;
}

.plants-grid .plant-card:nth-child(1).reveal-visible {
  transition-delay: 0.1s;
}
.plants-grid .plant-card:nth-child(2).reveal-visible {
  transition-delay: 0.2s;
}
.plants-grid .plant-card:nth-child(3).reveal-visible {
  transition-delay: 0.3s;
}
.plants-grid .plant-card:nth-child(4).reveal-visible {
  transition-delay: 0.4s;
}

.features-interactive-list .feature-item:nth-child(1).reveal-visible {
  transition-delay: 0.1s;
}
.features-interactive-list .feature-item:nth-child(2).reveal-visible {
  transition-delay: 0.2s;
}
.features-interactive-list .feature-item:nth-child(3).reveal-visible {
  transition-delay: 0.3s;
}
.features-interactive-list .feature-item:nth-child(4).reveal-visible {
  transition-delay: 0.4s;
}

/* ==========================================================================
   Contact Support Section
   ========================================================================== */

.contact-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  align-items: start;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15);
}

body.light-theme .contact-info-card:hover {
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.08);
}

.info-card-icon {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-info-card:hover .info-card-icon {
  background: var(--primary-color);
  color: #fff;
}

.info-card-icon svg {
  width: 24px;
  height: 24px;
}

.info-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.info-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.info-card-link {
  font-size: 16px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.info-card-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.info-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.info-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.info-card-socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.tg-link {
  background: #24a1de;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.3);
}

.discord-link {
  background: #5865f2;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

/* Contact Form Column */
.contact-form-column {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.contact-form-wrapper {
  padding: var(--space-xl);
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

body.light-theme .form-input,
body.light-theme .form-textarea,
body.light-theme .form-select {
  background: rgba(15, 23, 42, 0.03);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-hint);
  opacity: 0.8;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

body.light-theme .form-input:focus,
body.light-theme .form-textarea:focus,
body.light-theme .form-select:focus {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Custom Select Dropdown Styles */
.custom-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #121216;
  color: #fff;
}

body.light-theme .form-select option {
  background: #ffffff;
  color: #0f172a;
}

.select-arrow {
  position: absolute;
  right: 16px;
  width: 12px;
  height: 8px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.form-select:focus + .select-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Error validation styling */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group.has-error .form-label {
  color: #ef4444;
}

.form-error-msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  animation: fadeIn 0.2s ease-in-out forwards;
}

.form-group.has-error .form-error-msg {
  display: block;
}

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

/* Button & Spinner Styles */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: var(--space-sm);
  border: none;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Card & Checkmark Animation */
.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) 0;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-svg {
  width: 72px;
  height: 72px;
  display: block;
}

.success-circle {
  stroke-dasharray: 158;
  stroke-dashoffset: 158;
  stroke: var(--secondary-color);
  stroke-width: 3;
  stroke-miterlimit: 10;
  fill: none;
  animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--secondary-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: stroke-check 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke-circle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes stroke-check {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.success-msg {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: var(--space-lg);
}

.btn-another {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Responsiveness Media Queries for Contact */
@media screen and (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media screen and (max-width: 576px) {
  .contact-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
  
  .contact-form-wrapper {
    padding: var(--space-lg);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ==========================================================================
   Legal Pages (Privacy Policy & Terms of Use)
   ========================================================================== */
.legal-page-container {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 200px);
}

.legal-content-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-content-card h2 {
  font-family: var(--font-poppins);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.legal-last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: var(--space-md);
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h3 {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-section p, 
.legal-section ul {
  font-family: var(--font-secondary);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section ul {
  padding-left: var(--space-lg);
  margin-top: var(--space-xs);
}

.legal-section li {
  margin-bottom: var(--space-sm);
}

.legal-section a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.legal-section a:hover {
  color: var(--primary-light);
}

@media screen and (max-width: 768px) {
  .legal-content-card {
    padding: var(--space-lg);
  }
}

/* ==========================================================================
   Pricing / Free vs PRO Section
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
  background: var(--section-secondary-bg);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Pricing Switcher Toggle */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: 40px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* The switch - the box around the slider */
.pricing-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Hide default HTML checkbox */
.pricing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.pricing-switch input:checked + .slider {
  background-color: var(--secondary-color);
}

.pricing-switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* Switch Hover Effects */
.pricing-switch:hover .slider {
  box-shadow: 0 0 10px var(--primary-glow);
}

.pricing-switch input:checked:hover + .slider {
  box-shadow: 0 0 10px var(--secondary-glow);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.pricing-card-inner {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover .pricing-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* PRO Card Special Styles */
.pricing-card-pro .pricing-card-inner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(99, 102, 241, 0.08));
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.pricing-card-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-color), #6366f1, #22d3ee);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.pricing-card-pro:hover .pricing-card-inner {
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.25);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: #ffffff;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.pricing-card-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--divider-color);
}

.pricing-plan-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pro-crown {
  font-size: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-card-pro .pricing-amount {
  background: linear-gradient(135deg, var(--primary-light), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-yearly {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pricing-trial-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--secondary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* Feature List */
.pricing-features-list {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature.disabled {
  color: var(--text-hint);
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.1);
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-check.pro {
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary-light);
}

.feature-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hint);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Light Theme overrides for pricing */
body.light-theme .pricing-feature {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .feature-cross {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .pricing-card-pro::before {
  background: linear-gradient(135deg, var(--primary-color), #6366f1, #06b6d4);
}
/* Responsive Pricing */
@media screen and (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-card-pro {
    order: -1;
  }

  .pricing-toggle-container {
    margin-bottom: 56px; /* Prevent 'MOST POPULAR' badge overlap on mobile viewports */
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .showcase-carousel {
    animation: none;
  }

  .showcase-carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .showcase-item {
    scroll-snap-align: center;
  }
}

/*
 * Mobile: replace the perpetual 80s carousel animation with native horizontal
 * swiping. A never-ending transform animation keeps the compositor busy and
 * drains battery on phones; native scroll is free and feels better on touch.
 */
@media screen and (hover: none) and (pointer: coarse) {
  .showcase-carousel {
    animation: none;
    width: auto;
  }

  .showcase-carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .showcase-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }

  .showcase-item {
    scroll-snap-align: center;
  }
}

/* Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15); /* Semi-transparent primary purple */
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--text-color, #ffffff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(168, 85, 247, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
  background: var(--primary-color, #a855f7);
  border-color: var(--primary-color, #a855f7);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.btn-back-to-top:active {
  transform: translateY(0) scale(0.98);
}

.btn-back-to-top .arrow-up-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-back-to-top:hover .arrow-up-icon {
  transform: translateY(-2px);
}

/* Adjust position for mobile */
@media (max-width: 992px) {
  .btn-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Optimize navigation links spacing for laptop screens to prevent overflow/wrap in longer languages */
@media screen and (min-width: 992px) and (max-width: 1200px) {
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
  .nav-list {
    gap: 6px;
  }
}
