/* ==========================================================================
   CRYSTL - Social Media Video & Image Pre-Conforming Optimizer
   Design System & Styling
   Default Theme: LIGHT (with Dark Mode Toggle)
   ========================================================================== */

:root,
[data-theme="light"] {
  /* Brand Palette (Light Crystl Palette) */
  --bg-primary: #F4F3FA;
  --bg-secondary: #EBE9F5;
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F9F8FD;

  /* Text & Contrast */
  --text-high: #0F0C20;
  --text-mid: #2E2748;
  --text-low: #6D678A;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-subtle: rgba(109, 40, 217, 0.08);
  --border-card: rgba(109, 40, 217, 0.12);
  --border-card-highlight: rgba(109, 40, 217, 0.28);
  --border-glow: rgba(109, 40, 217, 0.25);

  /* Accents */
  --accent-violet: #6D28D9;
  --accent-violet-light: #8B5CF6;
  --accent-cyan: #0284C7;
  --accent-cyan-light: #38BDF8;
  --accent-emerald: #059669;
  --accent-emerald-light: #10B981;
  --accent-rose: #E11D48;
  --accent-amber: #D97706;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(35, 17, 72, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 17, 72, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 17, 72, 0.12);
  --shadow-glow: 0 0 35px rgba(109, 40, 217, 0.18);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6D28D9 0%, #0284C7 50%, #059669 100%);
  --grad-violet: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.9) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(109, 40, 217, 0.15) 0%, rgba(2, 132, 199, 0.08) 45%, transparent 70%);

  /* Navigation & Chrome */
  --nav-bg: rgba(244, 243, 250, 0.85);
  --slider-track: #DCD8EE;

  color-scheme: light;
}

[data-theme="dark"] {
  /* Brand Palette (Dark Ink Palette) */
  --bg-primary: #07060D;
  --bg-secondary: #0E0C18;
  --bg-surface: #141124;
  --bg-surface-glass: rgba(20, 17, 36, 0.85);
  --bg-card: #171428;
  --bg-card-subtle: #1F1B36;

  /* Text & Contrast */
  --text-high: #F5F3FF;
  --text-mid: #B4AFD0;
  --text-low: #7C7699;
  --text-inverse: #0F0C20;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-highlight: rgba(139, 92, 246, 0.4);
  --border-glow: rgba(139, 92, 246, 0.35);

  /* Accents */
  --accent-violet: #8B5CF6;
  --accent-violet-light: #A78BFA;
  --accent-cyan: #38BDF8;
  --accent-cyan-light: #7DD3FC;
  --accent-emerald: #10B981;
  --accent-emerald-light: #34D399;
  --accent-rose: #FB7185;
  --accent-amber: #FBBF24;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 45px rgba(139, 92, 246, 0.28);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #A78BFA 0%, #38BDF8 50%, #34D399 100%);
  --grad-violet: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #34D399 100%);
  --grad-surface: linear-gradient(180deg, rgba(23, 20, 40, 0.95) 0%, rgba(14, 12, 24, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.22) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 70%);

  /* Navigation & Chrome */
  --nav-bg: rgba(7, 6, 13, 0.85);
  --slider-track: #2D274A;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-mid);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

code, pre, .mono-font, .package-id {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ambient Background Glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

.glow-1 {
  width: 550px;
  height: 550px;
  top: -100px;
  left: -150px;
  background: var(--grad-glow);
}

.glow-2 {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.16) 0%, transparent 70%);
}

.glow-3 {
  width: 600px;
  height: 600px;
  bottom: 0;
  left: 20%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
}

/* Signature Faceted Chamfer Shape */
.facet-chamfer {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.facet-chamfer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, var(--border-card) 50%, var(--bg-card-subtle) 100%);
  border-top-right-radius: 18px;
  pointer-events: none;
}

/* Gradient & Brand Accents */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card-highlight);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-violet);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.trust-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trust-link:hover {
  border-color: var(--border-card-highlight);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  border-radius: 14px;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--grad-violet);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.45);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-high);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-card-highlight);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-subtext {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  text-transform: uppercase;
  line-height: 1;
}

.btn-maintext {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Site Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-high);
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--grad-violet);
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-violet);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent-violet);
  border-color: var(--border-card-highlight);
  transform: rotate(15deg);
}

[data-theme="light"] .moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-high);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Section Common Layout */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-violet);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-high);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-low);
  line-height: 1.65;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  color: var(--text-high);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-low);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-description strong {
  color: var(--text-high);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
}

.trust-icon {
  font-size: 1.1rem;
}

/* Hero Phone Mockup */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 370px;
  background: var(--bg-surface);
  border: 10px solid var(--bg-card-subtle);
  outline: 1px solid var(--border-card-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 0.75rem;
  position: relative;
}

.phone-notch {
  width: 110px;
  height: 16px;
  background: var(--text-high);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 0.75rem;
  opacity: 0.8;
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.screen-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-high);
}

.screen-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-violet);
}

.screen-status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-emerald);
}

/* Hero Mini Comparison Container */
.hero-comparison-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #000;
}

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

.before-view {
  z-index: 1;
}

.after-view {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
}

.simulated-image {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
}

.raw-blurry {
  background: linear-gradient(135deg, #2D1B4E 0%, #1A2849 50%, #133E32 100%);
  filter: blur(2.5px) contrast(85%);
}

.conformed-sharp {
  width: 370px; /* match container width so scene doesn't stretch when clipped */
  background: linear-gradient(135deg, #4C1D95 0%, #0369A1 50%, #047857 100%);
}

.overlay-tag {
  position: absolute;
  top: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  z-index: 5;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.left-tag {
  left: 12px;
  background: rgba(225, 29, 72, 0.85);
  color: #FFFFFF;
}

.right-tag {
  right: 12px;
  background: rgba(5, 150, 105, 0.95);
  color: #FFFFFF;
}

.visual-content {
  text-align: center;
  color: #FFFFFF;
  padding: 1rem;
}

.portrait-silhouette {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF 0%, rgba(255,255,255,0.2) 70%);
  margin: 0 auto 1.25rem;
  opacity: 0.9;
}

.portrait-silhouette.crisp {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.warning-text {
  display: block;
  font-size: 0.72rem;
  color: #FECDD3;
  font-weight: 600;
}

.success-text {
  display: block;
  font-size: 0.75rem;
  color: #A7F3D0;
  font-weight: 700;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 100%;
  margin-left: -16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.handle-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F0C20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Telemetry Stats Panel */
.phone-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.telemetry-card {
  text-align: center;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  background: var(--bg-card-subtle);
}

.telemetry-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-low);
  letter-spacing: 0.04em;
}

.telemetry-value {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-high);
  white-space: nowrap;
}

.telemetry-delta {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* Problem vs Solution */
.comparison-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  padding: 2.5rem;
}

.problem-card {
  border-color: rgba(225, 29, 72, 0.2);
  background: var(--bg-surface);
}

.solution-card.highlight-card {
  border-color: var(--border-card-highlight);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.error-icon {
  background: rgba(225, 29, 72, 0.12);
  color: var(--accent-rose);
}

.success-icon {
  background: rgba(5, 150, 105, 0.15);
  color: var(--accent-emerald);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-high);
  margin-bottom: 1.5rem;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-checklist.negative li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--accent-rose);
}

.feature-checklist.positive li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--accent-emerald);
}

.feature-checklist strong {
  color: var(--text-high);
}

/* Live Visual Inspector Section */
.interactive-inspector-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card-highlight);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border-radius: 24px;
}

.inspector-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #090614;
}

.inspector-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer-before {
  z-index: 1;
}

.layer-after {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
}

.simulated-scene {
  width: 1200px; /* Fixed anchor width so background aligns perfectly */
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.raw-scene {
  background: radial-gradient(circle at 60% 40%, #3B1C52 0%, #171129 60%, #070510 100%);
  filter: blur(3.5px) contrast(80%) saturate(85%);
}

.crisp-scene {
  background: radial-gradient(circle at 60% 40%, #5B21B6 0%, #1E1B4B 60%, #0F0A1E 100%);
  filter: contrast(105%) saturate(108%);
}

.scene-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.detail-element.text-element {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.detail-element.text-element.crisp-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #DDD6FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.metric-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.metric-badge.error {
  background: rgba(225, 29, 72, 0.85);
  color: #FFFFFF;
}

.metric-badge.success {
  background: rgba(5, 150, 105, 0.9);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.5);
}

.badge-tag {
  position: absolute;
  top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.06em;
  z-index: 5;
}

.left-badge {
  left: 1.5rem;
  background: rgba(225, 29, 72, 0.9);
  color: #FFFFFF;
}

.right-badge {
  right: 1.5rem;
  background: rgba(5, 150, 105, 0.95);
  color: #FFFFFF;
}

.inspector-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 100%;
  margin-left: -22px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.handle-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.handle-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F0C20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: transform 0.15s ease;
}

.handle-button:hover {
  transform: scale(1.1);
}

.inspector-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.control-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-low);
  font-weight: 600;
}

.inspector-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  background: var(--bg-card-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.stat-pill .label {
  font-weight: 700;
  color: var(--text-low);
  font-size: 0.72rem;
}

.stat-pill .val {
  font-weight: 800;
  color: var(--text-high);
}

.stat-pill .success-val {
  color: var(--accent-emerald);
}

.stat-pill .accent-val {
  color: var(--accent-violet);
}

/* Presets Showcase */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--border-card-highlight);
  color: var(--text-high);
}

.tab-btn.active {
  background: var(--grad-violet);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.preset-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

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

.preset-card.highlight-preset {
  border-color: var(--border-card-highlight);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.preset-aspect-frame {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-violet);
}

.preset-aspect-frame.wa-frame {
  color: var(--accent-emerald);
  border-color: rgba(5, 150, 105, 0.3);
  background: rgba(5, 150, 105, 0.08);
}

.platform-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-instagram {
  background: rgba(109, 40, 217, 0.12);
  color: var(--accent-violet);
}

.tag-whatsapp {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-emerald);
}

.preset-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-high);
  margin-bottom: 0.4rem;
}

.preset-resolution {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
}

.preset-desc {
  font-size: 0.9rem;
  color: var(--text-low);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.preset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preset-tags .tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  color: var(--text-mid);
  border: 1px solid var(--border-subtle);
}

/* 8-Point Compliance Spec Check Section */
.speccheck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.speccheck-card {
  padding: 1.5rem;
}

.speccheck-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-card-highlight);
}

.speccheck-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.speccheck-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.speccheck-icon.success {
  background: rgba(5, 150, 105, 0.15);
  color: var(--accent-emerald);
}

.speccheck-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-high);
  line-height: 1.3;
}

.speccheck-desc {
  font-size: 0.85rem;
  color: var(--text-low);
  line-height: 1.55;
}

/* Interactive Bitrate & File Size Calculator */
.calculator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card-highlight);
  box-shadow: var(--shadow-md);
}

.calc-inputs-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-high);
  display: flex;
  justify-content: space-between;
}

.calc-field label strong {
  color: var(--accent-violet);
  font-family: 'JetBrains Mono', monospace;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--slider-track);
  outline: none;
  transition: opacity 0.2s;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-violet);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.4);
  border: 2px solid #FFFFFF;
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.custom-select {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-high);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.custom-select:focus {
  border-color: var(--accent-violet);
}

.calc-output-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.result-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-violet);
  margin-bottom: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-low);
}

.metric-big-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-high);
  font-family: 'JetBrains Mono', monospace;
}

.metric-big-val.success-val {
  color: var(--accent-emerald);
}

.metric-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-low);
}

.calc-note {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(109, 40, 217, 0.08);
  font-size: 0.82rem;
  color: var(--accent-violet);
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.25rem;
}

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

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-high);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-low);
  line-height: 1.65;
}

/* Technical Specs Table */
.specs-table-wrapper {
  overflow-x: auto;
  background: var(--bg-surface);
  padding: 1.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th {
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-low);
  border-bottom: 2px solid var(--border-card);
  background: var(--bg-card-subtle);
}

.specs-table td {
  padding: 1.15rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table td strong {
  color: var(--text-high);
}

/* FAQ Accordion */
.faq-container {
  max-width: 820px;
}

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

.accordion-item {
  overflow: hidden;
  background: var(--bg-surface);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-high);
  transition: color 0.2s ease;
}

.accordion-header:hover {
  color: var(--accent-violet);
}

.accordion-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-violet);
  transition: transform 0.25s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.75rem;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
  padding: 0 1.75rem 1.75rem;
  transition: max-height 0.35s ease-in-out, padding 0.3s ease;
}

.accordion-body p {
  font-size: 0.95rem;
  color: var(--text-low);
  line-height: 1.7;
}

.accordion-body strong {
  color: var(--text-high);
}

.accordion-body code {
  background: var(--bg-card-subtle);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Direct Support Section */
.support-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.support-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-high);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.support-desc {
  font-size: 1.05rem;
  color: var(--text-low);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.support-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.support-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-low);
  letter-spacing: 0.05em;
  min-width: 140px;
}

.support-link {
  font-weight: 700;
  color: var(--accent-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-mid);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--border-subtle);
  color: var(--text-high);
}

.copy-btn.copied {
  background: rgba(5, 150, 105, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(5, 150, 105, 0.3);
}

.package-id {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--bg-card-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.support-actions .btn {
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.support-actions .btn svg {
  flex-shrink: 0;
}

.support-app-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
}

.big-app-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.3);
  margin-bottom: 1.25rem;
}

.app-meta h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-high);
  margin-bottom: 0.25rem;
}

.app-meta p {
  font-size: 0.85rem;
  color: var(--text-low);
  margin-bottom: 0.75rem;
}

.rating-stars {
  font-size: 0.92rem;
  color: #F59E0B;
  font-weight: 700;
}

.rating-stars span {
  color: var(--text-high);
  margin-left: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 4.5rem 0 3rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-card);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2.6fr;
  gap: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-low);
  line-height: 1.6;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-low);
  margin-top: 0.5rem;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-high);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-low);
}

.footer-col a:hover {
  color: var(--accent-violet);
}

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

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 480px;
  }

  .presets-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .speccheck-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .support-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .support-item {
    justify-content: center;
  }

  .support-actions {
    justify-content: center;
    width: 100%;
    gap: 0.85rem;
  }

  .support-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    height: 64px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-card);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .comparison-cards-grid {
    grid-template-columns: 1fr;
  }

  .presets-grid,
  .features-grid,
  .speccheck-grid {
    grid-template-columns: 1fr;
  }

  .inspector-viewport {
    height: 360px;
  }

  .detail-element.text-element {
    font-size: 1.35rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-trust-badges {
    grid-template-columns: 1fr;
  }
}
