/* ==========================================================================
   CODE.GR - MODERN WHITE ARCHITECTURE DESIGN SYSTEM
   Ultra-Crisp Light Layout x High-End Apple/Stripe Precision x Interactive Canvas
   ========================================================================== */

:root {
  /* Surface & Background Palette (Crisp White & Light Slate) */
  --bg-base: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-active: rgba(255, 255, 255, 0.95);

  /* Primary Brand Colors */
  --brand-navy: #0f172a;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #eff6ff;
  --brand-blue-glow: rgba(37, 99, 235, 0.15);

  /* Iconic code.gr Amber / Orange Orbit */
  --accent-amber: #f59e0b;
  --accent-amber-dark: #d97706;
  --accent-amber-bright: #fbbf24;
  --accent-amber-subtle: #fffbeb;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);

  /* Modern Tech Secondary Accents */
  --accent-indigo: #4f46e5;
  --accent-cyan: #0284c7;
  --accent-emerald: #10b981;
  --accent-emerald-subtle: #ecfdf5;

  /* Typography Colors (High-Contrast Slate) */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-accent: #2563eb;

  /* Borders & Dividers */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-highlight: rgba(37, 99, 235, 0.35);
  --border-amber: rgba(245, 158, 11, 0.35);

  /* Layered Modern Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 48px -8px rgba(15, 23, 42, 0.09), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -6px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);

  /* Typography Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, Menlo, Monaco, monospace;

  /* Dimensions & Radius */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONAL SETUP
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Light Tech Dot Matrix Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

/* Canvas Effect Background Wrapper */
.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 980px;
  overflow: hidden;
  pointer-events: all;
  z-index: 1;
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand-blue);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

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

.mono {
  font-family: var(--font-mono);
}

/* Modern Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0f172a 20%, #2563eb 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #0f172a 15%, #0284c7 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 3;
}

.section {
  padding: 104px 0;
  position: relative;
}

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

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-amber-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-tag.blue {
  background: var(--brand-blue-light);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--brand-blue);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 100%;
}

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

/* ==========================================================================
   CARDS & SURFACES (Modern Crisp White)
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Specular Light Beam */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

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

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

/* ==========================================================================
   HEADER / FLOATING NAV ISLAND (Modern White Apple Island)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition-smooth);
}

.nav-island {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

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

/* Clean Transparent Logo Presentation (No Black Background) */
.brand-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  background: transparent;
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.brand-logo-container:hover {
  transform: scale(1.04);
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  transition: transform var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

.command-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.command-trigger-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.15);
}

.command-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 175px;
  padding-bottom: 110px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  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.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 42px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   HERO CODE WINDOW (Sleek High-Contrast Developer Studio)
   ========================================================================== */
.fluent-code-window {
  background: #0b0f19;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  position: relative;
}

.window-header {
  background: #111827;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-light.red { background: #ef4444; }
.traffic-light.yellow { background: #f59e0b; }
.traffic-light.green { background: #10b981; }

.window-tabs {
  display: flex;
  gap: 8px;
}

.window-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #0b0f19;
  border-radius: 6px 6px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffffff;
  border-top: 2px solid var(--accent-amber);
}

.window-actions {
  display: flex;
  gap: 8px;
}

.run-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 6px;
  color: #34d399;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.run-code-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: scale(1.02);
}

.code-content {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
}

.token-keyword { color: #f472b6; font-weight: 600; }
.token-function { color: #60a5fa; }
.token-string { color: #34d399; }
.token-type { color: #fbbf24; }
.token-comment { color: #64748b; font-style: italic; }
.token-number { color: #fb923c; }

.terminal-console-output {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  border-left: 3px solid var(--accent-amber);
  font-size: 0.78rem;
  color: #94a3b8;
  transition: all var(--transition-smooth);
}

/* ==========================================================================
   FLAGSHIP ECOSYSTEM PILLARS
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ecosystem-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.ecosystem-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ecosystem-card.highlight {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.1), var(--shadow-sm);
}

.eco-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.eco-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.eco-icon-box.amber {
  background: var(--accent-amber-subtle);
  border-color: rgba(245, 158, 11, 0.3);
  color: #d97706;
}

.eco-icon-box.blue {
  background: var(--brand-blue-light);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--brand-blue);
}

.eco-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.eco-badge.active {
  background: var(--accent-emerald-subtle);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.eco-title {
  font-size: 1.7rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.eco-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.eco-desc strong {
  color: var(--text-primary);
}

.eco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.eco-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

.eco-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-blue);
  transition: gap var(--transition-fast);
}

.eco-link:hover {
  gap: 12px;
  color: var(--brand-blue-hover);
}

/* ==========================================================================
   THE LEGACY SOFTWARE VAULT
   ========================================================================== */
.vault-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.app-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.app-screenshot-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screenshot-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.app-screenshot-wrapper:hover img {
  transform: scale(1.04);
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.app-screenshot-wrapper:hover .zoom-overlay {
  opacity: 1;
}

.zoom-badge {
  padding: 6px 14px;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-title-group {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
}

.app-year {
  font-size: 0.78rem;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 600;
}

.app-category-badge {
  padding: 4px 10px;
  background: var(--bg-muted);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.app-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.app-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.app-tech-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-pill {
  font-size: 0.74rem;
  padding: 3px 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ==========================================================================
   SERVICES DARK PARALLAX SECTION (Black Background & 3 Panels)
   ========================================================================== */
.services-dark-section {
  background: #080b12;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 104px 0;
}

.services-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.services-arch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: block;
}

.services-parallax-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.services-glow-orb {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(245, 158, 11, 0.08) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Architecture Blueprint Schematics (Left & Right Wings) */
.services-blueprint {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.45;
}

.services-blueprint-left {
  top: 8%;
  left: -20px;
  width: 460px;
  max-width: 38vw;
}

.services-blueprint-right {
  top: 12%;
  right: -20px;
  width: 460px;
  max-width: 38vw;
}

.services-blueprint svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.15));
}

/* Monospace Assembly & Memory Stream Columns */
.services-memory-stream {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  white-space: pre;
  color: rgba(56, 189, 248, 0.35);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.services-mem-left {
  top: 24%;
  left: 2%;
  color: rgba(56, 189, 248, 0.32);
}

.services-mem-right {
  top: 30%;
  right: 2%;
  color: rgba(245, 158, 11, 0.32);
}

@media (max-width: 1280px) {
  .services-blueprint-left {
    opacity: 0.25;
    left: -80px;
  }
  .services-blueprint-right {
    opacity: 0.25;
    right: -80px;
  }
}

@media (max-width: 900px) {
  .services-blueprint, .services-memory-stream {
    display: none;
  }
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 3;
}

.service-card-dark {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #f59e0b);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.18);
}

.service-card-dark:hover::before {
  opacity: 1;
}

.service-card-dark .service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.service-card-dark .service-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card-dark .service-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-card-dark .service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card-dark .service-list-item {
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card-dark .service-list-item::before {
  content: '▹';
  color: #38bdf8;
  font-weight: bold;
}

.services-dark-section .section-header .section-tag.blue {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.services-dark-section .section-header .section-title {
  color: #ffffff;
}

.services-dark-section .gradient-text-alt {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-dark-section .section-header .section-subtitle {
  color: #94a3b8;
}

.services-dark-section .architect-callout {
  margin-top: 56px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
}

.services-dark-section .callout-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.services-dark-section .callout-info p {
  color: #94a3b8;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   DOMAIN PORTFOLIO NETWORK (19 Domains)
   ========================================================================== */
.domain-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.domain-search-input {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  width: 280px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.domain-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.domain-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-xs);
}

.domain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.domain-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.domain-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.domain-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.domain-badge.flagship {
  background: var(--accent-amber-subtle);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.domain-badge.active {
  background: var(--accent-emerald-subtle);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.domain-badge.portfolio {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.domain-purpose {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

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

.domain-ext-btn {
  color: var(--brand-blue);
  font-weight: 600;
}

.domain-ext-btn:hover {
  color: var(--brand-blue-hover);
}

/* ==========================================================================
   TECH EVOLUTION & TIMELINE (1992 - 2026)
   ========================================================================== */
.evolution-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.evolution-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--accent-indigo) 50%, var(--accent-amber) 100%);
  opacity: 0.3;
}

.timeline-step {
  position: relative;
  margin-bottom: 48px;
  width: 50%;
  padding-right: 40px;
}

.timeline-step:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-node {
  position: absolute;
  top: 16px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.timeline-step:nth-child(even) .timeline-node {
  right: auto;
  left: -8px;
}

.timeline-content {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.timeline-era {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   CONTACT SECTION (MATRIX RAIN & PARALLAX EXPERIENCE)
   ========================================================================== */
.contact-matrix-section {
  position: relative;
  overflow: hidden;
  background: #06090f;
  padding: 130px 0 110px 0;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.matrix-canvas-container {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: -100px;
  width: 100%;
  height: calc(100% + 200px);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

.matrix-vignette-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(ellipse 90% 75% at 50% 50%, transparent 40%, rgba(6, 9, 15, 0.88) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(6, 9, 15, 0.4) 8%, transparent 15%, transparent 85%, rgba(6, 9, 15, 0.6) 92%, rgba(248, 250, 252, 0.98) 100%);
}

.contact-container-content {
  position: relative;
  z-index: 3;
}

.matrix-header {
  margin-bottom: 60px;
}

.matrix-tag {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.matrix-title {
  color: #ffffff;
}

.gradient-matrix-text {
  background: linear-gradient(135deg, #ffffff 20%, #34d399 65%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.matrix-subtitle {
  color: #94a3b8;
}

.matrix-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-matrix-section .contact-info-card,
.contact-matrix-section .contact-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.08);
  color: #f8fafc;
  transition: transform 0.15s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.contact-matrix-section .form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .contact-matrix-section .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.contact-matrix-section .contact-info-card:hover,
.contact-matrix-section .contact-form:hover {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.8), 0 0 50px rgba(16, 185, 129, 0.18);
}

.contact-matrix-section .contact-info-card h3,
.contact-matrix-section .contact-form h3 {
  color: #ffffff;
}

.contact-matrix-section .contact-info-card p {
  color: #94a3b8;
}

.contact-matrix-section .contact-disclaimer-box {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.contact-matrix-section .contact-icon {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.contact-matrix-section .contact-details h4 {
  color: #64748b;
}

.contact-matrix-section .contact-details p,
.contact-matrix-section .contact-details a {
  color: #ffffff;
  transition: color var(--transition-fast);
}

.contact-matrix-section .contact-details a:hover {
  color: #34d399;
}

.contact-matrix-section .form-label {
  color: #cbd5e1;
}

.contact-matrix-section .form-control {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.contact-matrix-section .form-control:focus {
  border-color: #34d399;
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.contact-matrix-section .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.contact-matrix-section .btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #06090f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand-blue);
}

.contact-details h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-details p {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form {
  padding: 40px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-control {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
  background: var(--bg-subtle);
  position: relative;
  z-index: 3;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.footer-nav a:hover {
  color: var(--brand-blue);
}

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

.footer-bottom strong {
  color: var(--text-primary);
}

/* ==========================================================================
   MODALS: COMMAND PALETTE & SCREENSHOT LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.command-modal {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  animation: modalIn 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: scale(0.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.command-input-wrapper {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.command-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
  font-family: inherit;
}

.command-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  list-style: none;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.command-item:hover, .command-item.selected {
  background: var(--brand-blue-light);
}

.command-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.command-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.command-item-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Lightbox Modal */
.lightbox-modal {
  max-width: 820px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.lightbox-img-wrapper {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-height: 70vh;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .evolution-timeline::before {
    left: 24px;
  }
  .timeline-step, .timeline-step:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 56px;
    padding-right: 0;
  }
  .timeline-node, .timeline-step:nth-child(even) .timeline-node {
    left: 16px;
    right: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .architect-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .command-trigger-btn span {
    display: none;
  }
  .section {
    padding: 70px 0;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-mono);
}
.lang-switch-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.lang-switch-btn .active-lang {
  color: var(--brand-blue);
  font-weight: 800;
}

/* ==========================================================================
   CODE PARALLAX LAYER & MODERN PLATFORM CARDS
   ========================================================================== */
.ecosystem-section {
  position: relative;
  overflow: hidden;
}

.code-parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.4;
}

.code-stream-token {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(37, 99, 235, 0.4);
  white-space: nowrap;
  user-select: none;
  will-change: transform;
  transition: transform 0.12s ease-out;
}
.code-stream-token.amber { color: rgba(217, 119, 6, 0.45); }
.code-stream-token.purple { color: rgba(147, 51, 234, 0.45); }
.code-stream-token.emerald { color: rgba(16, 185, 129, 0.45); }

.card-code-snip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #090d16;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #38bdf8;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-code-snip .snip-lang {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Callout for Legacy Vault */
.legacy-archive-callout {
  margin: 48px auto 0 auto;
  max-width: 860px;
  padding: 18px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 3;
}
.legacy-callout-text {
  display: flex;
  align-items: center;
  gap: 14px;
}
.legacy-badge {
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.legacy-callout-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}
.legacy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.legacy-link-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .legacy-archive-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
