@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-terminal: #020617;
  --bg-panel: #0a101c;
  --bg-hover: #111827;

  --grid-lines: rgba(34, 197, 94, 0.1);
  --grid-major: rgba(56, 189, 248, 0.2);

  --data-primary: #22c55e;
  --data-secondary: #38bdf8;
  --data-tertiary: #a3e635;
  --data-alert: #ef4444;
  --data-warning: #f59e0b;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #4ade80;

  --font-mono: 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --font-display: 'Fira Sans', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --statusbar-height: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --content-max: 1200px;
  --scan-duration: 1.5s;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(to right, var(--grid-lines) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--grid-lines) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    radial-gradient(circle at 20% 20%, rgba(49, 46, 129, 0.14), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.1), transparent 38%),
    var(--bg-terminal);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  line-height: 1.5;
}

.site-shell {
  padding-top: var(--statusbar-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 120;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.6);
  background: rgba(10, 15, 20, 0.96);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.signal-shell {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: calc(var(--statusbar-height) + 16px) 20px 20px;
}

.header-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--statusbar-height);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: inset 0 -1px 0 rgba(34, 197, 94, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  font-size: 12px;
}

.header-status-bar__breadcrumb {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-status-bar__clock {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.header-status-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--data-secondary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: indicator-pulse 1.4s ease-in-out infinite;
}

.connection-bars {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  align-items: end;
}

.connection-bars span {
  width: 3px;
  background: var(--text-accent);
  border-radius: 999px;
}

.connection-bars span:nth-child(1) {
  height: 6px;
}

.connection-bars span:nth-child(2) {
  height: 10px;
}

.connection-bars span:nth-child(3) {
  height: 14px;
}

.connection-bars span:nth-child(4) {
  height: 18px;
}

.section-divider {
  position: relative;
  margin: 48px 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
}

.section-divider::before {
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--data-primary) 22%, var(--data-primary) 78%, transparent);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.55);
}

.section-divider::after {
  top: calc(50% - 8px);
  height: 16px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 9px,
    rgba(56, 189, 248, 0.16) 9px,
    rgba(56, 189, 248, 0.16) 10px
  );
  opacity: 0;
}

.section-divider.is-visible::after {
  opacity: 1;
  animation: scan-line-sweep var(--scan-duration) linear;
}

.section-divider__text {
  position: relative;
  z-index: 2;
  margin-left: auto;
  padding: 4px 8px;
  color: var(--text-accent);
  background: rgba(10, 15, 20, 0.92);
  border: 1px solid var(--grid-major);
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-terminal {
  margin-top: 56px;
  padding: 18px;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--grid-major);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(49, 46, 129, 0.2);
  font-family: var(--font-mono);
}

.footer-terminal__stream {
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-terminal__stream li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(49, 46, 129, 0.12);
}

.footer-terminal__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-terminal__prompt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--data-secondary);
}

.footer-terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: currentColor;
  animation: typing-cursor-blink 0.9s steps(1, end) infinite;
}

.remote-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remote-connections a {
  border: 1px solid var(--grid-major);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: var(--text-accent);
  transition: 0.3s ease;
}

.remote-connections a:hover,
.remote-connections a:focus-visible {
  border-color: var(--data-tertiary);
  color: var(--text-primary);
}

.command-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--data-primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: transparent;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s ease;
}

.command-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--data-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.command-cta:hover,
.command-cta:focus-visible {
  color: var(--text-primary);
}

.command-cta:hover::before,
.command-cta:focus-visible::before {
  transform: scaleX(1);
}

.command-cta .command-cta__text-default {
  display: inline;
}

.command-cta .command-cta__text-run {
  display: none;
}

.command-cta:hover .command-cta__text-default,
.command-cta:focus-visible .command-cta__text-default {
  display: none;
}

.command-cta:hover .command-cta__text-run,
.command-cta:focus-visible .command-cta__text-run {
  display: inline;
}

.command-cta.is-loading::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(241, 245, 249, 0.25);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: data-packet-move 0.8s linear infinite;
}

.command-cta.is-complete {
  border-color: var(--data-secondary);
  background: rgba(16, 185, 129, 0.2);
  color: var(--text-primary);
}

.command-cta.is-complete::after {
  content: '✓ COMPLETE';
  color: var(--data-secondary);
}

.grid-bg-primary {
  background:
    linear-gradient(to right, var(--grid-lines) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--grid-lines) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg-terminal);
}

.grid-bg-major {
  background:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    transparent;
}

.grid-bg-terminal {
  position: relative;
}

.grid-bg-terminal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.08), transparent 65%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Force a consistent terminal aesthetic across Signal Collective pages. */
body.terminal-theme {
  background:
    linear-gradient(to right, var(--grid-lines) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to bottom, var(--grid-lines) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(circle at 16% 8%, rgba(34, 197, 94, 0.12), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(56, 189, 248, 0.11), transparent 32%),
    var(--bg-terminal) !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-mono) !important;
}

body.terminal-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.38;
  z-index: 1;
}

body.terminal-theme .site-shell {
  position: relative;
  z-index: 2;
}

body.terminal-theme h1,
body.terminal-theme h2,
body.terminal-theme h3,
body.terminal-theme .brand-font {
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.terminal-theme h1 {
  letter-spacing: 0.06em;
}

body.terminal-theme p,
body.terminal-theme li {
  font-family: var(--font-mono);
}

body.terminal-theme .card,
body.terminal-theme .soft-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.94)),
    linear-gradient(90deg, rgba(34, 197, 94, 0.08), transparent 26%, rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 0.55rem;
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.14),
    0 18px 46px -32px rgba(2, 6, 23, 0.95);
}

body.terminal-theme .terminal-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0.55rem;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

body.terminal-theme .terminal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.8), transparent);
  opacity: 0.75;
}

body.terminal-theme .terminal-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(90deg, transparent 0, rgba(56, 189, 248, 0.05) 50%, transparent 100%);
}

body.terminal-theme .terminal-panel > * {
  position: relative;
  z-index: 2;
}

body.terminal-theme .terminal-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.2),
    0 20px 44px -28px rgba(2, 6, 23, 0.95);
}

body.terminal-theme .terminal-panel p,
body.terminal-theme .terminal-panel li {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  line-height: 1.68;
}

body.terminal-theme .terminal-panel h2,
body.terminal-theme .terminal-panel h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: none;
}

body.terminal-theme .terminal-panel .rounded-lg.border {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(2, 6, 23, 0.6);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
}

body.terminal-theme .terminal-panel .rounded-lg.border p:last-child {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #dcfce7;
  letter-spacing: 0.03em;
}

body.terminal-theme .terminal-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 197, 94, 0.62);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.2), rgba(2, 6, 23, 0.95));
  color: #dcfce7;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 0.68rem 1.02rem;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), 0 14px 24px -18px rgba(34, 197, 94, 0.52);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.terminal-theme .terminal-action.border {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.95));
  border-color: rgba(56, 189, 248, 0.44);
}

body.terminal-theme .terminal-action::before {
  content: '$';
  font-size: 0.82em;
  opacity: 0.8;
}

body.terminal-theme .terminal-action::after {
  content: '>';
  font-size: 0.72em;
  opacity: 0.8;
  transform: translateX(0);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

body.terminal-theme .terminal-action:hover,
body.terminal-theme .terminal-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.8);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.33), rgba(2, 6, 23, 0.94));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 16px 26px -16px rgba(8, 47, 73, 0.85);
}

body.terminal-theme .terminal-action.border:hover,
body.terminal-theme .terminal-action.border:focus-visible {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.24), rgba(2, 6, 23, 0.95));
}

body.terminal-theme .terminal-action:hover::after,
body.terminal-theme .terminal-action:focus-visible::after {
  opacity: 1;
  transform: translateX(2px);
}

body.terminal-theme .border-slate-200,
body.terminal-theme .border-slate-300,
body.terminal-theme .border-slate-400,
body.terminal-theme .border-slate-500,
body.terminal-theme .border-slate-700\/30 {
  border-color: rgba(56, 189, 248, 0.34);
}

body.terminal-theme .terminal-shell-header,
body.terminal-theme .terminal-shell-footer {
  background: rgba(2, 6, 23, 0.9);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.14);
  backdrop-filter: blur(12px);
}

body.terminal-theme .terminal-shell-header .section-wrap > .flex > a:first-child {
  color: #d9f99d;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: none;
}

body.terminal-theme .terminal-shell-header .section-wrap > .flex > a:first-child::before {
  content: '>_ ';
  color: var(--data-primary);
}

body.terminal-theme .metric-label {
  color: var(--data-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

body.terminal-theme .metric-label::before {
  content: '>> ';
  color: var(--data-primary);
  opacity: 0.88;
}

body.terminal-theme .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 0.38rem;
  color: rgba(203, 213, 225, 0.84);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

body.terminal-theme .nav-link::before,
body.terminal-theme .nav-link::after {
  display: none;
}

body.terminal-theme .nav-link::before {
  content: '[';
  transform: translateX(2px);
}

body.terminal-theme .nav-link::after {
  content: ']';
  transform: translateX(-2px);
}

body.terminal-theme .nav-link:hover,
body.terminal-theme .nav-link:focus-visible,
body.terminal-theme .nav-link-strong {
  color: var(--text-primary);
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(15, 23, 42, 0.72);
}

body.terminal-theme .nav-link:hover::before,
body.terminal-theme .nav-link:hover::after,
body.terminal-theme .nav-link:focus-visible::before,
body.terminal-theme .nav-link:focus-visible::after,
body.terminal-theme .nav-link-strong::before,
body.terminal-theme .nav-link-strong::after {
  display: none;
}

body.terminal-theme .terminal-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(34, 197, 94, 0.56);
  background: rgba(2, 6, 23, 0.78);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: none;
  padding: 0.58rem 0.8rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.terminal-theme .terminal-menu-toggle:hover,
body.terminal-theme .terminal-menu-toggle:focus-visible {
  border-color: rgba(56, 189, 248, 0.76);
  background: rgba(15, 23, 42, 0.94);
  color: #ecfeff;
}

body.terminal-theme .terminal-menu-toggle[aria-expanded='true'] {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.96);
}

body.terminal-theme [data-mobile-menu] {
  margin-top: 0.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(56, 189, 248, 0.28);
}

body.terminal-theme [data-mobile-menu] .nav-link {
  display: block;
  padding: 0.5rem 0.4rem;
  border-radius: 0.45rem;
}

body.terminal-theme [data-mobile-menu] .nav-link:hover,
body.terminal-theme [data-mobile-menu] .nav-link:focus-visible {
  background: rgba(15, 23, 42, 0.92);
}

body.terminal-theme [data-mobile-menu].is-open {
  animation: terminal-boot-in 220ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

body.terminal-theme .text-slate-900,
body.terminal-theme .text-slate-800,
body.terminal-theme .text-slate-700 {
  color: var(--text-primary);
}

body.terminal-theme .text-slate-600,
body.terminal-theme .text-slate-500 {
  color: var(--text-secondary);
}

body.terminal-theme .text-slate-300,
body.terminal-theme .text-slate-200 {
  color: #d5def0;
}

body.terminal-theme .bg-slate-900,
body.terminal-theme .bg-\[\#312e81\] {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.24), rgba(2, 6, 23, 0.95));
}

body.terminal-theme .hover\:bg-slate-800:hover,
body.terminal-theme .hover\:bg-indigo-900:hover {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.28), rgba(2, 6, 23, 0.95));
}

body.terminal-theme .cta-input,
body.terminal-theme input[type='email'] {
  background: rgba(2, 6, 23, 0.86);
  border-color: rgba(56, 189, 248, 0.48);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

body.terminal-theme .cta-input::placeholder,
body.terminal-theme input[type='email']::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

body.terminal-theme .cta-shell {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96)),
    linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(56, 189, 248, 0.08));
}

body.terminal-theme .badge {
  border-radius: 0.35rem;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(2, 6, 23, 0.72);
  color: #dcfce7;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

body.terminal-theme .footer-link {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

body.terminal-theme .footer-link:hover,
body.terminal-theme .footer-link:focus-visible {
  color: #a7f3d0;
}

body.terminal-theme ::selection {
  background: rgba(34, 197, 94, 0.35);
  color: #f0fdf4;
}

body.terminal-theme *:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.76);
  outline-offset: 2px;
}

body.terminal-theme #intelligenceSignalTrigger {
  border: 1px solid rgba(34, 197, 94, 0.62);
  border-radius: 0.42rem;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.2), rgba(2, 6, 23, 0.95));
  color: #dcfce7;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.terminal-theme #intelligenceSignalTrigger:hover,
body.terminal-theme #intelligenceSignalTrigger:focus-visible {
  border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.28), rgba(2, 6, 23, 0.94));
}

@keyframes terminal-boot-in {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(5px);
  }
  65% {
    opacity: 0.92;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

body.terminal-theme.boot-ready [data-boot] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  will-change: transform, opacity, filter;
}

body.terminal-theme.boot-ready.is-booted [data-boot] {
  animation: terminal-boot-in 680ms cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
  animation-delay: var(--boot-delay, 0ms);
}

body.terminal-theme [data-boot].is-boot-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (min-width: 1200px) {
  .signal-shell {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 768px) {
  body.terminal-theme .terminal-menu-toggle.md\:hidden {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .section-divider {
    margin: 36px 0;
  }
}

@media (max-width: 767px) {
  html {
    scroll-behavior: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-status-bar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0 10px;
    font-size: 11px;
  }

  .header-status-bar__breadcrumb {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .header-status-bar__clock {
    justify-self: end;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  .header-status-bar__status,
  .connection-bars {
    display: none;
  }

  .signal-shell {
    padding: calc(var(--statusbar-height) + 12px) 14px 16px;
  }

  body.terminal-theme .section-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.terminal-theme .terminal-shell-header .section-wrap > .flex > a:first-child {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  .section-divider__text {
    margin: 0;
    font-size: 10px;
  }

  .footer-terminal {
    padding: 14px;
  }

  .footer-terminal__stream {
    max-height: 170px;
  }

  .mission-ticker {
    display: none;
  }

  .hero-shell {
    min-height: 72vh;
  }

  body.terminal-theme {
    background:
      linear-gradient(to right, var(--grid-lines) 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(to bottom, var(--grid-lines) 1px, transparent 1px) 0 0 / 18px 18px,
      radial-gradient(circle at 16% 8%, rgba(34, 197, 94, 0.12), transparent 40%),
      var(--bg-terminal) !important;
  }

  body.terminal-theme::before {
    opacity: 0.24;
  }

  body.terminal-theme .terminal-panel {
    border-radius: 0.85rem;
    box-shadow:
      inset 0 0 0 1px rgba(56, 189, 248, 0.12),
      0 14px 32px -26px rgba(2, 6, 23, 0.88);
  }

  body.terminal-theme h1 {
    letter-spacing: 0.015em;
    line-height: 1.08;
    font-size: clamp(1.92rem, 8.2vw, 2.5rem);
  }

  body.terminal-theme h2 {
    letter-spacing: 0.02em;
    font-size: clamp(1.16rem, 5.5vw, 1.62rem);
  }

  body.terminal-theme .terminal-panel p,
  body.terminal-theme .terminal-panel li {
    font-size: 0.91rem;
    line-height: 1.62;
  }

  body.terminal-theme .metric-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  body.terminal-theme .metric-label::before {
    content: '> ';
  }

  body.terminal-theme .terminal-action {
    width: 100%;
    justify-content: center;
    min-height: 2.72rem;
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  body.terminal-theme .terminal-action::before {
    font-size: 0.76em;
  }

  body.terminal-theme .terminal-action::after {
    font-size: 0.64em;
  }

  body.terminal-theme .terminal-menu-toggle {
    min-width: unset;
    min-height: 2.52rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.6rem 0.76rem;
  }

  body.terminal-theme [data-mobile-menu] {
    padding-top: 0.52rem;
  }

  body.terminal-theme [data-mobile-menu] .nav-link {
    padding: 0.62rem 0.58rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.35rem;
    background: rgba(2, 6, 23, 0.44);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
  }

  body.terminal-theme [data-mobile-menu] .nav-link::before,
  body.terminal-theme [data-mobile-menu] .nav-link::after {
    display: none;
  }

  body.terminal-theme .footer-link {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  body.terminal-theme .section-divider {
    margin: 24px 0;
  }

  body.terminal-theme .section-divider::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
