/* ============================================
   App Showcase – Premium dark theme
   Customize --accent and --bg to match your brand
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-elevated: #0f1424;
  --bg-card: #131a2e;
  --text: #e8e8ed;
  --text-muted: #8b8b9a;
  --accent: #22c55e;
  --accent-dim: rgba(34, 197, 94, 0.15);
  --accent-glow: rgba(34, 197, 94, 0.25);
  --accent-blue: #3366ff;
  --accent-blue-dim: rgba(51, 102, 255, 0.15);
  --line-blue: rgba(100, 180, 255, 0.6);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Syne', var(--font);
  --header-height: 72px;
  --container: min(1120px, 100% - 2rem);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle noise overlay for depth */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ========== Header ========== */
.nav-overlay {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent-blue);
  transition: background 0.35s ease, height 0.35s ease, border-color 0.35s ease;
}

/* Header over hero: transparent; after scroll: solid + smaller */
.header--transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header--scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--accent-blue);
  height: 64px;
}

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

.logo {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 6px;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-blue);
  box-shadow: 0 0 10px var(--line-blue);
}

.logo-heavy {
  font-weight: 700 !important;
}

.logo-light {
  font-weight: 400 !important;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-link-underline {
  position: relative;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.25s ease;
}

.nav-link-underline:hover::after,
.nav-link-underline:focus-visible::after {
  width: 100%;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-more-wrap {
  position: relative;
}

.nav-more-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-more-trigger:hover {
  color: var(--text);
}

.nav-full-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 240px;
  padding: 0.75rem 0;
  background: rgba(10, 14, 26, 0.98);
  border: 1px solid rgba(168, 176, 188, 0.25);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  gap: 0;
  z-index: 1000;
}

.nav-more-wrap.nav-more-open .nav-full-menu {
  display: flex;
}

.nav-full-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-full-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu-label {
  display: block;
  padding: 0.6rem 1rem 0.25rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375rem;
}

.nav-full-menu .nav-sub {
  padding-left: 1.75rem;
}

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

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 3px solid rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-glow), 0 0 48px -10px var(--accent);
  transform: translateY(-2px);
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.05);
}

.cta-primary:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: -100px;
  right: -100px;
}

.gradient-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: 20%;
  left: -80px;
  animation-delay: -4s;
}

.gradient-orb-hero {
  width: 250px;
  height: 250px;
  background: var(--accent-blue);
  top: 50%;
  left: 40%;
  opacity: 0.2;
  animation: float 15s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Floating decorative shapes in hero */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: shapeFloat 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 25%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 15%;
  animation-delay: -5s;
  background: rgba(51, 102, 255, 0.03);
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
  animation-delay: -10s;
  border-color: rgba(51, 102, 255, 0.12);
}

.hero-shape-4 {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 30%;
  animation-delay: -3s;
  background: rgba(51, 102, 255, 0.06);
}

.hero-shape-5 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 40%;
  animation-delay: -7s;
}

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.98); }
  75% { transform: translate(20px, 5px) scale(1.02); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.8s ease both, badgeGlow 3s ease-in-out infinite 1s;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 20px -5px var(--accent-glow); }
  50% { box-shadow: 0 0 30px 0 var(--accent-glow); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.35em;
  animation: fadeInUp 0.8s 0.1s ease both;
  position: relative;
  padding-bottom: 0.35em;
  white-space: nowrap;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line-blue);
  box-shadow: 0 0 12px var(--line-blue);
}

.hero-subheadline {
  font-family: 'Inter', var(--font);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-byline {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-title-word {
  display: inline;
}

.hero-title-word .logo-heavy {
  font-weight: 700 !important;
}

.hero-title-word .logo-light {
  font-weight: 400 !important;
  color: var(--text);
}

.hero-tagline {
  font-family: 'Inter', var(--font);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.5;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-tagline .logo-heavy {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-video {
  width: 100%;
  max-width: min(560px, 99vw);
  height: min(94vh, 920px);
  min-height: 360px;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .hero-phone-video {
    max-width: min(360px, 92vw);
    height: min(72vh, 640px);
    min-height: 320px;
  }
}

.device-frame {
  width: min(280px, 90vw);
  aspect-ratio: 9 / 19.2;
  background: linear-gradient(145deg, #1a1a22, #0d0d12);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px var(--border),
    0 0 0 4px rgba(0,0,0,0.3),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 80px -15px var(--accent-glow),
    0 0 120px -30px var(--accent-blue-dim);
  animation: deviceFloat 6s ease-in-out infinite;
}

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

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 1px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

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

/* ========== Section common ========== */
.section-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  line-height: 1.15;
}

/* Section scroll reveal (Revolut-style) */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========== Features (Revolut-style full-width blocks) ========== */
.features {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.feature-block {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

.feature-block:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.feature-block__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.feature-block--reverse .feature-block__inner {
  direction: rtl;
}

.feature-block--reverse .feature-block__inner > * {
  direction: ltr;
}

.feature-block__content {
  max-width: 520px;
}

.feature-block__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.feature-block__text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.feature-block__text .logo-heavy,
.feature-block__text .logo-light {
  color: var(--text);
}

.feature-block__cta {
  margin-top: 0.5rem;
}

.feature-block__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.feature-block__image-link {
  display: block;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.feature-block__image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border-radius: 24px;
}

.feature-block__image-link:hover::after {
  opacity: 1;
}

.feature-block__image-box {
  width: 100%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  background-color: #000;
  border: 2px solid var(--accent);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block__image-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.feature-block__image-stack .feature-block__image-link {
  width: 100%;
}

.feature-block__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.feature-block__image-box .feature-block__image-placeholder {
  position: absolute;
  inset: 0;
}

.feature-block__image-box .feature-block__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  display: block;
}

.feature-block__image-zoom-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  opacity: 0.7;
  color: var(--accent);
  pointer-events: none;
}

.feature-block__image-caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.feature-block__image {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.feature-block__icon-wrap {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue-dim), var(--accent-dim));
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: var(--accent);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-block__icon-wrap svg {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
}

.feature-block:hover .feature-block__icon-wrap {
  transform: scale(1.05);
  box-shadow: 0 24px 60px -20px var(--accent-glow);
}

@media (max-width: 900px) {
  .feature-block__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
    text-align: center;
  }

  .feature-block--reverse .feature-block__inner {
    direction: ltr;
  }

  .feature-block__content {
    max-width: none;
  }

  .feature-block__cta {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-block__visual {
    width: 100%;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== About ========== */
.about {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  filter: blur(120px);
  opacity: 0.07;
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 520px;
}

.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 10px 40px -15px var(--accent-glow);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

/* ========== App download CTA (3rd badge placement) ========== */
.app-download-cta {
  padding: 4rem 0;
}

.app-download-cta__inner {
  text-align: center;
}

.app-download-cta .section-label,
.app-download-cta .section-title {
  text-align: center;
}

.app-download-cta .section-title {
  margin-bottom: 1.5rem;
}

.app-download-cta .store-badges {
  margin-top: 0;
}

/* ========== Screenshots ========== */
.screenshots {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.screenshots .section-label,
.screenshots .section-title {
  text-align: center;
}

/* Center the title block (inline-block from .reveal-text) without touching .container */
.screenshots-header {
  text-align: center;
}

.screenshots-helper-text {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Keep a single word from breaking mid-word (e.g. "action" in title) */
.no-break {
  white-space: nowrap;
}

.screenshots::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  filter: blur(130px);
  opacity: 0.05;
  top: 50%;
  left: -150px;
  pointer-events: none;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.screenshot-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.screenshot-link {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
}

.screenshot-card:hover .screenshot-frame {
  box-shadow: 0 20px 50px -20px rgba(51, 102, 255, 0.3), 0 0 0 1px rgba(255,255,255,0.05);
}

.screenshot-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screenshot-card:hover {
  transform: none;
}

.screenshot-frame {
  width: 100%;
  max-width: 240px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center top;
}

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

.screenshot-placeholder {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.screenshot-caption {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 900px) {
  .screenshots-grid {
    position: relative;
    display: block;
    max-width: 100%;
    height: 65vw;
  }

  .screenshot-card {
    position: absolute;
    width: 50vw;
    max-width: 260px;
    left: 50%;
    transform: translateX(-50%);
  }

  .screenshot-card.visible {
    opacity: 1;
  }

  .screenshot-card.deck-top {
    z-index: 3;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .screenshot-card.deck-next {
    z-index: 2;
    transform: translateX(-35%) translateY(10px) scale(0.95);
    opacity: 0.9;
  }

  .screenshot-card.deck-back {
    z-index: 1;
    transform: translateX(-20%) translateY(20px) scale(0.9);
    opacity: 0.7;
  }

  /* Show caption only for the top card in the mobile deck */
  #screenshots .screenshot-card .screenshot-caption {
    display: none;
  }

  #screenshots .screenshot-card.deck-top .screenshot-caption {
    display: block;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    height: 75vw;
  }
}

/* ========== Videos ========== */
.videos {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.videos .section-label,
.videos .section-title {
  text-align: center;
}

/* Center the title block (it's inline-block from .reveal-text so needs parent text-align) */
.videos .container {
  text-align: center;
}

.videos .videos-grid {
  text-align: left;
}

.videos::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: var(--accent-blue);
  filter: blur(110px);
  opacity: 0.05;
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.video-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

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

.video-card:hover .video-wrapper {
  border-color: rgba(51, 102, 255, 0.35);
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.4), 0 0 40px -15px var(--accent-blue-dim);
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: var(--bg-card);
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  text-align: center;
}

@media (max-width: 900px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 760px;
    gap: 1.5rem;
  }

  .video-wrapper {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.25rem;
  }

  .video-card {
    width: 100%;
    max-width: 92vw;
    margin: 0 auto;
  }

  .video-wrapper {
    width: 100%;
    max-width: 92vw;
  }
}

/* ========== FAQ ========== */
.faq {
  padding: 6rem 0;
  position: relative;
}

.faq .section-label,
.faq .section-title {
  text-align: center;
}

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

.faq .faq-list {
  text-align: left;
}

.faq-inner {
  max-width: 640px;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

.faq-item[open] {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 10px 40px -15px rgba(0,0,0,0.3);
}

.faq-item[open] .faq-question {
  color: var(--text);
}

.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b8b9a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat center;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* ========== Download ========== */
.download {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.download-bg .gradient-orb-3 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(120px);
  opacity: 0.2;
  animation: float 14s ease-in-out infinite;
}

.download-bg::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  filter: blur(100px);
  opacity: 0.12;
  top: -100px;
  left: 20%;
  animation: float 18s ease-in-out infinite reverse;
  animation-delay: -5s;
}

.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.download-inner {
  position: relative;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.download .section-title {
  font-family: 'Inter', var(--font);
}

.download-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.download-subtitle .logo-heavy,
.download-subtitle .logo-light {
  color: var(--text);
}

.download-trial {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.download-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.download-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 481px) {
  .store-badges {
    gap: 44px;
  }
}

.store-badge {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Official badge images from Apple and Google – use their required minimum size */
.store-badge img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}

.store-badge-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  min-height: 52px;
}

/* ========== 3D Turntable carousel ========== */
.horizontal-section.carousel-3d-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--bg);
}

/* Single animation drives both track and card counter-rotation so they stay in sync */
@property --track-angle {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

.carousel-3d-view {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --track-angle: 0deg;
  animation: carouselSpin 24s linear infinite;
}

.carousel-3d-view.carousel-paused {
  animation-play-state: paused;
}

@keyframes carouselSpin {
  to {
    --track-angle: 360deg;
  }
}

.carousel-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--track-angle));
}

/* Green border fade: only the front card gets accent border; gaps between cards for depth */
@property --front-opacity {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

@property --card-border-width {
  syntax: '<length>';
  inherits: false;
  initial-value: 1px;
}

.carousel-3d-track .horizontal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  min-height: 180px;
  margin-left: -140px;
  margin-top: -90px;
  background: #000000;
  --front-opacity: 0;
  --card-border-width: 1px;
  --carousel-chrome: #a8b0bc;
  border: var(--card-border-width) solid color-mix(in srgb, var(--accent) calc(var(--front-opacity) * 100%), var(--carousel-chrome));
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 3rem 2rem;
  overflow: visible;
  backface-visibility: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.carousel-3d-track .horizontal-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.carousel-3d-track .card-check {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.carousel-3d-track .horizontal-card:nth-child(1) .card-check,
.carousel-3d-track .horizontal-card:nth-child(1) .card-yes { animation: checkmarkPop1 24s linear infinite; }
.carousel-3d-track .horizontal-card:nth-child(2) .card-check,
.carousel-3d-track .horizontal-card:nth-child(2) .card-yes { animation: checkmarkPop2 24s linear infinite; }
.carousel-3d-track .horizontal-card:nth-child(3) .card-check,
.carousel-3d-track .horizontal-card:nth-child(3) .card-yes { animation: checkmarkPop3 24s linear infinite; }
.carousel-3d-track .horizontal-card:nth-child(4) .card-check,
.carousel-3d-track .horizontal-card:nth-child(4) .card-yes { animation: checkmarkPop4 24s linear infinite; }

.carousel-3d-track .card-yes {
  position: absolute;
  right: 3.25rem;
  bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Cards: place on circle (rotateY + translateZ) then counter-rotate so each always faces viewer.
   Counter-rotation must be -(track-angle + card-position) so all four cards stay facing forward. */
.carousel-3d-track .horizontal-card {
  transform: rotateY(var(--card-position, 0deg)) translateZ(320px) rotateY(calc(-1 * var(--track-angle) - var(--card-position)));
}

.carousel-3d-track .horizontal-card:nth-child(1) {
  --card-position: 0deg;
  animation: cardFrontGlow1 24s linear infinite;
}
.carousel-3d-track .horizontal-card:nth-child(2) {
  --card-position: 90deg;
  animation: cardFrontGlow2 24s linear infinite;
}
.carousel-3d-track .horizontal-card:nth-child(3) {
  --card-position: 180deg;
  animation: cardFrontGlow3 24s linear infinite;
}
.carousel-3d-track .horizontal-card:nth-child(4) {
  --card-position: 270deg;
  animation: cardFrontGlow4 24s linear infinite;
}

.carousel-3d-view.carousel-paused .horizontal-card {
  animation-play-state: paused;
}

.carousel-3d-view.carousel-paused .horizontal-card .card-check,
.carousel-3d-view.carousel-paused .horizontal-card .card-yes {
  animation-play-state: paused !important;
}

/* Green border: fade in sooner (approaching), full green at center, fade out later (rotating away). Border width grows with green, back to 1px as green fades. */
@keyframes cardFrontGlow1 {
  0% { --front-opacity: 1; --card-border-width: 2.5px; }
  10% { --front-opacity: 0; --card-border-width: 1px; }
  85%, 87% { --front-opacity: 0; --card-border-width: 1px; }
  94% { --front-opacity: 1; --card-border-width: 2.5px; }
  100% { --front-opacity: 1; --card-border-width: 2.5px; }
}
@keyframes cardFrontGlow4 {
  0%, 14% { --front-opacity: 0; --card-border-width: 1px; }
  18% { --front-opacity: 1; --card-border-width: 2.5px; }
  25% { --front-opacity: 1; --card-border-width: 2.5px; }
  34% { --front-opacity: 0; --card-border-width: 1px; }
  35%, 100% { --front-opacity: 0; --card-border-width: 1px; }
}
@keyframes cardFrontGlow3 {
  0%, 39% { --front-opacity: 0; --card-border-width: 1px; }
  43% { --front-opacity: 1; --card-border-width: 2.5px; }
  50% { --front-opacity: 1; --card-border-width: 2.5px; }
  59% { --front-opacity: 0; --card-border-width: 1px; }
  60%, 100% { --front-opacity: 0; --card-border-width: 1px; }
}
@keyframes cardFrontGlow2 {
  0%, 64% { --front-opacity: 0; --card-border-width: 1px; }
  68% { --front-opacity: 1; --card-border-width: 2.5px; }
  75% { --front-opacity: 1; --card-border-width: 2.5px; }
  84% { --front-opacity: 0; --card-border-width: 1px; }
  85%, 100% { --front-opacity: 0; --card-border-width: 1px; }
}

/* Checkmark: pop on at center (opacity 1), fade out in sync with border. Animate opacity on the SVG so it works everywhere. */
@keyframes checkmarkPop1 {
  0% { opacity: 1; }
  10% { opacity: 0; }
  11%, 100% { opacity: 0; }
}
@keyframes checkmarkPop4 {
  0%, 24% { opacity: 0; }
  25% { opacity: 1; }
  34% { opacity: 0; }
  35%, 100% { opacity: 0; }
}
@keyframes checkmarkPop3 {
  0%, 49% { opacity: 0; }
  50% { opacity: 1; }
  59% { opacity: 0; }
  60%, 100% { opacity: 0; }
}
@keyframes checkmarkPop2 {
  0%, 74% { opacity: 0; }
  75% { opacity: 1; }
  84% { opacity: 0; }
  85%, 100% { opacity: 0; }
}

.horizontal-card-inner {
  text-align: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.horizontal-card-title {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5em;
  line-height: 1.5;
  vertical-align: bottom;
}

.horizontal-card p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ========== Testimonial carousel ========== */
.testimonial-section {
  padding: 4rem 0;
  background: var(--bg-elevated);
}

.testimonial-carousel {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 0;
  min-height: 140px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  text-align: center;
  padding: 1.5rem;
}

.testimonial-card.testimonial-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== Footer curtain (sticky last section + footer behind) ========== */
.last-content-before-footer {
  position: relative;
  z-index: 1;
}

.footer-curtain {
  margin-top: -2rem;
  position: relative;
  z-index: 0;
}

/* ========== Footer ========== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.footer-legal {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: normal;
  margin-top: 9px;
}

.footer-legal + .footer-legal {
  margin-top: 5px;
}

/* ========== Reveal text (for GSAP char split) ========== */
.reveal-text {
  overflow: hidden;
  display: inline-block;
  padding-bottom: 0.2em;
  vertical-align: bottom;
}

.reveal-chars {
  line-height: 1.5;
  padding-bottom: 0.05em;
}

.reveal-chars .char {
  display: inline-block;
  white-space: pre;
  vertical-align: baseline;
}


/* ========== Image hover zoom ========== */
.reveal-image-wrap,
.screenshot-card,
.feature-card {
  overflow: hidden;
}

.hover-zoom-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.reveal-image-wrap:hover .hover-zoom-img,
.screenshot-card:hover .hover-zoom-img,
.feature-card:hover .hover-zoom-img {
  transform: scale(1.08);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-inner.container {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .hero-device {
    order: -1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .hero-content {
    max-width: none;
  }

  .hero-tagline {
    margin-inline: auto;
  }

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

  @media (max-width: 500px) {
    .hero-inner.container {
      padding-left: 10px;
      padding-right: 10px;
    }
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    max-width: none;
  }

  .about-visual {
    display: flex;
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Overlay: real element so background cannot be transparent. Shown only when menu open. */
  .header.nav-open .nav-overlay {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 99998;
  }

  .header.nav-open {
    z-index: 99999;
    backdrop-filter: none;
  }

  .header.nav-open .nav {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    z-index: 99999;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 0;
    font-size: 1rem;
    pointer-events: auto;
    overflow: auto;
  }

  .header.nav-open .nav-primary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .header.nav-open .nav-primary > a {
    display: none;
  }

  .header.nav-open .nav-more-wrap {
    position: static;
    display: block;
    width: 100%;
  }

  .header.nav-open .nav-more-trigger {
    display: none;
  }

  .header.nav-open .nav-full-menu {
    display: flex;
    position: static;
    margin: 0;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    align-items: stretch;
    gap: 0;
  }

  .header.nav-open .nav-full-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header.nav-open .nav-full-menu .nav-menu-label {
    padding: 1rem 0 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header.nav-open .nav-full-menu .nav-sub {
    padding-left: 1.75rem;
  }

  /* Hide scroll bar when menu open (the black line at top) */
  body.nav-open .scroll-progress {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

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

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input {
    min-width: 100%;
  }

  .store-badges {
    flex-direction: column;
  }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb,
  .gradient-orb-hero,
  .grid-overlay,
  .hero-shape,
  .hero-badge,
  .hero-title-word .logo-light,
  .device-frame,
  .scroll-line,
  .carousel-3d-view,
  .carousel-3d-track .horizontal-card,
  .carousel-3d-track .card-check,
  .carousel-3d-track .card-yes,
  .btn-primary::after {
    animation: none !important;
  }
  .feature-card,
  .screenshot-card,
  .video-card,
  .header,
  .nav-link-underline::after,
  .cta-primary,
  .testimonial-card,
  .hover-zoom-img {
    transition-duration: 0.01ms !important;
  }
}

/* ========== Lightbox (feature section images) ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay:not(.lightbox-hidden) {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay.lightbox-hidden {
  pointer-events: none;
}

.lightbox-image-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.coming-soon-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.5rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.coming-soon-top {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  line-height: 1.2;
}

.coming-soon-store {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
