/* ==========================================================================
   SuperRes Studio - Master Stylesheet
   Pure Vanilla CSS / Zero CDN / Responsive / Dark & Light Mode
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-base: #07090e;
  --bg-surface: #0f131d;
  --bg-surface-elevated: #161c2b;
  --bg-glass: rgba(15, 19, 29, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.25);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #9d4edd;
  --accent-emerald: #00e676;
  --accent-gold: #ffb703;
  --accent-danger: #ff5252;
  
  --gradient-hero: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9d4edd 100%);
  --gradient-surface: linear-gradient(180deg, rgba(22, 28, 43, 0.8) 0%, rgba(15, 19, 29, 0.95) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.15) 0%, transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.2);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-base: #eef2f6;
  --bg-surface: #f7f9fc;
  --bg-surface-elevated: #e4eaf2;
  --bg-glass: rgba(238, 242, 246, 0.9);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(0, 112, 243, 0.25);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  --accent-gold: #d97706;
  --accent-danger: #dc2626;

  --gradient-hero: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.1) 0%, transparent 70%);

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: var(--gradient-glow);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 800px;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 80px 0;
  position: relative;
}

.text-center { text-align: center; }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-emerald { color: var(--accent-emerald); }
.text-gold { color: var(--accent-gold); }

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 12px;
}

/* Header & Navigation (2-Tier Architecture: Brand & Actions on Top, Centered Nav on Bottom) */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
  width: 100%;
}

.nav-container {
  display: grid;
  grid-template-areas:
    "brand actions"
    "links links";
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 12px;
  gap: 12px 20px;
}

/* 上段・左側: ロゴ ＆ ブランド名 */
.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.brand span {
  white-space: nowrap !important;
  display: inline-block !important;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0 !important;
}

/* 上段・右側: 言語切替, テーマ切替, 無料体験版 */
.nav-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0 !important;
}

.nav-actions .btn,
.nav-actions .ctrl-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Control Buttons (Theme, Lang) */
.ctrl-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap !important;
}

.ctrl-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface);
}

/* 下段・中央揃え: ナビゲーションメニューボタン群 */
.nav-links {
  grid-area: links;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  width: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

/* Main Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Before / After Comparison Slider */
.slider-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-subtle);
  position: relative;
  background: var(--bg-surface);
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  user-select: none;
  overflow: hidden;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  z-index: 1;
  /* Real image used - no fake blur */
}

.ba-after {
  z-index: 2;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  -webkit-clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  pointer-events: none;
}

/* 画面上下まで伸びる光る仕切り縦線 */
.ba-handle::backdrop, .ba-slider::before {
  content: "";
}

.ba-handle-line {
  position: absolute;
  top: -1000px;
  bottom: -1000px;
  left: 50%;
  width: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.ba-handle::before, .ba-handle::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.ba-handle::before { left: 8px; border-right: 8px solid #000; }
.ba-handle::after { right: 8px; border-left: 8px solid #000; }

.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 5;
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
}

/* Benchmark Visualizer */
.benchmark-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 40px;
}

.chart-bar-group {
  margin-bottom: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.chart-bar-track {
  height: 36px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
}

.chart-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-ultra {
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.bar-standard {
  background: #475569;
}

/* Pricing Grid (2x2 Balanced Layout) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-base);
  min-width: 0;
}

.pricing-card.featured {
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  white-space: nowrap;
  background: linear-gradient(90deg, #9d4edd, #00f2fe);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 16px 0 24px;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features li.active {
  color: var(--text-main);
}

/* Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.spec-table th, .spec-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-weight: 600;
}

.spec-table tr:hover td {
  background: var(--bg-surface-elevated);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
  /* .nav-links moved to horizontal scroll on mobile */
  .section { padding: 50px 0; }
  .pricing-card.featured { transform: none; }
}


/* ==========================================================================
   Video & Photo Comparison Slider Styles (Clip-Path Precision Engine)
   ========================================================================== */
.video-slider-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  user-select: none;
  aspect-ratio: 16 / 9;
}
.video-slider-box img,
.video-slider-box video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.slider-layer-after {
  z-index: 1;
}
.slider-layer-before {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.video-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
  pointer-events: none;
  z-index: 8;
  transform: translateX(-50%);
}
.video-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-slider-handle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  pointer-events: none;
}
.video-badge-tag {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
}
.tag-before {
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.4);
}
.tag-after {
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}
.video-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}


/* === Antigravity Typography & Alignment Fix === */
.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  line-height: 1.35;
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-title .hero-line1 {
  display: block;
}
.hero-title .hero-line2 {
  display: block;
  color: #ffffff;
}

/* Fix technical 3-cards title alignment (index.html) */
.tech-grid .card h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem) !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  margin-bottom: 12px !important;
  color: var(--text-main) !important;
}

/* Benchmark card title uniform alignment & safe wrapping (benchmark.html) */
.card-title-uniform {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem) !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  margin-bottom: 10px !important;
  color: var(--text-main) !important;
}

.benchmark-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}

.benchmark-quad-grid .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.benchmark-quad-grid .card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.benchmark-quad-grid .card-head-row .badge {
  margin-bottom: 0;
  white-space: normal;
  max-width: 100%;
}

.benchmark-quad-grid .card-metric-box {
  background: var(--bg-surface);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .benchmark-quad-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure flex cards stretch evenly so white text alignment never drifts */
.tech-grid,
.benchmark-feature-grid {
  display: grid;
  align-items: stretch;
}


/* ==========================================================================
   Responsive Header & Mobile Optimization
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .card {
    padding: 20px 16px;
  }
  .grid-2, .grid-3, .grid-4, .pricing-grid {
    grid-template-columns: 1fr !important;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .nav-container {
    padding: 10px 16px 8px;
    gap: 8px 10px;
  }
  .brand {
    font-size: 1rem;
    gap: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .nav-actions {
    gap: 6px;
  }
  .ctrl-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .nav-actions .btn-primary {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 0 2px;
    gap: 8px;
  }
  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .brand span:nth-of-type(2) {
    display: none !important;
  }
  .brand span:first-of-type {
    font-size: 0.94rem;
  }
  .nav-container {
    padding: 8px 12px 6px;
    gap: 8px;
  }
  .nav-actions {
    gap: 5px;
  }
  .nav-actions .ctrl-btn {
    padding: 5px 8px;
    font-size: 0.74rem;
  }
  .nav-actions .btn-primary {
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
  }
}

/* Light Mode Readability Enhancements */
[data-theme="light"] .nav-link {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .nav-link:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
}
[data-theme="light"] .nav-link.active {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
}
[data-theme="light"] .hero-line2 {
  color: var(--accent-blue);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .card {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] [style*="background: rgba(0, 0, 0"],
[data-theme="light"] [style*="background: rgba(0,0,0"],
[data-theme="light"] [style*="background: rgba(15,"],
[data-theme="light"] [style*="background: rgba(22,"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.0"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.0"],
[data-theme="light"] [style*="linear-gradient(145deg"],
[data-theme="light"] [style*="linear-gradient(180deg"] {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-main) !important;
}
[data-theme="light"] .video-slider-box,
[data-theme="light"] .video-slider-box * {
  background-color: transparent;
}
[data-theme="light"] .video-slider-box {
  background: #000 !important;
}
