:root {
      --green:       #00ff41;
      --green-dim:   #00c832;
      --green-dark:  #007a1f;
      --bg:          #040a04;
      --bg-panel:    rgba(5, 15, 5, 0.97);
      --text:        #c8ffc8;
      --text-dim:    #4a7a4a;
      --text-faint:  #1a3a1a;
      --mono:        'JetBrains Mono', monospace;
      --sans:        'Inter', sans-serif;
    }

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

    html, body {
      height: 100%; background: var(--bg);
      color: var(--text); font-family: var(--mono); overflow: hidden;
    }

    #node-canvas {
      position: fixed; inset: 0; z-index: 0; opacity: 0.45;
    }

    /* Strong vignette — dark at edges, clear in center where card lives */
    .vignette {
      position: fixed; inset: 0; z-index: 1; pointer-events: none;
      background: radial-gradient(ellipse 65% 70% at 50% 50%,
        transparent 20%,
        rgba(4,10,4,0.5) 55%,
        rgba(4,10,4,0.97) 100%);
    }

    .stage {
      position: relative; z-index: 2; height: 100vh;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 1.5rem;
    }

    /* ── Terminal — larger, fills more of viewport ── */
    .terminal {
      width: 100%; max-width: 820px;
      background: var(--bg-panel);
      border: 1px solid rgba(0,255,65,0.12);
      border-radius: 8px;
      box-shadow:
        0 0 0 1px rgba(0,255,65,0.04),
        0 30px 80px rgba(0,0,0,0.8);
      animation: termIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
    }

    @keyframes termIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .terminal-bar {
      display: flex; align-items: center; gap: 8px;
      padding: 0.9rem 1.4rem;
      border-bottom: 1px solid rgba(0,255,65,0.08);
      background: rgba(0,255,65,0.02);
    }

    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot-r { background: #3a1010; border: 1px solid #501818; }
    .dot-y { background: #2a2010; border: 1px solid #403018; }
    .dot-g { background: #0e200e; border: 1px solid #183018; }

    .terminal-title {
      flex: 1; text-align: center; font-size: 0.68rem;
      color: var(--text-dim); letter-spacing: 1px;
    }

    .terminal-body { padding: 2.4rem 2.8rem 2.2rem; }

    .prompt-line {
      font-size: 0.8rem; margin-bottom: 2rem;
      opacity: 0; animation: lineIn 0.35s 0.5s ease both;
    }
    .ps1 { color: var(--green-dim); }
    .cmd { color: rgba(200,255,200,0.35); }

    @keyframes lineIn {
      from { opacity: 0; transform: translateX(-6px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    /* Brand — bigger */
    .brand {
      margin-bottom: 2rem;
      opacity: 0; animation: lineIn 0.4s 0.65s ease both;
    }

    .brand-name {
      font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 700;
      letter-spacing: -2px; line-height: 1; color: var(--green);
      text-shadow: 0 0 40px rgba(0,255,65,0.35);
    }
    .brand-name .slash { color: var(--green-dark); font-weight: 300; }

    .brand-sub {
      font-size: 0.68rem; color: var(--text-dim);
      letter-spacing: 3px; text-transform: uppercase; margin-top: 0.5rem;
    }

    /* Two-column layout for output + status */
    .body-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
      margin-bottom: 2rem;
      opacity: 0; animation: lineIn 0.4s 0.8s ease both;
    }

    @media (max-width: 600px) { .body-grid { grid-template-columns: 1fr; } }

    .output {
      border-left: 1px solid var(--green-dark); padding-left: 1.2rem;
    }

    .out-row {
      display: flex; gap: 0.8rem; font-size: 0.76rem;
      line-height: 2; align-items: baseline;
    }
    .out-key { color: var(--text-dim); min-width: 55px; font-size: 0.68rem; flex-shrink: 0; }
    .out-val { color: var(--text); font-size: 0.76rem; }

    .out-desc {
      font-family: var(--sans); font-size: 0.82rem; line-height: 1.7;
      color: var(--text-dim); font-weight: 300; margin-top: 0.8rem;
    }

    /* Right column — status items */
    .status-col { display: flex; flex-direction: column; justify-content: flex-start; gap: 0.9rem; }

    .s-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; }
    .s-led {
      width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
      background: var(--green); box-shadow: 0 0 6px var(--green);
      animation: led 2s ease-in-out infinite;
    }
    .s-led.warn { background: #e8a020; box-shadow: 0 0 6px #e8a020; }
    @keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
    .s-key { color: var(--text-dim); min-width: 52px; }
    .s-val { color: var(--text); }

    /* Progress */
    .progress-wrap {
      opacity: 0; animation: lineIn 0.4s 1s ease both;
    }
    .progress-meta {
      display: flex; justify-content: space-between;
      font-size: 0.68rem; color: var(--text-dim); margin-bottom: 0.4rem;
    }
    .progress-track {
      height: 2px; background: var(--text-faint); border-radius: 1px; overflow: hidden;
    }
    .progress-fill {
      height: 100%; width: 0;
      background: linear-gradient(90deg, var(--green-dark), var(--green));
      animation: fill 2.5s 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
    }
    @keyframes fill { to { width: 23%; } }

    .cursor-line {
      margin-top: 1.8rem; font-size: 0.8rem; color: var(--text-dim);
      opacity: 0; animation: lineIn 0.4s 1.3s ease both;
    }
    .blink {
      display: inline-block; width: 8px; height: 14px;
      background: var(--green); vertical-align: middle; margin-left: 2px;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

    /* ── Footer ── */
    .footer {
      position: fixed; bottom: 1.5rem; left: 0; right: 0;
      text-align: center; z-index: 3; font-family: var(--mono);
      opacity: 0; animation: lineIn 0.4s 1.5s ease both;
    }
    .footer a {
      font-size: 0.62rem; color: var(--text-dim); text-decoration: none;
      letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.2s;
    }
    .footer a:hover { color: var(--green); }
    .footer .sep { color: var(--text-faint); margin: 0 0.7rem; }
    .footer-credit {
      display: block; margin-top: 0.3rem; font-size: 0.56rem;
      color: var(--text-faint); letter-spacing: 1px; text-transform: uppercase;
    }
    .footer-credit a { font-size: 0.56rem; color: var(--text-faint); transition: color 0.2s; }
    .footer-credit a:hover { color: var(--green); }