  :root {
    --bg: #191127;
    --bg2: #180f26;
    --panel: #23133a;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #7c3aed;
    --accent3: #b29dce;
    --warn: #af62c8;
    --text: #f5f5f5;
    --dim: #d6d6d6;
    --glow: 0 0 20px rgba(119, 0, 255, 0.3);
    --glow2: 0 0 20px rgba(111, 0, 255, 0.3);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    cursor: crosshair;
  }

  /* Scanlines overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.07) 2px,
      rgba(0,0,0,0.07) 4px
    );
    pointer-events: none;
    z-index: 9999;
  }

  /* ── HEADER ── */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #180f26;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
  }

  .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(102, 0, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .logo-dot {
    width: 8px; height: 8px;
    background: var(--accent3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--accent3);
  }

  nav { display: flex; gap: 2rem; }
  nav a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--accent); }

  .header-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .status-dot {
    width: 6px; height: 6px;
    background: var(--accent3);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 6px var(--accent3);
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 4rem;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(136, 0, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 30%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(115, 0, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(85, 0, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(111, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  .hero-content { position: relative; z-index: 2; }

  .hero-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent2);
  }

  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 6vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
  }

  .hero-title span.accent { color: var(--accent); display: block; }
  .hero-title span.dim { color: var(--dim); display: block; font-size: 0.55em; letter-spacing: 0.1em; }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #dde3e9;
    max-width: 480px;
    margin-bottom: 2.5rem;
  }

  .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
  }

  .btn-primary {
    background: var(--accent);
    color: var(--bg);
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  }
  .btn-primary:hover {
    background: #883cf0e0;
    box-shadow: var(--glow);
    transform: translateY(-2px);
  }

  .btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  }
  .btn-outline:hover {
    background: #1f1232;
    box-shadow: var(--glow);
  }

  /* Terminal window */
  .hero-terminal {
    position: relative;
    z-index: 2;
    margin-left: 3rem;
  }

  .terminal-window {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(136, 0, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
  }

  .terminal-header {
    background: #3a1c6350;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .t-dot { width: 10px; height: 10px; border-radius: 50%; }
  .t-dot.red { background: #ff5555; }
  .t-dot.yellow { background: #ffbd2e; }
  .t-dot.green { background: #28c840; }

  .terminal-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim);
    margin-left: 0.5rem;
  }

  .terminal-body {
    padding: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    line-height: 2;
    min-height: 360px;
  }

  .t-line { display: flex; gap: 0.5rem; }
  .t-prompt { color: var(--accent2); }
  .t-cmd { color: #fff; }
  .t-out { color: #b6d0e1; margin-left: 1rem; }
  .t-success { color: var(--accent3); margin-left: 1rem; }
  .t-warn { color: var(--warn); margin-left: 1rem; }

  .t-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
  }

  /* ── STATS BAR ── */
  .stats-bar {
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    padding: 2rem;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  .stat-item:last-child { border-right: none; }

  .stat-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    transition: width 1.5s ease;
  }
  .stat-item.animate::before { width: 100%; }

  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(115, 0, 255, 0.3);
  }

  .stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 0.3rem;
  }

  /* ── SECTIONS ── */
  section { padding: 7rem 4rem; }

  .section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent2);
  }

  .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
  }

  /* ── HOW IT WORKS — INTERACTIVE FLOW ── */
  .flow-section {
    background: var(--bg2);
    position: relative;
    overflow: hidden;
  }

  .flow-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }

  .flow-container {
    display: flex;
    gap: 0;
    margin-top: 4rem;
    position: relative;
  }

  .flow-step {
    flex: 1;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    background: var(--panel);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .flow-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--accent);
    z-index: 10;
    background: var(--bg2);
    padding: 0 2px;
  }

  .flow-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1f1232 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .flow-step:hover::before,
  .flow-step.active::before { opacity: 1; }

  .flow-step:hover,
  .flow-step.active {
    border-color: var(--accent);
    box-shadow: var(--glow);
    transform: translateY(-4px);
  }

  .step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.3s;
  }

  .flow-step:hover .step-num,
  .flow-step.active .step-num { color: var(--accent); }

  .step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
  }

  .step-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: #fff;
  }

  .step-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e1eaf2;
    transition: color 0.3s;
  }

  .flow-step:hover .step-desc,
  .flow-step.active .step-desc { color: var(--text); }

  /* Step detail panel */
  .step-detail {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--panel);
    border: 1px solid var(--accent);
    border-top: 3px solid var(--accent);
    display: none;
    animation: fadeSlideUp 0.3s ease;
  }

  .step-detail.visible { display: block; }

  .step-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
  }

  .step-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .detail-list li {
    font-size: 0.88rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .detail-list li::before {
    content: '▸';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ── FEATURES GRID ── */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    margin-top: 4rem;
    background: var(--border);
  }

  .feature-card {
    background: var(--panel);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: background 0.3s;
  }

  .feature-card:hover { background: #1f1232; }

  .feature-card::before {
    content: attr(data-num);
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    color: rgba(136, 0, 255, 0.094);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s;
  }

  .feature-card:hover::before { color: rgba(140, 0, 255, 0.08); }

  .feature-icon {
    width: 48px; height: 48px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }

  .feature-card:hover .feature-icon {
    border-color: var(--accent);
    background: #2a1647;
    box-shadow: var(--glow);
  }

  .feature-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: #fff;
  }

  .feature-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #baccdd;
  }

  /* ── THREAT VISUALIZER ── */
  .threat-section {
    background: var(--bg2);
    position: relative;
  }

  .threat-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
  }

  .threat-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .threat-panel-header {
    background: #3a1c6350;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .threat-panel-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .threat-list {
    list-style: none;
  }

  .threat-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }

  .threat-item:last-child { border-bottom: none; }
  .threat-item:hover { background: #1f1232; }
  .threat-item.active { background: #1f1232; border-left: 3px solid var(--accent2); }

  .threat-severity {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
  }
  .sev-high { background: #ff3333; box-shadow: 0 0 8px #ff3333; }
  .sev-med { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
  .sev-low { background: var(--accent3); box-shadow: 0 0 8px var(--accent3); }

  .threat-info { flex: 1; }

  .threat-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 0.2rem;
  }

  .threat-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    color: var(--dim);
  }

  .threat-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    padding: 2px 8px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .badge-high { color: #ff3333; border-color: #ff3333; }
  .badge-med { color: var(--warn); border-color: var(--warn); }
  .badge-low { color: var(--accent3); border-color: var(--accent3); }

  .threat-detail-box {
    padding: 2rem;
  }

  .detail-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
  }

  .detail-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
  }

  .detail-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .metric-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1rem;
  }

  .metric-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.4rem;
  }

  .metric-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
  }

  /* ── ACCESS SIMULATOR ── */
  .simulator-section { position: relative; }

  .sim-container {
    margin-top: 3rem;
    background: var(--panel);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 520px;
  }

  .sim-sidebar {
    background: #23133a7a;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
  }

  .sim-sidebar-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1rem;
  }

  .sim-user {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .sim-user:hover { border-color: var(--accent); background: #1f1232; }
  .sim-user.selected { border-color: var(--accent); background: #1f1232; }

  .sim-user-icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
  }

  .sim-user-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: #fff;
  }
  .sim-user-role {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--dim);
  }

  .sim-main {
    padding: 2rem;
  }

  .sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .sim-user-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
  }

  .sim-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .sim-resource {
    padding: 1.2rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }

  .sim-resource:hover { border-color: var(--accent); }

  .sim-resource-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: #fff;
    margin-bottom: 0.3rem;
  }

  .sim-resource-type {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--dim);
    margin-bottom: 0.6rem;
  }

  .access-indicator {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    padding: 2px 6px;
    border: 1px solid;
    display: inline-block;
  }

  .access-granted { color: var(--accent3); border-color: var(--accent3); }
  .access-denied { color: #ff3333; border-color: #ff3333; }
  .access-limited { color: var(--warn); border-color: var(--warn); }

  .sim-log {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    height: 130px;
    overflow-y: auto;
    line-height: 1.8;
  }

  .log-entry { display: flex; gap: 0.8rem; }
  .log-time { color: var(--dim); flex-shrink: 0; }
  .log-action { color: var(--text); }
  .log-grant { color: var(--accent3); }
  .log-deny { color: #ff3333; }
  .log-warn { color: var(--warn); }

  /* ── FOOTER CTA ── */
  .footer-cta {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .footer-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
  }

  .cta-sub {
    font-size: 1rem;
    color: #5a7a98;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
  }

  footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-copy {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--dim);
  }

  /* ANIMATIONS */
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
  }

  /* scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); }
  ::-webkit-scrollbar-thumb:hover { background: var(--dim); }