/**
 * ForgeReq UI/UX Pro Max Main Stylesheet
 * Dribbble-Grade Wow Aesthetics: OLED Midnight, Spotlight Tracking, Shimmering Border Beams, Floating Glassmorphism HUD
 */

/* ==========================================================================
   1. Ambient Atmosphere & Background Lighting
   ========================================================================== */

.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 75% 60% at 50% -10%, rgba(249, 115, 22, 0.22), transparent 70%),
    radial-gradient(circle 45% 40% at 90% 20%, rgba(6, 182, 212, 0.12), transparent 70%),
    radial-gradient(circle 45% 40% at 10% 35%, rgba(168, 85, 247, 0.12), transparent 70%),
    radial-gradient(circle 40% 35% at 50% 85%, rgba(16, 185, 129, 0.08), transparent 75%),
    radial-gradient(circle at 50% 50%, #030712 0%, #010309 100%);
}

.hero-spotlight-beam {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: conic-gradient(from 180deg at 50% 0%, transparent 42%, rgba(249, 115, 22, 0.18) 50%, transparent 58%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.grid-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at 50% 35%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 45%, transparent 85%);
}

/* ==========================================================================
   2. Layout & Global Navigation
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-nav.scrolled {
  background: rgba(3, 7, 18, 0.94);
  border-bottom-color: var(--border-default);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
  object-fit: contain;
  transition: transform var(--transition-bounce);
}

.brand-link:hover .brand-logo {
  transform: scale(1.08) rotate(3deg);
}

.brand-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--primitive-ember-500);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-item a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-item a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  position: relative;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-primary);
  border-color: var(--border-default);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-default);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   3. Hero Section & Typography
   ========================================================================== */

.hero-section {
  padding-top: 150px;
  padding-bottom: var(--space-20);
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--primitive-ember-500);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.18);
  backdrop-filter: blur(8px);
}

.hero-pill-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
}

.hero-pill-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-success);
  animation: ping-soft 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-5);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-title-gradient {
  background: linear-gradient(180deg, #ffffff 20%, #e2e8f0 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 15%, #f97316 70%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(249, 115, 22, 0.35));
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
  text-wrap: balance;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

/* Store Action Buttons with Specular Shine */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 22px 8px 16px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.store-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-150%) rotate(25deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.store-badge:hover::after {
  transform: translateX(350%) rotate(25deg);
}

.store-badge:hover {
  border-color: var(--primitive-ember-500);
  background: rgba(30, 41, 59, 0.96);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 24px rgba(249, 115, 22, 0.25);
}

.store-badge:active {
  transform: scale(0.98);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.store-kicker {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
}

.store-badge-hero {
  min-height: 56px;
  padding: 10px 24px 10px 18px;
}

.os-badge-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

/* Protocol Pills Strip */
.protocol-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.proto-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.proto-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.proto-tag.proto-http { border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.proto-tag.proto-grpc { border-color: rgba(56, 189, 248, 0.4); color: #38bdf8; }
.proto-tag.proto-kafka { border-color: rgba(249, 115, 22, 0.4); color: #fb923c; }
.proto-tag.proto-soap { border-color: rgba(244, 63, 94, 0.4); color: #fb7185; }
.proto-tag.proto-mcp { border-color: rgba(168, 85, 247, 0.4); color: #c084fc; }

/* ==========================================================================
   4. Interactive Hero Cockpit
   ========================================================================== */

.hero-cockpit-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

/* Shimmering Border-Beam Wrapper around Workbench */
.cockpit-beam-wrapper {
  position: relative;
  padding: 1px;
  border-radius: calc(var(--radius-lg) + 1px);
  overflow: hidden;
  background: transparent;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.95), 0 0 50px -10px rgba(249, 115, 22, 0.2);
}

.cockpit-beam-wrapper::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(from 0deg, transparent 0deg 280deg, #f97316 320deg, #38bdf8 345deg, #a855f7 360deg);
  animation: border-beam 9s linear infinite;
  z-index: 0;
}

.workbench-preview {
  position: relative;
  z-index: 1;
  background: #080c16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}

/* Chrome Header & Multi-Tab Strip */
.workbench-chrome {
  background: #070c18;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 48px;
  position: relative;
  user-select: none;
  gap: 16px;
}

.chrome-left {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  flex-shrink: 0;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-full);
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.chrome-session-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .chrome-session-pill {
    display: none;
  }
}

.workbench-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin-bottom: -1px; /* Overlaps the bottom border of the chrome */
  position: relative;
  z-index: 2;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.workbench-tabs::-webkit-scrollbar {
  display: none;
}

.workbench-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  position: relative;
  outline: none;
}

.workbench-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* SEAMLESS ACTIVE TAB: NO BOTTOM BORDER, MERGES WITH URL BAR (#0b1220) */
.workbench-tab.active {
  background: #0b1220;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--tab-accent-color, var(--primitive-ember-500));
  border-bottom: 1px solid #0b1220; /* Matches URL bar background -> completely seamless! */
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
  z-index: 5;
  height: 39px; /* Extends exactly 1px down over the chrome border */
}

/* Dynamic Accent Colors for Multi-Tab Bar */
.workbench-tab[data-preset="get"].active {
  --tab-accent-color: #10b981;
}
.workbench-tab[data-preset="post"].active {
  --tab-accent-color: #f97316;
}
.workbench-tab[data-preset="grpc"].active {
  --tab-accent-color: #38bdf8;
}
.workbench-tab[data-preset="kafka"].active {
  --tab-accent-color: #ea580c;
}
.workbench-tab[data-preset="soap"].active {
  --tab-accent-color: #f43f5e;
}
.workbench-tab[data-preset="mcp"].active {
  --tab-accent-color: #a855f7;
}

.tab-title {
  letter-spacing: 0.01em;
}

.method-tag {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.method-get { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.method-post { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.method-grpc { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }
.method-kafka { background: rgba(234, 88, 12, 0.18); color: #fdba74; }
.method-soap { background: rgba(244, 63, 94, 0.18); color: #fda4af; }
.method-mcp { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }

/* Workbench URL Bar */
.workbench-url-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 18px;
  background: #0b1220;
  border-bottom: 1px solid var(--border-subtle);
}

.method-select {
  background: #162238;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.url-input-container {
  flex: 1;
  display: flex;
  align-items: center;
  background: #0f182b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: hidden;
}

.url-var {
  color: #f59e0b;
  font-weight: 600;
}

.url-path {
  color: var(--text-primary);
}

.btn-send {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
}

.btn-send:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}

.btn-send:active {
  transform: scale(0.97);
}

/* Workbench Split Panels */
.workbench-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 290px;
  background: #070b14;
}

.wb-panel {
  padding: 16px 22px;
  border-right: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  overflow-x: auto;
}

.wb-panel:last-child {
  border-right: none;
}

.wb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.status-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-copy-code {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.code-block {
  color: #cbd5e1;
  line-height: 1.6;
}
.code-key { color: #38bdf8; }
.code-str { color: #34d399; }
.code-num { color: #fb923c; }
.code-bool { color: #a855f7; }

/* ==========================================================================
   5. Stat Highlights Row
   ========================================================================== */

.stats-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 115, 22, 0.12);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-1);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   6. Dribbble-Style Bento Box Grid
   ========================================================================== */

.features-section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primitive-ember-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.bento-card {
  position: relative;
  background: rgba(13, 19, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Spotlight Cursor Tracking on Bento Cards */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 115, 22, 0.09), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

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

.bento-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(249, 115, 22, 0.12);
  transform: translateY(-3px);
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.35rem;
}

.icon-ember { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.35); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }
.icon-sky { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.35); }

.bento-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* Custom Interactive Micro-Visuals Inside Bento Cards */
.bento-micro-widget {
  background: #080c16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Pipeline Flow visualizer */
.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.pipeline-node {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: #141f36;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  white-space: nowrap;
}

.pipeline-arrow {
  color: var(--primitive-ember-500);
  font-weight: 700;
}

/* Latency Histogram visualizer */
.histogram-widget {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 10px 0 4px;
}

.histogram-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(16, 185, 129, 0.2), #10b981);
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease;
  position: relative;
}

.histogram-bar:hover {
  background: #34d399;
}

.bento-preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #000000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  margin-top: auto;
  transition: transform var(--transition-normal);
  cursor: zoom-in;
}

.bento-preview-img:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   7. Interactive Protocol Code Playground
   ========================================================================== */

.playground-section {
  padding: var(--space-20) 0;
  background: rgba(8, 12, 22, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.playground-box {
  background: #090e1a;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0d1527;
  border-bottom: 1px solid var(--border-subtle);
}

.playground-lang-tabs {
  display: flex;
  gap: 6px;
}

.lang-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lang-tab.active {
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.playground-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
}

/* ==========================================================================
   8. Comparison Table ("Why Switch")
   ========================================================================== */

.comparison-section {
  padding: var(--space-24) 0;
  position: relative;
}

.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: rgba(13, 19, 33, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: #090e1a;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

.th-highlight, .td-highlight {
  background: rgba(249, 115, 22, 0.08) !important;
  border-left: 1px solid rgba(249, 115, 22, 0.3);
  border-right: 1px solid rgba(249, 115, 22, 0.3);
}

.feature-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-success);
  font-weight: 700;
}

.feature-cross {
  color: var(--text-faint);
}

/* ==========================================================================
   9. Download CTA Banner
   ========================================================================== */

.cta-banner {
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.25), transparent 70%),
              linear-gradient(to bottom, #0e1628, #050811);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.18), 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

/* ==========================================================================
   10. Footer & Lightbox
   ========================================================================== */

.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border-subtle);
  background: #02040a;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.image-zoom-overlay.active {
  display: flex;
}

.image-zoom-img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.95);
  border: 1px solid var(--border-default);
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 6;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 12;
  }
  .workbench-panels {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
