/* ==========================================================================
   AI WinPhotos (AI Images Previewer) - Official Showcase Website Stylesheet
   Design Language: Commercial Fluent SaaS Design (High-Contrast, Crisp, Commercial)
   Default: Commercial Clean Tech Light / Supported: Luminous Obsidian Dark
   ========================================================================== */

:root {
  /* Commercial Light Canvas (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-elevated: #f8fafc;
  --bg-mockup-frame: #0f172a;

  /* Commercial Brand Accents */
  --accent-blue: #0078d4;
  --accent-azure: #0284c7;
  --accent-cyan: #0284c7;
  --accent-cyan-bright: #00a4ef;
  --accent-cyan-glow: rgba(0, 120, 212, 0.2);
  --accent-purple: #7c3aed;
  --accent-indigo: #4f46e5;
  --accent-purple-glow: rgba(124, 58, 237, 0.18);
  --accent-green: #059669;
  --accent-emerald-bright: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  /* High-Contrast Commercial Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-gradient: linear-gradient(135deg, #0f172a 20%, #0078d4 65%, #0284c7 100%);
  --text-gradient-purple: linear-gradient(135deg, #0f172a 15%, #6366f1 65%, #8b5cf6 100%);

  /* Commercial Borders & Outlines */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(15, 23, 42, 0.12);
  --border-bright: rgba(0, 120, 212, 0.35);
  --border-active: #0078d4;

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

  /* Diffuse Multi-Layer Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 45px rgba(0, 120, 212, 0.14);
  --shadow-inner-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  --font-main: 'Segoe UI Variable', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --container-max: 1240px;
  --nav-height: 72px;
}

/* Luminous Commercial Dark Theme Override */
body.theme-dark {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-surface: #152238;
  --bg-card: rgba(22, 34, 58, 0.85);
  --bg-card-hover: rgba(30, 46, 78, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.8);
  --bg-elevated: #1e2c47;
  --bg-mockup-frame: #0b1120;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gradient: linear-gradient(135deg, #ffffff 25%, #e0f2fe 65%, #38bdf8 100%);
  --text-gradient-purple: linear-gradient(135deg, #ffffff 20%, #ddd6fe 65%, #a855f7 100%);

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-glass: rgba(255, 255, 255, 0.18);
  --border-bright: rgba(56, 189, 248, 0.45);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-inner-bevel: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 120, 212, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(2, 132, 199, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-dark {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%);
}

/* Ambient Blobs */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -100px;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #0078d4, rgba(2, 132, 199, 0.4) 50%, transparent 70%);
}

.blob-2 {
  top: 30%;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6, rgba(139, 92, 246, 0.4) 50%, transparent 70%);
  animation-duration: 24s;
  animation-delay: -4s;
}

.blob-3 {
  bottom: 5%;
  left: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #00c7ff, rgba(56, 189, 248, 0.4) 50%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -8s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.75;
}

body.theme-dark .grid-overlay {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 35px) scale(1.08); }
  100% { transform: translate(-35px, 50px) scale(0.96); }
}

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

/* Typography & Section Headers */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.25);
  color: var(--accent-blue);
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 120, 212, 0.1);
}

body.theme-dark .section-badge {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.section-title {
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-title-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.theme-dark .navbar {
  background: rgba(10, 15, 29, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

body.theme-dark .navbar.scrolled {
  background: rgba(10, 15, 29, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 8px rgba(0, 120, 212, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.08) rotate(-4deg);
}

.nav-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0078d4, #0284c7);
  color: #fff;
  margin-left: 2px;
  box-shadow: 0 2px 6px rgba(0, 120, 212, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

body.theme-dark .nav-link:hover, 
body.theme-dark .nav-link.active {
  color: #38bdf8;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

body.theme-dark .nav-link.active::after {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-switch-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.theme-dark .theme-switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.theme-switch-btn:hover {
  background: rgba(0, 120, 212, 0.1);
  color: var(--accent-blue);
  transform: scale(1.05);
}

body.theme-dark .theme-switch-btn:hover {
  color: #38bdf8;
}

/* Button Component System - Commercial High-Conversion */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, #0078d4 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 120, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0086ed 0%, #039be5 100%);
  box-shadow: 0 8px 25px rgba(0, 120, 212, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-sm);
}

body.theme-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

body.theme-dark .mobile-menu {
  background: rgba(10, 15, 29, 0.98);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 16px;
  padding: 8px 0;
}

/* ==========================================================================
   Hero Section - Clean Commercial Flagship Look
   ========================================================================== */
.hero-section {
  padding: calc(var(--nav-height) + 50px) 0 80px;
  position: relative;
  text-align: center;
}

.hero-pill-announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 120, 212, 0.25);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(0, 120, 212, 0.1);
  animation: pulseGlow 4s infinite alternate;
}

body.theme-dark .hero-pill-announcement {
  background: rgba(21, 32, 56, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

@keyframes pulseGlow {
  0% { border-color: rgba(0, 120, 212, 0.2); }
  100% { border-color: rgba(0, 120, 212, 0.5); box-shadow: 0 6px 24px rgba(0, 120, 212, 0.16); }
}

.hero-pill-icon {
  font-size: 16px;
}

.hero-pill-badge {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 1040px;
  margin: 0 auto 24px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #0078d4 0%, #0284c7 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

body.theme-dark .hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 15%, #38bdf8 55%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 840px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* Key Metrics Strip */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 64px;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.metric-pill:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md);
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.2);
  color: var(--accent-blue);
  flex-shrink: 0;
}

body.theme-dark .metric-icon-box {
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Hero Showcase Window (Desktop Window POP on Light Background)
   ========================================================================== */
.hero-showcase {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}

.showcase-glow-back {
  position: absolute;
  inset: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 120, 212, 0.18), rgba(124, 58, 237, 0.12), transparent 70%);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

body.theme-dark .showcase-glow-back {
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.35), rgba(139, 92, 246, 0.22), transparent 70%);
}

.win11-mockup-frame {
  position: relative;
  z-index: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.mockup-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.mockup-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.showcase-tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.showcase-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-tab-btn.active {
  color: #ffffff;
  background: #0078d4;
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(0, 120, 212, 0.5);
}

.tab-hotkey {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mockup-viewport {
  position: relative;
  width: 100%;
  min-height: 480px;
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
  overflow: hidden;
}

.showcase-view-panel {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.35s ease forwards;
}

.showcase-view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.showcase-img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
}

.showcase-caption-overlay {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.showcase-caption-title {
  font-weight: 700;
  color: #ffffff;
  margin-right: 8px;
}

/* ==========================================================================
   Pain Points & Comparison Matrix (Vibrant High-Contrast)
   ========================================================================== */
.comparison-section {
  padding: 100px 0;
  position: relative;
}

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

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card-negative {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

body.theme-dark .card-negative {
  background: rgba(36, 21, 30, 0.65);
  border-color: rgba(244, 63, 94, 0.35);
}

.card-positive {
  background: #ffffff;
  border: 2px solid #0078d4;
  box-shadow: 0 16px 40px rgba(0, 120, 212, 0.12);
}

body.theme-dark .card-positive {
  background: rgba(18, 38, 66, 0.75);
  border-color: rgba(56, 189, 248, 0.5);
}

.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.badge-bad {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

body.theme-dark .badge-bad {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.45);
}

.badge-good {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

body.theme-dark .badge-good {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
}

.item-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-cross {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

body.theme-dark .icon-cross {
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

.icon-check {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #6ee7b7;
}

body.theme-dark .icon-check {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.item-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.item-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Interactive A/B Compare Widget
   ========================================================================== */
.ab-interactive-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

body.theme-dark .ab-interactive-section {
  background: linear-gradient(180deg, transparent 0%, rgba(19, 29, 51, 0.5) 50%, transparent 100%);
}

.ab-widget-container {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-lg);
  background: #000;
  position: relative;
  user-select: none;
}

body.theme-dark .ab-widget-container {
  border-color: var(--border-glass);
}

.ab-viewport-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.ab-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ab-layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s ease-out;
}

.ab-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #00a4ef;
  box-shadow: 0 0 20px rgba(0, 164, 239, 0.9);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.ab-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0078d4;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  cursor: grab;
}

.ab-tag-label {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  z-index: 5;
}

.ab-label-left {
  left: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ab-label-right {
  right: 24px;
  background: rgba(124, 58, 237, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.ab-controls-bar {
  padding: 16px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

body.theme-dark .ab-controls-bar {
  background: rgba(19, 29, 51, 0.98);
}

.ab-hint-text {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature Cards Matrix (Commercial High-Tech Grid)
   ========================================================================== */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: var(--shadow-lg);
}

body.theme-dark .feature-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.icon-cyan {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
}

.icon-purple {
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #7c3aed;
}

.icon-emerald {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.icon-azure {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.icon-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #d97706;
}

.icon-rose {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

body.theme-dark .icon-cyan {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

body.theme-dark .icon-purple {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

body.theme-dark .icon-emerald {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
  color: #34d399;
}

body.theme-dark .icon-azure {
  background: rgba(2, 132, 199, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #60a5fa;
}

body.theme-dark .icon-amber {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

body.theme-dark .icon-rose {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(251, 113, 133, 0.5);
  color: #fb7185;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-body {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag-item {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.15);
  color: var(--accent-blue);
}

body.theme-dark .feature-tag-item {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

/* ==========================================================================
   AI Workflow Spotlight Section
   ========================================================================== */
.ai-workflow-section {
  padding: 100px 0;
  position: relative;
}

.workflow-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.workflow-content h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
}

.workflow-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.workflow-step-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.workflow-step-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 120, 212, 0.3);
}

body.theme-dark .workflow-step-item:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0078d4, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.step-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.workflow-code-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-card-title {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  background: #0078d4;
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #0284c7;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.code-card-body {
  padding: 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #cbd5e1;
  overflow-x: auto;
}

.code-kw { color: #f472b6; font-weight: 700; }
.code-str { color: #6ee7b7; }
.code-num { color: #fde047; font-weight: 600; }
.code-lbl { color: #60a5fa; font-weight: 600; }

/* ==========================================================================
   Performance Benchmarks Section
   ========================================================================== */
.benchmarks-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

body.theme-dark .benchmarks-section {
  background: rgba(15, 23, 42, 0.5);
}

.benchmarks-table-wrapper {
  max-width: 1020px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

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

.bench-table th {
  padding: 18px 26px;
  background: rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

body.theme-dark .bench-table th {
  background: rgba(255, 255, 255, 0.06);
}

.bench-table td {
  padding: 18px 26px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
}

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

.bench-highlight-row {
  background: rgba(0, 120, 212, 0.05);
}

body.theme-dark .bench-highlight-row {
  background: rgba(2, 132, 199, 0.12);
}

.bench-metric-name {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bench-competitor {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.bench-winphotos {
  color: var(--accent-blue);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 16px;
}

body.theme-dark .bench-winphotos {
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.bench-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

body.theme-dark .bench-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Keyboard Shortcuts Matrix
   ========================================================================== */
.shortcuts-section {
  padding: 100px 0;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.shortcut-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.shortcut-group-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.theme-dark .shortcut-group-title {
  color: #93c5fd;
}

.shortcut-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.shortcut-item-row:last-child {
  border-bottom: none;
}

.kbd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-dark kbd {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  color: #f8fafc;
}

/* ==========================================================================
   Download & Release Center (Commercial Flagship Box)
   ========================================================================== */
.download-section {
  padding: 110px 0;
  position: relative;
}

.download-card-hero {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #0078d4;
  box-shadow: 0 25px 60px -15px rgba(0, 120, 212, 0.25);
  padding: 52px;
  position: relative;
  overflow: hidden;
}

body.theme-dark .download-card-hero {
  background: linear-gradient(135deg, rgba(21, 38, 68, 0.95), rgba(15, 25, 46, 0.98));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-lg), 0 0 70px rgba(2, 132, 199, 0.3);
}

.download-card-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.12), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
}

.download-info h3 {
  font-size: 2.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.download-version-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.download-badge-green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
}

body.theme-dark .download-badge-green {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
}

.download-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hash-info-box {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.theme-dark .hash-info-box {
  background: rgba(11, 17, 32, 0.65);
}

.hash-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-blue);
  font-weight: 600;
}

body.theme-dark .hash-value {
  color: #38bdf8;
}

.requirements-box {
  border-left: 2px solid var(--border-subtle);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.req-icon {
  color: var(--accent-blue);
  font-size: 20px;
}

.req-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
}

.req-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 90px 0;
}

.faq-grid {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item.active {
  border-color: rgba(0, 120, 212, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-arrow {
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 26px;
}

.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

body.theme-dark .site-footer {
  background: #080d1a;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links-group {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.cf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(246, 130, 31, 0.12);
  border: 1px solid rgba(246, 130, 31, 0.3);
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

body.theme-dark .cf-badge {
  background: rgba(246, 130, 31, 0.15);
  color: #fb923c;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-container {
    grid-template-columns: 1fr;
  }
  .hero-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .requirements-box {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
  }
  .hero-metrics-strip {
    grid-template-columns: 1fr;
  }
  .ab-viewport-wrapper {
    height: 360px;
  }
}
