:root {
  --bg: #050706;
  --bg-soft: #0b100d;
  --panel: rgba(9, 16, 11, 0.78);
  --panel-strong: rgba(5, 11, 7, 0.9);
  --line: rgba(110, 255, 154, 0.22);
  --line-strong: rgba(130, 255, 160, 0.58);
  --text: #d8e8d7;
  --muted: #93ab95;
  --green: #95f7a4;
  --green-bright: #c7ffd0;
  --green-deep: #21472a;
  --red: #ff5757;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --content: 1180px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(71, 151, 74, 0.18), transparent 32%),
    linear-gradient(180deg, #060806 0%, #040504 100%);
  color: var(--text);
  font-family: var(--mono);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: rgba(149, 247, 164, 0.3);
  color: var(--green-bright);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.page-grid,
.scanlines,
.vignette,
.particles,
.corner-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-grid {
  z-index: -3;
  background-image:
    linear-gradient(rgba(50, 122, 67, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 122, 67, 0.15) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  animation: driftGrid 18s linear infinite;
}

.scanlines {
  z-index: 8;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

.vignette {
  z-index: -2;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.58) 100%);
}

.particles {
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10vh;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(149, 247, 164, 0.8);
  box-shadow: 0 0 10px rgba(149, 247, 164, 0.85);
  animation: rise linear infinite;
}

.corner-flash {
  z-index: 12;
  inset: auto 1.25rem 1.25rem auto;
  width: auto;
  height: auto;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 87, 87, 0.45);
  background: rgba(37, 5, 5, 0.86);
  color: #ffd2d2;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.corner-flash.is-visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 24px rgba(255, 87, 87, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(4, 8, 5, 0.76);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.header-inner,
.section-inner {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo,
.nav a,
.button,
.eyebrow,
.feature-index,
.image-meta,
.footer-logo,
.warning-panel p,
.terminal-top,
.ticker {
  text-transform: uppercase;
}

.logo {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(149, 247, 164, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green-bright);
  text-shadow: 0 0 12px rgba(149, 247, 164, 0.35);
}

.warning-badge {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 87, 87, 0.35);
  color: #ffb2b2;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  background: rgba(50, 7, 7, 0.62);
  animation: warningPulse 2.8s ease-in-out infinite;
}

.section {
  position: relative;
}

.hero,
.prophecy {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-overlay,
.prophecy-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0.34), rgba(3, 6, 4, 0.74)),
    radial-gradient(circle at left top, rgba(28, 80, 36, 0.26), transparent 34%);
}

.prophecy {
  background-image: var(--prophecy-image);
  background-size: cover;
  background-position: center;
}

.hero-layout,
.prophecy-layout,
.final-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 8rem 0 6rem;
}

.hero-copy h1,
.section-heading h2,
.prophecy-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(4.5rem, 15vw, 9rem);
  color: #eefcee;
  text-shadow: 0 0 30px rgba(149, 247, 164, 0.18);
}

.hero-copy h2,
.section-heading h2,
.prophecy-copy h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-copy h2 {
  margin-top: 0.8rem;
  max-width: 14ch;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.hero-body,
.section-copy,
.footer-tag {
  color: var(--text);
  line-height: 1.8;
}

.hero-body {
  max-width: 58ch;
  margin: 1.2rem 0 0;
  font-size: 1rem;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.13em;
  font-size: 0.8rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(149, 247, 164, 0.2);
}

.button-small {
  min-height: 42px;
  padding-inline: 1rem;
}

.button-primary {
  background: linear-gradient(180deg, rgba(25, 61, 31, 0.9), rgba(11, 25, 13, 0.95));
  color: var(--green-bright);
}

.button-secondary {
  background: rgba(8, 13, 9, 0.7);
  color: var(--text);
}

.button-danger {
  background: linear-gradient(180deg, rgba(67, 15, 15, 0.85), rgba(29, 8, 8, 0.94));
  border-color: rgba(255, 87, 87, 0.45);
  color: #ffd3d3;
}

.terminal-panel,
.feature-card,
.image-card,
.warning-panel,
.final-cta-inner,
.site-footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 14, 10, 0.8), rgba(5, 8, 5, 0.88));
  box-shadow: var(--shadow);
}

.terminal-panel {
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(149, 247, 164, 0.7);
}

.terminal-status {
  margin-left: auto;
  color: var(--green);
}

.terminal-screen {
  min-height: 280px;
  padding: 1.25rem 1rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(6, 12, 7, 0.9), rgba(5, 8, 5, 0.96)),
    repeating-linear-gradient(
      to bottom,
      rgba(149, 247, 164, 0.04) 0,
      rgba(149, 247, 164, 0.04) 2px,
      transparent 2px,
      transparent 5px
    );
}

.typed-lines {
  min-height: 11rem;
}

.typed-line {
  margin: 0 0 0.8rem;
  color: var(--green-bright);
  line-height: 1.6;
}

.cursor {
  display: inline-block;
  width: 0.72rem;
  height: 1.15rem;
  background: var(--green);
  box-shadow: 0 0 12px rgba(149, 247, 164, 0.55);
  animation: blink 0.95s steps(1) infinite;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 87, 87, 0.26);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(46, 8, 8, 0.95), rgba(16, 19, 16, 0.92), rgba(46, 8, 8, 0.95));
  color: #ffe1e1;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 26s linear infinite;
}

.ticker-track span {
  padding: 0.95rem 1.25rem;
  white-space: nowrap;
}

.operations,
.final-cta {
  padding: 6rem 0;
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 2rem;
}

.section-copy {
  color: var(--muted);
  margin: 1rem 0 0;
}

.section-copy-tight {
  margin-top: 1.25rem;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1.5rem;
  align-items: start;
}

.image-card {
  padding: 1rem;
}

.image-wrap {
  overflow: hidden;
  border: 1px solid rgba(149, 247, 164, 0.2);
  background: #000;
}

.image-wrap img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 260ms ease;
}

.image-card:hover .image-wrap img {
  transform: scale(1.04);
}

.image-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  min-height: 180px;
  padding: 1.1rem;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 0 24px rgba(149, 247, 164, 0.18), var(--shadow);
  animation: glitch 240ms linear 1;
}

.feature-index {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.feature-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.feature-card p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.prophecy-layout {
  min-height: 100vh;
}

.prophecy-copy {
  max-width: 62ch;
}

.warning-panel {
  padding: 1.3rem;
  backdrop-filter: blur(10px);
}

.warning-panel p {
  margin: 0 0 0.8rem;
  color: var(--green-bright);
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  line-height: 1.65;
}

.warning-panel p:first-child {
  color: #ffd8d8;
}

.final-cta-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2rem;
  gap: 1.5rem;
}

.site-footer {
  margin: 0 auto 2rem;
  width: min(calc(100% - 2rem), var(--content));
  background: rgba(6, 9, 6, 0.92);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.footer-logo {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--green-bright);
  letter-spacing: 0.08em;
}

.footer-tag {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftGrid {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(54px);
  }
}

@keyframes rise {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(var(--drift, 0px), -115vh, 0);
    opacity: 0;
  }
}

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

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(-2px, 1px);
  }
  50% {
    transform: translate(2px, -1px);
  }
  75% {
    transform: translate(-1px, -1px);
  }
  100% {
    transform: translateY(-4px);
  }
}

@keyframes warningPulse {
  0%,
  100% {
    opacity: 0.42;
    box-shadow: 0 0 0 rgba(255, 87, 87, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 87, 87, 0.2);
  }
}

@media (max-width: 980px) {
  .header-inner,
  .footer-inner,
  .operations-grid,
  .hero-layout,
  .prophecy-layout,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    display: grid;
  }

  .nav {
    flex-wrap: wrap;
  }

  .header-utilities {
    flex-wrap: wrap;
  }

  .button-small {
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .prophecy {
    min-height: auto;
  }

  .hero-layout,
  .prophecy-layout {
    padding-top: 7rem;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner {
    width: min(calc(100% - 1.2rem), var(--content));
  }

  .logo {
    font-size: 1.45rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 24vw, 5.6rem);
  }

  .hero-copy h2,
  .section-heading h2,
  .prophecy-copy h2,
  .final-cta h2 {
    font-size: clamp(1.65rem, 9vw, 2.5rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .image-meta,
  .footer-inner {
    display: block;
  }

  .image-meta span + span,
  .footer-links {
    margin-top: 0.5rem;
  }

  .terminal-screen {
    min-height: 240px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .final-actions {
    display: grid;
  }
}
