:root {
  --bg: #030b06;
  --panel-strong: rgba(8, 24, 15, 0.94);
  --line: rgba(119, 255, 168, 0.22);
  --text: #d7ffe5;
  --muted: #89b89a;
  --green: #6dff9b;
  --green-hot: #baffce;
  --shadow: 0 0 40px rgba(59, 255, 135, 0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(27, 92, 51, 0.18), transparent 30%), var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

body.booting {
  overflow: hidden;
}

#matrix-rain,
.noise,
.scanlines,
.boot-screen {
  position: fixed;
  inset: 0;
}

#matrix-rain { z-index: 0; opacity: 0.5; }

.noise {
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255,255,255,0.35) 0.55px, transparent 0.55px);
  background-size: 6px 6px;
  mix-blend-mode: soft-light;
}

.scanlines {
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 4px
  );
}

.boot-screen {
  z-index: 20;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(16, 62, 34, 0.15), rgba(1, 4, 2, 0.96));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-box {
  width: min(560px, calc(100% - 28px));
  padding: 22px;
  border-radius: 18px;
  background: rgba(4, 11, 7, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: 'Share Tech Mono', monospace;
}

.boot-label {
  margin: 0 0 14px;
  color: var(--green-hot);
}

.boot-lines {
  min-height: 86px;
  color: var(--green);
  line-height: 1.6;
  margin-bottom: 16px;
}

.boot-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.boot-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(109, 255, 155, 0.25), rgba(186, 255, 206, 0.95));
  box-shadow: 0 0 18px rgba(109, 255, 155, 0.5);
  transition: width 0.2s ease;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero-card,
.panel,
.status-tape {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(14, 32, 21, 0.75), rgba(5, 14, 9, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 24px;
  overflow: hidden;
}

.window-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 20, 13, 0.92);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.92rem;
}

.dots { display: flex; gap: 8px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }
.window-title, .window-meta { color: var(--muted); }
.window-title { text-align: center; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 34px;
}

.eyebrow,
.terminal-body,
.quote,
.quick-stats span,
.quick-stats strong,
.artifact-strip,
.status-tape,
.artifact-list {
  font-family: 'Share Tech Mono', monospace;
}

.eyebrow {
  color: var(--green);
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

h1 {
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(3rem, 9vw, 6.3rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--green-hot);
  text-shadow: 0 0 16px rgba(109, 255, 155, 0.35);
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch span,
.glitch::before,
.glitch::after {
  display: block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
}

.glitch::before {
  transform: translate(2px, -1px);
  color: rgba(112, 255, 245, 0.9);
  clip-path: inset(0 0 52% 0);
  animation: glitchShift 2.2s infinite ease-in-out alternate;
}

.glitch::after {
  transform: translate(-2px, 1px);
  color: rgba(156, 255, 108, 0.8);
  clip-path: inset(48% 0 0 0);
  animation: glitchShift 1.7s infinite ease-in-out alternate-reverse;
}

.lede {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.65;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.primary {
  background: linear-gradient(180deg, rgba(74, 255, 138, 0.22), rgba(74, 255, 138, 0.08));
  color: var(--green-hot);
}
.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.quick-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
}
.quick-stats li {
  padding: 14px;
  border-radius: 16px;
  background: rgba(11, 25, 17, 0.78);
  border: 1px solid var(--line);
}
.quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.quick-stats strong {
  color: var(--green-hot);
  font-size: 1rem;
}

.artifact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.artifact-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 23, 16, 0.82);
  color: var(--green-hot);
  font-size: 0.84rem;
}

.terminal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  overflow: hidden;
  height: clamp(320px, 52vh, 430px);
}

.terminal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%, transparent 80%, rgba(255,255,255,0.02));
}

.terminal-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--green-hot);
  font-family: 'Share Tech Mono', monospace;
  background: rgba(6, 14, 9, 0.96);
}

.terminal-body {
  position: relative;
  flex: 1;
  overflow: hidden auto;
  padding: 18px 16px 22px;
  color: var(--green);
  line-height: 1.6;
  font-size: 0.95rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(186,255,206,0.3) transparent;
}

.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(186,255,206,0.25);
  border-radius: 999px;
}

.line { margin-bottom: 8px; }
.prompt { color: var(--green-hot); }
.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  transform: translateY(2px);
  background: var(--green-hot);
  animation: blink 1s steps(1) infinite;
}

.status-tape {
  overflow: hidden;
  border-radius: 18px;
  margin-top: 18px;
  padding: 12px 0;
}

.tape-track {
  display: inline-flex;
  gap: 42px;
  white-space: nowrap;
  padding-left: 100%;
  color: var(--green-hot);
  animation: tapeMove 24s linear infinite;
}

.panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border-radius: 22px;
  padding: 24px;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--green-hot);
  text-transform: lowercase;
}
.panel p,
.artifact-list li {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}
.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  color: var(--green-hot);
}
.quote-sub {
  margin-top: 10px !important;
  color: var(--muted) !important;
}

.artifact-list {
  margin: 0;
  padding-left: 18px;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes tapeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes glitchShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(2px, -1px); }
  40% { transform: translate(-3px, 1px); }
  60% { transform: translate(1px, 1px); }
  80% { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 1080px) {
  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .panels {
    grid-template-columns: 1fr;
  }

  .window-bar {
    grid-template-columns: auto 1fr;
  }

  .window-meta {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero-grid {
    padding: 20px;
    gap: 18px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .terminal-card {
    height: 330px;
  }

  .btn {
    width: 100%;
  }

  .artifact-strip span {
    width: 100%;
    text-align: center;
  }
}
