:root {
  --bg: #0b0d10;
  --panel: #0f1216;
  --text: #d7e2db;
  --muted: #8aa39b;
  --accent: #00ff88;
  --accent-dim: #00c46a;
  --error: #ff3b30;
  --rule: #20262c;
  --maxw: 1080px;
}

/* Global Reset and Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: top .2s ease;
  z-index: 1000;
}
.skip-link:focus { top: 16px; }

/* Inline SVG wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  user-select: none;
}
.wordmark .ml {
  font-weight: 700;
  letter-spacing: 0.5px;
}
.wordmark .spark {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(0,255,136,.35));
}

/* Terminal hero */
.hero {
  padding: 48px 0 24px;
}
.terminal {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.terminal::after {
  /* subtle scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #0c0f13;
  border-bottom: 1px solid var(--rule);
}
.dots {
  display: inline-flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2f36;
  border: 1px solid #1b1f25;
}
.dot.red { background: #ff5f56; border-color: #c6463e; }
.dot.yellow { background: #ffbd2e; border-color: #c29223; }
.dot.green { background: #27c93f; border-color: #1b8f2c; }
.terminal-title {
  color: var(--muted);
  font-size: 14px;
}
.terminal-body {
  padding: 20px;
  font-size: 16px;
}

.line {
  display: block;
  margin: 6px 0;
  white-space: nowrap;
}
.prompt {
  color: var(--muted);
}
.cmd {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,255,136,.25);
}
.cursor {
  display: inline-block;
  width: 8px;
  background: var(--accent);
  margin-left: 4px;
  translate: 0 2px;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

/* Sections */
main { border-top: 1px solid var(--rule); }
section {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: 0; }

h2 {
  font-size: clamp(24px, 5vw, 40px);
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
.kicker {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lead {
  font-size: 18px;
  color: var(--text);
  max-width: 84ch;
}
ul.values {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}
ul.values li {
  background: #0c1014;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 12px;
  color: var(--text);
}
ul.values li .bullet {
  color: var(--accent);
  margin-right: 8px;
}

/* Footer / Contact */
footer {
  padding: 32px 0 48px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  justify-content: space-between;
}
.contact a {
  font-weight: 600;
}

/* Keyboard nav hint */
.kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Reduced motion friendly hover */
@media (hover: hover) {
  .terminal:hover .cmd { color: var(--accent-dim); }
}
/* Header bar layout: logo left, nav right */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.top-nav .prompt {
  color: var(--muted);
  margin-right: 6px;
}

/* Responsive handling to avoid overflow on small screens */
@media (max-width: 520px) {
  .header-bar { flex-wrap: wrap; }
  .top-nav { font-size: 14px; gap: 6px; }
}
/* Programs section logos */
.program-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 12px;
}

.program-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--text);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.program-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 220px;
  filter: saturate(0.9) contrast(1.05);
}

@media (hover: hover) {
  .program-logo:hover img {
    filter: saturate(1) contrast(1.1);
  }
}

@media (max-width: 520px) {
  .program-logo img {
    height: 28px;
  }
}