:root{
    --neon: #39ff88;
    --neon-dim: #1f7a48;
    --void: #08090a;
  }
  html { scroll-behavior: smooth; }
  body {
    background-color: var(--void);
    background-image:
      radial-gradient(ellipse 60% 40% at 15% 0%, rgba(57,255,136,0.10), transparent 60%),
      radial-gradient(ellipse 50% 40% at 100% 10%, rgba(57,255,136,0.06), transparent 60%);
  }

  /* Fine matrix grid backdrop */
  .grid-overlay {
    background-image:
      linear-gradient(rgba(57,255,136,0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(57,255,136,0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 90%);
  }

  /* Falling matrix glyph rain (CSS-driven, lightweight) */
  .rain-col {
    position: absolute;
    top: -100%;
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon);
    font-size: 13px;
    line-height: 1.15;
    opacity: 0.5;
    white-space: pre;
    text-shadow: 0 0 8px rgba(57,255,136,0.6);
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  @keyframes fall {
    to { transform: translateY(220%); }
  }

  .text-glow { text-shadow: 0 0 6px rgba(57,255,136,0.55), 0 0 22px rgba(57,255,136,0.25); }
  .border-glow { box-shadow: 0 0 0 1px rgba(57,255,136,0.25), 0 0 24px rgba(57,255,136,0.08); }

  .btn-primary {
    position: relative;
    background: var(--neon);
    color: #04140b;
    box-shadow: 0 0 24px rgba(57,255,136,0.55), 0 0 70px rgba(57,255,136,0.22), inset 0 0 0 1px rgba(255,255,255,0.25);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  }
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 0 40px rgba(57,255,136,0.85), 0 0 110px rgba(57,255,136,0.35), inset 0 0 0 1px rgba(255,255,255,0.35);
  }
  .btn-primary:active { transform: translateY(0) scale(0.99); }

  /* scanline sweep on hover buttons */
  .scan::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 45%, transparent 55%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    pointer-events:none;
  }
  .scan:hover::after{ transform: translateX(120%); }

  .card {
    background: linear-gradient(180deg, rgba(18,24,21,0.9), rgba(10,13,11,0.9));
    border: 1px solid #1c2521;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  }
  .card:hover {
    border-color: rgba(57,255,136,0.55);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(57,255,136,0.12);
  }

  .corner-brackets { position: relative; }
  .corner-brackets::before, .corner-brackets::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border-color: var(--neon-dim);
    opacity: .8;
  }
  .corner-brackets::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
  .corner-brackets::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

  /* blinking cursor for typing effect */
  .cursor-blink { animation: blink 1s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  .ticker-track { animation: ticker 22s linear infinite; }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  ::selection { background: rgba(57,255,136,0.35); color: #eafff2; }

  /* subtle noise texture */
  .noise {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
  }

  .glitch-hover:hover { animation: glitch .28s steps(2,end) 1; }
  @keyframes glitch {
    0% { clip-path: inset(0 0 0 0); transform: translate(0,0); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(-2px,1px); }
    40% { clip-path: inset(60% 0 5% 0); transform: translate(2px,-1px); }
    60% { clip-path: inset(20% 0 40% 0); transform: translate(-1px,0); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0,0); }
  }

  .divider-dash {
    background-image: linear-gradient(90deg, rgba(57,255,136,0.4) 50%, transparent 50%);
    background-size: 10px 1px;
    height: 1px;
  }