:root {
  --bg: #050208;
  --bg-2: #0b0311;
  --panel: rgba(13, 5, 20, 0.78);
  --panel-2: rgba(20, 7, 30, 0.72);
  --text: #f7f2fb;
  --muted: #a89ab4;
  --line: rgba(255, 68, 198, 0.26);
  --pink: #ff2aa8;
  --hot: #ff4b7d;
  --violet: #a542ff;
  --purple: #6d28d9;
  --silver: #f3f3f7;
  --green: #5cffb0;
  --danger: #ff3158;
  --warning: #ff9e46;
  --medium: #e5d85c;
  --shadow: 0 0 42px rgba(255, 42, 168, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 31, 161, .16), transparent 36%),
    linear-gradient(180deg, #050207 0%, #09020f 48%, #050207 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 82%);
  z-index: -1;
}

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.noise {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: rgba(5, 2, 8, .76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .8rem; letter-spacing: .14em; font-weight: 800; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,42,168,.25)); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; color: #c9bbd1; font-size: .72rem; letter-spacing: .14em; transition: .2s ease; }
.nav a:hover { color: #fff; text-shadow: 0 0 14px var(--pink); }
.status-pill { justify-self: end; font-size: .64rem; letter-spacing: .1em; color: #d8cadf; border: 1px solid var(--line); padding: 9px 11px; background: rgba(255,42,168,.045); }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 6px; }

.hero {
  min-height: 100vh;
  padding: 120px 7vw 64px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,2,8,.94) 0%, rgba(5,2,8,.84) 35%, rgba(5,2,8,.34) 65%, rgba(5,2,8,.72) 100%),
    linear-gradient(180deg, rgba(5,2,8,.35), rgba(5,2,8,.82) 86%),
    url('assets/spaceghostkilla-wallpaper.png') center/cover no-repeat;
  opacity: .88;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-grid { width: min(1380px, 100%); display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 36px; }
.eyebrow, .section-code { color: var(--pink); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.3rem, 7vw, 7.4rem); line-height: .82; letter-spacing: -.08em; margin: 26px 0 28px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-style: italic; transform: skew(-3deg); text-shadow: 0 0 26px rgba(255,42,168,.18); }
.hero h1 span { display: inline-block; }
.metal { color: var(--silver); }
.ghost { color: #e8dcec; }
.killa { color: var(--pink); text-shadow: 0 0 22px rgba(255,42,168,.5); }
.hero-lede { max-width: 760px; color: #d1c3d7; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.btn { padding: 13px 17px; text-decoration: none; font-weight: 800; font-size: .72rem; letter-spacing: .11em; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(255,42,168,.2); }
.btn-primary { background: linear-gradient(90deg, #b51d7d, var(--pink)); color: white; border-color: rgba(255,255,255,.2); }
.btn-ghost { background: rgba(255,255,255,.025); color: #eee; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-meta div { padding: 14px 15px; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta span { display: block; color: #897a92; font-size: .62rem; letter-spacing: .12em; margin-bottom: 5px; }
.hero-meta strong { font-size: .75rem; color: #f5edf8; }
.hero-mark { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-mark img { width: min(670px, 100%); filter: drop-shadow(0 0 34px rgba(255,42,168,.15)); animation: float 6s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(255,42,168,.18); border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.orbit-a { width: 80%; aspect-ratio: 1.8; }
.orbit-b { width: 58%; aspect-ratio: 1.5; transform: rotate(34deg); border-color: rgba(165,66,255,.12); }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #786b80; font-size: .62rem; letter-spacing: .18em; }

.section { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 108px 0; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.section-heading h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.035em; margin: 18px 0 20px; text-transform: uppercase; }
.section-heading h2 span { color: var(--pink); }
.section-heading p { color: var(--muted); max-width: 760px; line-height: 1.75; font-size: 1rem; }
.centered { text-align: center; margin-inline: auto; }
.centered p { margin-inline: auto; }

.intel-panel { position: relative; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,42,168,.06), rgba(65,20,95,.14)); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); color: #e2d7e7; font-size: .72rem; letter-spacing: .12em; }
.blink { color: var(--pink); animation: blink 1.2s steps(2) infinite; }
.metric { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding: 19px; border-bottom: 1px solid rgba(255,68,198,.11); }
.metric span { color: #8f8198; font-size: .7rem; letter-spacing: .12em; }
.metric strong { font-size: .8rem; color: #f7eef9; }
.metric .safe { color: var(--green); }
.scanline { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pink), transparent); box-shadow: 0 0 14px var(--pink); opacity: .6; animation: scan 5s linear infinite; }

.filterbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 30px; }
.filter { border: 1px solid var(--line); background: rgba(255,255,255,.02); color: #a99cad; padding: 10px 14px; font: inherit; font-size: .68rem; letter-spacing: .12em; cursor: pointer; }
.filter:hover, .filter.active { color: white; background: rgba(255,42,168,.12); border-color: rgba(255,42,168,.55); box-shadow: 0 0 18px rgba(255,42,168,.12); }
.vuln-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vuln-card { min-height: 320px; display: flex; flex-direction: column; border: 1px solid rgba(255,68,198,.16); background: linear-gradient(180deg, rgba(22,8,32,.78), rgba(8,3,12,.9)); padding: 20px; position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .2s ease; }
.vuln-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--pink), transparent); transform: translateX(-100%); transition: transform .45s ease; }
.vuln-card:hover { transform: translateY(-4px); border-color: rgba(255,42,168,.5); box-shadow: 0 18px 50px rgba(0,0,0,.3), 0 0 26px rgba(255,42,168,.09); }
.vuln-card:hover::before { transform: translateX(0); }
.vuln-card.hidden { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: #776a80; font-size: .68rem; letter-spacing: .1em; }
.severity { padding: 5px 7px; border: 1px solid currentColor; }
.critical { color: #ff3a67; }
.high { color: #ff8a4a; }
.medium { color: #e7db5f; }
.vuln-card h3 { font-size: 1.28rem; margin: 24px 0 12px; }
.vuln-card > p { color: #b7a9bd; line-height: 1.65; font-size: .84rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; }
.tags span { font-size: .62rem; color: #c9bad0; background: rgba(165,66,255,.09); border: 1px solid rgba(165,66,255,.18); padding: 4px 6px; }
.defense { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); color: #9c8da4; font-size: .72rem; line-height: 1.55; }
.defense b { color: var(--green); font-size: .65rem; letter-spacing: .1em; }

.research-section { border-top: 1px solid rgba(255,68,198,.1); }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.research-card { min-height: 260px; padding: 24px; border: 1px solid rgba(255,68,198,.15); background: rgba(255,255,255,.018); }
.research-card > span { color: var(--pink); font-size: .66rem; letter-spacing: .14em; }
.research-card h3 { font-size: 1.25rem; margin: 28px 0 14px; }
.research-card p { color: var(--muted); line-height: 1.7; font-size: .84rem; }
.research-card a { display: inline-block; margin-top: 18px; color: #fff; text-decoration: none; font-size: .72rem; letter-spacing: .1em; }

.terminal-section { width: min(1100px, calc(100% - 48px)); }
.terminal { margin-top: 32px; border: 1px solid rgba(255,42,168,.38); background: rgba(3,1,5,.92); box-shadow: 0 0 54px rgba(255,42,168,.11); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,42,168,.18); background: rgba(255,42,168,.035); }
.term-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b586f; }
.term-dot:first-child { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.term-title { margin-left: 8px; color: #827487; font-size: .68rem; }
.terminal-output { min-height: 250px; max-height: 340px; overflow: auto; padding: 22px; color: #cbbfd0; line-height: 1.65; font-size: .82rem; }
.terminal-output p { margin: 0 0 8px; }
.prompt { color: var(--pink); }
.terminal-input-row { display: flex; align-items: center; gap: 8px; padding: 0 22px 20px; color: #ca33a0; font-size: .82rem; }
.terminal-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: white; font: inherit; caret-color: transparent; }
.cursor-block { width: 8px; height: 16px; background: var(--pink); animation: blink 1s steps(2) infinite; }

.disclosure-card { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); background: radial-gradient(circle at 10% 10%, rgba(255,42,168,.08), transparent 42%), rgba(13,5,20,.62); }
.disclosure-card h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(2.7rem, 4vw, 4.8rem); line-height: .98; margin: 16px 0; text-transform: uppercase; }
.disclosure-card h2 span { color: var(--pink); }
.disclosure-card > div > p { color: var(--muted); line-height: 1.75; }
.rules > div { display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.rules span { color: var(--pink); font-weight: 900; }
.rules p { margin: 0; color: #c2b5c7; line-height: 1.55; font-size: .85rem; }

footer { width: min(1380px, calc(100% - 48px)); margin: 0 auto; min-height: 120px; border-top: 1px solid rgba(255,68,198,.12); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { letter-spacing: .12em; font-size: .8rem; }
.footer-brand span, .footer-meta { color: #776a80; font-size: .62rem; letter-spacing: .1em; }
.footer-meta span { color: var(--pink); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scan { from { top: -2%; } to { top: 102%; } }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { min-height: 360px; order: -1; }
  .hero-mark img { width: min(500px, 88vw); }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { margin-inline: auto; }
  .section-grid, .disclosure-card { grid-template-columns: 1fr; }
  .vuln-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { height: 62px; padding: 0 14px; }
  .brand span { display: none; }
  .brand img { width: 38px; height: 38px; }
  .status-pill { font-size: .54rem; padding: 8px; }
  .hero { padding: 94px 20px 56px; min-height: auto; }
  .hero-mark { min-height: 290px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta div:last-child { border-bottom: 0; }
  .scroll-cue { display: none; }
  .section { width: min(100% - 30px, 1380px); padding: 76px 0; }
  .vuln-grid { grid-template-columns: 1fr; }
  .metric { grid-template-columns: 1fr; gap: 8px; }
  .terminal-section { width: min(100% - 30px, 1100px); }
  .terminal-input-row { flex-wrap: wrap; }
  footer { width: min(100% - 30px, 1380px); flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
