:root{
  color-scheme: dark;

  --bg: #050805;
  --fg: #d7ffe0;
  --muted: #88c998;
  --card: #08110a;
  --border: rgba(57, 255, 20, 0.16);

  --accent: #39ff14;
  --link: var(--accent);

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --glow: 0 0 18px rgba(57,255,20,.35);
  --radius: 16px;

  --max: 1100px;
  --pad: 20px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* spotlight position (set by JS) */
  --mx: 50vw;
  --my: 25vh;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* scanlines + glow */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(57,255,20,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(0,255,136,.08), transparent 60%),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 6px
    );
  opacity: 0.9;
}

/* cursor spotlight */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(
      520px 520px at var(--mx) var(--my),
      rgba(57,255,20,.14),
      rgba(57,255,20,.06) 32%,
      transparent 62%
    );
  mix-blend-mode: screen;
  opacity: 0.9;
}

header, main, footer{ position: relative; z-index: 1; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

header{
  position: sticky;
  top: 0;
  z-index: 10;

  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

.brand code{
  font-family: var(--mono);
  font-size: 0.9rem;
  opacity: 0.95;

  color: var(--accent);
  background: rgba(57,255,20,.08);
  border: 1px solid rgba(57,255,20,.25);
  padding: 3px 8px;
  border-radius: 10px;

  box-shadow: var(--glow);
  animation: neonPulse 3.2s ease-in-out infinite;
}

@keyframes neonPulse{
  0%, 100% { box-shadow: 0 0 14px rgba(57,255,20,.25); filter: saturate(1); }
  50%      { box-shadow: 0 0 26px rgba(57,255,20,.45); filter: saturate(1.25); }
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-family: var(--mono);
  border: 1px solid rgba(57,255,20,.28);
  background: rgba(57,255,20,.06);
  color: var(--fg);
  text-decoration: none;

  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(57,255,20,.16);
  background: rgba(57,255,20,.09);
}

.hero{
  padding: 56px 0 40px;
}

.hero h1{
  font-size: clamp(2.0rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.hero p{
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.accent{
  color: var(--accent);
  text-shadow: 0 0 16px rgba(57,255,20,.35);
}

.card{
  position: relative;
  overflow: hidden;

  margin-top: 18px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 92%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card::after{
  content: "";
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  opacity: 0;

  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 44%,
    rgba(57,255,20,.18) 50%,
    transparent 56%,
    transparent 100%
  );

  transform: translateX(-70%) rotate(8deg);
}

.card:hover::after{
  opacity: 1;
  animation: scanSweep 1.1s ease-in-out forwards;
}

@keyframes scanSweep{
  from { transform: translateX(-75%) rotate(8deg); }
  to   { transform: translateX(75%) rotate(8deg); }
}

.reveal{
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
  will-change: transform, opacity, filter;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.footer{
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: .95rem;
}

.fx-canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
}
