/* ═══════════════════════════════════════════════════════════
   ZEE-PNG — Premium Stylesheet
   Author: ZEE-PNG Team
   Description: Full SaaS-style UI with glassmorphism, gradients,
                animations, and responsive layout.
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  /* Brand Colors */
  --c-purple:      #7c3aed;
  --c-purple-light:#a855f7;
  --c-blue:        #2563eb;
  --c-blue-light:  #60a5fa;
  --c-cyan:        #06b6d4;
  --c-green:       #10b981;
  --c-orange:      #f97316;
  --c-pink:        #ec4899;
  --c-red:         #ef4444;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
  --grad-hero:     linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --grad-card:     linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  --grad-success:  linear-gradient(135deg, #10b981, #059669);
  --grad-glow:     radial-gradient(ellipse at center, rgba(124,58,237,0.4) 0%, transparent 70%);

  /* Backgrounds */
  --bg-base:       #0a0a1a;
  --bg-surface:    #0f0f23;
  --bg-card:       rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-glass:      rgba(255, 255, 255, 0.07);
  --bg-glass-dark: rgba(0, 0, 0, 0.3);

  /* Text */
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --text-accent:   #a78bfa;

  /* Borders */
  --border-glass:  rgba(255, 255, 255, 0.12);
  --border-light:  rgba(255, 255, 255, 0.06);
  --border-glow:   rgba(124, 58, 237, 0.5);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(124,58,237,0.3);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.08) inset;

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Typography */
  --font-primary:  'Inter', sans-serif;
  --font-heading:  'Space Grotesk', sans-serif;

  /* Transitions */
  --tr-fast:   0.15s ease;
  --tr-normal: 0.3s ease;
  --tr-slow:   0.5s ease;

  /* Layout */
  --nav-h:       72px;
  --container-w: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ─────────────────────────────────────────
   ANIMATED BACKGROUND — PARTICLES & ORBS
───────────────────────────────────────── */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Individual particles injected by JS */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}

.glow-orb--1 {
  width: 600px; height: 600px;
  background: rgba(124, 58, 237, 0.2);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.glow-orb--2 {
  width: 500px; height: 500px;
  background: rgba(6, 182, 212, 0.15);
  top: 40%; right: -150px;
  animation-delay: 3s;
}

.glow-orb--3 {
  width: 400px; height: 400px;
  background: rgba(37, 99, 235, 0.18);
  bottom: -100px; left: 40%;
  animation-delay: 6s;
}

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

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--tr-normal);
  position: relative;
  overflow: hidden;
  border: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.btn:hover::before { opacity: 1; }
.btn:active         { transform: scale(0.97); }

/* Primary */
.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(124,58,237,0.6);
  transform: translateY(-2px);
}

/* Ghost */
.btn--ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* Success */
.btn--success {
  background: var(--grad-success);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16,185,129,0.4);
}
.btn--success:hover {
  box-shadow: 0 8px 30px rgba(16,185,129,0.6);
  transform: translateY(-2px);
}

/* Sizes */
.btn--lg  { padding: 16px 32px; font-size: 1rem; }
.btn--sm  { padding: 8px 16px; font-size: 0.85rem; }

/* Loading state */
.btn-loading { margin-left: 4px; }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--tr-normal), box-shadow var(--tr-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-glass), var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.5);
}

.logo-text   { color: var(--text-primary); }
.logo-accent { color: var(--c-cyan); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--tr-fast);
}

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

.nav-cta { margin-left: auto; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: all var(--tr-normal);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  z-index: 1;
  background: var(--grad-hero);
  overflow: hidden;
}

/* Mesh grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--r-full);
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--c-purple-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s ease 0.4s both;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badge i { color: var(--c-cyan); font-size: 0.85rem; }

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  z-index: 3;
}

.floating-card i {
  font-size: 1.4rem;
}

.floating-card div { line-height: 1.3; }
.floating-card strong { display: block; font-size: 0.85rem; color: var(--text-primary); }
.floating-card span  { font-size: 0.78rem; color: var(--text-secondary); }
.floating-card em    { color: var(--c-green); font-style: normal; font-weight: 700; }

.floating-card--left {
  left: 0; bottom: 180px;
  animation: floatLeft 6s ease-in-out infinite;
}

.floating-card--left i { color: var(--c-orange); }

.floating-card--right {
  right: 0; bottom: 220px;
  animation: floatRight 7s ease-in-out infinite;
}

.floating-card--right i { color: var(--c-green); }

@keyframes floatLeft {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

@keyframes floatRight {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-18px) rotate(-1deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-glass);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 2;
}

.scroll-dot {
  width: 4px; height: 10px;
  background: var(--grad-primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

/* ─────────────────────────────────────────
   SECTION SHARED STYLES
───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--c-purple-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

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

/* ─────────────────────────────────────────
   TOOL SECTION
───────────────────────────────────────── */
.tool-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* Dashboard Panel */
.dashboard-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.dashboard-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* ─── UPLOAD ZONE ─── */
.upload-zone {
  border: 2px dashed var(--border-glass);
  border-radius: var(--r-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-normal);
  position: relative;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--c-purple-light);
  background: rgba(124,58,237,0.08);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}

.upload-zone__inner {
  text-align: center;
  padding: 40px 20px;
  pointer-events: none;
}

.upload-zone label { pointer-events: all; }

.upload-icon {
  width: 80px; height: 80px;
  background: rgba(124,58,237,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--c-purple-light);
  margin: 0 auto 20px;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124,58,237,0.3); }
  50%       { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(124,58,237,0); }
}

.upload-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.upload-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.upload-btn { pointer-events: all; }

/* ─── WORKSPACE ─── */
.workspace { animation: fadeIn 0.4s ease both; }

/* Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.format-badges {
  display: flex;
  gap: 8px;
}

.format-badge-pill {
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.format-badge-pill--jpg  { background: rgba(249,115,22,0.2); color: var(--c-orange); border: 1px solid rgba(249,115,22,0.3); }
.format-badge-pill--png  { background: rgba(6,182,212,0.2);  color: var(--c-cyan);   border: 1px solid rgba(6,182,212,0.3); }
.format-badge-pill--webp { background: rgba(16,185,129,0.2); color: var(--c-green);  border: 1px solid rgba(16,185,129,0.3); }

/* ─── PREVIEW GRID ─── */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}

.preview-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.2); }
}

.preview-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--tr-normal);
}

.preview-card:hover {
  border-color: var(--border-glass);
  box-shadow: var(--shadow-md);
}

.preview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-label--original   { color: var(--c-blue-light); }
.preview-label--compressed { color: var(--c-green); }

.preview-size {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-card__img-wrap {
  position: relative;
  min-height: 220px;
  background:
    repeating-conic-gradient(rgba(255,255,255,0.05) 0% 25%, transparent 0% 50%)
    0 0 / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card__img-wrap img {
  max-height: 280px;
  object-fit: contain;
  width: 100%;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.preview-placeholder i { font-size: 2rem; color: var(--c-purple-light); opacity: 0.5; }

.preview-card__footer {
  padding: 10px 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.dim-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--c-green);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ─── OPTIONS PANEL ─── */
.options-panel {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Slider */
.slider-group { flex: 1; }

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.slider-label-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-label-row label i { color: var(--c-purple-light); }

.slider-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-purple-light);
  min-width: 46px;
  text-align: right;
}

.slider-track-wrap { margin-bottom: 8px; }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--c-purple) 0%,
    var(--c-cyan) var(--val, 75%),
    rgba(255,255,255,0.1) var(--val, 75%)
  );
  outline: none;
  cursor: pointer;
  transition: background var(--tr-fast);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 0 0 3px rgba(124,58,237,0.6);
  cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 5px rgba(124,58,237,0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 0 0 3px rgba(124,58,237,0.6);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.slider-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.slider-hint i { color: var(--c-cyan); }

/* Format Group */
.format-group label:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.format-group label:first-child i { color: var(--c-cyan); }

.format-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--tr-fast);
  user-select: none;
}

.format-option:hover {
  border-color: var(--c-purple-light);
  color: var(--text-primary);
  background: rgba(124,58,237,0.1);
}

.format-option input[type="radio"] {
  accent-color: var(--c-purple-light);
  width: 16px; height: 16px;
}

.format-option:has(input:checked) {
  border-color: var(--c-purple-light);
  background: rgba(124,58,237,0.15);
  color: var(--c-purple-light);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  animation: fadeIn 0.5s ease both;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
}

.stat-pill i {
  font-size: 1.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.stat-pill div { line-height: 1.3; }
.stat-pill strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.stat-pill span  { font-size: 0.78rem; color: var(--text-muted); }

.stat-pill--highlight {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.08);
}

.stat-pill--highlight i     { color: var(--c-green); }
.stat-pill--highlight strong { color: var(--c-green); }

/* ─────────────────────────────────────────
   FEATURES SECTION
───────────────────────────────────────── */
.features-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  transition: all var(--tr-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--tr-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-md);
}

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

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-icon--purple { background: rgba(124,58,237,0.2); color: var(--c-purple-light); }
.feature-icon--blue   { background: rgba(37,99,235,0.2);  color: var(--c-blue-light);   }
.feature-icon--cyan   { background: rgba(6,182,212,0.2);  color: var(--c-cyan);          }
.feature-icon--green  { background: rgba(16,185,129,0.2); color: var(--c-green);          }
.feature-icon--orange { background: rgba(249,115,22,0.2); color: var(--c-orange);         }
.feature-icon--pink   { background: rgba(236,72,153,0.2); color: var(--c-pink);           }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

/* ─────────────────────────────────────────
   STATS SECTION
───────────────────────────────────────── */
.stats-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.stats-glass-panel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  gap: 20px;
  flex-wrap: wrap;
}

.stats-glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.stats-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.stats-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stats-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-divider {
  width: 1px;
  height: 60px;
  background: var(--border-glass);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   HOW IT WORKS SECTION
───────────────────────────────────────── */
.how-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  position: relative;
  transition: all var(--tr-normal);
}

.how-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-md);
}

.how-step__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  position: absolute;
  top: 12px; right: 20px;
  line-height: 1;
}

.how-step__icon {
  width: 60px; height: 60px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-purple-light);
  margin: 0 auto 20px;
}

.how-step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.how-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-connector {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 8px;
  animation: arrowPulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────── */
.faq-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--tr-fast);
}

.faq-item.open {
  border-color: var(--border-glass);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--tr-fast);
}

.faq-question:hover { background: rgba(255,255,255,0.04); }

.faq-icon {
  font-size: 0.9rem;
  color: var(--c-purple-light);
  transition: transform var(--tr-normal);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────── */
.cta-banner {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.cta-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r-xl);
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
}

.cta-content { max-width: 500px; }

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-visual {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-orb {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbPulse 4s ease-in-out infinite;
}

.cta-big-icon {
  position: absolute;
  font-size: 4rem;
  color: rgba(124,58,237,0.6);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border-light);
  padding: 72px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}

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

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--tr-fast);
}

.social-link:hover {
  background: var(--bg-glass);
  border-color: var(--border-glass);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--tr-fast);
}

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

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  opacity: 0.7;
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll reveal classes (applied by JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.7); }

/* ─────────────────────────────────────────
   SELECTION
───────────────────────────────────────── */
::selection {
  background: rgba(124,58,237,0.4);
  color: #fff;
}

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

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

  .footer-brand { grid-column: 1 / -1; }

  .stats-glass-panel { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .stats-divider { display: none; }

  .floating-card { display: none; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,26,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--tr-normal);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link { padding: 12px 16px; width: 100%; border-radius: var(--r-md); }
  .nav-cta  { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 40px) 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Tool */
  .dashboard-panel { padding: 20px; }
  .upload-zone { min-height: 200px; }
  .upload-icon { width: 60px; height: 60px; font-size: 1.5rem; }

  .preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .preview-arrow {
    margin-top: 0;
    transform: rotate(90deg);
    justify-self: center;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .options-panel { padding: 20px; }
  .action-buttons { flex-direction: column; }
  .action-buttons .btn { justify-content: center; }

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

  /* How */
  .how-steps { flex-direction: column; align-items: center; }
  .how-connector { transform: rotate(90deg); }

  /* CTA */
  .cta-glass { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-visual { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (≤ 480px)
───────────────────────────────────────── */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .trust-badges { gap: 10px; }
  .trust-badge  { font-size: 0.76rem; }
  .format-selector { gap: 6px; }
  .section-title { font-size: 1.7rem; }
  .how-step { min-width: 100%; }
}
