/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 120px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  border-top: none;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 64px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 32px;
}

.hero-meta-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-meta .sep {
  color: var(--fg-3);
}

.hero h1 {
  font-size: clamp(48px, 9.5vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-wrap: balance;
}

.hero h1 .stroke {
  -webkit-text-stroke: 1px var(--fg);
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
}

.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.hero h1 .cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.85em;
  background: var(--accent);
  margin-left: 0.06em;
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-desc {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--fg-2);
  max-width: 46ch;
  text-wrap: pretty;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 16px 24px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--fg);
  transform: translateY(-2px);
}

.btn-primary .arrow {
  transition: transform 0.25s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* HUD readouts in hero */
.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.hud-tl { top: 88px; left: var(--pad); }
.hud-tr { top: 88px; right: var(--pad); text-align: right; }
.hud-bl { bottom: 24px; left: var(--pad); }
.hud-br { bottom: 24px; right: var(--pad); text-align: right; }

.hud-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.hud-line .key { color: var(--fg-3); }
.hud-line .val { color: var(--fg); }

@media (max-width: 760px) {
  .hud-tl, .hud-tr { display: none; }
}

/* Performance ticker */
.ticker {
  position: relative;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-2);
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-2);
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ticker-track .accent {
  color: var(--accent);
}

.ticker-track .star {
  color: var(--fg-3);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Boot panel */
.boot-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  position: relative;
  overflow: hidden;
}

.boot-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}

.boot-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -8px -10px 16px;
  font-size: 11px;
  color: var(--fg-3);
}

.boot-panel-header .dots {
  display: flex;
  gap: 6px;
}

.boot-panel-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg-3);
  opacity: 0.5;
}

.boot-line {
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
}

.boot-line .ts { color: var(--fg-3); }
.boot-line .tag { color: var(--accent); }
.boot-line .ok { color: var(--accent); margin-left: auto; }
.boot-line .msg { color: var(--fg); }

.boot-line.warn .tag { color: var(--warn); }

/* CPU/RAM gauges */
.gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.gauge {
  background: var(--bg-3);
  border-radius: 6px;
  padding: 10px 12px;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-3);
  margin-bottom: 6px;
}

.gauge-label .val { color: var(--accent); }

.gauge-bar {
  height: 4px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.gauge-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ============================================
   HERO — clean (rig moved to its own section)
   ============================================ */
.hero-spectrum {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 86px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 var(--pad);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.hero-spectrum .hs-bar {
  flex: 1;
  max-width: 6px;
  background: linear-gradient(180deg, var(--accent), rgba(184,255,58,0.2));
  border-radius: 2px 2px 0 0;
  height: 8%;
  animation: hsBar 1.6s ease-in-out infinite alternate;
  box-shadow: 0 0 6px rgba(184,255,58,0.3);
}

@keyframes hsBar {
  0%   { height: 8%; }
  100% { height: 80%; }
}

.hero-spectrum .hs-bar:nth-child(3n)   { animation-duration: 0.9s; }
.hero-spectrum .hs-bar:nth-child(5n)   { animation-duration: 1.4s; }
.hero-spectrum .hs-bar:nth-child(7n)   { animation-duration: 2.1s; }
.hero-spectrum .hs-bar:nth-child(11n)  { animation-duration: 1.8s; }

@media (max-width: 760px) {
  .hero-spectrum { display: none; }
}
.hero-rig {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(360px, 38vw, 620px);
  height: clamp(280px, 32vw, 480px);
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.3px);
  mask-image: radial-gradient(ellipse at 65% 70%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 65% 70%, #000 30%, transparent 80%);
}

@media (max-width: 900px) {
  .hero-rig { opacity: 0.25; width: 100%; height: 50%; bottom: -10%; }
}

.hero-rig .hr-monitor {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 56%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #1a1c14, #0a0b08);
  border: 1px solid rgba(184,255,58,0.18);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-rig .hr-screen {
  width: 100%;
  height: 100%;
  background: #07080a;
  border-radius: 3px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(184,255,58,0.08);
  position: relative;
}

.hero-rig .hr-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0 2px, rgba(184,255,58,0.04) 2px 3px);
  pointer-events: none;
}

.hero-rig .hr-code-line {
  height: 4px;
  background: linear-gradient(90deg,
    rgba(184,255,58,0.5),
    rgba(184,255,58,0.2),
    transparent);
  border-radius: 2px;
  width: 0;
  animation: hrType 5s ease-out infinite;
}

.hero-rig .hr-code-line:nth-child(1) { animation-delay: 0s;   width: 80%; }
.hero-rig .hr-code-line:nth-child(2) { animation-delay: 0.6s; width: 60%; }
.hero-rig .hr-code-line:nth-child(3) { animation-delay: 1.2s; width: 90%; }
.hero-rig .hr-code-line:nth-child(4) { animation-delay: 1.8s; width: 45%; }
.hero-rig .hr-code-line:nth-child(5) { animation-delay: 2.4s; width: 70%; }

@keyframes hrType {
  0%        { transform: scaleX(0); transform-origin: left; opacity: 0; }
  10%, 80%  { transform: scaleX(1); opacity: 1; }
  100%      { transform: scaleX(1); opacity: 0; }
}

.hero-rig .hr-tower {
  position: absolute;
  bottom: 18%;
  right: 4%;
  width: 12%;
  aspect-ratio: 0.55;
  background: linear-gradient(135deg, rgba(184,255,58,0.06), rgba(0,0,0,0.4));
  border: 1px solid rgba(184,255,58,0.18);
  border-radius: 3px;
  padding: 12% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14%;
}

.hero-rig .hr-tower-fan {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(184,255,58,0.3);
  background: radial-gradient(circle, rgba(184,255,58,0.15), transparent 60%);
  position: relative;
  animation: fanSpin 1.2s linear infinite;
}

.hero-rig .hr-tower-fan::before,
.hero-rig .hr-tower-fan::after {
  content: '';
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(184,255,58,0.4);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.hero-rig .hr-tower-fan::after {
  inset: 36%;
  transform: rotate(45deg);
}

.hero-rig .hr-rgb {
  position: absolute;
  bottom: 4%;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg,
    #ff3b3b, #ffbd2e, var(--accent), #2eb8ff, #ff3bff, #ff3b3b);
  background-size: 200% 100%;
  animation: rgbFlow 5s linear infinite;
  filter: blur(0.5px);
}

.hero-rig .hr-keyboard {
  position: absolute;
  bottom: 4%;
  left: 14%;
  width: 60%;
  height: 8%;
  background:
    repeating-linear-gradient(90deg,
      rgba(184,255,58,0.18) 0 4%,
      transparent 4% 5%),
    linear-gradient(180deg, #14150f, #0a0b08);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  transform: perspective(600px) rotateX(34deg);
  transform-origin: bottom;
  animation: hrKeyboardGlow 3s ease-in-out infinite;
}

@keyframes hrKeyboardGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(184,255,58,0.12); }
  50%      { box-shadow: 0 0 24px rgba(184,255,58,0.28); }
}

.hero-rig .hr-glow {
  position: absolute;
  bottom: -10%;
  left: 10%;
  right: 0%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(184,255,58,0.18), transparent 60%);
  filter: blur(20px);
  animation: rigGlowPulse 4s ease-in-out infinite;
}

/* Push hero content above the rig */
.hero-grid { position: relative; z-index: 1; }
.hud { z-index: 2; }
