:root {
    --bg: #191127;
    --surface: #23133a;
    --surface2: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #7b5cff;
    --accent3: #af62c8;
    --text: #C8E6F5;
    --muted: #d6d6d6;
    --glow: 0 0 20px #be52e50f;
    --glow-red: 0 0 20px #cc4cfa0f;
    --glow-green: 0 0 20px #be44ea0f;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  .gptpam-interactive {
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    cursor: crosshair;
    height:100vh;
  }

  /* Scanline overlay */
  .gptpam-interactive::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
  }

  /* Grid background */
  .gptpam-interactive::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(132, 0, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(157, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
  }

  /* ===== NAV ===== */
  .gptpam-interactive nav {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: #180f26;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    
    font-size: 28px;
    
    color: var(--accent);
    text-shadow: var(--glow);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-logo span { color: var(--accent2); }

  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); text-shadow: var(--glow); }

  .nav-cta {
    
    font-size: 11px;
    
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent);
    border: none;
    padding: 10px 22px;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: all 0.2s;
  }

  .nav-cta:hover { background: var(--accent2); box-shadow: var(--glow-red); }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 48px;
    overflow: hidden;
  }

  .hero-content { max-width: 680px; position: relative; }

  .hero-badge {
    
    font-size: 11px;
    
    color: var(--accent3);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent3);
    box-shadow: var(--glow-green);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .hero h1 {
    
    font-size: clamp(62px, 7vw, 90px);
    line-height: 0.9;
    
    margin-bottom: 8px;
    color: #fff;
  }

  .hero h1 .accent { color: var(--accent); text-shadow: var(--glow); }
  .hero h1 .accent2 { color: var(--accent2); text-shadow: var(--glow-red); }

  .hero-sub {
    
    font-size: 13px;
    
    color: var(--muted);
    margin: 28px 0 40px;
    line-height: 2;
    max-width: 520px;
    text-transform: uppercase;
  }

  .hero-sub strong { color: var(--accent); font-weight: 400; }

  .hero-actions { display: flex; gap: 16px; align-items: center; }

  .btn-primary {
    
    font-size: 12px;
    
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent);
    border: none;
    padding: 14px 32px;
    cursor: pointer;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: all 0.2s;
  }

  .btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px #be52e50f; }

  .btn-ghost {
    
    font-size: 12px;
    
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border);
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-ghost:hover { border-color: var(--accent); box-shadow: var(--glow); }

  /* Hero viz */
  .hero-viz {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 52%;
    height: 80vh;
  }

  .access-node {
    position: absolute;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    font-size: 10px;
    
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    animation: floatNode 6s ease-in-out infinite;
  }

  .access-node:hover { transform: scale(1.05); }

  .node-central {
    width: 150px; height: 150px;
    border-radius: 50%;
    border-color: var(--accent);
    color: var(--accent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #1f1232;
    box-shadow: var(--glow), inset var(--glow);
    font-size: 13px;
    animation: none !important;
  }

  .node-central::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed #3a1c63;
    animation: spin 20s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .node-central::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed #3a1c63;
    animation: spin 30s linear infinite reverse;
  }

  .node-icon { font-size: 28px; margin-bottom: 6px; }

  .node-server {
    width: 90px; height: 70px;
    border-color: var(--accent2);
    color: var(--accent2);
    border-radius: 4px;
    background: #1f1232;
    animation-delay: 0s;
  }

  .node-db {
    width: 90px; height: 70px;
    border-color: var(--accent3);
    color: var(--accent3);
    border-radius: 4px;
    background: #33234b;
    animation-delay: 1.5s;
  }

  .node-cloud {
    width: 90px; height: 70px;
    border-color: var(--accent3);
    color: #FFB347;
    border-radius: 4px;
    background: #40226c;
    animation-delay: 3s;
  }

  .node-user {
    width: 80px; height: 60px;
    border-color: var(--muted);
    color: var(--muted);
    border-radius: 4px;
    background: #180a2d;
    animation-delay: 0.8s;
  }

  @keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  /* Connector lines */
  .hero-viz svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  /* Stats strip */
  .stats-strip {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    padding: 32px 40px;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }

  .stat-item:last-child { border-right: none; }

  .stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
  }

  .stat-num {
    
    font-size: 52px;
    color: var(--accent);
    text-shadow: var(--glow);
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    
    font-size: 11px;
    
    color: var(--muted);
    text-transform: uppercase;
  }

  /* ===== SECTIONS ===== */
  .gptpam-interactive section { position: relative; }

  .section-tag {
    
    font-size: 10px;
    
    color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-tag::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--accent2);
  }

  .section-title {
    
    font-size: clamp(42px, 5vw, 72px);
    
    line-height: 1;
    color: #fff;
    margin-bottom: 20px;
  }

  .section-title .hl { color: var(--accent); text-shadow: var(--glow); }

  .section-desc {
    
    font-size: 13px;
    color: var(--muted);
    line-height: 2;
    max-width: 480px;
    text-transform: uppercase;
   
  }

  /* ===== THREAT SIMULATOR ===== */
  .simulator-section {
    padding: 100px 48px;
    background: var(--surface);
    border-top: 1px solid var(--border);
  }

  .sim-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 64px;
    align-items: start;
  }

  .sim-controls { display: flex; flex-direction: column; gap: 16px; }

  .sim-scenario {
    border: 1px solid var(--border);
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }

  .sim-scenario::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--muted);
    transition: background 0.25s;
  }

  .sim-scenario:hover, .sim-scenario.active {
    border-color: var(--accent);
    background: #cb56f90a;
  }

  .sim-scenario:hover::before, .sim-scenario.active::before {
    background: var(--accent);
    box-shadow: var(--glow);
  }

  .sim-scenario.threat-high::before { background: var(--accent2); }
  .sim-scenario.threat-high:hover::before, .sim-scenario.threat-high.active::before {
    background: var(--accent2);
    box-shadow: var(--glow-red);
  }

  .sim-scenario.threat-high:hover, .sim-scenario.threat-high.active {
    border-color: var(--accent2);
    background: #cb56f90a;
  }

  .scenario-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .scenario-name {
    
    font-size: 12px;
    
    text-transform: uppercase;
    color: var(--text);
  }

  .threat-badge {
    
    font-size: 9px;
    
    padding: 3px 8px;
    text-transform: uppercase;
  }

  .threat-high .threat-badge { background: #291a3e; color: var(--accent2); border: 1px solid var(--accent2); }
  .threat-medium .threat-badge { background: #291a3e; color: #FFB347; border: 1px solid #FFB347; }
  .threat-low .threat-badge { background: #291a3e; color: var(--accent3); border: 1px solid var(--accent3); }

  .scenario-desc {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
  }

  /* Terminal */
  .sim-terminal {
    background: #020810;
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .terminal-bar {
    background: var(--surface2);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .t-dot { width: 10px; height: 10px; border-radius: 50%; }
  .t-dot:nth-child(1) { background: #FF5F57; }
  .t-dot:nth-child(2) { background: #FEBC2E; }
  .t-dot:nth-child(3) { background: #28C840; }

  .terminal-label {
    
    font-size: 11px;
    color: var(--muted);
    
    margin-left: 8px;
    text-transform: uppercase;
  }

  .terminal-body {
    padding: 24px;
    min-height: 360px;
    
    font-size: 12px;
    line-height: 1.9;
    
  }

  .log-line { opacity: 0; transform: translateX(-8px); transition: all 0.3s; margin-bottom: 2px; }
  .log-line.show { opacity: 1; transform: translateX(0); }
  .log-line.info { color: var(--muted); }
  .log-line.warn { color: #FFB347; }
  .log-line.block { color: var(--accent2); }
  .log-line.allow { color: var(--accent3); }
  .log-line.ai { color: var(--accent); }

  .log-prefix { color: var(--muted); margin-right: 8px; }
  .cursor-blink::after {
    content: '█';
    animation: blink 1s step-end infinite;
    color: var(--accent);
  }

  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  .run-btn {
    display: block;
    width: 100%;
    
    font-size: 11px;
    
    text-transform: uppercase;
    padding: 14px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
  }

  .run-btn:hover { background: var(--accent2); color: #fff; box-shadow: var(--glow-red); }

  /* ===== HOW IT WORKS ===== */
  .how-section {
    padding: 100px 48px;
    background: var(--bg);
  }

  .pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 64px;
    position: relative;
  }

  .pipeline::before {
    content: '';
    position: absolute;
    top: 52px; left: 52px; right: 52px;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
  }

  .pipe-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 16px;
  }

  .pipe-circle {
    width: 104px; height: 104px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 32px;
  }

  .pipe-step:hover .pipe-circle {
    border-color: var(--accent);
    box-shadow: var(--glow);
    transform: scale(1.05);
  }

  .pipe-num {
    position: absolute;
    top: -8px; right: -8px;
    width: 24px; height: 24px;
    background: var(--accent2);
    border-radius: 50%;
    
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pipe-title {
    
    font-size: 20px;
    
    color: #fff;
    margin-bottom: 10px;
  }

  .pipe-desc {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
    line-height: 1.8;
  }

  /* ===== FEATURES GRID ===== */
  .features-section {
    padding: 100px 48px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 64px;
  }

  .feat-card {
    background: var(--bg);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .feat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
  }

  .feat-card:hover::after { transform: scaleX(1); }
  .feat-card:hover { border-color: var(--border); background: var(--surface2); transform: translateY(-4px); }

  .feat-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
  }

  .feat-title {
    
    font-size: 24px;
    
    color: #fff;
    margin-bottom: 12px;
  }

  .feat-desc {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
    line-height: 1.9;
  }

  /* ===== RISK METER ===== */
  .risk-section {
    padding: 100px 48px;
    background: var(--bg);
  }

  .risk-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-top: 64px;
    align-items: center;
  }

  .risk-viz {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .risk-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    gap: 16px;
    align-items: center;
  }

  .risk-label {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
    text-align: right;
  }

  .risk-track {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
    overflow: hidden;
    position: relative;
  }

  .risk-fill {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
  }

  .risk-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.6);
    animation: pulse 1.5s ease-in-out infinite;
  }

  .risk-val {
    
    font-size: 22px;
    text-align: left;
  }

  .before-pam .risk-fill { background: linear-gradient(90deg, #FF4D6D, #FF0040); }
  .after-pam .risk-fill { background: linear-gradient(90deg, var(--accent3), #00FF87); }

  .risk-before-label, .risk-after-label {
    
    font-size: 10px;
    
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 12px;
    display: inline-block;
  }

  .risk-before-label { background: rgba(255,77,109,0.1); color: var(--accent2); border: 1px solid var(--accent2); }
  .risk-after-label { background: rgba(123,255,106,0.1); color: var(--accent3); border: 1px solid var(--accent3); }

  .risk-toggle-wrapper { display: flex; flex-direction: column; gap: 40px; }
  .risk-toggle-group { display: flex; flex-direction: column; gap: 12px; }

  /* Toggle */
  .toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .toggle-label {
    
    font-size: 11px;
    color: var(--text);
    
    text-transform: uppercase;
  }

  .toggle {
    width: 44px; height: 22px;
    background: var(--border);
    border-radius: 11px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
  }

  .toggle.on { background: var(--accent); box-shadow: var(--glow); }

  .toggle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
  }

  .toggle.on::after { transform: translateX(22px); }

  /* ===== FOOTER ===== */
  .gptpam-interactive footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 48px 40px;
    position: relative;
    z-index: 1;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  .footer-brand .nav-logo { margin-bottom: 16px; font-size: 24px; }
  .footer-brand p {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
    line-height: 2;
  }

  .footer-col h4 {
    
    font-size: 10px;
    
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
  }

  .footer-col ul { list-style: none; }
  .footer-col li {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.2s;
  }

  .footer-col li:hover { color: var(--text); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }

  .footer-bottom p {
    
    font-size: 10px;
    color: var(--muted);
    
    text-transform: uppercase;
  }

  /* ===== SCROLL REVEAL ===== */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== ACCESS REQUEST MODAL ===== */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,10,15,0.92);
    backdrop-filter: blur(8px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .modal-overlay.open { opacity: 1; pointer-events: all; }

  .modal {
    background: var(--surface);
    border: 1px solid var(--accent);
    box-shadow: var(--glow), 0 40px 80px rgba(0,0,0,0.6);
    width: 520px;
    max-width: 90vw;
    padding: 40px;
    transform: scale(0.95);
    transition: transform 0.3s;
  }

  .modal-overlay.open .modal { transform: scale(1); }

  .modal-title {
    
    font-size: 36px;
    
    color: var(--accent);
    text-shadow: var(--glow);
    margin-bottom: 8px;
  }

  .modal-sub {
    
    font-size: 11px;
    color: var(--muted);
    
    text-transform: uppercase;
    margin-bottom: 32px;
  }

  .modal-field { margin-bottom: 20px; }
  .modal-field label {
    display: block;
    
    font-size: 10px;
    
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .modal-field input, .modal-field select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    
    font-size: 12px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
  }

  .modal-field input:focus, .modal-field select:focus {
    border-color: var(--accent);
    box-shadow: var(--glow);
  }

  .modal-actions { display: flex; gap: 12px; margin-top: 32px; }

  .modal-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    
    transition: color 0.2s;
  }

  .modal-close:hover { color: var(--accent2); }

  .ai-response {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: none;
  }

  .ai-response.show { display: block; }

  .ai-response p {
    
    font-size: 11px;
    color: var(--accent3);
   
    text-transform: uppercase;
    line-height: 1.8;
  }

  /* Notification */
  .notif {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--surface);
    border: 1px solid var(--accent3);
    box-shadow: var(--glow-green);
    padding: 16px 24px;
    z-index: 2;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 320px;
  }

  .notif.show { transform: translateX(0); }

  .notif-title {
    
    font-size: 11px;
    
    color: var(--accent3);
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .notif-body {
    
    font-size: 11px;
    color: var(--muted);
   
    text-transform: uppercase;
  }

  @media (max-width: 900px) {
    .gptpam-interactive nav { padding: 16px 24px; }
    .nav-links{
      display: none;
    }

    .hero {
      padding: 30px 20px 350px;
      flex-direction: column;
    }

    .hero-viz{
      top:unset;
      bottom:-32%;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
  }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }