

:root {
  --bg: #efefef;
  --bg-alt: #fafbfc;
  --panel: #ffffff;
  --text: #0a0e14;
  --text-secondary: #555c66;
  --text-muted: #8a909a;
  --border: #e2e5ea;
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --status-active: #16a34a;
  --status-dev: #b45309;
  --danger: #dc2626;
  --grid-line: rgba(10, 14, 20, 0.045);

  --font: 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-alt: #0d1117;
  --panel: #11151c;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #5b6472;
  --border: #1e2530;
  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --status-active: #4ade80;
  --status-dev: #fbbf24;
  --danger: #f87171;
  --grid-line: rgba(255, 255, 255, 0.035);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hud-corners {
  position: relative;
}

.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.hud-corners::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hud-corners::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.hud-corners:hover::before,
.hud-corners:hover::after {
  opacity: 1;
  width: 14px;
  height: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70% { box-shadow: 0 0 0 5px transparent; opacity: 0.6; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

.status.is-production { color: var(--status-active); }
.status.is-development { color: var(--status-dev); }

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  height: 24px;
  width: auto;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-mark--light {
  display: none;
}

[data-theme="light"] .logo-mark--dark {
  display: none;
}

[data-theme="light"] .logo-mark--light {
  display: inline-block;
}

.logo-mark circle,
.logo-mark line {
  stroke: currentColor;
}

.tagline {
  align-self: center;
  /* padding-left: 14px;
  border-left: 1px solid var(--border); */
}

.telemetry-bar {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 99;
  overflow: hidden;
  height: 22px;
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.telemetry-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.telemetry-track span {
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telemetry-track span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--status-active);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .telemetry-track { animation: none; }
}

@media (max-width: 768px) {
  .telemetry-bar { display: none; }
}

.tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.location {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.theme-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .header-nav {
    display: none;
  }

  .tagline {
    display: none;
  }

  .location {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

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

  .mobile-nav a {
    padding: 16px 20px;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav a:hover {
    color: var(--accent);
    background: var(--bg-alt);
    text-decoration: none;
  }
}

.section {
  padding: 120px 40px;
 /*  border-bottom: 1px solid var(--border); */
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
}

.section-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.section-header h2 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 130px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    color-mix(in srgb, var(--text) 3%, transparent) 3px,
    color-mix(in srgb, var(--text) 3%, transparent) 4px
  );
  opacity: 0.4;
}

.section-grid {
  position: absolute;
  top: 110px;
  left: 40px;
  right: 40px;
  z-index: 1;
}

.grid-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
  padding: 80px 0;
}

.hero-intro {
  margin-bottom: 80px;
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.hero-intro h1 {
  font-family:'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
}

.hero-contact a {
  font-size: 14px;
}

.hud-readout {
  position: absolute;
  top: 110px;
  right: 40px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 70%, transparent);
}

#clock {
  color: var(--status-active);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-intro h1 {
    font-size: 20px;
  }

  .grid-numbers,
  .hud-readout {
    display: none;
  }
}

.systems-list {
  display: flex;
  flex-direction: column;
}

.system-item {
  display: grid;
  grid-template-columns: 40px 180px 1fr 120px;
  gap: 24px;
  align-items: baseline;
  padding: 20px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.system-item:last-child {
  border-bottom: none;
}

.system-item:hover {
  text-decoration: none;
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.system-item:hover .item-name {
  text-decoration: underline;
}

.item-num {
  font-size: 11px;
  color: var(--text-muted);
}

.item-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.item-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.item-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  justify-self: end;
}

@media (max-width: 900px) {
  .system-item {
    grid-template-columns: 40px 1fr;
    gap: 8px 16px;
  }

  .item-desc,
  .item-status {
    grid-column: 2;
  }
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.spec-block {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.spec-block h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}

.spec-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.spec-row span:first-child {
  color: var(--text-muted);
}

.spec-row span:last-child {
  text-align: right;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.capability {
  padding: 24px;
  padding-right: 40px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.capability:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cap-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--accent);
  stroke-width: 1.5;
}

.cap-num {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.capability h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.capability p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.fact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-block {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.2s ease;
}

.contact-block:has(a):hover {
  border-color: var(--accent);
}

.contact-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 12px;
  color: var(--accent);
  stroke-width: 1.5;
}

.contact-block .label {
  margin-bottom: 8px;
}

.contact-block a,
.contact-block span {
  font-size: 13px;
}

.contact-block a:hover {
  color: var(--accent);
}

.contact-form {
  max-width: 800px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 0;
  font-family: var(--font);
  font-size: 13px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.form-field select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

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

.submit-btn {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 32px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  margin-top: 24px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.submit-btn:hover {
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--status-active);
  font-size: 13px;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid #c0392b;
  color: #c0392b;
  font-size: 13px;
}

.form-error.visible {
  display: block;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 40px;
  z-index: 200;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, border-color 0.15s ease, color 0.15s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 24px;
    right: 24px;
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }
}
