:root {
      --primary:     #6366f1;
      --primary-dim: #818cf8;
      --primary-dark: #4f46e5;
      --bg:          #0f1117;
      --bg-panel:    rgba(15, 23, 35, 0.97);
      --text:        #f1f5f9;
      --text-dim:    #94a3b8;
      --text-faint:  #475569;
      --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.35;
    }

    .vignette {
      position: fixed; inset: 0; z-index: 1; pointer-events: none;
      background: radial-gradient(ellipse 65% 70% at 50% 50%,
        transparent 20%,
        rgba(15,17,23,0.5) 55%,
        rgba(15,17,23,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;
    }

    .card {
      width: 100%; max-width: 820px;
      background: rgba(22,27,39,0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(99,102,241,0.18);
      border-radius: 14px;
      padding: 2.4rem 2.8rem 2.2rem;
      box-shadow:
        0 0 0 1px rgba(99,102,241,0.05),
        0 0 60px rgba(99,102,241,0.06),
        0 24px 64px rgba(0,0,0,0.6);
      animation: cardIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
      position: relative;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 10%; right: 10%; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(99,102,241,0.7), rgba(129,140,248,0.4), transparent);
      border-radius: 1px;
    }

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

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

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

    .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(--primary);
      text-shadow: 0 0 40px rgba(99,102,241,0.4);
    }
    .brand-name .slash { color: var(--primary-dark); font-weight: 300; }

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

    .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(--primary-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;
    }

    .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(--primary); box-shadow: 0 0 6px var(--primary);
      animation: led 2s ease-in-out infinite;
    }
    .s-led.warn { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
    @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-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(--primary-dark), var(--primary-dim));
      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(--primary); vertical-align: middle; margin-left: 2px;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

    .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(--primary-dim); }
    .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(--primary-dim); }
