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

:root {
  --bg:        #080c10;
  --bg2:       #0d131a;
  --cyan:      #0ea5e9; /* Professional Ocean/Sky Blue */
  --cyan-dim:  rgba(14, 165, 233, 0.12);
  --cyan-glow: rgba(14, 165, 233, 0.04);
  --green:     #10b981; /* Emerald/Safe status */
  --green-dim: rgba(16, 185, 129, 0.12);
  --amber:     #f59e0b;
  --red:       #ef4444;
  --white:     #ffffff;
  --muted:     #64748b; /* Slate 500 */
  --text:      #cbd5e1; /* Slate 300 */
  --grid:      rgba(148, 163, 184, 0.04);
  --nav-bg:    rgba(8, 12, 16, 0.85);
  --telem-bg:  rgba(8, 12, 16, 0.8);
  --card-bg:   rgba(13, 19, 26, 0.55);
  
  --c-cyan:    14, 165, 233;
  --c-green:   16, 185, 129;
  --c-amber:   245, 158, 11;
  --c-red:     239, 68, 68;
  --c-purple:  139, 92, 246;
  --c-white:   255, 255, 255;
}

[data-theme="light"] {
  --bg:        #f8fafc;
  --bg2:       #ffffff;
  --cyan:      #0284c7; 
  --cyan-dim:  rgba(2, 132, 199, 0.1);
  --cyan-glow: rgba(2, 132, 199, 0.03);
  --green:     #059669;
  --green-dim: rgba(5, 150, 105, 0.1);
  --amber:     #d97706;
  --red:       #dc2626;
  --white:     #0f172a; /* Slate 900 */
  --muted:     #64748b; /* Slate 500 */
  --text:      #334155; /* Slate 700 */
  --grid:      rgba(148, 163, 184, 0.07);
  --nav-bg:    rgba(248, 250, 252, 0.85);
  --telem-bg:  rgba(248, 250, 252, 0.8);
  --card-bg:   rgba(255, 255, 255, 0.65);

  --c-cyan:    2, 132, 199;
  --c-green:   5, 150, 105;
  --c-amber:   217, 119, 6;
  --c-red:     220, 38, 38;
  --c-purple:  124, 58, 237;
  --c-white:   15, 23, 42;
}

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

html { 
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

strong {
  color: var(--white);
  font-weight: 600;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid var(--cyan-dim);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  width: 100%;
}

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

.logo-mark {
  width: 32px; height: 32px;
  position: relative;
  flex-shrink: 0;
}

.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--white);
}

.nav-status {
  display: flex; align-items: center; gap: 24px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.status-pill {
  display: flex; align-items: center; gap: 6px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--green-dim);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(var(--c-green), 0.2);
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.9;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.9); }
}

.nav-coords {
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-lang {
  display: flex;
  gap: 12px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  border-left: 1px solid var(--cyan-dim);
  padding-left: 20px;
  margin-left: 8px;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
  font-weight: 500;
}

.lang-link:hover, .lang-link.active {
  color: var(--cyan);
}

.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--cyan-dim);
  border-radius: 6px;
  color: var(--cyan);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(var(--c-cyan), 0.05);
}

.theme-toggle:hover {
  border-color: var(--cyan);
  background: rgba(var(--c-cyan), 0.1);
  color: var(--white);
  transform: rotate(45deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

#hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  z-index: 1;
  overflow: hidden;
  padding: 120px 56px 80px 56px;
}

#net-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ── HUD frame around the hero text panel ─────────────────── */
.hud-frame {
  position: relative;
  background: linear-gradient(180deg,
    rgba(8, 12, 16, 0.78) 0%,
    rgba(8, 12, 16, 0.62) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--c-cyan), 0.32);
  padding: 28px 32px 32px 32px;
  /* Chamfered corners, tactical HUD style */
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0, 100% 14px,
    100% 100%,
    14px 100%, 0 calc(100% - 14px)
  );
  box-shadow:
    inset 0 0 24px rgba(var(--c-cyan), 0.04),
    0 10px 40px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .hud-frame {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(248, 250, 252, 0.72) 100%);
  border-color: rgba(var(--c-cyan), 0.45);
  box-shadow:
    inset 0 0 24px rgba(var(--c-cyan), 0.05),
    0 10px 40px rgba(15, 23, 42, 0.12);
}

.hud-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(var(--c-cyan), 0.25);
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud-frame-id { color: rgba(var(--c-cyan), 0.85); }
.hud-frame-status { display: inline-flex; align-items: center; gap: 8px; }
.hud-status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 8px rgba(var(--c-green), 0.7);
  animation: hud-pulse 2.4s ease-in-out infinite;
}
@keyframes hud-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  max-width: 560px;
  width: min(560px, 100%);
}

.hero-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}

.hero-wordmark span {
  color: var(--cyan);
}

.hero-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

.hero-divider {
  width: 64px; height: 2px;
  background: var(--cyan);
  opacity: 0;
  margin: 4px 0 2px 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

.hero-desc {
  max-width: 520px;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}

.hero-cta {
  margin-top: 12px;
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.2s forwards;
}

/* ── HUD tactical buttons (gcs-ui ops-button aesthetic) ───── */
.btn-primary,
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 0;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 150ms ease-out, color 150ms ease-out,
              box-shadow 150ms ease-out, border-color 150ms ease-out,
              transform 80ms ease-out;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0, 100% 10px,
    100% 100%,
    10px 100%, 0 calc(100% - 10px)
  );
}
.btn-bracket {
  color: rgba(var(--c-cyan), 0.65);
  font-weight: 400;
}

.btn-primary {
  background: rgba(var(--c-cyan), 0.16);
  border: 1px solid var(--cyan);
  color: var(--white);
  box-shadow: inset 0 0 14px rgba(var(--c-cyan), 0.18);
}
.btn-primary:hover {
  background: rgba(var(--c-cyan), 0.28);
  box-shadow:
    inset 0 0 18px rgba(var(--c-cyan), 0.35),
    0 0 16px rgba(var(--c-cyan), 0.25);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary .btn-bracket { color: rgba(var(--c-white), 0.7); }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(var(--c-cyan), 0.45);
  color: var(--cyan);
  box-shadow: inset 0 0 12px rgba(var(--c-cyan), 0.05);
}
.btn-secondary:hover {
  background: rgba(var(--c-cyan), 0.08);
  border-color: var(--cyan);
  color: var(--white);
  box-shadow:
    inset 0 0 14px rgba(var(--c-cyan), 0.18),
    0 0 14px rgba(var(--c-cyan), 0.18);
}
.btn-secondary:active { transform: translateY(1px); }

.hud-corner {
  display: none; /* Hide retro game borders */
}

.telem-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40px;
  border-top: 1px solid var(--cyan-dim);
  background: var(--telem-bg);
  backdrop-filter: blur(8px);
  display: flex; align-items: center;
  padding: 0 48px;
  gap: 40px;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  z-index: 3;
  overflow: hidden;
}

.telem-scroll {
  display: flex; gap: 48px;
  animation: scrollTelem 35s linear infinite;
}

.telem-item {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

.telem-label { color: var(--cyan); font-weight: 500; }
.telem-val   { color: var(--white); }

@keyframes scrollTelem {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

section {
  position: relative; z-index: 1;
  padding: 120px 48px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sec-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.sec-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 48px;
  line-height: 1.25;
}

#about {
  border-top: 1px solid var(--cyan-dim);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text p strong {
  color: var(--white);
  font-weight: 600;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cyan-dim);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(var(--c-cyan), 0.08);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 500;
}

#capabilities {
  background: var(--bg2);
  border-top: 1px solid var(--cyan-dim);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.cap-card {
  padding: 40px 32px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cyan-dim);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cap-card::before {
  content: attr(data-prompt);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.cap-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(var(--c-cyan), 0.1);
}

.cap-card:hover::before {
  color: var(--cyan);
  opacity: 0.85;
}

.cap-icon {
  width: 32px; height: 32px;
  margin-bottom: 24px;
  color: var(--cyan);
}

.cap-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}

.cap-body {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}

.cap-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(var(--c-cyan), 0.06);
  border: 1px solid var(--cyan-dim);
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-transform: uppercase;
}

#mission {
  border-top: 1px solid var(--cyan-dim);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.mission-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.mission-visual svg {
  max-width: 100%;
  height: auto;
  opacity: 0.85;
}

.mission-text .value-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--cyan-dim);
  align-items: flex-start;
}

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

.value-num {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(var(--c-cyan), 0.06);
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.value-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 6px;
}

.value-content p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
}

#contact {
  border-top: 1px solid var(--cyan-dim);
  background: var(--bg);
  text-align: left;
}

/* Contact card inherits .hud-frame from the hero (chamfered corners,
   translucent dark surface, dashed header rule). Overrides below tune it
   for a content-heavy block instead of a hero panel. */
.coming-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 36px 36px 36px;
  text-align: left;
  /* Override .hud-frame defaults that target a compact hero panel. */
  background: linear-gradient(180deg,
    rgba(13, 19, 26, 0.82) 0%,
    rgba(8, 12, 16, 0.66) 100%);
  border: 1px solid rgba(var(--c-cyan), 0.35);
  border-radius: 0;
  box-shadow:
    inset 0 0 28px rgba(var(--c-cyan), 0.05),
    0 14px 44px rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .coming-box {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 250, 252, 0.78) 100%);
  border-color: rgba(var(--c-cyan), 0.48);
  box-shadow:
    inset 0 0 28px rgba(var(--c-cyan), 0.06),
    0 14px 44px rgba(15, 23, 42, 0.12);
}


.coming-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}

.coming-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.coming-sub {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 620px;
}

/* Channel manifest — mission-control style key/value list. */
.contact-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 28px 0;
  border-top: 1px dashed rgba(var(--c-cyan), 0.22);
  border-bottom: 1px dashed rgba(var(--c-cyan), 0.22);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
}
.contact-meta > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(var(--c-cyan), 0.10);
}
.contact-meta > div:last-child { border-bottom: 0; }
.contact-meta dt {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.contact-meta dd {
  color: var(--cyan);
  margin: 0;
  letter-spacing: 0.06em;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin: 0;
  justify-content: flex-start;
}

/* ── HUD tactical buttons (matches hero .btn-primary / .btn-secondary) ── */
.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 0;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 150ms ease-out, color 150ms ease-out,
              box-shadow 150ms ease-out, border-color 150ms ease-out,
              transform 80ms ease-out;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0, 100% 10px,
    100% 100%,
    10px 100%, 0 calc(100% - 10px)
  );
  background: rgba(var(--c-cyan), 0.16);
  border: 1px solid var(--cyan);
  color: var(--white);
  box-shadow: inset 0 0 14px rgba(var(--c-cyan), 0.18);
}
.email-btn:hover {
  background: rgba(var(--c-cyan), 0.28);
  color: var(--white);
  box-shadow:
    inset 0 0 18px rgba(var(--c-cyan), 0.35),
    0 0 16px rgba(var(--c-cyan), 0.25);
}
.email-btn:active { transform: translateY(1px); }
.email-btn .btn-bracket { color: rgba(var(--c-white), 0.7); font-weight: 400; }

.email-btn.secondary {
  background: transparent;
  border: 1px solid rgba(var(--c-cyan), 0.45);
  color: var(--cyan);
  box-shadow: inset 0 0 12px rgba(var(--c-cyan), 0.05);
}
.email-btn.secondary:hover {
  background: rgba(var(--c-cyan), 0.08);
  border-color: var(--cyan);
  color: var(--white);
  box-shadow:
    inset 0 0 14px rgba(var(--c-cyan), 0.18),
    0 0 14px rgba(var(--c-cyan), 0.18);
}
.email-btn.secondary .btn-bracket { color: rgba(var(--c-cyan), 0.65); }

@media (min-width: 601px) {
  .contact-buttons {
    flex-direction: row;
  }
  .contact-buttons .email-btn {
    flex: 1;
  }
}

footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--cyan-dim);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  background: var(--bg2);
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.15em;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.notify {
  position: fixed; bottom: 40px; right: 40px;
  padding: 14px 24px;
  background: var(--bg2);
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.notify.show { opacity: 1; transform: translateY(0); }

/* Coordinates HUD box & Radial Glow */
.hero-coords-hud {
  position: absolute;
  bottom: 60px;
  right: 48px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cyan-dim);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--text);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
  pointer-events: none;
}
.hud-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.hud-lbl {
  color: var(--muted);
}
.hud-val {
  color: var(--cyan);
  font-weight: 500;
}
.hero-glow {
  display: none;
}

@media (max-width: 1024px) {
  #hero { padding: 110px 24px 80px 24px; align-items: center; }
  .hero-content { align-items: center; text-align: center; max-width: 640px; }
  .hud-frame-header { justify-content: center; gap: 16px; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 900px) {
  nav { padding: 12px 24px; }
  .nav-coords { display: none; }
  .nav-status { gap: 12px; }
  .nav-lang { padding-left: 12px; margin-left: 0; }
  section { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .cap-grid { grid-template-columns: 1fr; }
  .mission-inner { grid-template-columns: 1fr; gap: 48px; }
  .mission-visual { min-height: 280px; }
  .telem-bar { padding: 0 24px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  /* Decorative target-coords HUD floats over the centered CTA buttons on
     narrow screens — hide it so nothing overlaps the hero panel. */
  .hero-coords-hud { display: none; }
  /* Give the centered hero panel breathing room above the telemetry bar. */
  #hero { padding-bottom: 72px; }
}

@media (max-width: 500px) {
  .logo-text { font-size: 1rem; letter-spacing: 0.1em; }
  .status-pill { display: none; }
  .nav-lang { padding-left: 8px; gap: 8px; }
  nav { padding: 10px 16px; }
}

@media (max-width: 600px) {
  section { padding: 64px 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .contact-buttons { flex-direction: column; }
  .coming-box { padding: 22px 18px 26px 18px; }
  .contact-meta > div { grid-template-columns: 92px 1fr; }
  .contact-meta dt { font-size: 0.62rem; letter-spacing: 0.10em; }
}

/* ── Blog article reading box ──────────────────────────────
   Used on blog.html / blog-is.html. Roomy on desktop, but the side
   padding has to collapse on phones or the text column gets squeezed
   into an unreadable strip. The class beats .coming-box on specificity
   so it controls padding even though the element also carries .coming-box. */
.coming-box.article-box { padding: 48px; }
@media (max-width: 600px) {
  .coming-box.article-box { padding: 28px 18px; }
}
