/* ===== HERO ===== */
.hero {
  padding: 100px 0 120px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 72px 0 80px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--attack);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.eyebrow-line {
  width: 28px; height: 1px;
  background: var(--attack);
}

h1.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.th-line {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(.22,.7,.28,1), transform 0.9s cubic-bezier(.22,.7,.28,1);
}
.js-ready .th-line {
  opacity: 0;
  transform: translateY(20px);
}
.js-ready .th-line.in {
  opacity: 1;
  transform: translateY(0);
}
.th-accent { color: var(--attack); font-style: italic; font-weight: 300; }
h1.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--attack);
  display: inline-block;
  position: relative;
}
h1.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  height: 3px;
  background: var(--attack);
  opacity: 0.25;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Terminal ===== */
.hero-right { display: flex; flex-direction: column; gap: 14px; }

.terminal {
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px var(--line) inset,
    0 0 60px rgba(232, 93, 36, 0.05);
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(232, 93, 36, 0.03) 0px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}
.term-head {
  display: flex; align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.term-dots { display: flex; gap: 6px; }
.td {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink-mute);
  opacity: 0.55;
}
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }
.term-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}
.term-meta {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--attack-dim);
  color: var(--attack);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.term-meta.connected {
  background: var(--defense-dim);
  color: var(--defense);
}
.term-body {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  padding: 18px 16px 20px;
  min-height: 360px;
  max-height: 420px;
  overflow-y: auto;
  color: var(--ink);
}
.term-body::-webkit-scrollbar { width: 4px; }
.term-body::-webkit-scrollbar-thumb { background: var(--line-strong); }
.tl { display: block; white-space: pre-wrap; word-break: break-word; }
.tl-prompt { color: var(--attack); }
.tl-path { color: var(--defense); }
.tl-cmd { color: var(--ink); }
.tl-out { color: var(--ink-dim); }
.tl-warn { color: var(--warn); }
.tl-err { color: var(--err); }
.tl-dim { color: var(--ink-mute); }
.tl-ok { color: var(--defense); }
.tl-accent { color: var(--attack); }
.caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--attack);
  vertical-align: -2px;
  margin-left: 2px;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.term-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.term-caption b { color: var(--attack); font-weight: 500; }
