:root {
  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand: #5B359D;
  --brand-2: #47297D;
  --brand-strong: #47297D;
  --brand-mid: #7c3aed;
  --brand-light: #efe7ff;
  --accent: #0ec97f;
  --accent-bg: rgba(14,201,127,.12);
  --text-primary: #0f172a;
  --text-secondary: #536174;
  --text-muted: #7a8799;
  --border: rgba(91,53,157,.16);
  --border-light: rgba(91,53,157,.10);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --dark: #090413;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Navbar safety */
nav a,
nav a:hover,
nav a:focus,
nav a:active,
.nav-mobile a,
.nav-mobile a:hover,
.nav-mobile a:focus,
.nav-mobile a:active {
  text-decoration: none !important;
}

nav .nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
nav .nav-actions .btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: none;
}
nav .nav-actions .btn-ghost:hover {
  color: var(--brand);
  background: var(--brand-light);
  border-color: var(--brand);
}
nav .nav-actions .btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}
nav .nav-actions .btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.hunt-main {
  --brand: #5B359D;
  --brand-mid: #7c3aed;
  --brand-light: #efe7ff;
  --accent: #0ec97f;
  --text: #0f172a;
  --text-2: #536174;
  --muted: #7a8799;
  --border: rgba(91,53,157,.16);
  --border-light: rgba(91,53,157,.10);
  --dark: #090413;
  --dark-2: #140923;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 16px 40px rgba(13,17,23,.08);
  --shadow-lg: 0 34px 90px rgba(13,17,23,.15);

  overflow: hidden;
  background:
    radial-gradient(circle at 7% 2%,rgba(124,58,237,.055),transparent 24%),
    linear-gradient(180deg,#fff 0%,#fcfbff 48%,#fff 100%);
}

.hunt-main *,
.hunt-main *::before,
.hunt-main *::after { box-sizing: border-box; }

.hunt-main a { color: inherit; text-decoration: none; }

.hunt-main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1;
  transition: transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.hunt-main .btn-xl { min-height: 56px; padding: 0 28px; }
.hunt-main .btn-primary {
  color: #fff;
  background: linear-gradient(135deg,var(--brand),var(--brand-mid));
  box-shadow: 0 18px 38px rgba(91,53,157,.24);
}
.hunt-main .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 23px 46px rgba(91,53,157,.30); }
.hunt-main .btn-ghost { color: var(--brand); background: #fff; border-color: var(--border); }
.hunt-main .btn-ghost:hover { background: var(--brand-light); transform: translateY(-2px); }

.hunt-main .eyebrow {
  margin-bottom: 14px;
  color: var(--brand);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hunt-main .eyebrow-light { color: #cbb8ff; }

.hunt-main .step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 800;
}
.hunt-main .step-label > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-light);
  font-family: var(--font-mono);
  font-size: .7rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hunt-main .fade-up { opacity: 0; animation: fadeUp .62s ease forwards; }
.hunt-main .d1 { animation-delay: .05s; }
.hunt-main .d2 { animation-delay: .16s; }

/* HERO */
.hunt-hero {
  width: min(1460px,calc(100% - 48px));
  min-height: 790px;
  margin: 64px auto 0;
  padding: 104px 22px 76px;
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(540px,1.12fr);
  gap: 70px;
  align-items: center;
}
.hero-copy,.hero-visual { position: relative; z-index: 2; }
.hero-copy { max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(91,53,157,.12);
  border-radius: 999px;
  background: rgba(91,53,157,.07);
  color: var(--brand);
  font-size: .86rem;
  font-weight: 750;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(14,201,127,.10);
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem,4.55vw,4.7rem);
  line-height: .97;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero-copy h1 em { color: var(--brand); font-style: normal; }

.hero-sub {
  max-width: 690px;
  margin: 27px 0 0;
  color: var(--text-2);
  font-size: clamp(1.08rem,1.28vw,1.22rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  color: var(--brand);
  font-size: .97rem;
  font-weight: 750;
}
.text-link svg { transition: transform .18s ease; }
.text-link:hover svg { transform: translateX(4px); }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 45px;
  padding-top: 27px;
  border-top: 1px solid var(--border-light);
}
.hero-proof strong { display: block; margin-bottom: 6px; font-size: .95rem; }
.hero-proof span { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.hero-visual { min-width: 0; transform: translateX(18px); }

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  border: 1px solid rgba(124,58,237,.12);
  border-radius: 50%;
}
.orbit-a { width: 720px; height: 720px; transform: translate(-48%,-50%); }
.orbit-b { width: 550px; height: 550px; transform: translate(-48%,-50%); border-color: rgba(124,58,237,.06); }

.hunt-canvas {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background: #090513;
  color: #fff;
  box-shadow: 0 40px 90px rgba(9,4,18,.26);
  transform: rotate(.6deg);
}
.canvas-bar {
  min-height: 48px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.48);
  font-family: var(--font-mono);
  font-size: .68rem;
}
.canvas-bar > span { color: #72e6ad; font-weight: 700; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }

.canvas-body {
  padding: 24px;
  display: grid;
  grid-template-columns: .9fr auto 1.1fr;
  gap: 16px;
  align-items: center;
}

.ioc-select {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.select-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.select-head span { color: rgba(255,255,255,.55); font-size: .72rem; }
.select-head strong { color: #bfa9f7; font-size: .72rem; }

.ioc-row {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ioc-row:first-of-type { border-top: 0; }
.ioc-row span { color: #a88de6; font-family: var(--font-mono); font-size: .6rem; }
.ioc-row code {
  overflow: hidden;
  color: rgba(255,255,255,.68);
  font-family: var(--font-mono);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ioc-row b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: rgba(255,255,255,.4);
  font-size: .68rem;
}
.ioc-row.active { background: rgba(124,58,237,.08); }
.ioc-row.active b { color: #70e7ad; border-color: rgba(14,201,127,.18); background: rgba(14,201,127,.08); }

.builder-arrow { color: #bca6f5; font-size: 1.35rem; }

.query-editor {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: #06020b;
}
.editor-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.editor-head small { display: block; color: rgba(255,255,255,.33); font-family: var(--font-mono); font-size: .58rem; }
.editor-head strong { display: block; margin-top: 3px; color: #d8c8ff; font-size: .76rem; }
.editor-head > span { color: rgba(255,255,255,.42); font-size: .66rem; }
.query-editor pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #d8cdf6;
  font-family: var(--font-mono);
  font-size: .67rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.floating-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}
.floating-chip > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
}
.floating-chip small,.floating-chip strong { display: block; }
.floating-chip small { margin-bottom: 2px; color: var(--muted); font-size: .66rem; }
.floating-chip strong { font-size: .82rem; }
.chip-one { top: -28px; right: 28px; }
.chip-two { bottom: -34px; left: -34px; }

/* RAIL */
.decision-rail {
  width: min(1260px,calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: .8fr repeat(3,1fr);
  align-items: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.rail-label { color: var(--brand); font-size: .92rem; font-weight: 800; }
.decision-rail > div:not(.rail-label) { position: relative; padding: 4px 26px; }
.decision-rail > div:not(.rail-label)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border-light);
}
.decision-rail span { display: block; margin-bottom: 3px; color: var(--brand); font-family: var(--font-mono); font-size: .66rem; }
.decision-rail strong { display: block; font-size: .96rem; }
.decision-rail small { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; }

/* STORY */
.story-intro {
  width: min(960px,calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 104px;
  text-align: center;
}
.story-intro h2,
.flow-copy h2,
.language-head h2,
.rules-copy h2,
.custom-copy h2,
.output-copy h2,
.closing-dark h2,
.closing-light h2 {
  margin: 0;
  font-size: clamp(2.05rem,3.1vw,3.25rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 800;
}
.story-intro h2 span { color: var(--brand); }
.story-intro p {
  max-width: 790px;
  margin: 25px auto 0;
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.76;
}

/* HUNT FLOW */
.hunt-flow {
  width: min(1320px,calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 126px;
  display: grid;
  grid-template-columns: minmax(360px,.78fr) minmax(0,1.22fr);
  gap: 88px;
  align-items: center;
}
.flow-copy p,
.rules-copy p,
.custom-copy p,
.output-copy p {
  max-width: 650px;
  margin: 23px 0 0;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.72;
}

.flow-map {
  position: relative;
  min-height: 480px;
}
.map-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 170px;
  height: 170px;
  transform: translate(-50%,-50%);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,var(--brand),var(--brand-mid));
  box-shadow: 0 26px 65px rgba(91,53,157,.25);
}
.map-center small { font-family: var(--font-mono); font-size: .64rem; opacity: .66; }
.map-center strong { margin-top: 6px; font-size: .92rem; }

.map-node {
  position: absolute;
  z-index: 3;
  min-width: 140px;
  padding: 17px 18px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-sm);
}
.map-node span { display: block; margin-bottom: 4px; color: var(--brand); font-size: .72rem; font-weight: 800; }
.map-node strong { font-size: 1.16rem; }
.node-ip { left: 2%; top: 9%; }
.node-domain { right: 5%; top: 4%; }
.node-url { right: 0; bottom: 18%; }
.node-hash { left: 4%; bottom: 8%; }
.node-artifact { left: 42%; bottom: -2%; }

.map-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg,rgba(91,53,157,.34),rgba(91,53,157,.03));
}
.line-a { transform: rotate(210deg); }
.line-b { transform: rotate(325deg); }
.line-c { transform: rotate(24deg); }
.line-d { transform: rotate(150deg); }
.line-e { transform: rotate(88deg); width: 170px; }

/* LANGUAGE */
.language-band {
  padding: 108px 48px 118px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 5%,rgba(124,58,237,.26),transparent 30%),
    linear-gradient(145deg,#090313 0%,#150925 58%,#080312 100%);
}
.language-inner { width: min(1260px,100%); margin: 0 auto; }
.language-head {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(360px,.68fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 34px;
}
.language-head h2 { max-width: 760px; }
.language-head > p { margin: 0; color: rgba(255,255,255,.65); font-size: 1.03rem; line-height: 1.7; }

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}
.lang-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.60);
  font: inherit;
  font-size: .76rem;
  cursor: default;
}
.lang-pill.active {
  background: rgba(124,58,237,.22);
  border-color: rgba(190,165,255,.28);
  color: #e4d8ff;
}

.language-editor {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  background: #06020b;
  box-shadow: 0 28px 70px rgba(0,0,0,.20);
}
.editor-labels {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.editor-labels > div {
  padding: 16px 18px;
  border-left: 1px solid rgba(255,255,255,.06);
}
.editor-labels > div:first-child { border-left: 0; }
.editor-labels span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.36); font-size: .64rem; }
.editor-labels strong { font-size: .78rem; }
.language-editor pre {
  margin: 0;
  padding: 26px;
  overflow: auto;
  color: #d9cff7;
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* RULES - ASYMMETRIC */
.rules-section {
  width: min(1320px,calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 132px;
  display: grid;
  grid-template-columns: minmax(360px,.75fr) minmax(0,1.25fr);
  gap: 88px;
  align-items: center;
}
.rules-stage {
  position: relative;
  min-height: 500px;
}
.rule-card {
  position: absolute;
  width: min(520px,88%);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.sigma-card { left: 0; top: 0; transform: rotate(-2deg); }
.yara-card { right: 0; bottom: 0; transform: rotate(2deg); }

.rule-top {
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.rule-top > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 800;
}
.rule-top strong { font-size: .9rem; }
.rule-top small { color: var(--muted); font-size: .7rem; }

.rule-lines { padding: 12px 20px 20px; }
.rule-lines > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: .74rem;
}
.rule-lines > div:last-child { border-bottom: 0; }
.rule-lines b { color: var(--brand); font-weight: 600; }
.rule-lines span { color: var(--text-2); }

.rule-float {
  position: absolute;
  z-index: 5;
  left: 44%;
  top: 46%;
  max-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
  transform: translate(-50%,-50%);
}
.rule-float strong,.rule-float span { display: block; }
.rule-float strong { margin-bottom: 3px; color: var(--brand); font-size: .84rem; }
.rule-float span { color: var(--muted); font-size: .74rem; line-height: 1.4; }

/* CUSTOM */
.custom-section {
  padding: 104px 48px 116px;
  background:
    radial-gradient(circle at 15% 72%,rgba(124,58,237,.07),transparent 28%),
    linear-gradient(180deg,#fbf9ff,#fff);
}
.custom-layout {
  width: min(1260px,100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 82px;
  align-items: center;
}
.custom-panel {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.panel-title {
  padding: 24px 26px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(145deg,#faf7ff,#fff);
}
.panel-title small { display: block; margin-bottom: 4px; color: var(--brand); font-family: var(--font-mono); font-size: .64rem; }
.panel-title strong { font-size: 1.03rem; }

.custom-row {
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--border-light);
}
.custom-row:first-of-type { border-top: 0; }
.custom-row span { display: block; margin-bottom: 3px; font-size: .88rem; font-weight: 700; }
.custom-row small { color: var(--muted); font-size: .74rem; }

.toggle {
  width: 44px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  background: #e8e4ef;
}
.toggle i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
}
.toggle.on { background: var(--brand); }
.toggle.on i { margin-left: 20px; }

.select-pill {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 700;
}

/* OUTPUT */
.output-section {
  width: min(1260px,calc(100% - 48px));
  margin: 0 auto;
  padding: 124px 0 116px;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 88px;
  align-items: start;
}
.output-rail { display: grid; }
.output-rail > div {
  display: grid;
  grid-template-columns: 44px 130px 1fr;
  gap: 16px;
  align-items: center;
  padding: 23px 0;
  border-top: 1px solid var(--border-light);
}
.output-rail > div:last-child { border-bottom: 1px solid var(--border-light); }
.output-rail span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .68rem;
}
.output-rail strong { font-size: .93rem; }
.output-rail small { color: var(--muted); font-size: .8rem; }

/* CLOSING */
.closing-section {
  width: min(1320px,calc(100% - 48px));
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: stretch;
}
.closing-dark {
  min-height: 420px;
  padding: 66px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 12%,rgba(124,58,237,.28),transparent 32%),
    linear-gradient(145deg,#090313,#160b26);
}
.closing-dark p {
  max-width: 650px;
  margin: 21px 0 0;
  color: rgba(255,255,255,.67);
  font-size: 1rem;
  line-height: 1.7;
}
.closing-light {
  position: relative;
  z-index: 3;
  align-self: center;
  margin-left: -34px;
  padding: 54px 48px;
  border: 1px solid var(--border-light);
  border-radius: 32px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 32px 80px rgba(13,17,23,.13);
}
.closing-light h2 { font-size: clamp(1.9rem,2.4vw,2.65rem); }
.closing-light p { margin: 20px 0 0; color: var(--text-2); font-size: .98rem; line-height: 1.65; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* FOOTER */
.site-footer {
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #090413;
  color: rgba(255,255,255,.42);
  font-family: var(--font-sans);
}
.site-footer .footer-logo { color: #fff; font-size: 1.08rem; font-weight: 900; }
.site-footer .footer-links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-links a { color: inherit; text-decoration: none; font-size: .84rem; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer > span { font-size: .8rem; }

/* RESPONSIVE */
@media (max-width: 1160px) {
  .hunt-hero { grid-template-columns: minmax(0,.88fr) minmax(470px,1.12fr); gap: 42px; }
  .hero-copy h1 { font-size: clamp(2.8rem,4.4vw,4.2rem); }
  .hunt-flow,.rules-section,.output-section { gap: 54px; }
}

@media (max-width: 980px) {
  .hunt-hero {
    width: min(100% - 36px,860px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 80px 0;
  }
  .hero-visual { transform: none; }

  .decision-rail {
    width: min(100% - 36px,860px);
    grid-template-columns: 1fr;
  }
  .rail-label { padding-bottom: 14px; }
  .decision-rail > div:not(.rail-label) { padding: 15px 0; border-top: 1px solid var(--border-light); }
  .decision-rail > div:not(.rail-label)::before { display: none; }

  .story-intro { width: min(100% - 36px,820px); }

  .hunt-flow,.rules-section,.output-section {
    width: min(100% - 36px,860px);
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .language-band,.custom-section { padding-left: 20px; padding-right: 20px; }
  .language-head { grid-template-columns: 1fr; gap: 22px; }
  .custom-layout { grid-template-columns: 1fr; gap: 46px; }

  .rules-stage { min-height: 560px; }

  .closing-section {
    width: min(100% - 36px,860px);
    grid-template-columns: 1fr;
  }
  .closing-dark { padding: 56px 44px 88px; }
  .closing-light { margin: -42px 28px 0; }
}

@media (max-width: 680px) {
  .hunt-hero {
    width: calc(100% - 28px);
    padding-top: 62px;
    gap: 58px;
  }
  .hero-copy h1 { font-size: clamp(2.4rem,10vw,3.25rem); }
  .hero-sub { font-size: 1rem; }
  .hero-proof { grid-template-columns: 1fr; gap: 15px; }
  .hero-proof > div { padding-bottom: 13px; border-bottom: 1px solid var(--border-light); }
  .hero-proof > div:last-child { border-bottom: 0; }

  .hunt-main .btn,.hunt-main .btn-xl { width: 100%; }
  .hero-actions { align-items: stretch; }
  .text-link { justify-content: center; }

  .canvas-body { grid-template-columns: 1fr; }
  .builder-arrow { transform: rotate(90deg); text-align: center; }
  .canvas-bar { grid-template-columns: auto 1fr; }
  .canvas-bar > span { display: none; }
  .floating-chip { position: static; margin-top: 12px; }
  .chip-one { display: none; }
  .orbit { display: none; }

  .decision-rail,
  .story-intro,
  .hunt-flow,
  .rules-section,
  .output-section,
  .closing-section {
    width: calc(100% - 28px);
  }

  .story-intro { padding: 84px 0 74px; text-align: left; }
  .story-intro h2,
  .flow-copy h2,
  .language-head h2,
  .rules-copy h2,
  .custom-copy h2,
  .output-copy h2,
  .closing-dark h2 {
    font-size: clamp(1.9rem,8vw,2.6rem);
  }

  .story-intro p,.flow-copy p,.rules-copy p,.custom-copy p,.output-copy p {
    font-size: .98rem;
  }

  .hunt-flow { padding: 56px 0 84px; }

  .flow-map { min-height: 620px; }
  .map-center { width: 140px; height: 140px; }
  .map-node { min-width: 120px; padding: 14px; }
  .node-ip { left: 0; top: 3%; }
  .node-domain { right: 0; top: 14%; }
  .node-url { right: 0; bottom: 18%; }
  .node-hash { left: 0; bottom: 12%; }
  .node-artifact { left: 36%; bottom: 0; }
  .map-line { width: 160px; }

  .language-band { padding: 76px 14px 84px; }
  .editor-labels { grid-template-columns: 1fr; }
  .editor-labels > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); }
  .editor-labels > div:first-child { border-top: 0; }
  .language-editor pre { font-size: .67rem; padding: 20px; }

  .rules-section { padding: 88px 0; }
  .rules-stage { min-height: 650px; }
  .rule-card { width: 92%; }
  .sigma-card { left: 0; }
  .yara-card { right: 0; }
  .rule-float { left: 50%; top: 49%; }

  .custom-section { padding: 76px 14px 84px; }
  .custom-row { padding: 0 18px; }

  .output-section { grid-template-columns: 1fr; padding: 88px 0 84px; }
  .output-rail > div { grid-template-columns: 40px 1fr; }
  .output-rail small { grid-column: 2; }

  .closing-dark {
    min-height: 0;
    padding: 46px 25px 82px;
    border-radius: 28px;
  }
  .closing-light { margin: -42px 14px 0; padding: 38px 23px; border-radius: 24px; }
  .cta-actions { flex-direction: column; }

  .site-footer {
    padding: 28px 20px;
    flex-direction: column;
    text-align: center;
  }
  .site-footer .footer-links { flex-wrap: wrap; justify-content: center; }
}
