/* ═══════════════════════════════════════════════════════════
   BG ERASER — style.css
   Theme: Cinematic Dark Glassmorphism
   Fonts: Bebas Neue (display) · Syne (UI) · DM Sans (body)
   Palette: Deep Slate + Electric Indigo + Icy Cyan
═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Canvas */
  --bg:          #080b14;
  --bg-2:        #0d1120;
  --bg-3:        #111829;

  /* Glass surfaces */
  --glass:       rgba(255, 255, 255, 0.03);
  --glass-2:     rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(129, 140, 248, 0.45);

  /* Accent palette */
  --indigo:      #818cf8;
  --violet:      #a78bfa;
  --cyan:        #38bdf8;
  --emerald:     #34d399;
  --amber:       #fbbf24;
  --rose:        #fb7185;

  /* Brand gradient */
  --grad-brand:  linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #38bdf8 100%);
  --grad-glow:   radial-gradient(ellipse at center, rgba(129,140,248,0.3) 0%, transparent 70%);

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  /* Radii */
  --r-sm:  0.5rem;
  --r-md:  1rem;
  --r-lg:  1.5rem;
  --r-xl:  2rem;
  --r-2xl: 2.5rem;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:   0 20px 64px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 48px rgba(129,140,248,0.35);
  --shadow-glow-strong: 0 0 80px rgba(129,140,248,0.55);

  /* Transitions */
  --t-fast:  0.16s ease;
  --t-med:   0.3s cubic-bezier(0.4,0,0.2,1);
  --t-slow:  0.55s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --container: 1240px;
  --header-h:  70px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: 'DM Sans', sans-serif; font-size: 1rem; line-height: 1.7; color: var(--text-primary); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--indigo); transition: color var(--t-fast); }
a:hover { color: var(--violet); }
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-secondary); }

/* ─── LAYOUT HELPERS ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── GLASS UTILITY ──────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.glass-card:hover {
  background: var(--glass-2);
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(129,140,248,0.1);
}

/* ─── AMBIENT SCENE ──────────────────────────────────────── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}
.scene__orb--a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
  top: -250px; left: -200px;
  animation: driftA 22s ease-in-out infinite alternate;
}
.scene__orb--b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  bottom: 0; right: -150px;
  animation: driftB 28s ease-in-out infinite alternate;
}
.scene__orb--c {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: driftC 18s ease-in-out infinite alternate;
}
@keyframes driftA { to { transform: translate(60px, 80px); } }
@keyframes driftB { to { transform: translate(-80px, -60px); } }
@keyframes driftC { to { transform: translate(-50%, calc(-50% + 50px)); } }

.scene__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(129,140,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129,140,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.scene__noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  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");
  background-size: 256px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.96) !important; }

/* Glare sweep */
.btn__glare {
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover .btn__glare { left: 125%; }

/* Primary */
.btn--primary {
  background: linear-gradient(135deg, #6366f1, #818cf8, #38bdf8);
  background-size: 200% auto;
  color: #fff;
  padding: 0.72rem 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 24px rgba(99,102,241,0.45);
}
.btn--primary:hover:not(:disabled) {
  background-position: right center;
  box-shadow: 0 8px 40px rgba(99,102,241,0.65);
  transform: translateY(-2px);
}
.btn--primary:disabled,
.btn--primary[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* Ghost */
.btn--ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text-secondary);
  padding: 0.72rem 1.5rem;
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  background: var(--glass-2);
}

/* Success */
.btn--success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 24px rgba(16,185,129,0.4);
}
.btn--success:hover {
  box-shadow: 0 8px 40px rgba(16,185,129,0.6);
  transform: translateY(-2px);
}

/* Sizes */
.btn--sm  { padding: 0.5rem 1rem;  font-size: 0.85rem; border-radius: var(--r-sm); }
.btn--lg  { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn--xl  { padding: 1.1rem 2.4rem; font-size: 1.1rem; border-radius: var(--r-lg); }
.btn--full { width: 100%; justify-content: center; }

/* ─── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(8,11,20,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo__gem {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
  flex-shrink: 0;
}
.logo__text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.logo__text strong { color: var(--indigo); }

/* Nav */
.header__nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.header__nav a:hover { color: var(--text-primary); }

.header__actions {
  display: flex;
  gap: 0.6rem;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.header__drawer {
  display: none;
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(8,11,20,0.97);
  border-top: 1px solid var(--glass-border);
}
.header__drawer.open { display: block; }
.header__drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.header__drawer a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}
.header__drawer a:hover { color: var(--text-primary); }
.drawer__cta { margin-top: 0.5rem; }

/* ─── AD SLOTS ───────────────────────────────────────────── */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.ad-slot__inner {
  width: 100%;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  min-height: 50px; /* collapses gracefully when unfilled */
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot--leaderboard .ad-slot__inner { max-width: 728px; min-height: 90px; }
.ad-slot--rectangle  .ad-slot__inner { max-width: 336px; min-height: 280px; margin: 1.5rem auto; border-radius: var(--r-lg); border: 1px solid var(--glass-border); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero { padding: 5rem 0 4rem; }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

/* Badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.25);
  color: var(--indigo);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
}

/* Heading */
.hero__heading { max-width: 760px; }
.hero__heading-em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.78;
}

/* ─── UPLOAD SHELL ───────────────────────────────────────── */
.upload-shell {
  position: relative;
  width: 100%;
  max-width: 820px;
}
/* Animated SVG dashed border */
.upload-shell__border {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  border-radius: var(--r-2xl);
}
.border-rect {
  animation: dashRotate 12s linear infinite;
}
@keyframes dashRotate {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -100; }
}

/* Corner accents */
.uz-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--indigo);
  border-style: solid;
  z-index: 3;
  opacity: 0.6;
  transition: opacity var(--t-med), width var(--t-med), height var(--t-med);
}
.upload-zone:hover ~ .uz-corner,
.upload-zone.drag-over ~ .uz-corner { opacity: 1; width: 26px; height: 26px; }
.uz-corner--tl { top: -2px; left: -2px;  border-width: 2px 0 0 2px; border-radius: var(--r-sm) 0 0 0; }
.uz-corner--tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; border-radius: 0 var(--r-sm) 0 0; }
.uz-corner--bl { bottom: -2px; left: -2px;  border-width: 0 0 2px 2px; border-radius: 0 0 0 var(--r-sm); }
.uz-corner--br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; border-radius: 0 0 var(--r-sm) 0; }

/* ─── UPLOAD ZONE ────────────────────────────────────────── */
.upload-zone {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 300px;
  border-radius: var(--r-2xl);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--t-med),
    border-color var(--t-med),
    box-shadow var(--t-med),
    transform var(--t-med);
}
/* Radial shimmer on hover */
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(129,140,248,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.upload-zone:hover { border-color: rgba(129,140,248,0.4); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.upload-zone:hover::before { opacity: 1; }
.upload-zone:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: var(--r-2xl); }

/* Drag-over state */
.upload-zone.drag-over {
  border-color: var(--indigo);
  background: rgba(129,140,248,0.07);
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.01);
}
.upload-zone.drag-over::before { opacity: 1; }

/* Pulse glow animation when idle */
@keyframes idlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129,140,248,0.0); }
  50%       { box-shadow: 0 0 0 10px rgba(129,140,248,0.06); }
}
.upload-zone { animation: idlePulse 4s ease-in-out 2s infinite; }

/* ─── UPLOAD PROMPT ──────────────────────────────────────── */
.upload-zone__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 4rem 2rem;
  min-height: 300px;
}

/* Animated icon stack */
.uz-icon { position: relative; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.uz-icon__halo {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(129,140,248,0.3);
}
.uz-icon__halo--1 {
  inset: 0;
  animation: haloPulse 2.5s ease-in-out infinite;
}
.uz-icon__halo--2 {
  inset: -12px;
  animation: haloPulse 2.5s ease-in-out 0.6s infinite;
  opacity: 0.5;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.12); opacity: 0.15; }
}
.uz-icon__face {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(56,189,248,0.15));
  border: 1px solid rgba(129,140,248,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}
.uz-icon__face { background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.3); border-radius: 50%; }
.uz-icon__face i { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.uz-headline {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.uz-sub { font-size: 0.95rem; color: var(--text-secondary); }
.uz-sub strong { color: var(--indigo); }

/* Format chips */
.uz-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.fchip {
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: 0.04em;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.fchip:hover { transform: translateY(-2px); }
.fchip--png  { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.07); }
.fchip--jpg  { color: #fbbf24; border-color: rgba(251,191,36,0.3);  background: rgba(251,191,36,0.07); }
.fchip--svg  { color: #34d399; border-color: rgba(52,211,153,0.3);  background: rgba(52,211,153,0.07); }
.fchip--webp { color: #38bdf8; border-color: rgba(56,189,248,0.3);  background: rgba(56,189,248,0.07); }
.fchip--size { color: var(--text-muted); border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }

/* ─── UPLOAD PREVIEW (file selected) ────────────────────── */
.upload-zone__preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  min-height: 180px;
}
.uzp__thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
.uzp__thumb {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}
.uzp__thumb-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.uzp__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.uzp__meta-icon { font-size: 1.5rem; color: var(--indigo); flex-shrink: 0; }
.uzp__meta-text { min-width: 0; }
.uzp__name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uzp__size { font-size: 0.82rem; color: var(--text-muted); }
.uzp__reset {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.uzp__reset:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.4); transform: scale(1.1); }

/* ─── HERO ACTIONS ───────────────────────────────────────── */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.hero__trust {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__trust i { color: var(--emerald); }

/* ─── COMPARE GRID ───────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1.25rem;
  width: 100%;
  max-width: 960px;
}

.compare-panel {
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.compare-panel__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}
.compare-panel__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.compare-panel__label--result { color: var(--indigo); }

/* Traffic lights */
.traffic-lights { display: flex; gap: 6px; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl--r { background: #ff5f56; }
.tl--y { background: #ffbd2e; }
.tl--g { background: #27c93f; }

/* Image canvas */
.compare-panel__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--bg-3);
}
.compare-panel__canvas img {
  width: 100%; height: 100%;
  object-fit: contain;
  max-height: 340px;
  display: block;
}
.compare-panel__footer {
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* Checkerboard transparency pattern */
.checkerboard {
  background-image:
    linear-gradient(45deg, #1e2235 25%, transparent 25%),
    linear-gradient(-45deg, #1e2235 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e2235 75%),
    linear-gradient(-45deg, transparent 75%, #1e2235 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  background-color: #131827;
}

/* Divider */
.compare-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 3.5rem;
  align-self: stretch;
}
.compare-divider__pill {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ─── CONTENT SECTIONS ───────────────────────────────────── */
.section { padding: 5.5rem 0; position: relative; z-index: 1; }
.section--alt { background: rgba(255,255,255,0.012); }

.section__header {
  text-align: center;
  margin-bottom: 3.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section__header h2 { margin: 0.6rem 0 0.75rem; }
.section__header p  { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.section__pill {
  display: inline-block;
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.25);
  color: var(--indigo);
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 100px;
}

/* ─── STEPS ──────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; position: relative; }
.step {
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
}
.step__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(129,140,248,0.3) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}
.step__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--si, var(--indigo));
  margin: 0 auto 1.25rem;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.step:hover .step__icon { transform: scale(1.12) translateY(-3px); box-shadow: 0 8px 24px rgba(129,140,248,0.2); }
.step h3 { margin-bottom: 0.6rem; }
.step__arrow {
  display: none; /* shown at desktop via pseudo or JS */
}

/* ─── FORMATS ────────────────────────────────────────────── */
.formats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.format-card { padding: 2rem 1.5rem; }
.format-card__badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--fc, var(--indigo));
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}
.format-card h3 { margin-bottom: 0.5rem; }

/* ─── FEATURES ───────────────────────────────────────────── */
.features-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { padding: 2rem 1.75rem; position: relative; overflow: hidden; }
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fa, var(--indigo)), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--fa, var(--indigo));
  margin-bottom: 1.1rem;
  transition: transform var(--t-med);
}
.feature:hover .feature__icon { transform: scale(1.1) rotate(-5deg); }
.feature h3 { margin-bottom: 0.5rem; }
.feature__tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fa, var(--indigo));
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ─── USE CASES ──────────────────────────────────────────── */
.usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.usecase { padding: 2rem 1.5rem; text-align: center; }
.usecase__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.usecase h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 960px; margin: 0 auto; }

.faq { overflow: hidden; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-primary);
  transition: color var(--t-fast);
  user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--indigo); }
.faq__icon {
  font-size: 0.8rem;
  color: var(--indigo);
  flex-shrink: 0;
  transition: transform var(--t-med), color var(--t-fast);
}
.faq[open] .faq__icon { transform: rotate(45deg); }
.faq[open] .faq__q { color: var(--indigo); }
.faq__a {
  padding: 0 1.4rem 1.3rem;
  animation: fadeDown 0.3s ease both;
}
.faq__a p { font-size: 0.95rem; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PROCESSING OVERLAY ─────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

.overlay__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2xl);
  padding: 3.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(30px);
}

/* Orbital spinner */
.orbital {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 2rem;
}
.orbital__ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
}
.orbital__ring--1 {
  inset: 0;
  border-width: 2px;
  border-top-color: var(--indigo);
  animation: orbit 1.4s linear infinite;
}
.orbital__ring--2 {
  inset: 10px;
  border-width: 2px;
  border-right-color: var(--cyan);
  animation: orbit 1.0s linear infinite reverse;
}
.orbital__ring--3 {
  inset: 22px;
  border-width: 2px;
  border-bottom-color: var(--violet);
  animation: orbit 1.7s linear infinite;
}
.orbital__nucleus {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--indigo);
}
@keyframes orbit { to { transform: rotate(360deg); } }

.overlay__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.overlay__sub { font-size: 0.9rem; margin-bottom: 1.75rem; }

.overlay__track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.overlay__fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  animation: progressSweep 2.5s ease-in-out infinite;
}
@keyframes progressSweep {
  0%   { width: 5%; }
  60%  { width: 80%; }
  100% { width: 92%; }
}
.overlay__steps {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ostep {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.ostep--active {
  color: var(--indigo);
  border-color: rgba(129,140,248,0.35);
  background: rgba(129,140,248,0.08);
}

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(17,24,39,0.95);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Syne', sans-serif;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 92vw;
  text-align: center;
  backdrop-filter: blur(20px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast--error   { border-color: rgba(248,113,113,0.45); background: rgba(239,68,68,0.1); }
.toast--success { border-color: rgba(52,211,153,0.45);  background: rgba(16,185,129,0.08); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}
.footer__glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse at top, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}
.footer__inner { position: relative; z-index: 1; }
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin-bottom: 2rem;
}
.footer__tagline { font-size: 0.9rem; color: var(--text-secondary); }
.footer__formats {
  display: flex;
  gap: 0.5rem;
}
.footer__formats span {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.footer__divider { height: 1px; background: var(--glass-border); margin-bottom: 2rem; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.footer__nav a { font-size: 0.85rem; color: var(--text-secondary); }
.footer__nav a:hover { color: var(--text-primary); }
.footer__legal { font-size: 0.78rem; color: var(--text-muted); text-align: center; }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ACCESSIBILITY ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .formats-grid  { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid      { grid-template-columns: 1fr; }
  .steps         { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 62px; }

  /* Header */
  .header__nav    { display: none; }
  .header__actions { display: none; }
  .header__burger { display: flex; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero__inner { gap: 2rem; }
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__sub { font-size: 0.95rem; }

  /* Upload zone */
  .upload-zone { min-height: 240px; }
  .upload-zone__prompt { padding: 3rem 1.5rem; min-height: 240px; gap: 0.75rem; }
  .uz-headline { font-size: 1.15rem; }
  .uz-icon { width: 72px; height: 72px; }
  .uz-icon__face { width: 56px; height: 56px; font-size: 1.5rem; }
  .uz-icon__halo--2 { inset: -10px; }

  /* Upload preview */
  .upload-zone__preview { flex-direction: column; text-align: center; padding: 1.75rem 1.5rem; }
  .uzp__meta { flex-direction: column; text-align: center; gap: 0.5rem; }
  .uzp__thumb { width: 110px; height: 110px; }

  /* Compare grid */
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .compare-divider {
    padding: 0;
    height: 48px;
    flex-direction: row;
    justify-content: center;
  }
  .compare-divider__pill { transform: rotate(90deg); }

  /* Sections */
  .section { padding: 3.5rem 0; }
  .section__header { margin-bottom: 2.5rem; }
  .formats-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }

  /* Overlay */
  .overlay__panel { padding: 2.5rem 1.5rem; }
  .orbital { width: 72px; height: 72px; }
  .orbital__nucleus { inset: 24px; }

  /* Ad slots */
  .ad-slot--leaderboard .ad-slot__inner { min-height: 50px; }
  .ad-slot--rectangle   .ad-slot__inner { max-width: 100%; min-height: 200px; margin: 1rem 1.5rem; }

  /* Toast */
  .toast { bottom: 1.25rem; width: calc(100vw - 2rem); max-width: none; }

  /* Corner accents */
  .uz-corner { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  body { font-size: 0.94rem; }
  .hero__badges { gap: 0.4rem; }
  .badge { font-size: 0.7rem; padding: 0.28rem 0.65rem; }
  .btn--xl { padding: 0.95rem 1.75rem; font-size: 1rem; }
  .uz-formats { gap: 0.4rem; }
  .fchip { font-size: 0.72rem; padding: 0.25rem 0.6rem; }
  .step__num { font-size: 4rem; }
  .overlay__steps { gap: 0.5rem; }
  .ostep { font-size: 0.65rem; }
}
