/* =========================================================
   Utility Microsystems — Site Stylesheet
   A dark, engineering-grade theme: deep navy canvas, one
   electric-cyan signal color, circuit-board texture used
   sparingly. Space Grotesk for display type, Inter for body.
   ========================================================= */

:root {
  --bg:        #060e1c;
  --bg-soft:   #0a1729;
  --panel:     #0e1f36;
  --panel-2:   #0b1a2e;
  --line:      rgba(255,255,255,0.09);
  --accent:    #2fd8ff;
  --accent-dim:#1a8fb0;
  --text:      #eaf2fb;
  --muted:     #93a7c0;
  --muted-2:   #6d84a0;
  --radius:    14px;
  --maxw:      1160px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text); }

.muted { color: var(--muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: #04141f;
}
.btn-primary:hover { background: #55e2ff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 14, 28, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.brand img { height: 40px; width: auto; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px 26px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 82% -10%, rgba(47,216,255,0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero .circuit-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero .hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(52vw, 560px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.28;
  filter: drop-shadow(0 0 24px rgba(47,216,255,0.10));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-grid.single { grid-template-columns: 1fr; max-width: 760px; }

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

.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

.page-hero {
  padding: 68px 0 56px;
}

/* ---------- Sections / Panels ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.alt-bg { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card .card-img { width: 100%; height: 170px; object-fit: cover; }
.card .card-body { padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.card-list-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
}

/* ---------- Stats strip ---------- */
.stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: 18px;
}
.timeline .step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .step:last-child { border-bottom: none; }
.timeline .year {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
}
@media (max-width: 560px) {
  .timeline .step { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  padding: 26px 20px 28px;
}
.team-card img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--accent-dim);
}
.team-card .role { color: var(--accent); font-size: 0.92rem; font-weight: 600; margin-bottom: 10px; }

/* ---------- Roles / list rows ---------- */
.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.role-row + .role-row { margin-top: 12px; }

/* ---------- Logo strip ---------- */
.wordmark-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.wordmark {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  flex: 1;
  min-width: 180px;
  text-align: center;
}

/* ---------- FAQ ---------- */
details.faq {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.2rem;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 12px; color: var(--muted); }

/* ---------- Forms ---------- */
.field {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--muted); }
.form-row { margin-bottom: 18px; }

/* ---------- Article / legal text ---------- */
article.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
article.legal { max-width: 74ch; }
article.legal ol, article.legal ul { color: var(--muted); padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 26px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

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

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted-2); max-width: 34ch; font-size: 0.94rem; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 12px; margin-top: 6px; }
.social-icons a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.social-icons a:hover { color: var(--accent); border-color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.max-60 { max-width: 60ch; }

/* ---------- Early-stage / dynamic team additions ---------- */
.team-empty {
  text-align:center;
  padding:42px 24px;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,0.015);
}
.team-admin-links { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:18px; }
.team-meta { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.badge {
  display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px;
  border:1px solid var(--line); color:var(--muted); font-size:.78rem;
}
.notice {
  border:1px solid rgba(47,216,255,.18); background:rgba(47,216,255,.04);
  border-radius:12px; padding:14px 16px; color:var(--muted); margin-bottom:20px;
}
.error { color:#ff9a9a; margin-top:12px; }
.success { color:#8fe6bb; margin-top:12px; }
.field[type=file] { padding:10px 12px; }
.profile-preview { width:120px; height:120px; border-radius:50%; object-fit:cover; border:2px solid var(--accent-dim); margin:0 auto 18px; }

/* honour the hidden attribute even on .btn (used by seats.js) */
[hidden]{display:none !important}
