/* ===== Tokens ===== */
:root {
  --bg: #0B1220;
  --bg-raise: #101a2c;
  --surface: #121c30;
  --surface-2: #16223a;
  --border: #24314A;
  --border-soft: #1B2740;
  --text: #E7EBF3;
  --text-muted: #8A96AC;
  --text-faint: #5C6A85;

  --amber: #F2A93B;
  --amber-dim: #B87F26;
  --green: #4FD1A5;
  --red: #F0614B;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --maxw: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* faint dot-grid backdrop, evokes a monitoring dashboard grid */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--border-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

main, header, footer { position: relative; z-index: 1; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.wordmark .mark { color: var(--text-muted); flex-shrink: 0; }
.wordmark.small { font-size: 0.95rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
}
.main-nav a { color: var(--text-muted); transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); }

.nav-cta {
  background: var(--amber);
  color: #16130A;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-cta:hover { background: #ffc266; color: #16130A; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #16130A; }
.btn-primary:hover { background: #ffc266; }
.btn-primary:disabled { background: var(--border); color: var(--text-faint); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero-kicker {
  font-size: 0.92rem;
  color: var(--amber);
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  color: var(--text);
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.status-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.status-strip li { display: flex; align-items: center; gap: 10px; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 8px rgba(79,209,165,0.5); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(242,169,59,0.5); }
.dot-red { background: var(--red); }

/* hero visual: terminal-framed topology */
.topo-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}

.topo-titlebar, .ticket-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
}

.dot-lg { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-red-lg { background: #4a2e29; }
.dot-amber-lg { background: #4a3d29; }
.dot-green-lg { background: #294a3a; }

.topo-path {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.topo-svg { width: 100%; height: auto; display: block; }
.topo-links line { opacity: 0.8; }
.node-green { fill: var(--green); }
.node-amber { fill: var(--amber); }
.node-red { fill: var(--red); }
.node { stroke: var(--bg); stroke-width: 2; }

.node-pulse {
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { filter: drop-shadow(0 0 0 rgba(242,169,59,0.6)); }
  50%  { filter: drop-shadow(0 0 6px rgba(242,169,59,0.5)); }
  100% { filter: drop-shadow(0 0 0 rgba(242,169,59,0)); }
}

.topo-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--text-faint);
}
.topo-label-amber { fill: var(--amber-dim); }
.topo-label-red { fill: #8a4238; }

.topo-footer {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
}

/* ===== Section shared ===== */
section { padding: 72px 0; }
.section-head { margin-bottom: 40px; max-width: 60ch; }
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--text);
  margin-bottom: 10px;
}
.section-head p { font-size: 1.02rem; }

/* ===== Highlights (catchy pillar cards) ===== */
.highlights { padding-top: 8px; padding-bottom: 64px; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.highlight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.highlight-card:hover, .highlight-card:focus-visible {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.highlight-glyph { font-size: 1.4rem; }
.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.highlight-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

/* ===== Services tree ===== */
.service-tree {
  border-top: 1px solid var(--border);
}
.service-row { border-bottom: 1px solid var(--border); }

.service-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto 20px;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  padding: 24px 4px;
  cursor: pointer;
}
.service-glyph { font-size: 1.15rem; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.service-sub {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  justify-self: end;
}
.chev {
  color: var(--text-faint);
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}
.service-row[data-open="true"] .chev { transform: rotate(180deg); color: var(--amber); }

.service-children {
  list-style: none;
  margin: 0;
  padding: 0 4px 28px 50px;
  display: grid;
  gap: 12px;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.28s ease;
}
.service-row[data-open="true"] .service-children {
  grid-template-rows: 1fr;
  padding-top: 2px;
}
.service-children > li {
  min-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}
.service-children li strong { color: var(--text); font-weight: 500; }

/* ===== Engineers ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.profile-titlebar {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}
.profile-spec {
  margin: 0;
  padding: 20px 20px 22px;
  display: grid;
  gap: 14px;
}
.profile-spec > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: baseline;
}
.profile-spec dt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber-dim);
}
.profile-spec dd {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.coverage-callout {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 2px solid var(--amber);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.coverage-callout p {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 68ch;
}
.coverage-callout strong { color: var(--text); font-weight: 600; }

/* ===== Engagement pipeline ===== */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pipeline-stage {
  position: relative;
  padding: 22px 22px 22px 0;
  border-top: 2px solid var(--border);
}
.pipeline-stage::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--amber);
}
.stage-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-dim);
  display: block;
  margin-bottom: 10px;
}
.pipeline-stage h3 {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 8px;
}
.pipeline-stage p { font-size: 0.92rem; }

/* ===== Request / ticket form ===== */
.ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 720px;
}
.ticket-form { padding: 26px 26px 24px; display: grid; gap: 20px; }

.form-row { display: grid; gap: 8px; }
.form-row.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row.two-col > div { display: grid; gap: 8px; }

label {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

input, select, textarea {
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 13px;
  width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.form-hint { font-size: 0.85rem; max-width: 34ch; }
.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="err"] { color: var(--red); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-tag { margin-top: 10px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  border-top: 1px solid var(--border-soft);
  padding: 18px 28px;
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .profile-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 24px; }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-raise);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 28px; width: 100%; }
  .main-nav a.nav-cta { margin: 8px 28px; width: calc(100% - 56px); }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .service-toggle { grid-template-columns: 24px 1fr 20px; }
  .service-sub { display: none; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
