/* ==========================================================================
   Embedarium — Modern Design System & Stylesheet
   Cloud Circuit Simulator, Multi-MCU IDE & Engineering Education Platform
   ========================================================================== */

:root {
  color-scheme: dark light;

  /* Brand Colors (Electric Blue / Tech Indigo) */
  --brand: #0284c7;
  --brand-hover: #0369a1;
  --brand-light: #032b43;
  --brand-border: #0ea5e9;
  --brand-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --brand-gradient-electric: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  --brand-gradient-subtle: linear-gradient(180deg, #0b1120 0%, #070b14 100%);

  /* Neutrals & Surfaces (Dark Mode Default for Tech & Circuits) */
  --bg-page: #070a12;
  --bg-surface: #0f172a;
  --bg-surface-raised: #17233d;
  --bg-subtle: #0a0f1d;
  --border-subtle: #1e293b;
  --border-default: #293548;
  --border-strong: #3b4d66;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070a12;

  /* Accents & Status */
  --accent-cyan: #06b6d4;
  --accent-cyan-light: rgba(6, 182, 212, 0.15);
  --accent-emerald: #10b981;
  --accent-emerald-light: rgba(16, 185, 129, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-light: rgba(139, 92, 246, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  --error: #ef4444;
  --error-light: rgba(239, 68, 68, 0.15);

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.3);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transition timings */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f1f5f9;
  --bg-subtle: #f8fafc;
  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --brand: #0284c7;
  --brand-hover: #0369a1;
  --brand-light: #e0f2fe;
  --brand-border: #7dd3fc;
  --brand-gradient-subtle: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.15), transparent),
    radial-gradient(circle at 100% 40%, rgba(6, 182, 212, 0.05), transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(16, 185, 129, 0.05), transparent 40%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

.section--subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-border);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--brand-gradient-electric);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover {
  background: var(--border-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-border);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-light);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-surface-raised);
}

.btn-lg {
  padding: 0.875rem 1.875rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-default);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
}

.brand-text {
  background: linear-gradient(135deg, #f8fafc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-text {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

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

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: var(--bg-surface-raised);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--brand);
  color: #ffffff;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  overflow-y: auto;
}

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

.mobile-menu .nav-link {
  font-size: 1.125rem;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: var(--space-6);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.15);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-16);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-meta-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Interactive Circuit Workbench Widget (Hero Preview)
   ========================================================================== */
.hero-workbench {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

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

.workbench-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.window-dot--red { background: #ef4444; }
.window-dot--yellow { background: #f59e0b; }
.window-dot--green { background: #10b981; }

.workbench-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.workbench-actions {
  display: flex;
  gap: var(--space-2);
}

.workbench-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.workbench-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 440px;
}

/* Interactive Schematic Left Pane */
.workbench-schematic {
  padding: var(--space-6);
  border-right: 1px solid var(--border-subtle);
  background: #080d1a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.schematic-diagram {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Interactive Component Nodes */
.circuit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  width: 100%;
}

.circuit-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.circuit-wire {
  flex: 1;
  height: 3px;
  background: #334155;
  transition: background var(--transition-fast);
}

.circuit-wire.active {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.switch-btn {
  background: #1e293b;
  border: 2px solid #38bdf8;
  color: #f8fafc;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.switch-btn:hover {
  background: #0284c7;
}

.led-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #475569;
  transition: all var(--transition-fast);
}

.led-indicator.is-lit {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 20px #10b981, inset 0 0 8px #ffffff;
}

.mcu-chip-box {
  background: #1e293b;
  border: 1px solid #38bdf8;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
}

.schematic-info {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Oscilloscope & Firmware Right Pane */
.workbench-scope {
  padding: var(--space-6);
  background: #060911;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scope-screen {
  background: #030712;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  position: relative;
  height: 250px;
  overflow: hidden;
}

.scope-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scope-overlay {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #34d399;
  line-height: 1.5;
  pointer-events: none;
}

.scope-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
}

.register-pills {
  display: flex;
  gap: var(--space-2);
}

.reg-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
}

.reg-pill strong {
  color: #38bdf8;
}

/* ==========================================================================
   Stats Bar Section
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.stat-card {
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-default);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-border);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Feature Tabs Section
   ========================================================================== */
.feature-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-10);
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.tab-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tab-text h3 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.tab-text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.tab-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.tab-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.tab-feature-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.tab-preview-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Feature Cards Grid (Features Page & Index)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-border);
  margin-bottom: var(--space-6);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Architecture & Engine Showcase
   ========================================================================== */
.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}

.arch-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.arch-layer-box {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

.arch-layer-box .layer-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2);
  display: block;
}

.arch-layer-box h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.arch-layer-box p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Solutions Cards (Universities, Startups, Education)
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.solution-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.solution-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.solution-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  font-weight: 600;
}

/* ==========================================================================
   Pricing Section & Comparison Matrix
   ========================================================================== */
.pricing-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.pricing-toggle-btn {
  width: 52px;
  height: 28px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  padding: 2px;
  transition: all var(--transition-fast);
}

.pricing-toggle-btn .toggle-handle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--transition-fast);
}

.pricing-toggle-btn.is-yearly {
  background: var(--brand);
}

.pricing-toggle-btn.is-yearly .toggle-handle {
  transform: translateX(24px);
}

.discount-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.is-popular {
  border-color: var(--brand);
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.25);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.pricing-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-6);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

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

.comparison-table th, .comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}

.comparison-table th {
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table td {
  color: var(--text-secondary);
}

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

.check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

.dash-icon {
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--border-default);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-border);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 1.5rem;
}

.faq-item.is-open .faq-panel {
  padding-bottom: 1.25rem;
}

.faq-panel p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Page Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  display: none;
}

.form-alert.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
}

/* ==========================================================================
   Call To Action (CTA) Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #032b43 0%, #0f172a 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.cta-banner-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.cta-banner-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-workbench {
    max-width: 100%;
  }

  .workbench-content {
    grid-template-columns: 1fr;
  }

  .workbench-schematic {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .tab-panel-grid {
    grid-template-columns: 1fr;
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav, .header-actions .btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .arch-layers {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
