/* ═══════════════════════════════════════════════════════════════
   Camera Overlay — Promotional Website
   Design System & Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&display=swap');

/* ── Custom Properties ────────────────────────────────────────── */
:root {
  /* Palette — app match */
  --bg-primary: #1C262B;
  /* dark blue-grey */
  --bg-secondary: #263238;
  /* blueGrey.900 */
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #B0BEC5;
  /* blueGrey.200 */
  --text-muted: rgba(176, 190, 197, 0.5);

  --accent: #607D8B;
  --accent-light: #90A4AE;
  --accent-glow: rgba(96, 125, 139, 0.3);
  --accent-gradient: linear-gradient(135deg, #78a1b4 0%, #3d4f58 100%);

  --border: rgba(96, 125, 139, 0.2);
  --border-hover: rgba(96, 125, 139, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 80px rgba(96, 125, 139, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(120deg, #000 0%, #1C262B 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Ambient background effects ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(96, 125, 139, 0.2), transparent),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(33, 150, 243, 0.15), transparent),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(96, 125, 139, 0.15), transparent);
  pointer-events: none;
  z-index: -1;
  animation: ambientDrift 20s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(-30px, 20px) rotate(3deg);
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

/* ── Fade-in animations ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(28, 38, 43, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

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

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

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

.nav-cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: white !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-cta::after {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 600px;
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(50vw - 30px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

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

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero-description {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 48px 0;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  border-color: var(--border-hover);
}

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

/* Hero AB Slider */
.hero-slider-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-slider-wrapper .slider-label-left,
.hero-slider-wrapper .slider-label-right {
  position: absolute;
  top: 20px;
  z-index: 15;
  padding: 6px 16px;
  border-radius: 100px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-slider-wrapper .slider-label-left {
  left: 20px;
  background: rgba(33, 150, 243, 0.8);
  color: white;
}

.hero-slider-wrapper .slider-label-right {
  right: 20px;
  background: rgba(25, 118, 210, 0.8);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   AB COMPARISON SLIDER — Generic Component
   ═══════════════════════════════════════════════════════════════ */
.ab-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.ab-slider img {
  width: 100%;
  display: block;
}

.ab-slider .ab-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ab-slider .ab-img-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-slider .ab-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: white;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.ab-slider .ab-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(96, 125, 139, 0.9);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.ab-slider:active .ab-handle {
  transform: translate(-50%, -50%) scale(1.1);
}

.ab-handle svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ═══════════════════════════════════════════════════════════════ */
.how-it-works {
  padding: 0 0 0 0;
  position: relative;
}

.how-it-works .container {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.step-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

.step-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1;
}

.step-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   USE CASES / SAMPLES SECTION
   ═══════════════════════════════════════════════════════════════ */
.samples {
  padding: 120px 0 120px 0;
}

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

.samples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 64px;
}

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

.sample-block h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.sample-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sample-triplet {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.sample-triplet .sample-img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.sample-triplet .sample-img-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.sample-triplet .sample-img-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sample-triplet .sample-img-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   FACE COMPARISON SLIDER SECTION
   ═══════════════════════════════════════════════════════════════ */
.face-compare {
  padding: 0 0 120px 0;
}

.face-compare .container {
  text-align: center;
}

.face-slider-wrapper {
  width: 100%;
  position: relative;
}

.face-slider-wrapper .slider-label-left,
.face-slider-wrapper .slider-label-right {
  position: absolute;
  top: 16px;
  z-index: 15;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.face-slider-wrapper .slider-label-left {
  left: 16px;
  background: linear-gradient(135deg, #607D8B, #455A64);
  color: white;
}

.face-slider-wrapper .slider-label-right {
  right: 16px;
  background: linear-gradient(135deg, #607D8B, #455A64);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   SCREENSHOTS / GALLERY SECTION
   ═══════════════════════════════════════════════════════════════ */
.gallery {
  padding: 0 0 105px 0;
  overflow: hidden;
}

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

.gallery-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  padding-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  flex: 0 1 auto;
  width: calc(33.333% - 16px);
  min-width: 180px;
  max-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition);
}

.gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════ */
.features {
  padding: 0 0 50px 0;
}

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

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

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta {
  background: linear-gradient(135deg, rgba(120, 161, 180, 0.15), rgba(61, 79, 88, 0.3));
  padding: 64px 0;
  text-align: left;
}

.cta-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-card::before {
  display: none;
}

.cta-text h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.cta-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 48px 0;
  border-top: none;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent-light);
  transition: color var(--transition);
}

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

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1540px) {
  .gallery-track {
    max-width: 1600px;
  }
}

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

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

  .samples-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

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

  .hero {
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

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

  .hero-description {
    margin: 0 auto 48px auto;
  }

  .hero-buttons {
    justify-content: center;
    margin-bottom: 48px;
  }

  .hero-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 60vh;
  }

  .hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    height: 100%;
    object-position: center;
  }

  .face-compare-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .face-compare-content {
    text-align: center;
  }

  .samples-list h3 {
    text-align: center;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .cta {
    padding: 48px 0;
  }

  .cta-card {
    padding: 0;
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .cta-text p {
    margin-bottom: 0;
  }

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

  .gallery-item {
    flex: 0 0 220px;
    width: auto;
  }

  .ab-slider .ab-handle {
    width: 36px;
    height: 36px;
  }

  .ab-handle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .sample-triplet {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sample-triplet .sample-img-card img {
    aspect-ratio: auto;
  }
}