/* ==========================================================================
   BlueGrey Ventures — Production Design System & Light Terminal Stylesheet
   Aesthetic: Refined Light Terminal, Small Fonts, Spaced Out, 100% Responsive
   ========================================================================== */

:root {
  /* Canvas & Surface Colors */
  --bg-canvas: #f8f9fb;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f4f8;
  --bg-terminal-header: #edf1f7;
  --bg-terminal-inner: #fafbfc;
  --bg-code-snippet: #f1f4f9;

  /* Text & Syntax Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-code: #1e293b;

  /* Terminal Accents */
  --term-emerald: #059669;
  --term-emerald-bg: #ecfdf5;
  --term-emerald-border: #a7f3d0;

  --term-cyan: #0284c7;
  --term-cyan-bg: #f0f9ff;
  --term-cyan-border: #bae6fd;

  --term-purple: #7c3aed;
  --term-purple-bg: #f5f3ff;
  --term-purple-border: #ddd6fe;

  --term-amber: #d97706;
  --term-amber-bg: #fffbeb;
  --term-amber-border: #fde68a;

  /* Structural Hairline Borders */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #0f172a;

  /* Subtle Elevating Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 3px 10px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 2px 5px -1px rgba(15, 23, 42, 0.03);

  /* Typography: Technical, Restrained, Small Fonts */
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: clamp(18px, 2.2vw, 23px);

  /* Layout Boundaries — Shared across Header, Page, and Footer for Exact Pixel Alignment */
  --container-max-width: 980px;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.light-terminal {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Canvas Mouse Spotlight (Micro-interaction) */
.canvas-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50vw) var(--mouse-y, 30vh),
    rgba(2, 132, 199, 0.04),
    transparent 80%
  );
  transition: opacity 0.3s ease;
}

/* Background Terminal Grid & Subtle Scanlines */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(#cbd5e1 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.subtle-scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 50%,
    rgba(226, 232, 240, 0.22) 50%
  );
  background-size: 100% 4px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Top System Header (100% Aligned with Page Container)
   ========================================================================== */
.system-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(248, 249, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.system-header-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-bracket {
  color: var(--text-dim);
  font-weight: 400;
}

.brand-text {
  padding: 0 0.15rem;
}

.cursor-blink {
  display: inline-block;
  color: var(--term-emerald);
  font-weight: bold;
  animation: terminalBlink 1s infinite steps(1);
}

@keyframes terminalBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Compact Status Badge */
.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem;
  background-color: var(--term-emerald-bg);
  border: 1px solid var(--term-emerald-border);
  border-radius: var(--radius-xs);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--term-emerald);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background-color: var(--term-emerald);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
  flex-shrink: 0;
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.badge-text {
  white-space: nowrap;
}

/* Nav links */
.system-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-item {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
  transform: translateY(-1px);
}

.nav-num {
  color: var(--term-cyan);
  margin-right: 0.15rem;
}

/* Header Right Area */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-email-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.6rem;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-email-copy:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

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

.btn-kbd-hint {
  font-size: 9px;
  color: var(--text-dim);
  background-color: var(--bg-surface-subtle);
  padding: 0.05rem 0.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-email-copy.copied {
  background-color: var(--term-emerald-bg);
  border-color: var(--term-emerald);
  color: var(--term-emerald);
}

/* ==========================================================================
   Page Container & Spacing (Identical Bounds as Header)
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.section-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.terminal-path-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  align-self: flex-start;
  max-width: 100%;
}

.path-prompt {
  color: var(--term-emerald);
  font-weight: 600;
}

.path-divider {
  color: var(--text-dim);
}

.path-dir {
  color: var(--text-primary);
  font-weight: 500;
}

.path-flags {
  color: var(--term-cyan);
  font-size: var(--fs-2xs);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.meta-pill {
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.meta-accent {
  color: var(--term-cyan);
  border-color: var(--term-cyan-border);
  background: var(--term-cyan-bg);
}

.meta-purple {
  color: var(--term-purple);
  border-color: var(--term-purple-border);
  background: var(--term-purple-bg);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.hero-description {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 0.55rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-xs);
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  padding: 0.55rem 0.95rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

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

.btn-prefix {
  color: var(--term-emerald);
  font-weight: bold;
}

/* ==========================================================================
   Terminal Window Chrome & Simulator
   ========================================================================== */
.terminal-window {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.terminal-window:hover {
  border-color: var(--border-medium);
}

.terminal-window.highlight-pulse {
  border-color: var(--term-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), var(--shadow-md);
}

.terminal-titlebar {
  background-color: var(--bg-terminal-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
  min-width: 0;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.control-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.control-dot:hover {
  opacity: 0.8;
}

.control-dot.close { background-color: #f87171; border: 1px solid #ef4444; }
.control-dot.minimize { background-color: #fbbf24; border: 1px solid #f59e0b; }
.control-dot.expand { background-color: #34d399; border: 1px solid #10b981; }

.window-title {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.window-meta {
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-terminal {
  margin-top: 0.5rem;
  background-color: var(--bg-terminal-inner);
}

.terminal-body {
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-xs);
  line-height: 1.6;
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: #ffffff;
  word-break: break-word;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-prompt {
  color: var(--term-emerald);
  font-weight: bold;
}

.output-dim { color: var(--text-dim); }
.output-system { color: var(--text-primary); font-weight: 600; }
.output-success { color: var(--term-emerald); }
.output-info { color: var(--term-cyan); }
.output-accent { color: var(--term-purple); }
.output-warn { color: var(--term-amber); }

.keyword { color: var(--term-purple); font-weight: 600; }
.term-link {
  color: var(--term-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.term-link:hover {
  color: var(--text-primary);
}

/* Terminal CLI Tray */
.terminal-cli-tray {
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quick-commands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.quick-label {
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 0.15rem;
  white-space: nowrap;
}

.term-cmd-pill {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.term-cmd-pill:hover {
  color: var(--term-cyan);
  border-color: var(--term-cyan);
  background-color: var(--term-cyan-bg);
  transform: translateY(-1px);
}

.term-cmd-pill:active {
  transform: scale(0.96);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.3rem 0.5rem;
  min-width: 0;
  transition: all 0.15s ease;
}

.terminal-input-row:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.04);
}

.term-input-prompt {
  font-size: var(--fs-xs);
  color: var(--term-emerald);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-text-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-primary);
  outline: none;
}

.terminal-text-input::placeholder {
  color: var(--text-dim);
}

.kbd-helper-badge {
  font-size: 9px;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.05rem 0.25rem;
  font-weight: 700;
  user-select: none;
}

.term-input-enter {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.term-input-enter:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* ==========================================================================
   Specification Metric Strip
   ========================================================================== */
.terminal-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-col {
  background-color: var(--bg-surface);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  transition: background-color 0.15s ease;
}

.spec-col:hover {
  background-color: var(--bg-surface-subtle);
}

.spec-label {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.spec-val {
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.section-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-weight: 600;
}

.section-number {
  color: var(--term-cyan);
}

.section-divider {
  color: var(--border-medium);
}

.section-tag {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.section-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   Featured Projects Grid & Interactive Code Snippet Tabs
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.card-status-badge {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active {
  color: var(--term-emerald);
  background-color: var(--term-emerald-bg);
  border: 1px solid var(--term-emerald-border);
}

.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.project-name {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--fs-xs);
  color: var(--term-cyan);
  background-color: var(--term-cyan-bg);
  border: 1px solid var(--term-cyan-border);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.external-link-btn:hover {
  background-color: #e0f2fe;
  color: #0369a1;
  transform: translateY(-1px);
}

.project-tagline {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Interactive Project Snippet Box & Tabs */
.project-snippet {
  background-color: var(--bg-code-snippet);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.snippet-header {
  background-color: #e9eff6;
  padding: 0.2rem 0.5rem 0.2rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-2xs);
  min-width: 0;
}

.snippet-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.snippet-tab-btn {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.snippet-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.5);
}

.snippet-tab-btn.active {
  color: var(--term-cyan);
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.snippet-spec {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-left: 0.5rem;
  font-size: 10px;
}

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

.snippet-tab-panel.active {
  display: block;
  animation: fadeInCode 0.2s ease-out;
}

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

.snippet-code {
  padding: 0.75rem 0.85rem;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-code);
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}

.c-comment { color: var(--text-dim); }
.c-prompt { color: var(--term-emerald); font-weight: bold; }
.c-success { color: var(--term-emerald); font-weight: 600; }
.c-info { color: var(--term-cyan); }
.c-accent { color: var(--term-purple); font-weight: 600; }
.c-dim { color: var(--text-muted); }

.project-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spec-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-icon {
  color: var(--term-cyan);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-bullet strong {
  color: var(--text-primary);
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.tech-tag {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.12rem 0.4rem;
  white-space: nowrap;
}

.project-footer {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

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

.btn-card-action:active {
  transform: scale(0.99);
}

.action-arrow {
  transition: transform 0.15s ease;
}

.btn-card-action:hover .action-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Capabilities Grid (LLM Frontier)
   ========================================================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.capability-card {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.capability-card:hover {
  border-color: var(--term-cyan-border);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.cap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.cap-index {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--term-cyan);
}

.cap-badge {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  padding: 0.12rem 0.35rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.cap-title {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.cap-text {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.cap-cmd {
  margin-top: auto;
  padding: 0.35rem 0.55rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: var(--fs-2xs);
  color: var(--term-purple);
  font-weight: 600;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.cap-cmd:hover {
  background-color: var(--term-purple-bg);
  border-color: var(--term-purple-border);
}

.cmd-click-icon {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.15s;
}

.capability-card:hover .cmd-click-icon {
  color: var(--term-purple);
  transform: translateX(2px);
}

/* ==========================================================================
   Testimonials Grid
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.testimonial-card {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.test-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-rating {
  color: var(--term-amber);
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}

.test-hash {
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  white-space: nowrap;
}

.test-quote {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: normal;
  flex: 1;
}

.test-author-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.test-avatar {
  width: 28px;
  height: 28px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.test-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.test-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.test-role {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Contact Console
   ========================================================================== */
.contact-console {
  background-color: var(--bg-surface);
}

.badge-ready {
  color: var(--term-cyan);
  background-color: var(--term-cyan-bg);
  border: 1px solid var(--term-cyan-border);
}

.contact-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.contact-subtext {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.contact-action-box {
  min-width: 0;
  background-color: var(--bg-terminal-inner);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-cmd-row {
  font-size: var(--fs-xs);
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-cmd-row.indent {
  padding-left: 1.15rem;
}

.cmd-term-prompt {
  color: var(--term-emerald);
  font-weight: bold;
  margin-right: 0.35rem;
}

.cmd-term-flag {
  color: var(--term-cyan);
}

.cmd-term-val {
  color: var(--term-purple);
}

.contact-interactive-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
}

.email-display-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.75rem;
  min-width: 0;
  overflow-x: auto;
}

.email-label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.email-address {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--term-cyan);
  white-space: nowrap;
}

.contact-button-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-copy-main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--text-primary);
  color: #ffffff;
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-copy-main:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

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

.btn-mailto-main {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-mailto-main:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

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

.contact-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding-top: 0.35rem;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.g-bullet {
  color: var(--term-emerald);
  font-size: 7px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   Terminal Footer (100% Pixel Aligned with Grid)
   ========================================================================== */
.system-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 2.25rem 1.5rem 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}

.footer-desc {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.footer-link:hover {
  color: var(--term-cyan);
  text-decoration: underline;
  transform: translateY(-1px);
}

.link-prefix {
  color: var(--text-dim);
  font-size: var(--fs-2xs);
}

.ext-arrow {
  color: var(--term-cyan);
}

/* Footer Bottom Diagnostics Row (Guaranteed Left-Aligned) */
.footer-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-diagnostics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  line-height: 1;
}

.diag-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--term-emerald);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
  flex-shrink: 0;
}

.diag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-secondary);
}

.diag-key {
  color: var(--text-primary);
  font-weight: 700;
}

.diag-sep {
  color: var(--border-medium);
  font-size: 10px;
}

.footer-copy {
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  white-space: nowrap;
}

/* ==========================================================================
   Toast Notification (Micro-interaction)
   ========================================================================== */
.terminal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-xs);
  font-size: var(--fs-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
}

.terminal-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--term-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablets Landscape / Medium Viewports (920px and down) */
@media (max-width: 920px) {
  .system-header-inner {
    flex-wrap: wrap;
    padding: 0.6rem 1.25rem;
    gap: 0.65rem;
  }

  .header-left {
    flex: 1 1 auto;
  }

  .header-right {
    flex: 0 0 auto;
  }

  .system-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.65rem;
  }

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

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

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

/* Small Tablets / Large Phones (720px and down) */
@media (max-width: 720px) {
  .page-container {
    padding: 2rem 1.25rem 3.5rem;
    gap: 3.5rem;
  }

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

  .contact-interactive-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy-main, .btn-mailto-main {
    justify-content: center;
    width: 100%;
  }

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

  .footer-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-terminal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* Mobile Phones (480px and down) */
@media (max-width: 480px) {
  .system-header-inner {
    padding: 0.5rem 1rem;
  }

  .page-container {
    padding: 1.75rem 1rem 3rem;
  }

  .system-badge .badge-text {
    font-size: 9px;
  }

  .btn-email-copy .btn-text {
    font-size: 11px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .terminal-spec-strip {
    grid-template-columns: 1fr;
  }

  .terminal-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}
