/* ==========================================================================
   LineagIQ Product & Architecture Website - Premium Modern Light Theme
   ========================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-highlight: rgba(99, 102, 241, 0.4);
  --border-accent: rgba(14, 165, 233, 0.35);

  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-indigo-light: #e0e7ff;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;
  --accent-purple: #9333ea;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-highlight: #3730a3;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 15px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 10px 30px -10px rgba(79, 70, 229, 0.2);
  --shadow-glow-cyan: 0 10px 30px -10px rgba(2, 132, 199, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glow (Subtle Pastels in Light Mode) */
.ambient-glow-1 {
  position: fixed;
  top: -15%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  top: 45%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #0f172a 40%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 20px);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.865rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

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

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-indigo {
  background: var(--accent-indigo-light);
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-cyan {
  background: var(--accent-cyan-light);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.28);
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.28);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #0f172a;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #4f46e5 20%, #0284c7 60%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 450;
}

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

/* Executive Value Metrics Grid */
.executive-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 70px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #0284c7);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3730a3;
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Hero Showcase Frame */
.hero-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.12) 0%, rgba(226, 232, 240, 0.6) 100%);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.8);
  margin-bottom: 100px;
}

.showcase-inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.showcase-inner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-badge-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 16px;
}

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

/* Feature Showcase Split Layouts */
.feature-split-section {
  padding: 70px 0;
  position: relative;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse .feature-content {
  direction: ltr;
}

.feature-split.reverse .feature-media {
  direction: ltr;
}

.feature-content {
  max-width: 520px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature-pill.time-travel {
  background: var(--accent-amber-light);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.feature-pill.blast-radius {
  background: var(--accent-rose-light);
  color: #9f1239;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.feature-pill.ai-copilot {
  background: var(--accent-indigo-light);
  color: #3730a3;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.feature-pill.slim-stack {
  background: var(--accent-emerald-light);
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.feature-media {
  position: relative;
}

.screenshot-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.screenshot-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

.screenshot-overlay-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Architecture Comparison Table / TCO Grid */
.comparison-section {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.tco-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tco-card.legacy {
  border-color: #fecdd3;
  background: #fff5f5;
}

.tco-card.lineagiq {
  border-color: #a7f3d0;
  background: #f0fdf4;
  box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.12);
}

.tco-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tco-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.tco-price {
  font-size: 1.8rem;
  font-weight: 900;
}

.tco-card.legacy .tco-price {
  color: var(--accent-rose);
}

.tco-card.lineagiq .tco-price {
  color: var(--accent-emerald);
}

.tco-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tco-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.tco-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tco-card.legacy .tco-item svg {
  color: var(--accent-rose);
}

.tco-card.lineagiq .tco-item svg {
  color: var(--accent-emerald);
}

/* Hardware Scale & Graph Capacity Benchmarks */
.hardware-scale-card {
  margin-top: 48px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hardware-scale-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-emerald) 100%);
}

.scale-card-header {
  margin-bottom: 28px;
}

.scale-header-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.scale-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 999px;
}

.scale-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.scale-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 900px;
  margin: 0;
}

.scale-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.scale-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 780px;
}

.scale-table th {
  background: #f8fafc;
  color: var(--text-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scale-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.scale-table tr:hover td {
  background: rgba(248, 250, 252, 0.7);
}

.tier-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tier-starter {
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid #cbd5e1;
}

.tier-enterprise {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tier-large {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.tier-hyperscale {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.mem-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
}

.scale-footer-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 6px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.865rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.insight-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-indigo-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-item code {
  font-size: 0.78rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .scale-footer-insights {
    grid-template-columns: 1fr;
  }
}

/* Architecture Deep Dive Section */
.architecture-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-primary);
}

.arch-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.arch-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.arch-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.arch-tab-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.arch-tab-panel {
  display: none;
}

.arch-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.diagram-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

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

.diagram-tier {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.diagram-tier:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tier-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.tier-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tier-chip {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #334155;
  font-weight: 500;
}

/* Code Snippets Display (Deep Slate Charcoal for syntax readability) */
.code-container {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.code-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

pre code {
  display: block;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: auto;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
footer.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-medium);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

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

/* Integrations Section */
.integrations-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.feature-pill.integrations {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.integration-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.integration-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #6366f1;
}

.integration-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.integration-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.integration-icon.dbt {
  background: #ffefe5;
  color: #ff694b;
}

.integration-icon.sql {
  background: #e0f2fe;
  color: #0284c7;
}

.integration-icon.logs {
  background: #ede9fe;
  color: #7c3aed;
}

.integration-icon.openlineage {
  background: #ecfdf5;
  color: #059669;
}

.integration-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.integration-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-indigo);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.integration-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.integration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.integration-cli {
  font-family: var(--font-mono, monospace);
  font-size: 0.775rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #1e293b;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* Quick Start Section Styles (Light Theme) */
.quickstart-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.quickstart-tag {
  background: var(--accent-indigo-light);
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.registry-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 36px;
}

.registry-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.registry-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.registry-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-indigo-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.registry-details {
  flex: 1;
  min-width: 0;
}

.registry-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.registry-image {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  word-break: break-all;
}

.registry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reg-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.quickstart-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
}

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

.step-note code {
  color: var(--text-primary);
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

.note-bullet {
  color: var(--accent-emerald);
  font-weight: 700;
}

.quickstart-callout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 20px;
  box-shadow: var(--shadow-md);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.callout-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.callout-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

.callout-sidebar {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px 0;
}

.endpoint-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.endpoint-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.endpoint-link:hover {
  background: #f8fafc;
  border-color: var(--accent-primary);
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}

.endpoint-link.cloud {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.endpoint-link.cloud:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.status-dot.cloud-dot {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.endpoint-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    z-index: 99;
  }

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

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 6px 0;
  }

  .registry-badges-grid,
  .quickstart-steps-grid,
  .quickstart-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .integrations-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3rem;
  }
  .executive-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-split.reverse {
    direction: ltr;
  }
  .diagram-flow {
    grid-template-columns: 1fr;
  }
  .tco-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .executive-metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
