.hero {
  padding: clamp(4rem, 7vw, 7rem) 0 0;
  background: var(--bg);
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero .eyebrow {
  color: var(--green);
  margin-bottom: 2rem;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.7rem, 6.8vw, 7rem);
  line-height: 1.02;
  margin-bottom: 1.8rem;
}

.hero h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  margin-top: .35em;
  background: var(--brand-spectrum);
}

.hero-lede {
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  margin-bottom: 2rem;
}

.hero .button-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}

.hero .button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.hero .button-text {
  color: var(--ink);
  border-color: var(--line);
}

.hero .button-text:hover {
  color: var(--green);
  border-color: var(--green);
}

.hero-diagram {
  overflow: hidden;
  border: 1px solid #82ab8d;
  border-radius: 18px;
  background: #1b3026;
  box-shadow: var(--shadow);
  color: #a9d6b5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.diagram-heading,
.diagram-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  color: #b9d9bf;
  font-size: .68rem;
  letter-spacing: .04em;
}

.diagram-heading {
  background: #2a4635;
  border-bottom: 1px solid #60826a;
}

.terminal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.terminal-connection { color: #8cdaa2; font-size: .63rem; }

.terminal-command {
  padding: 1rem 1rem 0;
  font-size: .75rem;
  color: #e1eee3;
  white-space: nowrap;
}

.terminal-command > span:first-child { color: #8cdaa2; }
.terminal-cursor { color: #f297c2; animation: terminal-cursor 1.3s step-end infinite; }

@keyframes terminal-cursor {
  50% { opacity: .2; }
}

.hero-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  color: #a1d4ad;
}

.terminal-viewport { padding: 0 1rem; }

.diagram-footer {
  justify-content: space-between;
  border-top: 1px solid #60826a;
  background: #24402f;
}

.diagram-footer span:first-child { color: #8cdaa2; }
.diagram-footer span:last-child { color: #f297c2; }

.hero-principles {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: .76rem;
  letter-spacing: .07em;
}

.hero-principles strong {
  margin-left: .8rem;
  color: var(--ink);
  font-weight: 600;
}

.hero-principles span:first-child { color: var(--brand-amber); }
.hero-principles span:nth-child(2) { color: var(--brand-magenta); }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-diagram { max-width: 580px; width: 100%; }
}

@media (max-width: 450px) {
  .hero h1 { font-size: clamp(3rem, 12vw, 4rem); }
  .hero .eyebrow { font-size: .63rem; }
  .terminal-connection { display: none; }
  .diagram-footer { gap: .5rem; font-size: .55rem; }
  .terminal-command { font-size: .66rem; }
  .hero-principles { display: grid; gap: .8rem; }
}

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