/* ===================================================================
   GestureDraw by Orbit Tech Lab - Modern Landing Page Stylesheet
   Theme: Modern Glassmorphism, White/Ice-Blue/Lavender with Gradient Accents
   =================================================================== */

:root {
  /* Navigation Bar Dimensions */
  --nav-height: 68px;

  /* Color Palette */
  --bg-color: #F8FAFF;
  --primary-blue: #2563EB;
  --cyan: #06B6D4;
  --violet: #8B5CF6;
  --magenta: #EC4899;
  --text-main: #101B45;
  --text-muted: #5A6785;
  --card-bg: #FFFFFF;
  --card-border: rgba(139, 92, 246, 0.14);
  --card-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.08), 0 4px 12px rgba(139, 92, 246, 0.04);
  --card-hover-shadow: 0 22px 48px -8px rgba(37, 99, 235, 0.16), 0 8px 20px rgba(139, 92, 246, 0.08);

  /* Gradients */
  --btn-gradient: linear-gradient(135deg, #2563EB 0%, #8B5CF6 100%);
  --btn-gradient-hover: linear-gradient(135deg, #1D4ED8 0%, #7C3AED 100%);
  --text-gradient: linear-gradient(135deg, #2563EB 20%, #8B5CF6 80%, #EC4899 100%);
  --accent-bar: linear-gradient(90deg, #2563EB 0%, #8B5CF6 100%);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions & Scroll Animations */
--transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

img, svg, video, canvas {
  max-width: 100%;
}

/* Background Ambient Blurred Blobs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  max-width: 100vw;
  overflow: hidden;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(37, 99, 235, 0.1) 70%);
  top: -80px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(139, 92, 246, 0.1) 70%);
  top: 750px;
  left: -120px;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(37, 99, 235, 0.1) 70%);
  bottom: 200px;
  right: 5%;
}

/* Container */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
}

.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Section Headers */
.section-header {
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

/* Buttons */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--btn-gradient);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32);
  transition: var(--transition);
}

.btn-gradient:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.btn-glass:hover {
  background: #FFFFFF;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

/* ===================================================================
   1. NAVBAR (Always Fixed & Visible on Scroll)
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(248, 250, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.04);
  z-index: 1000;
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 27, 69, 0.08);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-try-now {
  padding: 9px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===================================================================
   2. HERO SECTION (Vertically Centered with Equal Top & Bottom Spacing)
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height, 68px) + 48px);
  padding-bottom: 48px;
  overflow: visible;
  box-sizing: border-box;
}

.hero-section .section-container {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
  max-width: 100%;
}

.hero-badge span {
  white-space: normal;
}

.sparkle-icon {
  stroke: var(--primary-blue);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2px;
  word-break: break-word;
}

.author-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gradient-bar {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: var(--accent-bar);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.35;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tech-stack-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.tech-divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.1);
}

/* Laptop Mockup Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.hero-dots-pattern {
  position: absolute;
  top: -12px;
  left: 10px;
  width: 96px;
  height: 96px;
  background-image: radial-gradient(rgba(37, 99, 235, 0.28) 2px, transparent 2px);
  background-size: 14px 14px;
  z-index: 0;
  pointer-events: none;
}

.laptop-container {
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 1;
  perspective: 1200px;
}

.laptop-lid {
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  border-radius: 18px 18px 4px 4px;
  padding: 10px 10px 8px;
  box-shadow:
    0 28px 65px -12px rgba(37, 99, 235, 0.32),
    0 12px 30px -6px rgba(139, 92, 246, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  position: relative;
}

.laptop-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 8px;
}

.win-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.laptop-window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  padding-right: 36px;
}

.laptop-screen {
  background: #0B1120;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 9px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.laptop-container:hover .mockup-img {
  transform: scale(1.025);
}

.laptop-base {
  width: 112%;
  height: 16px;
  background: linear-gradient(180deg, #E2E8F0 0%, #94A3B8 65%, #64748B 100%);
  margin: -1px auto 0;
  border-radius: 2px 2px 16px 16px;
  position: relative;
  left: -6%;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  display: flex;
  justify-content: center;
}

.laptop-notch {
  width: 76px;
  height: 5px;
  background: linear-gradient(90deg, #64748B, #94A3B8, #64748B);
  border-radius: 0 0 6px 6px;
}

.laptop-shadow {
  width: 96%;
  height: 22px;
  margin: -6px auto 0;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28) 0%, rgba(139, 92, 246, 0.14) 50%, transparent 75%);
  filter: blur(10px);
}

/* ===================================================================
   3. POWERFUL FEATURES
   =================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-blue { background: #EEF4FF; }
.icon-lavender { background: #F3EEFF; }
.icon-cyan { background: #ECFEFF; }
.icon-purple { background: #FAF5FF; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   4. GESTURE GUIDE
   =================================================================== */
.gesture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gesture-card {
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gesture-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
}

.gesture-hand-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.gesture-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gesture-action {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
}

.action-draw { background: #E0F2FE; color: #0284C7; }
.action-move { background: #EDE9FE; color: #7C3AED; }
.action-erase { background: #CFFAFE; color: #0891B2; }
.action-clear { background: #F3E8FF; color: #9333EA; }
.action-pinch { background: #FEF3C7; color: #D97706; }
.action-pause { background: #F1F5F9; color: #64748B; }

.gesture-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===================================================================
   5. HOW IT WORKS
   =================================================================== */
.how-it-works-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

.how-visual-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 24px 50px -10px rgba(37, 99, 235, 0.28),
    -12px -12px 0 rgba(139, 92, 246, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.how-visual-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.how-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.how-it-works-content .section-header {
  margin-bottom: 40px;
}

.how-it-works-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}

.step-card {
  flex: 1;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  position: absolute;
  top: -16px;
  background: var(--btn-gradient);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #F0F4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 10px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
}

/* ===================================================================
   6. LIVE BROWSER DEMO ("TRY NOW")
   =================================================================== */
.demo-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.browser-demo-card {
  padding: 24px;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-camera-toggle {
  padding: 10px 22px;
  font-size: 0.92rem;
}

.demo-colors {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--c);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.color-btn.active, .color-btn:hover {
  transform: scale(1.22);
  border-color: var(--text-main);
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-tool:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Demo Screen Canvas Container */
.demo-screen-container {
  width: 100%;
  height: 520px;
  background: #0B1120;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view */
  position: absolute;
  top: 0;
  left: 0;
}

#drawingCanvas, #overlayCanvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
}

.demo-hud-overlay {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.hud-pill {
  background: rgba(16, 27, 69, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-placeholder {
  position: absolute;
  z-index: 5;
  text-align: center;
  color: #FFFFFF;
  max-width: 480px;
  padding: 24px;
}

.placeholder-icon {
  margin-bottom: 16px;
}

.demo-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.demo-placeholder p {
  font-size: 0.95rem;
  color: #94A3B8;
  margin-bottom: 12px;
}

.privacy-note {
  font-size: 0.85rem !important;
  color: #38BDF8 !important;
}

.demo-loading {
  position: absolute;
  z-index: 8;
  color: #FFFFFF;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

/* ===================================================================
   7. DOWNLOAD CTA BANNER
   =================================================================== */
.cta-banner {
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 255, 0.85) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cloud-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.cta-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.btn-cta-download {
  padding: 16px 36px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ===================================================================
   8. FAQ ACCORDION
   =================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  border-radius: 16px;
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-question .chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  stroke: var(--primary-blue);
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
  padding-bottom: 24px;
}

/* ===================================================================
   9. FOOTER
   =================================================================== */
.footer {
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  background: #FFFFFF;
  padding: 48px 24px 28px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===================================================================
   10. MODAL
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 69, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  width: 100%;
  max-width: 840px;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.simulated-demo-player {
  background: #0B1120;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

#demoSimulationCanvas {
  width: 100%;
  height: auto;
  display: block;
}

.demo-playback-controls {
  padding: 14px 20px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-caption {
  color: #94A3B8;
  font-size: 0.85rem;
}

/* ===================================================================
   11. PRIVACY PAGE STYLING
   =================================================================== */
.privacy-body {
  background-color: var(--bg-color);
}

.privacy-content {
  padding-top: 92px; /* Smooth clearance for fixed navbar */
  padding-bottom: 60px;
}

.privacy-card {
  padding: 48px;
}

.privacy-title {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.privacy-last-updated {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.privacy-card section {
  margin-bottom: 28px;
}

.privacy-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.privacy-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================================
   12. RESPONSIVE MEDIA QUERIES (320px - 1440px+)
   =================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height, 68px) + 36px);
    padding-bottom: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .gesture-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .how-it-works-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .how-visual-card {
    max-width: 320px;
  }

  .how-it-works-grid {
    flex-direction: column;
    gap: 16px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }
}

/* Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .section-container {
    padding: 60px 20px;
  }

  /* Sticky Navigation Drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 22px 24px;
    box-shadow: 0 16px 36px rgba(16, 27, 69, 0.12);
    border-bottom: 1px solid rgba(139, 92, 246, 0.16);
    gap: 16px;
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-title {
    font-size: clamp(2.3rem, 7.5vw, 3.2rem);
  }

  /* Mockup base adjustments to prevent horizontal overflow */
  .laptop-base {
    width: 100%;
    left: 0;
  }

  .laptop-shadow {
    width: 90%;
  }

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

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

  /* Live Browser Demo Toolbar */
  .demo-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .btn-camera-toggle {
    width: 100%;
    justify-content: center;
  }

  .demo-colors {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .demo-actions {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .btn-tool {
    flex: 1;
    justify-content: center;
  }

  .demo-screen-container {
    height: 420px;
  }

  /* CTA Banner */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .cta-left {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cta-right {
    width: 100%;
  }

  .btn-cta-download {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 44px 20px 24px;
    margin-top: 40px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
    gap: 18px 24px;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* Standard Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .section-container {
    padding: 48px 16px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.75rem, 5.5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .gesture-card {
    padding: 22px 18px;
  }

  .step-card {
    padding: 28px 18px;
  }

  /* Live Browser Demo HUD in Portrait */
  .demo-hud-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    top: 10px;
    left: 10px;
    right: auto;
  }

  .hud-pill {
    font-size: 0.72rem;
    padding: 3px 9px;
  }

  .demo-screen-container {
    height: 360px;
  }

  /* FAQ Accordion */
  .faq-question {
    padding: 18px 18px;
    font-size: 0.98rem;
    gap: 12px;
  }

  .faq-answer {
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .faq-item.open .faq-answer {
    padding-bottom: 18px;
  }

  /* Privacy Page */
  .privacy-content {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .privacy-card {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .privacy-title {
    font-size: 1.85rem;
  }

  .privacy-card h2 {
    font-size: 1.18rem;
  }

  .privacy-card p {
    font-size: 0.92rem;
  }
}

/* Compact Mobile Screens (<= 480px - iPhone 13/14/15, Galaxy S21/S24) */
@media (max-width: 480px) {
  .section-container {
    padding: 40px 14px;
  }

  /* Navbar */
  .nav-container {
    padding: 12px 14px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo svg {
    width: 28px;
    height: 28px;
  }

  .brand-text {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 10px;
  }

  .btn-try-now {
    padding: 7px 13px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .btn-try-now svg {
    width: 14px;
    height: 14px;
  }

  :root {
    --nav-height: 56px;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height, 56px) + 28px);
    padding-bottom: 28px;
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 5px 12px;
    gap: 6px;
    margin-bottom: 14px;
    max-width: 100%;
    text-align: center;
  }

  .hero-badge span {
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(2rem, 9.5vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 6px;
  }

  .author-tag {
    font-size: 0.92rem;
    gap: 8px;
    margin-bottom: 16px;
  }

  .gradient-bar {
    width: 32px;
    height: 2.5px;
  }

  .hero-tagline {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  /* Full-width Stacked Hero Buttons */
  .hero-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-buttons .btn-hero-primary,
  .hero-buttons .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  /* Tech Stack Badges Wrap */
  .tech-stack-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 12px;
    gap: 8px 14px;
    border-radius: 16px;
  }

  .tech-divider {
    display: none;
  }

  .tech-item {
    font-size: 0.82rem;
  }

  .tech-item svg {
    width: 18px;
    height: 18px;
  }

  /* Laptop Lid on Mobile */
  .laptop-lid {
    padding: 6px 6px 4px;
    border-radius: 10px 10px 3px 3px;
  }

  .laptop-topbar {
    padding: 2px 4px 6px;
  }

  .win-dot {
    width: 7px;
    height: 7px;
  }

  .laptop-window-title {
    font-size: 0.65rem;
    padding-right: 20px;
  }

  /* How it works visual card */
  .how-visual-card {
    max-width: 260px;
  }

  .step-card {
    padding: 24px 14px;
  }

  .step-icon-circle {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }

  .step-icon-circle svg {
    width: 26px;
    height: 26px;
  }

  /* In-Browser Demo */
  .browser-demo-card {
    padding: 16px 12px;
  }

  .demo-screen-container {
    height: 310px;
    border-radius: 12px;
  }

  .color-btn {
    width: 26px;
    height: 26px;
  }

  .demo-placeholder {
    padding: 14px;
  }

  .demo-placeholder h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .demo-placeholder p {
    font-size: 0.82rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 26px 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .cloud-icon-circle {
    width: 56px;
    height: 56px;
  }

  .cloud-icon-circle svg {
    width: 32px;
    height: 32px;
  }

  .cta-title {
    font-size: 1.35rem;
  }

  .cta-subtitle {
    font-size: 0.88rem;
  }

  .btn-cta-download {
    font-size: 0.92rem;
    padding: 12px 20px;
  }

  /* FAQ */
  .faq-question {
    padding: 14px 14px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .faq-item.open .faq-answer {
    padding-bottom: 14px;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  /* Video Modal */
  .modal-backdrop {
    padding: 8px;
  }

  .modal-card {
    border-radius: 14px;
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-header h3 {
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 8px;
  }

  .demo-playback-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  #restartDemoAnimationBtn {
    width: 100%;
    justify-content: center;
  }

  /* Privacy Page */
  .privacy-card {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .privacy-title {
    font-size: 1.55rem;
  }
}

/* Ultra-Compact Mobile Screens (<= 360px - e.g. iPhone SE 320px width) */
@media (max-width: 360px) {
  :root {
    --nav-height: 52px;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height, 52px) + 24px);
    padding-bottom: 24px;
  }

  .section-container {
    padding: 36px 10px;
  }

  .nav-container {
    padding: 10px 10px;
  }

  .brand-logo svg {
    width: 24px;
    height: 24px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  /* Icon-only Try Now button on 320px screens to preserve clean navbar */
  .btn-try-now span {
    display: none;
  }

  .btn-try-now {
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    justify-content: center;
  }

  .mobile-toggle {
    padding: 4px;
    width: 32px;
    height: 32px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

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

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.88rem;
  }

  .demo-screen-container {
    height: 270px;
  }
}
