  :root {
    --void: #04060f;
    --deep: #23133a;
    --panel: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --hot: #e685fe;
    --warn: #ffaa00;
    --safe: #00ff88;
    --text: #c8dce8;
    --muted: #d6d6d6;
    --glow-c: #873cf05a;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  .aithreatsecure {
    background: #191127;
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    cursor: none;
    height: 100vh;
  }

  /* CUSTOM CURSOR */
  #cursor {
    position: fixed; width: 12px; height: 12px;
    background: var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 2;
    transform: translate(-50%, -50%);
    transition: transform 0.05s, background 0.2s;
    mix-blend-mode: screen;
  }
  #cursor-ring {
    position: fixed; width: 36px; height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%; pointer-events: none; z-index: 2;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.2s, height 0.2s, border-color 0.2s;
    opacity: 0.6;
  }

  /* SCANLINE OVERLAY */
  .aithreatsecure::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; z-index: 0;
  }

  /* ─── HERO ─── */
  #hero {
    position: relative; height: 100vh; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; flex-direction: column;
  }

  .aithreatsecure canvas#matrix {
    position: absolute; inset: 0; opacity: 0.18;
  }

  .hex-grid {
    position: absolute; inset: 0; overflow: hidden; opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,16 58,36 30,50 2,36 2,16' fill='none' stroke='%2300e5ff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    animation: hexdrift 40s linear infinite;
  }
  @keyframes hexdrift { to { background-position: 120px 104px; } }

  .hero-content { position: relative; text-align: center; padding: 0 2rem; }

  .hero-tag {
     font-size: 0.65rem;
     color: var(--accent);
    text-transform: uppercase; margin-bottom: 1.5rem;
    display: inline-flex; align-items: center; gap: 0.75rem;
  }
  .hero-tag::before, .hero-tag::after {
    content: ''; display: block; width: 40px; height: 1px; background: var(--accent);
  }

  .aithreatsecure h1 {
    
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9; 
    color: #fff;
    text-shadow: 0 0 60px var(--accent), 0 0 120px #23133a;
    animation: flicker 8s infinite;
  }

  .aithreatsecure h1 span { color: var(--hot); text-shadow: 0 0 60px var(--hot), 0 0 120px #1f1232; }

  @keyframes flicker {
    0%,96%,100% { opacity: 1; }
    97% { opacity: 0.85; }
    98% { opacity: 1; }
    99% { opacity: 0.9; }
  }

  .hero-sub {
    font-size: 0.85rem; color: var(--muted);
    margin-top: 1.5rem; 
    max-width: 500px; margin-inline: auto; line-height: 1.8;
  }

  .hero-stats {
    display: flex; gap: 3rem; justify-content: center;
    margin-top: 3rem; flex-wrap: wrap;
  }
  .stat { text-align: center; }
  .stat-num {
     font-size: 2.5rem;
    color: var(--accent); display: block;
    text-shadow: 0 0 20px var(--accent);
  }
  .stat-label { font-size: 0.6rem;  color: var(--muted); text-transform: uppercase; }

  .scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
     display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-size: 0.6rem;  color: var(--muted);
    animation: bob 2s ease-in-out infinite;
  }
  .scroll-hint::after {
    content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, var(--muted), transparent);
  }
  @keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

  /* ─── SECTION SHARED ─── */
  .aithreatsecure section { padding: 6rem 2rem; position: relative; }
  .container { max-width: 1100px; margin: 0 auto; }

  .section-label {
    font-size: 0.6rem;  color: var(--accent);
    text-transform: uppercase; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .section-label::before { content: '//'; color: var(--hot); }

  .aithreatsecure h2 {
     font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1; color: #fff; margin-bottom: 1rem;
  }

  /* ─── LIVE THREAT FEED ─── */
  #threat-feed { background: var(--deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  .feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: gap; gap: 1rem; }

  .live-badge {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.65rem; color: var(--hot);
  }
  .live-dot {
    width: 8px; height: 8px; background: var(--hot);
    border-radius: 50%; animation: pulse 1.4s infinite;
    box-shadow: 0 0 10px var(--hot);
  }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

  .threat-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .filter-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); 
    font-size: 0.6rem;  padding: 0.4rem 0.9rem;
    cursor: none; transition: all 0.2s; text-transform: uppercase;
  }
  .filter-btn:hover, .filter-btn.active {
    border-color: var(--accent); color: var(--accent);
    background: var(--glow-c);
  }

  .feed-table { width: 100%; border-collapse: collapse; }
  .feed-table th {
    font-size: 0.55rem;  color: var(--muted);
    text-transform: uppercase; padding: 0.75rem 1rem;
    text-align: left; border-bottom: 1px solid var(--border);
  }
  .feed-table td { padding: 0.9rem 1rem; font-size: 0.72rem; border-bottom: 1px solid #5e309d; }
  .feed-row { transition: background 0.2s; animation: rowIn 0.4s ease both; }
  .feed-row:hover { background: #1f1232; }
  @keyframes rowIn { from{opacity:0;transform:translateX(-10px)} to{opacity:1;transform:translateX(0)} }

  .sev { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.6rem;  font-weight: 700; }
  .sev-critical { color: var(--hot); }
  .sev-high { color: var(--warn); }
  .sev-medium { color: #e3e6ee; }
  .sev-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  .tag-chip {
    display: inline-block; padding: 0.2rem 0.55rem;
    border: 1px solid var(--border); font-size: 0.55rem;
     color: var(--muted); margin: 0.1rem;
  }

  /* ─── THREAT ANATOMY ─── */
  #anatomy { background: #1f1232; }
  .anatomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

  @media(max-width:700px){ .anatomy-grid{grid-template-columns:1fr;} }

  .threat-selector { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
  .threat-item {
    border: 1px solid var(--border); padding: 1rem 1.25rem;
    cursor: none; transition: all 0.25s; position: relative; overflow: hidden;
  }
  .threat-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--accent); transform: scaleY(0);
    transition: transform 0.25s; transform-origin: bottom;
  }
  .threat-item:hover::before, .threat-item.selected::before { transform: scaleY(1); }
  .threat-item:hover, .threat-item.selected {
    border-color: var(--accent); background: var(--glow-c);
  }
  .threat-item-name {  font-weight: 700; font-size: 0.85rem; color: #fff; }
  .threat-item-cat { font-size: 0.6rem;  color: var(--muted); margin-top: 0.25rem; }

  .detail-panel {
    background: var(--panel); border: 1px solid var(--border);
    padding: 2rem; position: sticky; top: 2rem;
  }
  .detail-title {  font-size: 2rem; color: var(--accent); }
  .detail-body { font-size: 0.75rem; line-height: 1.9; color: var(--text); margin: 1rem 0; }

  .detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
  .meta-card { background: var(--deep); padding: 0.85rem; border-left: 2px solid var(--accent); }
  .meta-label { font-size: 0.55rem;  color: var(--muted); text-transform: uppercase; margin-bottom: 0.3rem; }
  .meta-val {  font-size: 1.4rem; color: #fff; }

  .risk-bar-wrap { margin-top: 1.5rem; }
  .risk-bar-label { font-size: 0.6rem;  color: var(--muted); text-transform: uppercase; margin-bottom: 0.4rem; display: flex; justify-content: space-between; }
  .risk-bar-track { height: 4px; background: var(--border); }
  .risk-bar-fill { height: 100%; transition: width 0.6s cubic-bezier(.4,0,.2,1); }

  /* ─── AI SHIELD SECTION ─── */
  #shield { background: var(--deep); border-top: 1px solid var(--border); }

  .shield-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; margin-top: 3rem; }
  .shield-card {
    border: 1px solid var(--border); padding: 2rem;
    position: relative; overflow: hidden; transition: all 0.3s;
    cursor: none;
  }
  .shield-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--glow-c), transparent);
    opacity: 0; transition: opacity 0.3s;
  }
  .shield-card:hover { border-color: var(--accent); transform: translateY(-4px); }
  .shield-card:hover::after { opacity: 1; }
  .card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
  .card-title {  font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 0.75rem; }
  .card-desc { font-size: 0.72rem; line-height: 1.8; color: var(--muted); }
  .card-number {
    position: absolute; top: 1.5rem; right: 1.5rem;
     font-size: 3rem;
    color: var(--border); line-height: 1;
  }

  /* ─── THREAT SCANNER ─── */
  #scanner { background: #1f1232; }
  .scanner-wrap {
    background: var(--panel); border: 1px solid var(--border);
    max-width: 680px; margin: 3rem auto 0; padding: 2.5rem;
  }
  .scanner-title {  font-size: 1.8rem; color: #fff; margin-bottom: 0.5rem; }
  .scanner-sub { font-size: 0.7rem; color: var(--muted); margin-bottom: 1.5rem; }

  .scanner-input-row { display: flex; gap: 0; }
  #scan-input {
    flex: 1; background: var(--deep); border: 1px solid var(--border);
    border-right: none; color: var(--text); 
    font-size: 0.78rem; padding: 0.85rem 1rem; outline: none;
    transition: border-color 0.2s;
  }
  #scan-input:focus { border-color: var(--accent); }
  #scan-btn {
    background: var(--accent); color: var(--void);
    border: 1px solid var(--accent); 
    font-size: 1rem;  padding: 0 1.75rem;
    cursor: none; transition: all 0.2s;
  }
  #scan-btn:hover { background: #fff; border-color: #fff; }

  #scan-results { margin-top: 1.5rem; min-height: 120px; }
  .scan-idle { color: var(--muted); font-size: 0.7rem; text-align: center; padding: 2rem; border: 1px dashed var(--border); }
  .scan-line { font-size: 0.7rem; padding: 0.35rem 0; border-bottom: 1px solid #5e309d; display: flex; align-items: center; gap: 0.75rem; }
  .scan-line::before { content: '>'; color: var(--accent); }
  .scan-done { margin-top: 1rem; }
  .threat-score-bar { height: 6px; background: var(--border); margin-top: 0.75rem; }
  .threat-score-fill { height: 100%; transition: width 1s cubic-bezier(.4,0,.2,1); }
  .threat-score-label {  font-size: 1.5rem; margin-top: 0.5rem; }
  .score-detail { font-size: 0.65rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.7; }

  /* ─── STATS BAND ─── */
  #stats-band {
    background: var(--hot); padding: 1.5rem 2rem;
    overflow: hidden; position: relative;
  }
  .ticker-track { display: flex; gap: 4rem; animation: ticker 25s linear infinite; white-space: nowrap; }
  .ticker-item {  font-size: 1.1rem; color: var(--void); display: flex; align-items: center; gap: 0.5rem; }
  .ticker-sep { color: rgba(0,0,0,0.3); }
  @keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

  /* ─── FOOTER ─── */
  .aithreatsecure footer {
    background: #180f26; border-top: 1px solid var(--border);
    padding: 3rem 2rem; text-align: center;
  }
  .footer-logo {  font-size: 2rem; color: var(--accent);  }
  .footer-sub { font-size: 0.6rem; color: var(--muted);  margin-top: 0.5rem; }
  .footer-links { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
  .footer-links a { font-size: 0.65rem;  color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
  .footer-links a:hover { color: var(--accent); }
  .footer-copy { font-size: 0.6rem; color: var(--muted); margin-top: 2rem; opacity: 0.5; }

  /* GLOW DIVIDERS */
  .glow-line { height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.3; margin: 0; }

  /* NAV */
  .aithreatsecure nav {
    position: sticky; top: 0; left: 0; right: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem; background: #180f26;
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    transition: background 0.3s;
  }
  .nav-logo {  font-size: 1.4rem; color: var(--accent);  }
  .nav-logo span { color: var(--hot); }
  .nav-links { display: flex; gap: 1.75rem; align-items: center; }
  .nav-links a { font-size: 0.62rem; color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    background: transparent; border: 1px solid var(--accent);
    color: var(--accent); 
    font-size: 0.6rem;  padding: 0.5rem 1.1rem;
    cursor: none; text-transform: uppercase; transition: all 0.2s;
  }
  .nav-cta:hover { background: var(--accent); color: var(--void); }

  @media(max-width:580px){
    .nav-links { display: none; }
    .anatomy-grid { grid-template-columns: 1fr; }
  }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }