  :root {
    --bg: #191127;
    --panel: #23133a;
    --border: #3a1c63;
    --accent: #883CF0;
    --danger: #ff3b3b;
    --warn: #ffaa00;
    --ok: #00ff88;
    --text: #c8dce8;
    --muted: #d6d6d6;
    --mono: 'Share Tech Mono', monospace;
    --display: 'Bebas Neue', sans-serif;
    --body: 'DM Sans', sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    overflow-x: hidden;
    cursor: crosshair;
  }

  /* Scanline overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(149, 0, 255, 0.07) 2px, rgba(166, 0, 255, 0.075) 4px);
    pointer-events: none;
    z-index: 9999;
  }

  /* Grid bg */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
      linear-gradient(rgba(166, 0, 255, 0.058) 1px, transparent 1px),
      linear-gradient(90deg, rgba(187, 0, 255, 0.057) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* ====== HERO ====== */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6rem 8vw;
    z-index: 1;
    overflow: hidden;
  }

  .hero-bg-circle {
    position: absolute;
    right: -10vw;
    top: 50%;
    transform: translateY(-50%);
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 0, 255, 0.06) 0%, rgba(219, 59, 255, 0.03) 40%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.05); opacity: 1; }
  }

  .tag-line {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s ease forwards;
  }

  .tag-line::before { content: '> '; }

  h1.hero-title {
    font-family: var(--display);
    font-size: clamp(4rem, 12vw, 11rem);
    line-height: 0.88;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0;
    animation: fadeUp 0.7s 0.4s ease forwards;
  }

  h1.hero-title .accent { color: var(--accent); }
  h1.hero-title .danger { color: var(--danger); }

  .hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.7;
    margin-top: 2rem;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp 0.7s 0.6s ease forwards;
  }

  .hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.8s ease forwards;
  }

  .btn {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    padding: 0.9rem 2rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
  }

  .btn-primary {
    background: var(--accent);
    color: #000;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }
  .btn-primary:hover { background: #fff; transform: translateY(-2px); }

  .btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }
  .btn-ghost:hover { border-color: var(--accent); background: #1f1232; }

  /* Threat counter */
  .threat-ticker {
    position: absolute;
    bottom: 3rem;
    right: 8vw;
    text-align: right;
    opacity: 0;
    animation: fadeIn 1s 1.2s ease forwards;
  }

  .threat-ticker .num {
    font-family: var(--display);
    font-size: 5rem;
    color: var(--danger);
    line-height: 1;
  }

  .threat-ticker .label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ====== SECTION COMMON ====== */
  section {
    position: relative;
    z-index: 1;
    padding: 6rem 8vw;
  }

  .section-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  h2.section-title {
    font-family: var(--display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
  }

  /* ====== THREAT PANEL ====== */
  #threats {
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5px;
    background: var(--border);
  }

  .threat-card {
    background: var(--panel);
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
  }

  .threat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    transition: width 0.4s ease;
  }

  .threat-card:hover { background: #1f1232; }
  .threat-card:hover::after { width: 100%; }

  .threat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
  }

  .threat-name {
    font-family: var(--display);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
  }

  .threat-stat {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--danger);
    letter-spacing: 0.15em;
  }

  .threat-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 1rem;
  }

  /* ====== METRICS ====== */
  #metrics {
    background: var(--bg);
  }

  .metrics-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  @media (max-width: 768px) {
    .metrics-layout { grid-template-columns: 1fr; }
  }

  .metric-box {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    transition: border-color 0.3s;
  }

  .metric-box:hover { border-color: var(--accent); }

  .metric-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }

  .metric-name {
    font-family: var(--display);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
  }

  .metric-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
  }

  .rto-rpo-visual {
    position: relative;
  }

  .timeline-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 3rem 0;
    position: relative;
  }

  .timeline-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    border-radius: 3px;
    animation: fillBar 2s 0.5s ease forwards;
    width: 0;
  }

  .fill-rto { background: linear-gradient(90deg, var(--accent), #0077aa); }
  .fill-rpo { background: linear-gradient(90deg, var(--warn), #cc7700); }

  @keyframes fillBar {
    to { width: var(--target); }
  }

  .bar-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }

  .bar-wrap { margin-bottom: 2rem; }

  .big-stat {
    font-family: var(--display);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
  }

  .big-stat-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
  }

  /* ====== RECOVERY TIERS ====== */
  #tiers {
    background: var(--panel);
    border-top: 1px solid var(--border);
  }

  .tiers-track {
    display: flex;
    gap: 1.5px;
    background: var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .tier-cell {
    flex: 1;
    min-width: 140px;
    background: var(--panel);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
  }

  .tier-cell:hover, .tier-cell.active {
    background: #1f1232;
  }

  .tier-num {
    font-family: var(--display);
    font-size: 4rem;
    color: var(--border);
    line-height: 1;
    transition: color 0.3s;
  }

  .tier-cell:hover .tier-num, .tier-cell.active .tier-num { color: var(--accent); }

  .tier-name {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .tier-pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.1em;
    transition: all 0.3s;
  }

  .tier-cell:hover .tier-pill, .tier-cell.active .tier-pill {
    border-color: var(--ok);
    color: var(--ok);
  }

  .tier-detail {
    margin-top: 2rem;
    background: #1f1232;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 2rem;
    display: none;
  }

  .tier-detail.visible { display: block; animation: fadeUp 0.3s ease; }

  .tier-detail h3 {
    font-family: var(--display);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
  }

  .tier-detail p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ====== PLAN STEPS ====== */
  #plan {
    background: var(--bg);
  }

  .steps-container {
    position: relative;
    max-width: 800px;
  }

  .steps-line {
    position: absolute;
    left: 28px;
    top: 0; bottom: 0;
    width: 1px;
    background: var(--border);
  }

  .step {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    cursor: pointer;
  }

  .step-num {
    font-family: var(--display);
    font-size: 1.2rem;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: var(--bg);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

  .step:hover .step-num {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(144, 0, 255, 0.05);
  }

  .step-content h3 {
    font-family: var(--display);
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
  }

  .step-content p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
  }

  .step-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    background: rgba(132, 0, 255, 0.08);
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }

  /* ====== COST CALC ====== */
  #calculator {
    background: var(--panel);
    border-top: 1px solid var(--border);
  }

  .calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  @media (max-width: 768px) {
    .calc-layout { grid-template-columns: 1fr; }
  }

  .calc-input-group {
    margin-bottom: 1.5rem;
  }

  .calc-input-group label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
  }

  .calc-input-group input[type="range"] {
    width: 100%;
    /* -webkit-appearance: none; */
    height: 2px;
    background: var(--border);
    outline: none;
  }

  .calc-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    cursor: pointer;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }

  .range-val {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-align: right;
    margin-top: 0.3rem;
  }

  .result-panel {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  }

  .result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .result-row:last-child { border-bottom: none; }

  .result-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .result-val {
    font-family: var(--display);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
  }

  .result-val.red { color: var(--danger); }
  .result-val.yellow { color: var(--warn); }
  .result-val.green { color: var(--ok); }

  /* ====== QUIZ ====== */
  #quiz {
    background: var(--bg);
  }

  .quiz-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 3rem;
    max-width: 720px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  }

  .quiz-q {
    font-family: var(--display);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
    line-height: 1.2;
  }

  .quiz-options {
    display: grid;
    gap: 0.75rem;
  }

  .quiz-opt {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
  }

  .quiz-opt:hover { border-color: var(--accent); color: var(--accent); background: #1f1232; }
  .quiz-opt.correct { border-color: var(--ok); color: var(--ok); background: rgba(0,255,136,0.05); }
  .quiz-opt.wrong { border-color: var(--danger); color: var(--danger); background: rgba(255,59,59,0.05); }

  .quiz-progress {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
  }

  .quiz-feedback {
    font-family: var(--mono);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-left: 3px solid var(--accent);
    background: #cb56f90a;
    color: var(--text);
    display: none;
    line-height: 1.6;
  }

  .quiz-feedback.visible { display: block; animation: fadeIn 0.3s; }

  .quiz-next {
    margin-top: 1.5rem;
    display: none;
  }

  .quiz-next.visible { display: block; }

  .score-panel {
    text-align: center;
    display: none;
  }

  .score-panel.visible { display: block; animation: fadeUp 0.5s; }

  .score-big {
    font-family: var(--display);
    font-size: 8rem;
    color: var(--accent);
    line-height: 1;
  }

  /* ====== FOOTER ====== */
  footer {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 3rem 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
  }

  footer .logo {
    font-family: var(--display);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 0.1em;
  }

  footer .logo span { color: var(--accent); }

  footer .copy {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8vw;
    z-index: 1000;
    background: #180f26;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #3a1c63;
  }

  .nav-logo {
    font-family: var(--display);
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.1em;
  }

  .nav-logo span { color: var(--accent); }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); }

  /* STATUS BAR */
  .status-bar {
    background: #1f1232;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    padding: 0.5rem 8vw;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .status-blink {
    animation: blink 1s step-start infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  .marquee-wrap { overflow: hidden; flex: 1; margin: 0 2rem; }

  .marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
  }

  @keyframes marquee {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
  }

  /* Divider */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
  }

  /* Responsive */
  @media (max-width: 600px) {
    nav .nav-links { display: none; }
    .tier-detail h3 { font-size: 1.4rem; }
  }