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

:root {
  /* Rich Dark Palette — not flat black */
  --bg-primary: #09090b;
  --bg-elevated: #0f0f12;
  --bg-surface: #141418;
  --bg-warm: #0e0e11;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Typography */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-tertiary: #5a5a5a;

  /* Accent — refined red */
  --accent: #dc2626;
  --accent-light: #f87171;
  --accent-soft: rgba(220, 38, 38, 0.12);
  --accent-border: rgba(220, 38, 38, 0.2);
  --accent-glow: rgba(220, 38, 38, 0.06);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container-max: 1200px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ========== Background ========== */
.space-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Subtle warm-to-cool gradient instead of flat black */
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    var(--bg-primary);
  overflow: hidden;
}

.orb { display: none; }
.orb-1 { display: none; }
.grid-overlay { display: none; }

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

/* ========== Typography ========== */
h1, h2, h3, .logo-text {
  font-family: 'Geist', sans-serif;
  letter-spacing: -0.03em;
}

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

.magic-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
  font-style: italic;
}

/* ========== Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

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

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-smooth);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  transition: all 0.4s var(--ease-smooth);
}

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

.logo-link {
  display: flex;
  align-items: center;
  height: 36px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo-link:hover { opacity: 0.7; }

.brand-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

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

.nav-cta {
  position: relative;
  background: var(--text-primary);
  border: none;
  color: var(--bg-primary);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}
.cta-glare { display: none; }

/* ========== Hero Section ========== */
.hero {
  padding: 200px 24px 100px;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Ambient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 80%;
  background:
    radial-gradient(ellipse 55% 50% at 50% 38%, rgba(220, 38, 38, 0.32) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 38% 32%, rgba(160, 15, 15, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 35% 40% at 62% 42%, rgba(255, 50, 50, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
}

.hero-content {
  max-width: 820px;
  margin-bottom: 80px;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--text-primary) 30%, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

.hero-actions { display: flex; justify-content: center; }

.primary-btn {
  position: relative;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  letter-spacing: -0.02em;
  transition: all 0.2s;
}

.primary-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.25);
}

.btn-content { position: relative; z-index: 2; }
.btn-glow { display: none; }

/* ========== Before/After Slider ========== */
/* Hide old laser slider, show card-style on desktop */
.hero-slider-desktop { display: none !important; }
.hero-slider-mobile {
  display: block;
  aspect-ratio: 16/9 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-showcase {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--border-default);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(220, 38, 38, 0.08),
    0 0 160px rgba(220, 38, 38, 0.05),
    0 60px 120px rgba(220, 38, 38, 0.06);
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}

.slider-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.img-before-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.img-before-wrapper .slider-img {
  width: 1000px;
  max-width: unset;
}

.slider-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 4;
  cursor: col-resize;
}

.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--text-primary);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.handle-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: var(--bg-primary);
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.slider-labels {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.label-before, .label-after {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ========== Card Slider Handle (hero + all screen sizes) ========== */
/* Handle = wide invisible touch area (44px) + thin visible line (2px via ::before) */
.showcase-card .card-slider-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 44px; height: 100%;
  background: transparent;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: col-resize;
  touch-action: none;
}
.showcase-card .card-slider-handle::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.85);
  transform: translateX(-50%);
}
.showcase-card .card-slider-handle .card-handle-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
  color: #111;
}
.showcase-card .card-slider-handle.card-handle-horizontal {
  width: 100%; height: 44px;
  left: 0; top: 50%;
  transform: translateY(-50%);
  cursor: row-resize;
}
.showcase-card .card-slider-handle.card-handle-horizontal::before {
  width: 100%; height: 2px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.showcase-card .card-slider-labels {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 6;
  pointer-events: none;
}
.showcase-card .card-slider-labels span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
}
.showcase-card.has-slider .transition-img { transition: none !important; }

/* Kill hover + auto-reveal on slider cards (all screen sizes) */
.showcase-card.has-slider .img-reveal,
.showcase-card.has-slider .hover-reveal,
.showcase-card.has-slider .hover-reveal-horizontal {
  animation: none !important;
  transition: none !important;
}
.showcase-card.has-slider:hover .hover-reveal,
.showcase-card.has-slider:hover .hover-reveal-horizontal {
  clip-path: unset;
}
.showcase-card.auto-revealing.has-slider .hover-reveal,
.showcase-card.auto-revealing.has-slider .hover-reveal-horizontal {
  animation: none !important;
}
/* Hide scan lines on slider cards globally */
.showcase-card.has-slider .scan-line-vertical,
.showcase-card.has-slider .scan-line-horizontal {
  display: none !important;
}

/* ========== Showcase Sections ========== */
.showcase-section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

/* Alternating section backgrounds for depth */
.showcase-section:nth-child(even) {
  background: var(--bg-elevated);
}

.showcase-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-section.reverse .showcase-container { direction: rtl; }
.showcase-section.reverse .showcase-text,
.showcase-section.reverse .showcase-visual { direction: ltr; }

.centered-showcase {
  text-align: center;
  padding-bottom: 150px;
}

.showcase-container-col {
  max-width: 700px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

/* Showcase Typography */
.badge-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-sub::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.showcase-text h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.showcase-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.text-center-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Feature Bullets */
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.bullet-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Showcase Cards */
.showcase-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.5s;
}

.showcase-card:hover {
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.6s ease, clip-path 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-reveal {
  z-index: 2;
  clip-path: inset(0 75% 0 0);
}

.showcase-card:hover .hover-reveal {
  clip-path: inset(0 0 0 0);
}

.hover-reveal-horizontal {
  clip-path: inset(75% 0 0 0);
}

.showcase-card:hover .hover-reveal-horizontal {
  clip-path: inset(0 0 0 0);
}

/* Scan lines — red accent, slow cinematic */
.scan-line-vertical {
  position: absolute;
  top: 0; bottom: 0; left: 25%;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, var(--accent-light) 20%, var(--accent-light) 80%, transparent);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.25), 0 0 4px rgba(220, 38, 38, 0.4);
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.6s ease, left 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-card:hover .scan-line-vertical {
  left: 100%;
  opacity: 0;
}

.scan-line-horizontal {
  position: absolute;
  left: 0; right: 0; bottom: 25%;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--accent-light) 20%, var(--accent-light) 80%, transparent);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.25), 0 0 4px rgba(220, 38, 38, 0.4);
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.6s ease, bottom 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-card:hover .scan-line-horizontal {
  bottom: 100%;
  opacity: 0;
}

.interactive-glow {}

/* ── Auto-reveal: image goes before→after→before on first view ── */

/* Vertical reveal (left→right) */
.showcase-card.auto-revealing .hover-reveal {
  animation: auto-reveal-vertical 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.showcase-card.auto-revealing .scan-line-vertical {
  animation: auto-scanline-vertical 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes auto-reveal-vertical {
  0%   { clip-path: inset(0 75% 0 0); }
  40%  { clip-path: inset(0 0% 0 0); }
  60%  { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 75% 0 0); }
}

@keyframes auto-scanline-vertical {
  0%   { left: 25%; opacity: 0.85; }
  40%  { left: 100%; opacity: 0.85; }
  41%  { opacity: 0; }
  59%  { opacity: 0; }
  60%  { left: 100%; opacity: 0.85; }
  100% { left: 25%; opacity: 0.85; }
}

/* Horizontal reveal (bottom→top) */
.showcase-card.auto-revealing .hover-reveal-horizontal {
  animation: auto-reveal-horizontal 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.showcase-card.auto-revealing .scan-line-horizontal {
  animation: auto-scanline-horizontal 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes auto-reveal-horizontal {
  0%   { clip-path: inset(75% 0 0 0); }
  40%  { clip-path: inset(0% 0 0 0); }
  60%  { clip-path: inset(0% 0 0 0); }
  100% { clip-path: inset(75% 0 0 0); }
}

@keyframes auto-scanline-horizontal {
  0%   { bottom: 25%; opacity: 0.85; }
  40%  { bottom: 100%; opacity: 0.85; }
  41%  { opacity: 0; }
  59%  { opacity: 0; }
  60%  { bottom: 100%; opacity: 0.85; }
  100% { bottom: 25%; opacity: 0.85; }
}

/* ========== Hub Layout ========== */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hub-nav {
  display: flex;
  flex-direction: column;
}

.hub-nav h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hub-nav p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hub-desc { margin-bottom: 40px; }

.hub-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-tab {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  opacity: 0.4;
}

.hub-tab h3 {
  font-size: 1.05rem;
  margin: 0 0 4px 0;
  color: var(--text-secondary);
  transition: color 0.3s;
  font-weight: 600;
}

.hub-tab p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.hub-tab:hover {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.02);
}

.hub-tab.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-default);
  opacity: 1;
}

.hub-tab.active h3 {
  color: var(--text-primary);
}

.hub-viewscreen-wrapper { perspective: 1000px; }

.hub-viewscreen {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.transition-img { transition: opacity 0.4s ease-in-out, clip-path 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

@media (max-width: 900px) {
  .hub-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== Accordion Gallery ========== */
.accordion-gallery {
  display: flex;
  width: 100%;
  height: 500px;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 8px;
  padding: 0 24px;
}

.accordion-item {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s var(--ease-out), border-color 0.4s;
  border: 1px solid var(--border-subtle);
}

.accordion-item.accordion-result {
  border: 1.5px solid rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.08);
}

.accordion-item:hover {
  flex: 3;
  border-color: var(--border-strong);
  z-index: 10;
}

.accordion-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(0.5) brightness(0.7);
}

.accordion-item:hover .accordion-img {
  transform: scale(1.03);
  filter: grayscale(0) brightness(1);
}

.accordion-content {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 48px 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  pointer-events: none;
}

.accordion-item:hover .accordion-content {
  opacity: 1;
  transform: translateY(0);
}

.accordion-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  font-weight: 600;
}

.accordion-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ========== Stats Section ========== */
.stats-section {
  padding: 140px 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(255, 255, 255, 0.015), transparent);
}

.stats-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.stats-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stats-header h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}

.stats-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  position: relative;
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: background 0.3s;
  background: var(--bg-primary);
  border: none;
  border-radius: 0;
}

.stat-card:hover {
  background: var(--bg-elevated);
}

.stat-number {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: inline-block;
  font-family: 'Geist', sans-serif;
  letter-spacing: -0.05em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.stat-glow { display: none; }
.stat-number, .stat-label { position: relative; z-index: 2; }

.stats-disclaimer {
  margin-top: 24px;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  opacity: 0.5;
  text-align: center;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ========== Bento Grid Features ========== */
.features {
  padding: 140px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 50%;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-title em {
  font-style: normal;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--text-primary) 20%, #dc2626 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 4px 4px 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bento-card {
  background: var(--bg-primary);
  border: none;
  border-radius: 0;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.bento-card::before { display: none; }
.bento-card::after { display: none; }

.bento-card:hover {
  background: var(--bg-elevated);
  transform: none;
}

/* card-large: cursor glow */
.card-large {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.card-large::after {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mouse-x) var(--mouse-y),
    rgba(220, 38, 38, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

.card-large:hover::after {
  opacity: 1;
}

.card-large { grid-column: span 2; grid-row: span 2; flex-direction: row; }
.card-medium { grid-column: span 1; grid-row: span 1; }
.card-wide { grid-column: span 2; grid-row: span 1; }
.card-cta { grid-column: span 1; grid-row: span 1; }

/* Red aura from sides on hover (all cards except card-large) */
.card-medium::after,
.card-wide::after,
.card-cta::after {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(220, 38, 38, 0.06), transparent),
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(220, 38, 38, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.card-medium:hover::after,
.card-wide:hover::after,
.card-cta:hover::after {
  opacity: 1;
}

/* CTA card */
.card-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  gap: 8px;
}

.cta-price-tag {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.cta-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
  margin-right: 2px;
}

.cta-amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-family: 'Geist', sans-serif;
}

.cta-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.cta-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.cta-mini-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

.gradient-border::before { display: none; }

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.card-large .card-content { max-width: 55%; justify-content: center; }

.feature-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.glow-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text-primary);
  box-shadow: none;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Clarity rings */
.card-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-clarity {
  /* Fill the entire right side instead of just bottom-right */
  position: relative;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  overflow: hidden;
}

.clarity-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.r1 {
  width: 200px; height: 200px;
  bottom: -30px; right: -30px;
  animation: spin-slow 30s linear infinite;
}

.r2 {
  width: 320px; height: 320px;
  bottom: -80px; right: -80px;
  animation: spin-slow 45s linear infinite reverse;
}

.r3 {
  width: 160px; height: 160px;
  top: 20px; right: 40px;
  border-color: rgba(255, 255, 255, 0.03);
  animation: spin-slow 25s linear infinite;
}

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

/* Resolution indicator — fills the top-right of the card */
.resolution-indicator {
  position: absolute;
  top: 36px;
  right: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}

.res-huge {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-family: 'Geist', sans-serif;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
}

.res-sub-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.res-accent-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

/* Crosshair focus element */
.focus-crosshair {
  position: absolute;
  top: 50%;
  right: 25%;
  transform: translate(50%, -50%);
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 2;
}

.focus-crosshair::before,
.focus-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
}

.focus-crosshair::before {
  /* horizontal line */
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}

.focus-crosshair::after {
  /* vertical line */
  left: 50%; top: 0;
  width: 1px; height: 100%;
  transform: translateX(-50%);
}

.focus-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.1);
  border-style: solid;
  border-width: 0;
}

.focus-corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.focus-corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.focus-corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.focus-corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.res-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.res-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(220, 38, 38, 0.3));
  align-self: flex-end;
}

/* ========== App Interface ========== */
.app-section {
  padding: 80px 24px 180px;
  position: relative;
  z-index: 10;
}

.app-section::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 90%;
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(220, 38, 38, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 38% 45%, rgba(160, 15, 15, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 35% 40% at 62% 55%, rgba(255, 50, 50, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
}

.app-glass-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.app-header {
  text-align: center;
  padding: 36px 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.app-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.app-header p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Upload Area */
.upload-zone {
  min-height: 340px;
  background: var(--bg-elevated);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
}

.upload-zone:hover { background: var(--bg-surface); }

.upload-zone.dragover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 2px var(--border-strong);
}

.upload-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.upload-rings {
  position: relative;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--border-default);
}

.r-outer {
  width: 80px; height: 80px;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.r-inner {
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.upload-icon {
  position: relative; z-index: 2;
  color: var(--text-secondary);
}

.animate-bounce { animation: bounce 2.5s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.upload-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Preview */
.preview-container {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background: var(--bg-primary);
}

.preview-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
}

.btn-change {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-change:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Scanner */
.scanner-laser {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.laser-beam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.5), 0 0 40px rgba(220, 38, 38, 0.15);
  animation: scan 2s var(--ease-smooth) infinite alternate;
}

.laser-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(220, 38, 38, 0.06), transparent);
  animation: scan 2s var(--ease-smooth) infinite alternate;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(340px); }
}

.scanning-text {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Credits Bar */
.credits-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.credits-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.credits-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 500;
}

.credits-track {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.credits-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s var(--ease-out);
}

.key-deactivate-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
  line-height: 1;
}

.key-deactivate-btn:hover { color: var(--text-secondary); }

/* Key Section */
.key-section {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: 'Geist', sans-serif;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  width: fit-content;
}

.key-toggle-btn:hover { color: var(--text-secondary); }

.key-input-row {
  display: flex;
  gap: 8px;
}

.key-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: 'Geist', monospace;
  letter-spacing: 0.06em;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.key-input::placeholder { color: var(--text-tertiary); letter-spacing: 0.04em; }
.key-input:focus { border-color: var(--accent-border); }

.key-submit-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.key-submit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.key-error {
  font-size: 0.78rem;
  color: #f87171;
  margin: 0;
}

/* Upgrade Banner */
.upgrade-banner {
  margin: 0 20px 16px;
  padding: 14px 18px;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upgrade-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.upgrade-icon {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.upgrade-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.upgrade-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

/* Controls */
.app-controls {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
}

.primary-action-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Geist', sans-serif;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-action-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.primary-action-btn:not(:disabled):hover {
  opacity: 0.85;
}

/* Error Toast */
.toast-error {
  display: none;
  position: absolute;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 38, 38, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  padding: 10px 20px;
  border-radius: 100px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 20;
}

/* ========== Result Section ========== */
.result-section {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
}

.result-glass {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
}

.result-header {
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.result-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.result-showcase {
  flex: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.result-before-img {
  position: absolute;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.final-img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 2;
  opacity: 0;
}

.final-img.reveal-animate {
  animation: resultReveal 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.result-reveal-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-light) 20%, var(--accent-light) 80%, transparent);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.4), 0 0 6px rgba(220, 38, 38, 0.6);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.result-reveal-line.reveal-animate {
  animation: resultScanLine 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes resultReveal {
  0%   { opacity: 0; clip-path: inset(100% 0 0 0); filter: blur(4px) saturate(0.3); }
  40%  { opacity: 1; clip-path: inset(30% 0 0 0); filter: blur(2px) saturate(0.7); }
  70%  { opacity: 1; clip-path: inset(5% 0 0 0); filter: blur(0) saturate(1); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0) saturate(1); }
}

@keyframes resultScanLine {
  0%   { left: 0%; opacity: 0.9; }
  95%  { left: 100%; opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}

.result-actions {
  padding: 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.btn-primary-glow {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.btn-primary-glow:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(220, 38, 38, 0.25);
}

/* ========== Footer ========== */
.footer {
  padding: 0 24px 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-glass {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon-wrapper.small {
  width: 20px; height: 20px;
  border-radius: 4px;
  color: var(--text-tertiary);
}

.footer-brand {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-right p {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}
.footer-link {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--text-secondary);
}

.footer-disclaimer {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  opacity: 0.45;
  padding: 10px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

/* ========== Email Verification ========== */
.email-verify-section {
  width: 100%;
  padding: 0 4px;
  margin-bottom: 12px;
}

.email-verify-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-align: center;
}
.free-highlight {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.free-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.email-check-label {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.email-input-row {
  display: flex;
  gap: 8px;
}

.email-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(220, 38, 38, 0.5);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.15);
}

.email-input:focus {
  border-color: rgba(220, 38, 38, 0.8);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.25);
}

.email-send-btn {
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.email-send-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.email-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.otp-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.otp-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Geist Mono', monospace;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.otp-input:focus {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.email-verify-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(185, 28, 28, 0.9));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.email-verify-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.email-verify-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.email-verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 500;
}

.email-error {
  color: #f87171;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 8px;
}

.email-step {
  animation: fadeIn 0.3s ease;
}

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

/* ========== Responsive ========== */
/* ═══════════════════════════════════════════════════════════════════════════
   TABLET BREAKPOINT
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .showcase-container, .showcase-section.reverse .showcase-container {
    grid-template-columns: 1fr;
    gap: 48px;
    direction: ltr;
  }
  .accordion-gallery { flex-direction: column; height: 500px; }
  .accordion-item:hover { flex: 2; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card-large { grid-column: span 1; grid-row: span 1; flex-direction: column; }
  .card-large .card-content { max-width: 100%; }
  .card-wide { grid-column: span 1; }
  .visual-clarity { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — A COMPLETELY DIFFERENT SITE
   Not responsive. Not squeezed. Rebuilt from scratch for 375px touch screens.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ══════════════════════════════════════════════════════════════════════
     MOBILE — Premium Startup Experience
     Horizontal carousels, snap scrolling, edge-to-edge, no desktop DNA
  ══════════════════════════════════════════════════════════════════════ */

  html {
    overflow-x: hidden;
    touch-action: manipulation;
    scroll-behavior: smooth;
  }
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    touch-action: manipulation;
  }

  /* Kill ALL hover effects */
  .showcase-card:hover { box-shadow: none; transform: none; }
  .showcase-card:hover .hover-reveal,
  .showcase-card:hover .hover-reveal-horizontal { clip-path: revert; }
  .showcase-card:hover .scan-line-vertical,
  .showcase-card:hover .scan-line-horizontal { opacity: revert; }
  .accordion-item,
  .accordion-item:hover,
  .accordion-item:active,
  .accordion-item:focus {
    flex: 0 0 80% !important;
    transition: none !important;
  }
  .accordion-item:hover .accordion-img,
  .accordion-item:active .accordion-img {
    transform: none !important;
    filter: none !important;
  }
  .accordion-item:hover .accordion-content,
  .accordion-item:active .accordion-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .bento-card:hover { background: var(--bg-primary); }
  .stat-card:hover { background: var(--bg-primary); }

  /* ── Navbar — floating glass pill ───────────────────────────────────── */
  .navbar {
    padding: 0 12px;
    border-radius: 0;
    margin: 0;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-container {
    padding: 10px 0;
    max-width: 100%;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
  }
  .nav-links { display: none; }
  .brand-logo { height: 88px; }
  .nav-cta {
    font-size: 0.7rem;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
  }

  /* ── Hero — dramatic, full-screen feel ──────────────────────────────── */
  .hero {
    overflow: hidden;
    padding: 80px 20px 24px;
    min-height: auto;
    text-align: center;
  }
  .hero::before { opacity: 0.4; }
  .hero-content {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.04;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
    font-weight: 800;
  }
  .hero-title br { display: none; }
  .hero-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 100%;
    opacity: 0.8;
  }
  .hero-actions { width: 100%; margin-bottom: 0; }
  .primary-btn {
    padding: 16px;
    font-size: 0.88rem;
    width: 100%;
    border-radius: 14px;
    min-height: 52px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--accent) !important;
    color: #fff !important;
  }

  /* ── Hero Slider — card style matching showcase cards ─────────────── */
  .hero-showcase {
    margin: 20px 0 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    border: none;
  }
  /* Hide desktop slider, show mobile card */
  .hero-slider-desktop { display: none !important; }
  .hero-slider-mobile {
    display: block !important;
    aspect-ratio: 4/3;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
  }

  /* ── Showcase Sections — horizontal card carousel ───────────────────── */
  .showcase-section {
    padding: 48px 0 44px;
    border-bottom: none;
    position: relative;
  }
  .showcase-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  }
  .showcase-container {
    padding: 0 20px;
    gap: 20px;
  }
  .badge-sub {
    font-size: 0.6rem;
    margin-bottom: 6px;
    letter-spacing: 0.14em;
  }
  .showcase-text h2 {
    font-size: 1.6rem;
    line-height: 1.08;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    font-weight: 700;
  }
  .showcase-text p {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 14px;
    opacity: 0.75;
  }
  .feature-bullets { gap: 8px; }
  .feature-bullets li {
    font-size: 0.76rem;
    opacity: 0.85;
  }

  /* Showcase cards — rounded, with subtle shadow */
  .showcase-card {
    aspect-ratio: 4/3;
    border-radius: 16px;
    margin: 0;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
  }
  .img-reveal { clip-path: inset(0 100% 0 0); }
  .hover-reveal-horizontal { clip-path: inset(100% 0 0 0); }
  .scan-line-vertical { opacity: 0.85; left: 0%; }
  .scan-line-horizontal { opacity: 0.85; bottom: 0%; }

  /* ── Hub — complete mobile rewrite ─────────────────────────────────── */
  .hub-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
    overflow: hidden;
  }
  .hub-nav {
    width: 100%;
  }
  .hub-nav h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
  }
  .hub-desc {
    font-size: 0.78rem;
    margin-bottom: 12px;
    opacity: 0.7;
    line-height: 1.5;
  }
  .hub-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .hub-tabs::-webkit-scrollbar { display: none; }
  .hub-tab {
    flex: 0 0 auto;
    font-size: 0.66rem;
    padding: 8px 14px;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    opacity: 0.5;
  }
  .hub-tab.active { opacity: 1; }
  .hub-tab h3 { font-size: 0.66rem; margin: 0; }
  .hub-tab p { display: none; }
  .hub-tab.active p { display: none; }
  .hub-viewscreen-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    perspective: none;
  }
  .hub-viewscreen {
    aspect-ratio: 4/3;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
  }
  /* Force hub images to fill the card properly */
  .hub-viewscreen .showcase-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0; left: 0;
  }

  /* ── Vintage Gallery — premium horizontal snap carousel ─────────────── */
  .centered-showcase {
    padding: 48px 0 44px;
    position: relative;
  }
  .centered-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  }
  .showcase-container-col {
    padding: 0 20px;
    margin-bottom: 20px;
  }
  .showcase-container-col h2 {
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.03em;
  }
  .text-center-desc {
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.75;
  }
  .accordion-gallery {
    flex-direction: row;
    height: 360px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 20px;
    margin: 0;
    scrollbar-width: none;
    scroll-padding: 20px;
  }
  .accordion-gallery::-webkit-scrollbar { display: none; }
  .accordion-item {
    flex: 0 0 80%;
    scroll-snap-align: center;
    border-radius: 16px;
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  }
  .accordion-img {
    filter: none;
  }
  .accordion-content {
    opacity: 1;
    transform: translateY(0);
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  }
  .accordion-content h3 { font-size: 0.82rem; font-weight: 600; }
  .accordion-content p { font-size: 0.68rem; opacity: 0.8; }

  /* ── Stats — horizontal scroll cards ────────────────────────────────── */
  .stats-section {
    padding: 48px 0;
    border-top: none;
    border-bottom: none;
    background: transparent !important;
    position: relative;
  }
  .stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  }
  .stats-container { padding: 0 20px; }
  .stats-header {
    margin-bottom: 24px;
    max-width: 100%;
  }
  .stats-header h2 {
    font-size: 1.6rem;
    letter-spacing: -0.03em;
  }
  .stats-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.75;
  }
  .stats-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 0;
    background: transparent;
    padding-bottom: 4px;
  }
  .stats-grid::-webkit-scrollbar { display: none; }
  .stat-card {
    flex: 0 0 70%;
    scroll-snap-align: center;
    padding: 28px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    text-align: center;
  }
  .stat-number {
    font-size: 2.8rem;
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }
  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    opacity: 0.7;
  }

  /* ── Bento Features — horizontal snap carousel ─────────────────────── */
  .features {
    padding: 48px 0 44px;
    position: relative;
  }
  .features::before { display: none; }
  .features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  }
  .section-header {
    padding: 0 20px;
    margin-bottom: 20px;
  }
  .section-title {
    font-size: 1.6rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  .section-subtitle {
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.75;
  }
  .bento-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 20px;
    scrollbar-width: none;
    background: transparent;
    border-radius: 0;
    scroll-padding: 20px;
  }
  .bento-grid::-webkit-scrollbar { display: none; }
  .bento-grid > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
  }
  .bento-card { padding: 0; min-height: auto; }
  .bento-card::after { display: none !important; }
  .card-content {
    padding: 24px 20px;
  }
  .card-content h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
  .card-content p { font-size: 0.8rem; line-height: 1.5; opacity: 0.8; }
  .feature-icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .card-large { min-height: auto; }
  .card-large .card-content { padding: 24px 20px; max-width: 100%; }
  .card-visual { min-height: 130px; }
  .res-huge { font-size: 2.2rem; }
  .res-tag { font-size: 0.62rem; }
  .card-cta { border-radius: 16px; }
  .cta-amount { font-size: 2.6rem; }
  .cta-desc { font-size: 0.8rem; }
  .cta-mini-btn {
    padding: 16px;
    font-size: 0.88rem;
    width: 100%;
    border-radius: 14px;
    min-height: 52px;
    font-weight: 600;
  }

  /* ── Enhance Studio ─────────────────────────────────────────────────── */
  .app-section {
    padding: 48px 0 20px;
    margin-bottom: 0;
    overflow: hidden;
  }
  .app-section::before { opacity: 0.5; width: 200%; }
  .app-glass-container {
    border-radius: 20px;
    margin: 0 12px;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 100%;
  }
  .app-header { padding: 24px 20px 16px; }
  .app-header h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
  .app-header p { font-size: 0.78rem; opacity: 0.7; }
  .upload-zone {
    min-height: 220px;
    padding: 0 16px;
  }
  .upload-rings { width: 56px; height: 56px; }
  .ring.r-outer { width: 56px; height: 56px; }
  .ring.r-inner { width: 40px; height: 40px; }
  .upload-title { font-size: 0.9rem; }
  .upload-desc { font-size: 0.72rem; opacity: 0.6; }
  .preview-img { max-height: 260px; border-radius: 14px; }
  .btn-change { font-size: 0.7rem; padding: 6px 12px; }
  .app-controls { padding: 12px 16px 14px; }
  .primary-action-btn {
    padding: 16px;
    font-size: 0.9rem;
    border-radius: 14px;
    min-height: 52px;
    font-weight: 600;
  }
  .credits-bar { padding: 10px 16px; gap: 8px; }
  .credits-label { font-size: 0.72rem; }
  .key-section {
    padding: 14px 16px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .key-toggle-btn { font-size: 0.78rem; }
  .key-input-row { flex-direction: column; gap: 8px; width: 100%; }
  .key-input {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    letter-spacing: 0.15em;
  }
  .key-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    min-height: 52px;
  }

  /* Email verify */
  .email-verify-section { padding: 16px; }
  .email-verify-label { font-size: 0.82rem; text-align: center; margin-bottom: 12px; }
  .email-input-row { flex-direction: column; gap: 8px; }
  .email-input-row input {
    width: 100%; padding: 14px; border-radius: 12px; font-size: 0.9rem; text-align: center;
  }
  .email-input-row button, .email-send-btn {
    width: 100%; padding: 14px; border-radius: 12px; font-size: 0.88rem; min-height: 52px;
  }
  .otp-input-row {
    display: flex; flex-direction: row; gap: 6px;
    justify-content: center; flex-wrap: nowrap; margin: 10px 0;
  }
  .otp-input {
    width: 42px !important; height: 52px !important; padding: 0 !important;
    font-size: 1.2rem !important; text-align: center !important;
    letter-spacing: 0 !important; border-radius: 12px !important; flex-shrink: 0;
  }
  .email-verify-btn {
    width: 100%; padding: 14px; border-radius: 12px; margin-top: 8px; min-height: 52px;
  }
  .email-check-label { font-size: 0.78rem; text-align: center; margin-bottom: 6px; }
  .email-verified-badge { font-size: 0.8rem; padding: 10px 14px; border-radius: 12px; }
  .email-error { font-size: 0.75rem; }

  /* Upgrade banner */
  .upgrade-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    margin: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .upgrade-text { text-align: center; font-size: 0.84rem; justify-content: center; }
  .upgrade-btn {
    width: 100%; padding: 14px; font-size: 0.88rem;
    border-radius: 14px; min-height: 52px;
  }

  /* ── Result ──────────────────────────────────────────────────────────── */
  .result-section { padding: 0 12px; }
  .result-glass {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .result-header { padding: 22px 20px 14px; }
  .result-header h2 { font-size: 1.2rem; }
  .success-badge { font-size: 0.72rem; }
  .result-showcase { padding: 0 16px 16px; }
  .result-before-img { max-height: 55vh; border-radius: 14px; }
  .final-img { max-height: 55vh; border-radius: 14px; }
  .result-actions { flex-direction: column; gap: 8px; padding: 0 16px 20px; }
  .result-actions button {
    width: 100%; padding: 14px; border-radius: 14px; min-height: 52px;
  }

  /* ── Footer ──────────────────────────────────────────────────────────── */
  .footer { padding: 20px 20px 36px; }
  .footer-glass {
    flex-direction: column; gap: 6px; text-align: center;
    padding: 16px 0 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .footer-brand { font-size: 0.8rem; color: var(--text-secondary); }
  .footer-right { flex-direction: column; gap: 6px; }
  .footer-right p { font-size: 0.68rem; color: var(--text-tertiary); }
  .footer-link { font-size: 0.68rem; }
  .footer-disclaimer { font-size: 0.58rem; padding: 6px 0 0; color: var(--text-tertiary); opacity: 0.6; }

  /* ══════════════════════════════════════════════════════════════════════
     SHOWCASE CARD SLIDERS (mobile only — touch-native)
  ══════════════════════════════════════════════════════════════════════ */

  /* ══════════════════════════════════════════════════════════════════════
     SHOWCASE SLIDERS — clip-path approach (no clones, no wrappers)
     Before image = underneath (z-index 1), After image = on top (z-index 2)
     JS controls clip-path on the after image to reveal the before
  ══════════════════════════════════════════════════════════════════════ */

  /* Kill auto-reveal animations — sliders replace them */
  .showcase-card.auto-revealing .hover-reveal,
  .showcase-card.auto-revealing .hover-reveal-horizontal {
    animation: none !important;
  }
  .showcase-card.auto-revealing .scan-line-vertical,
  .showcase-card.auto-revealing .scan-line-horizontal {
    animation: none !important;
  }

  /* Hide scan lines when slider active */
  .showcase-card.has-slider .scan-line-vertical,
  .showcase-card.has-slider .scan-line-horizontal {
    display: none !important;
  }

  /* Kill ALL transitions on slider cards — instant response */
  .showcase-card.has-slider .transition-img,
  .showcase-card.has-slider .img-reveal,
  .showcase-card.has-slider .hover-reveal-horizontal {
    transition: none !important;
  }

  /* Slider handle — wide touch target, thin line via ::before */
  .showcase-card .card-slider-handle {
    width: 44px;
    touch-action: none;
  }
  .showcase-card .card-slider-handle.card-handle-horizontal {
    height: 44px;
  }
  /* Hide overlay on mobile — handle is the only drag target */
  .showcase-card .card-touch-overlay {
    display: none;
  }

  /* Before/After labels */
  .showcase-card .card-slider-labels {
    position: absolute;
    bottom: 14px;
    left: 14px; right: 14px;
    display: flex;
    justify-content: space-between;
    z-index: 6;
    pointer-events: none;
  }
  .showcase-card .card-slider-labels span {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
  }

  /* ── Scroll Hint — fade edges (both sides) + permanent swipe indicator ── */
  .scroll-hint-wrap {
    position: relative;
  }
  /* Right fade */
  .scroll-hint-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s;
  }
  .scroll-hint-wrap.scrolled-end::after { opacity: 0; }
  /* Left fade */
  .scroll-hint-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
  }
  .scroll-hint-wrap.scrolled-start::before { opacity: 1; }

  /* Swipe indicator — permanent */
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 14px;
    opacity: 0.65;
    pointer-events: none;
  }
  .swipe-hint svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: var(--accent);
    display: block;
  }
  .swipe-hint svg:first-child {
    animation: swipeHintLeft 1.8s ease-in-out infinite;
    margin-right: 6px;
  }
  .swipe-hint svg:last-child {
    animation: swipeHintRight 1.8s ease-in-out infinite;
    margin-left: 6px;
  }
  .swipe-hint span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    min-width: 36px;
  }
  @keyframes swipeHintLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
  }
  @keyframes swipeHintRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }

  /* ── Misc ────────────────────────────────────────────────────────────── */
  .toast-error { bottom: 20px; left: 12px; right: 12px; border-radius: 14px; font-size: 0.8rem; }
}

/* ========== Selection & Scrollbar ========== */
::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
