/* Per-section layout styles. Sections land incrementally (issues #2–#10). */

/* ---------- Header (issue #2) ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 110px;
  padding-inline: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}

.brand-word em {
  font-style: normal;
  color: var(--green-text);
}

.site-nav {
  display: flex;
  gap: 42px;
  margin-left: auto;
  margin-right: auto;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.015em;
  color: #c6c6c6;
  transition: color 120ms ease;
}

.site-nav a:hover {
  color: var(--text-hi);
}

.btn-github {
  height: 47px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  gap: 9px;
}

/* ---------- Hero (issue #3) ---------- */

.hero {
  position: relative;
  height: 1009px;
  background: var(--bg-black);
  overflow: hidden;
}

/* 60px grid over the hero, fading out radially */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 193, 148, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 193, 148, 0.10) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -3px -10px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 45% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 85% at 45% 40%, #000 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-left: 72px;
}

.hero-copy {
  flex: 0 0 auto;
  padding-top: 322px;
  max-width: 920px;
}

.hero-copy .eyebrow {
  font-size: 17px;
  letter-spacing: 0;
  padding: 10px 13px;
  border-radius: 8px;
  gap: 10px;
}

.hero-copy .eyebrow::before {
  width: 12px;
  height: 12px;
}

.hero-title {
  margin-top: 19px;
  font-size: 67px;
  font-weight: 500;
  line-height: 92px;
  color: var(--text-hi);
}

.hero-title .accent {
  color: var(--green-bright);
}

.hero-lede {
  margin-top: 34px;
  font-size: 24px;
  font-weight: 300;
  line-height: 28px;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  gap: 22px;
  margin-top: 47px;
}

.hero-actions .btn {
  height: 54px;
  padding: 0 31px;
  border-radius: 8px;
  font-size: 15px;
}

/* terminal pinned to the right edge of the frame */
.hero-terminal {
  position: absolute;
  top: 165px;
  left: 980px;
  right: 28px;
  border-radius: 12px;
}

.hero-terminal::after {
  /* soft green glow behind the window */
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(34, 193, 148, 0.10), transparent 70%);
}

.hero-terminal .terminal-header {
  height: 64px;
  padding: 0 32px;
}

.hero-terminal .terminal-body {
  padding: 40px 40px 40px 68px;
  font-size: 19px;
  line-height: 27px;
}

.t-line + .t-line {
  margin-top: 17px;
}

.t-line.t-gap {
  margin-top: 25px;
}

.t-body { color: var(--text-body); }

/* ---------- About Hypertensor (issue #4) ---------- */

.about {
  background: var(--bg-tint);
  padding: 120px 0 110px;
}

.about .section-head {
  gap: 0;
}

.about-title {
  margin-top: 37px;
  font-size: 57px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -0.01em;
}

.about-sub {
  margin-top: 22px;
  max-width: 1255px;
  font-size: 19px;
  line-height: 32px;
  color: var(--text-body);
}

.pillar-grid {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar-grid .card {
  min-height: 252px;
  padding: 31px 25px;
}

.pillar-grid .card-index {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.pillar-grid .card-title {
  margin-top: 33px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.pillar-grid .card-body {
  margin-top: 29px;
  font-size: 19px;
  line-height: 28px;
}

/* ---------- Core Functionalities toolkit (issue #5) ---------- */

.toolkit {
  background: var(--bg-page);
  padding-block: 121px;
}

.toolkit .section-head {
  gap: 0;
}

.toolkit .eyebrow {
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 6px;
}

.toolkit-title {
  margin-top: 31px;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.toolkit-sub {
  margin-top: 30px;
  max-width: 1140px;
  font-size: 17px;
  line-height: 32px;
  color: var(--text-body);
}

.toolkit-grid {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 356px;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-md);
  transition: border-color 120ms ease;
}

.tool-card.is-highlight {
  border-color: var(--green);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #0e1b18;
  color: var(--green-text);
}

.tool-icon svg {
  width: 30px;
  height: 30px;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #2f8568;
  background: #0e1b18;
  padding: 6px 10px;
  border-radius: 5px;
}

.tool-title {
  margin-top: 34px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-hi);
}

.tool-body {
  margin-top: 18px;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
}

.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #1a1a1a;
}

.tool-cmd {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-body);
}

.tool-copy {
  display: inline-flex;
  color: var(--text-faint);
  transition: color 120ms ease;
}

.tool-copy:hover {
  color: var(--text-hi);
}

/* ---------- Operator Lifecycle Workflow (issue #6) ---------- */

.lifecycle {
  background: var(--bg-tint);
  padding: 120px 0 102px;
}

.lifecycle .section-head {
  gap: 0;
}

.lifecycle .eyebrow {
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 6px;
}

.lifecycle-title {
  margin-top: 31px;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lifecycle-sub {
  margin-top: 22px;
  max-width: 1000px;
  font-size: 17px;
  line-height: 32px;
  color: var(--text-body);
}

.stepper {
  margin-top: 56px;
}

.step-tabs {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-panel);
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-md);
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
  padding: 21px 8px;
  border: 1px solid #232323;
  border-radius: 8px;
  background: #0d0d0d;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-body);
  white-space: nowrap;
  transition: border-color 120ms ease, color 120ms ease;
}

.step-tab:hover {
  border-color: #3a3a3a;
  color: var(--text-hi);
}

.step-tab .step-num {
  color: var(--text-faint);
}

.step-tab.is-active {
  border-color: var(--green);
  background: #0c1714;
  color: var(--text-hi);
}

.step-tab.is-active .step-num {
  color: var(--green-text);
}

.stepper-panels {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 24px;
  margin-top: 60px;
  height: 435px;
}

.stage-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-count {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green-text);
}

.stage-count b {
  font-weight: 500;
}

.stage-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: #161616;
  padding: 6px 12px;
  border-radius: 5px;
}

.stage-title {
  margin-top: 26px;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-hi);
}

.stage-desc {
  margin-top: 18px;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
}

.stage-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--line-card);
}

.stage-prev,
.stage-next {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 7px;
}

.stage-prev {
  color: var(--text-faint);
  background: #0e1512;
}

.stage-prev:disabled {
  opacity: 0.5;
  cursor: default;
}

.stage-next {
  color: var(--green-text);
  background: #0c1714;
  border: 1px solid var(--line-accent-dim);
}

.stage-next:hover {
  background: #102019;
}

.stage-progress {
  flex: 1;
  display: flex;
  justify-content: center;
}

.stage-progress i {
  display: block;
  width: 40px;
  height: 8px;
  background: var(--green);
  border-radius: 4px;
}

.stage-terminal .terminal-header {
  height: 56px;
  padding: 0 22px;
}

.stage-terminal .terminal-body {
  padding: 26px 28px;
  font-size: 16px;
  line-height: 28px;
}

.stage-terminal .terminal-body .t-line {
  white-space: pre;
}

.stage-terminal .t-blank {
  height: 10px;
}

/* ---------- Reference (issue #7) ---------- */

.reference {
  background: var(--bg-page);
  padding: 80px 0 120px;
}

.reference-grid {
  display: grid;
  grid-template-columns: 571px 1141px;
  gap: 64px;
  align-items: center;
}

.reference-copy {
  transform: translateY(20px);
}

.reference-title {
  margin-top: 34px;
  font-size: 57px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.01em;
}

.reference-text {
  margin-top: 20px;
  max-width: 540px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
}

.reference-terminal {
  border-radius: var(--radius-md);
}

.reference-term-title {
  text-align: right;
  flex: 1;
}

.reference-term-body {
  white-space: pre;
  overflow-x: auto;
  padding: 18px 36px 52px;
  font-size: 16px;
  line-height: 32px;
  color: var(--text-body);
}

.reference-term-body .t-white { color: var(--text-hi); }
.reference-term-body .t-soft { color: #c6cdc9; }
.reference-term-body .t-green { color: var(--green-text); }

/* ---------- Why Engineers Choose HTCLI (issue #8) ---------- */

.why {
  background: var(--bg-tint);
  padding: 124px 0 91px;
}

.why .section-head {
  gap: 0;
}

.why .eyebrow {
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 6px;
}

.why-title {
  margin-top: 31px;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.why-sub {
  margin-top: 22px;
  max-width: 1100px;
  font-size: 17px;
  line-height: 32px;
  color: var(--text-body);
}

.why-grid {
  list-style: none;
  margin: 61px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  min-height: 371px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid #1c2523;
  border-radius: var(--radius-md);
  transition: border-color 140ms ease;
}

.why-card.is-highlight {
  border-color: var(--green);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #0e1b18;
  border: 1px solid #173a30;
  color: var(--green-text);
}

.why-icon svg {
  width: 30px;
  height: 30px;
}

.why-card-title {
  margin-top: 32px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-hi);
}

.why-card-body {
  margin-top: 20px;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
}

.why-card-body code {
  color: var(--green-text);
}

/* ---------- See HTCLI in Action (issue #9) ---------- */

.inaction {
  background: var(--bg-page);
  padding: 2px 0 6px;
}

.inaction .section-head {
  gap: 0;
}

.inaction .eyebrow {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
}

.inaction-title {
  margin-top: 10px;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.inaction-sub {
  margin-top: 22px;
  max-width: 1180px;
  font-size: 17px;
  line-height: 32px;
  color: var(--text-body);
}

.report-grid {
  list-style: none;
  margin: 82px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px 42px;
}

.report-card {
  background: var(--bg-terminal);
  border: 1px solid var(--line-terminal);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.report-header {
  height: 52px;
  padding: 0 22px;
  background: var(--bg-terminal-header);
}

.report-file {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.report-copy {
  font-size: 12px;
  gap: 7px;
}

.report-body {
  padding: 24px 24px 22px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 28px;
  overflow-x: auto;
}

.report-body .t-line { white-space: pre; }
.report-body .t-line + .t-line { margin-top: 0; }
.report-body .t-blank { height: 12px; }
.report-body .t-white { color: var(--text-hi); }
.report-body .t-green { color: var(--green-text); }
.report-body .t-dim { color: #6c736f; }
.report-body .t-body { color: var(--text-body); }

.cpu-bar {
  display: inline-block;
  width: 150px;
  height: 11px;
  vertical-align: middle;
  border: 1px solid #2a322f;
  border-radius: 2px;
  background: #0a100e;
}

.cpu-bar i {
  display: block;
  width: 20%;
  height: 100%;
  background: #8a928d;
}

.report-foot {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line-terminal);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-body);
}

/* ---------- Stable Pip Configuration (issue #10) ---------- */

.pip {
  background: var(--bg-tint);
  padding: 78px 0 96px;
}

.pip .section-head { gap: 0; }

.pip .eyebrow {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
}

.pip-title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-hi);
}

.pip-sub {
  margin-top: 22px;
  max-width: 900px;
  font-size: 17px;
  line-height: 30px;
  color: var(--text-body);
}

.pip-actions {
  display: flex;
  gap: 23px;
  margin-top: 62px;
}

.pip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-btn);
  border-radius: 8px;
  background: #0c0c0c;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-hi);
  transition: border-color 120ms ease;
}

.pip-btn:hover { border-color: #3a3a3a; }
.pip-btn svg { color: var(--green-text); }

.pip-console {
  width: 1160px;
  margin: 56px auto 0;
  background: var(--bg-terminal);
  border: 1px solid var(--line-terminal);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pip-console-header {
  height: 58px;
  padding: 0 24px;
  background: var(--bg-terminal-header);
}

.pip-console-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.pip-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-text);
  background: var(--bg-eyebrow);
  padding: 6px 12px;
  border-radius: 5px;
}

.pip-console-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 54px 28px;
}

.pip-cmd {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-hi);
}

.pip-copy {
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  gap: 9px;
}

/* ---------- Join the Community (issue #10) ---------- */

.community {
  background: var(--bg-page);
  padding: 90px 0 96px;
}

.community .section-head { gap: 0; }

.community .eyebrow {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
}

.community-title {
  margin-top: 22px;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.community-sub {
  margin-top: 22px;
  max-width: 900px;
  font-size: 17px;
  line-height: 30px;
  color: var(--text-body);
}

.community-grid {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  transition: border-color 140ms ease;
}

.community-card.is-highlight { border-color: var(--line-accent-dim); }

.community-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
}

.community-icon {
  display: inline-flex;
  color: var(--green-text);
}

.community-card-title {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-hi);
}

.community-card-body {
  margin-top: 16px;
  max-width: 280px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-muted);
}

/* ---------- Footer (issue #10) ---------- */

.site-footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--line-card);
}

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

.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 23px;
}

.footer-brand .brand-word {
  font-size: 40px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
}

.footer-copy .accent { color: var(--green-text); }
