/* ========================================
   PhotoBooth Pro - Marketing Website
   ======================================== */

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

:root {
  --bg: #030712;
  --bg-subtle: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --orange: #f97316;
  --purple: #a855f7;
  --teal: #14b8a6;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--blue) 50%, var(--cyan) 100%);
  --gradient-text: linear-gradient(135deg, var(--accent-light), var(--blue-light), var(--cyan));
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brought-by {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  transition: var(--transition);
}

.nav-brought-by span {
  font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
}

.nav-brought-by img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
}

.nav-brought-by:hover img {
  opacity: 1;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--gradient);
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-xl {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: var(--radius);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(148, 163, 184, 0.15);
}

/* --- Sections --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Features --- */
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-light);
}

.feature-icon.icon-purple { background: rgba(168, 85, 247, 0.1); }
.feature-icon.icon-purple svg { color: var(--purple); }
.feature-icon.icon-amber { background: rgba(245, 158, 11, 0.1); }
.feature-icon.icon-amber svg { color: var(--amber); }
.feature-icon.icon-green { background: rgba(16, 185, 129, 0.1); }
.feature-icon.icon-green svg { color: var(--green); }
.feature-icon.icon-rose { background: rgba(244, 63, 94, 0.1); }
.feature-icon.icon-rose svg { color: var(--rose); }
.feature-icon.icon-cyan { background: rgba(6, 182, 212, 0.1); }
.feature-icon.icon-cyan svg { color: var(--cyan); }
.feature-icon.icon-orange { background: rgba(249, 115, 22, 0.1); }
.feature-icon.icon-orange svg { color: var(--orange); }
.feature-icon.icon-teal { background: rgba(20, 184, 166, 0.1); }
.feature-icon.icon-teal svg { color: var(--teal); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- AI Section --- */
.ai-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15, 23, 42, 0.5) 50%, var(--bg) 100%);
}

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

.ai-content .section-tag,
.ai-content .section-title,
.ai-content .section-subtitle {
  text-align: left;
  margin-left: 0;
}

.ai-content .section-subtitle {
  max-width: none;
}

.ai-models {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.ai-model {
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-model-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  white-space: nowrap;
}

.ai-model-badge.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
}

.ai-model-badge.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.ai-model h4 {
  font-size: 15px;
  font-weight: 600;
  min-width: 120px;
}

.ai-model p {
  font-size: 13px;
  color: var(--text-muted);
}

/* AI Before/After Gallery */
.ai-gallery {
  position: relative;
}

.ai-gallery-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: opacity 0.5s ease;
}

.ai-gallery-card.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.ai-gallery-images {
  display: flex;
  align-items: center;
  gap: 0;
}

.ai-gallery-before,
.ai-gallery-after {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ai-gallery-before img,
.ai-gallery-after img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.ai-gallery-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

.ai-gallery-arrow {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  z-index: 1;
}

.ai-gallery-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
}

.ai-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.ai-gallery-style {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ai-gallery-model {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light);
}

/* Slider handle hidden on desktop */
.ai-slider-handle {
  display: none;
}

.ai-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.ai-gallery-prev,
.ai-gallery-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.ai-gallery-prev:hover,
.ai-gallery-next:hover {
  border-color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
}

.ai-gallery-prev svg,
.ai-gallery-next svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.ai-gallery-prev:hover svg,
.ai-gallery-next:hover svg {
  color: var(--accent-light);
}

.ai-gallery-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.ai-gallery-dot:hover {
  border-color: var(--accent-light);
}

.ai-gallery-dot.active {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* --- Ecosystem --- */
.ecosystem {
  padding: 120px 0;
}

.ecosystem-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 72px;
  padding: 48px 24px;
}

.eco-node {
  text-align: center;
  padding: 32px;
}

.eco-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.eco-icon-cloud {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.15);
}

.eco-node h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.eco-node p {
  font-size: 13px;
  color: var(--text-subtle);
}

.eco-connector {
  position: relative;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.eco-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--cyan));
  position: relative;
}

.eco-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-light);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulse-move 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

@keyframes pulse-move {
  0% { left: 0; }
  50% { left: calc(100% - 12px); }
  100% { left: 0; }
}

.eco-sync-labels {
  display: flex;
  gap: 12px;
}

.eco-sync-labels span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.06);
}

/* --- Ecosystem Video Demo --- */
.eco-video-demo {
  max-width: 600px;
  margin: 0 auto 48px;
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.eco-video-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
}

.eco-video-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.eco-video-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.eco-video-player {
  position: relative;
  padding: 0 20px 20px;
}

.eco-video-player video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.eco-video-replay {
  position: absolute;
  inset: 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.eco-video-replay.visible {
  opacity: 1;
  pointer-events: auto;
}

.eco-video-replay:hover {
  background: rgba(0, 0, 0, 0.75);
}

.eco-video-replay svg {
  width: 20px;
  height: 20px;
}

.eco-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.eco-feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}

.eco-feature:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: var(--bg-card);
}

.eco-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eco-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-light);
}

.eco-feature h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.eco-feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Download --- */
.download {
  padding: 120px 0;
}

.download-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.download-content .section-title {
  text-align: left;
  margin-bottom: 12px;
}

.download-content .section-subtitle {
  text-align: left;
  max-width: none;
  margin: 0 0 32px;
}

.download-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.download-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.download-check svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.download-version {
  font-size: 12px;
  color: var(--text-subtle);
}

/* App Window Mock */
.app-window {
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

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

.app-dot.red { background: #ef4444; }
.app-dot.yellow { background: #eab308; }
.app-dot.green { background: #22c55e; }

.app-title {
  font-size: 11px;
  color: var(--text-subtle);
  margin-left: 6px;
}

.app-body {
  display: flex;
  min-height: 280px;
}

.app-sidebar {
  width: 48px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(148, 163, 184, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.app-sidebar-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.app-sidebar-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
}

.app-sidebar-item.active {
  background: rgba(99, 102, 241, 0.15);
}

.app-sidebar-item.active svg {
  color: var(--accent-light);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.app-camera-view {
  width: 100%;
  position: relative;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
}

.app-camera-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.app-camera-text {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.app-capture-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-capture-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
}

/* --- Footer --- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-subtle);
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  font-size: 13px;
  color: var(--text-subtle);
}

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

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

/* Stagger children */
.features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }
.features-grid .fade-in:nth-child(7) { transition-delay: 0.6s; }
.features-grid .fade-in:nth-child(8) { transition-delay: 0.7s; }

.eco-features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.eco-features-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.eco-features-grid .fade-in:nth-child(4) { transition-delay: 0.15s; }
.eco-features-grid .fade-in:nth-child(5) { transition-delay: 0.25s; }
.eco-features-grid .fade-in:nth-child(6) { transition-delay: 0.35s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ai-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .download-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .download-visual {
    order: -1;
  }

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

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-subtle);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: var(--transition);
    border-left: 1px solid rgba(148, 163, 184, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .features,
  .ai-section,
  .ecosystem,
  .download {
    padding: 80px 0;
  }

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

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

  .ecosystem-diagram {
    flex-direction: column;
    gap: 0;
  }

  .eco-connector {
    width: 2px;
    height: 80px;
    flex-direction: row;
  }

  .eco-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--blue), var(--cyan));
  }

  .eco-pulse {
    animation: pulse-move-v 3s ease-in-out infinite;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  @keyframes pulse-move-v {
    0% { top: 0; }
    50% { top: calc(100% - 12px); }
    100% { top: 0; }
  }

  .eco-sync-labels {
    flex-direction: column;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-brought-by span {
    display: none;
  }

  .nav-brought-by {
    margin-left: 10px;
    padding-left: 10px;
  }

  .download-card {
    padding: 32px;
  }

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

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

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

  .ai-model {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Mobile comparison slider */
  .ai-gallery-images {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .ai-gallery-before,
  .ai-gallery-after {
    width: 100%;
  }

  .ai-gallery-after {
    display: block;
    position: relative;
    z-index: 0;
  }

  .ai-gallery-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    clip-path: inset(0 50% 0 0);
  }

  .ai-gallery-before img,
  .ai-gallery-after img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
  }

  .ai-gallery-after .ai-gallery-label {
    left: auto;
    right: 12px;
  }

  .ai-gallery-arrow {
    display: none;
  }

  .ai-slider-handle {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 3;
    width: 44px;
    transform: translateX(-50%);
    background: transparent;
    cursor: ew-resize;
    touch-action: none;
    align-items: center;
    justify-content: center;
  }

  .ai-slider-handle::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  }

  .ai-slider-handle span {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(99, 102, 241, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .ai-slider-handle span::before,
  .ai-slider-handle span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
  }

  .ai-slider-handle span::before {
    left: 5px;
    border-width: 5px 5px 5px 0;
    border-color: transparent rgba(99, 102, 241, 0.8) transparent transparent;
  }

  .ai-slider-handle span::after {
    right: 5px;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent rgba(99, 102, 241, 0.8);
  }

  .ai-gallery-caption {
    padding: 10px 14px;
  }

  .ai-gallery-style {
    font-size: 13px;
  }

  .btn-xl {
    padding: 14px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

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

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