:root {
  --bg: #020807;
  --green: #00ff9d;
  --green-2: #62ffd0;
  --green-dark: #003f2f;
  --cyan: #00f0ff;
  --red: #ff3158;
  --text: #eafff7;
  --muted: #8ebcaf;
  --panel: rgba(0, 34, 27, 0.72);
  --border: rgba(0, 255, 157, 0.28);
  --shadow: 0 0 42px rgba(0, 255, 157, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 255, 157, 0.18), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(0, 240, 255, 0.14), transparent 32%),
    radial-gradient(circle at 45% 95%, rgba(0, 255, 157, 0.10), transparent 40%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 42px 42px, 42px 42px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  animation: scanlines 6s linear infinite;
}

@keyframes scanlines {
  from { transform: translateY(0); }
  to { transform: translateY(30px); }
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  opacity: 0.85;
}

.digital-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,255,157,0.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(0deg, rgba(0,255,157,0.06) 0 1px, transparent 1px 10px);
  animation: noiseShift 5s steps(8) infinite;
}

@keyframes noiseShift {
  0% { transform: translate(0,0); }
  25% { transform: translate(8px,-5px); }
  50% { transform: translate(-6px,7px); }
  75% { transform: translate(4px,4px); }
  100% { transform: translate(0,0); }
}

.orb {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.22;
  z-index: -2;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb.one {
  top: 10%;
  left: -130px;
  background: var(--green);
}

.orb.two {
  right: -160px;
  bottom: 4%;
  background: var(--cyan);
  animation-delay: -4s;
}

@keyframes floatOrb {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(70px,-45px,0) scale(1.13); }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0,255,157,0.08);
  color: var(--green);
  box-shadow: 0 0 22px rgba(0,255,157,0.16), inset 0 0 18px rgba(0,255,157,0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--green);
  background: rgba(0,255,157,0.08);
  box-shadow: 0 0 18px rgba(0,255,157,0.13);
}

.hero {
  flex: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 42px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 10px 14px;
  border: 1px solid rgba(0,255,157,0.28);
  border-radius: 999px;
  background: rgba(0,255,157,0.07);
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0,255,157,0.14);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,255,157,0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,157,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(0,255,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,157,0); }
}

.code-title {
  position: relative;
  max-width: 760px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3.3rem, 8vw, 8.2rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.code-title span {
  position: relative;
  display: block;
  color: transparent;
  background:
    linear-gradient(180deg, #eafff7 0%, var(--green-2) 20%, var(--green) 54%, #00b875 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.7) 0 2px, rgba(255,255,255,0.25) 2px 3px, transparent 3px 8px);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 10px rgba(0,255,157,0.32),
    0 0 28px rgba(0,255,157,0.22),
    0 0 52px rgba(0,255,157,0.14);
  animation: greenTitleGlow 2.8s ease-in-out infinite alternate;
}

.code-title span::before,
.code-title span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.code-title span::before {
  background: linear-gradient(180deg, #8affdd, var(--green));
  transform: translate(2px, 0);
  clip-path: inset(0 0 58% 0);
  animation: greenGlitchOne 2.2s infinite linear alternate-reverse;
}

.code-title span::after {
  background: linear-gradient(180deg, var(--cyan), var(--green));
  transform: translate(-2px, 0);
  clip-path: inset(52% 0 0 0);
  animation: greenGlitchTwo 1.9s infinite linear alternate-reverse;
}

@keyframes greenTitleGlow {
  from { filter: brightness(0.95); }
  to { filter: brightness(1.22); }
}

@keyframes greenGlitchOne {
  0% { clip-path: inset(0 0 78% 0); transform: translate(1px,0); }
  20% { clip-path: inset(18% 0 58% 0); transform: translate(4px,-1px); }
  40% { clip-path: inset(42% 0 34% 0); transform: translate(-2px,1px); }
  60% { clip-path: inset(8% 0 72% 0); transform: translate(3px,0); }
  80% { clip-path: inset(64% 0 12% 0); transform: translate(-3px,-1px); }
  100% { clip-path: inset(30% 0 46% 0); transform: translate(2px,1px); }
}

@keyframes greenGlitchTwo {
  0% { clip-path: inset(72% 0 0 0); transform: translate(-2px,0); }
  20% { clip-path: inset(38% 0 40% 0); transform: translate(2px,1px); }
  40% { clip-path: inset(10% 0 74% 0); transform: translate(-4px,-1px); }
  60% { clip-path: inset(66% 0 16% 0); transform: translate(3px,0); }
  80% { clip-path: inset(24% 0 54% 0); transform: translate(-2px,1px); }
  100% { clip-path: inset(52% 0 22% 0); transform: translate(2px,-1px); }
}

.hero-text p {
  max-width: 660px;
  margin-top: 28px;
  color: #c2ded6;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.8;
  font-weight: 700;
}

.hero-text strong {
  color: var(--green);
  text-shadow: 0 0 12px rgba(0,255,157,0.45);
}

.typing-line {
  min-height: 32px;
  margin-top: 26px;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(0,255,157,0.35);
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 5px;
  transform: translateY(3px);
  background: var(--green);
  animation: blink 0.8s steps(2, start) infinite;
}

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

.actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,255,157,0.045);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(0,255,157,0.05);
  transition: 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(0,255,157,0.18), rgba(0,240,255,0.08));
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: 0.55s ease;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(0,255,157,0.62);
  box-shadow: 0 0 32px rgba(0,255,157,0.2), inset 0 0 18px rgba(0,255,157,0.08);
}

.btn:hover::before {
  left: 140%;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(0, 37, 29, 0.92), rgba(0, 14, 12, 0.92));
  box-shadow: var(--shadow), inset 0 0 44px rgba(0,255,157,0.05);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0,255,157,0.5), transparent 28%, rgba(0,240,255,0.34), transparent 70%, rgba(0,255,157,0.32));
  animation: borderGlow 4s ease-in-out infinite alternate;
}

.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,255,157,0.055), transparent);
  transform: translateY(-100%);
  animation: terminalSweep 4.2s linear infinite;
}

@keyframes terminalSweep {
  to { transform: translateY(100%); }
}

@keyframes borderGlow {
  from { opacity: 0.16; filter: blur(0); }
  to { opacity: 0.5; filter: blur(2px); }
}

.terminal-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,255,157,0.16);
  background: rgba(0,0,0,0.26);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0,255,157,0.5);
}

.dots span:nth-child(2) {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,240,255,0.5);
}

.dots span:nth-child(3) {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,49,88,0.45);
}

.terminal-title {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.terminal-body {
  position: relative;
  z-index: 2;
  min-height: 575px;
  padding: 22px;
  color: #b8ffee;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.58;
}

.command-stream {
  min-height: 245px;
  max-height: 245px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(0,255,157,0.16);
  border-radius: 18px;
  background: rgba(0,0,0,0.26);
  box-shadow: inset 0 0 24px rgba(0,255,157,0.04);
}

.cmd-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 7px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.4s ease;
}

.cmd-line.show {
  opacity: 1;
  transform: translateY(0);
}

.cmd-prompt {
  flex: none;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,157,0.4);
}

.cmd-text {
  color: #d2fff5;
  word-break: break-word;
}

.cmd-output {
  margin: -2px 0 8px;
  padding-left: 24px;
  color: #8de5cb;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.35s ease;
}

.cmd-output.show {
  opacity: 1;
  transform: translateY(0);
}

.terminal-cursor-small {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 5px;
  transform: translateY(2px);
  background: var(--green);
  animation: blink 0.8s steps(2, start) infinite;
}

.progress-stack {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.progress-item {
  padding: 14px;
  border: 1px solid rgba(0,255,157,0.16);
  border-radius: 16px;
  background: rgba(0,255,157,0.035);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  position: relative;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
}

.prog-fill {
  display: block;
  height: 100%;
  width: 0%;
  position: relative;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(0,255,157,0.46);
}

.prog-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: barShine 1.5s linear infinite;
}

@keyframes barShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}

.code-loader {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(0,240,255,0.16);
  border-radius: 18px;
  background: rgba(0,240,255,0.035);
}

.code-loader-title {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#codeStream {
  min-height: 120px;
  max-height: 140px;
  overflow: hidden;
  margin: 0;
  white-space: pre-wrap;
  color: #aefcff;
  font-size: 0.84rem;
  line-height: 1.55;
}

.stats {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  padding: 24px;
  border: 1px solid rgba(0,255,157,0.18);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 0 28px rgba(0,255,157,0.08);
  backdrop-filter: blur(16px);
  transition: 0.25s ease;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,157,0.42);
  box-shadow: 0 0 38px rgba(0,255,157,0.14);
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  text-shadow: 0 0 14px rgba(0,255,157,0.3);
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 70px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(0,255,157,0.16);
  border-radius: 30px;
  background: rgba(0, 28, 23, 0.65);
  box-shadow: 0 0 35px rgba(0,255,157,0.08);
  backdrop-filter: blur(18px);
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section p {
  max-width: 860px;
  color: #b8d9cf;
  font-size: 1.02rem;
  line-height: 1.85;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.mini-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(0,255,157,0.14);
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
}

.mini-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(0,255,157,0.12);
  filter: blur(12px);
}

.mini-card h3 {
  margin-bottom: 14px;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-card p {
  color: #afd0c7;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(0,255,157,0.12);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .terminal-body {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .nav,
  .hero,
  .stats,
  .section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .code-title {
    font-size: clamp(3rem, 16vw, 5.3rem);
  }

  .hero-text p {
    font-size: 0.98rem;
  }

  .actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .terminal-title {
    display: none;
  }

  .terminal-body {
    padding: 16px;
    font-size: 0.83rem;
  }

  .command-stream {
    min-height: 250px;
    max-height: 250px;
    padding: 14px;
  }

  .cmd-line {
    flex-wrap: wrap;
    gap: 5px;
  }

  .cmd-output {
    padding-left: 0;
  }

  .footer {
    flex-direction: column;
  }
}
