:root {
  color-scheme: dark;
  --bg: #1a221e;
  --bg-2: #242424;
  --panel: rgba(24, 31, 28, 0.86);
  --panel-strong: rgba(36, 36, 36, 0.94);
  --line: #475b51;
  --line-soft: rgba(163, 177, 138, 0.32);
  --text: #f2f0e9;
  --muted: #c2c8b5;
  --dim: #8f9a88;
  --khaki: #a3b18a;
  --gold: #e9c46a;
  --amber: #f4a261;
  --danger: #c95d47;
  --shadow: rgba(0, 0, 0, 0.38);
  --max: 1180px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 10%, rgba(233, 196, 106, 0.1), transparent 25rem),
    radial-gradient(circle at 12% 82%, rgba(71, 91, 81, 0.55), transparent 28rem),
    linear-gradient(135deg, var(--bg), #111614 42%, var(--bg-2));
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 4px 4px, 48px 48px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 12rem rgba(0, 0, 0, 0.75);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(163, 177, 138, 0.24);
  background: rgba(14, 19, 17, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  text-decoration: none;
  font-family: "Courier New", monospace;
  letter-spacing: 0;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--khaki);
  color: var(--gold);
  background: rgba(233, 196, 106, 0.09);
}

.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.text-link {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #f4a261, #d89042);
  color: #161713;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(244, 162, 97, 0.18);
  font-family: "Courier New", monospace;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  min-height: 660px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(10, 14, 12, 0.94), rgba(10, 14, 12, 0.68) 47%, rgba(10, 14, 12, 0.25)),
    url("../img/agent17-classified-hero.webp") center right / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 64px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(26, 34, 30, 0.82);
  font-family: "Courier New", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 20px;
  font-family: "Courier New", monospace;
  font-size: clamp(38px, 7vw, 76px);
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.intel-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(22, 29, 26, 0.94);
  box-shadow: 0 20px 44px var(--shadow);
}

.intel-item {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.intel-item:last-child {
  border-right: 0;
}

.intel-item b {
  display: block;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 22px;
}

.intel-item span {
  display: block;
  color: var(--dim);
  font-size: 13px;
  margin-top: 3px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.eyebrow {
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 13px;
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-family: "Courier New", monospace;
}

.section-head p,
.lead {
  color: var(--muted);
  margin: 0;
}

.dossier {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: center;
}

.copy-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.copy-panel p:first-child {
  margin-top: 0;
}

.copy-panel p:last-child {
  margin-bottom: 0;
}

.image-frame {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  padding: 10px;
  position: relative;
}

.image-frame::before {
  content: "AGENT_17_DOSSIER";
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 7px;
  color: #171814;
  background: var(--gold);
  font: 700 11px "Courier New", monospace;
  z-index: 2;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature,
.faq-item,
.timeline-item,
.route-card,
.link-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.feature {
  padding: 22px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--gold);
  border: 1px solid var(--line);
  background: rgba(233, 196, 106, 0.08);
}

.feature h3,
.route-card h3,
.timeline-item h3,
.faq-item h3 {
  font-size: 20px;
  color: var(--text);
}

.feature p,
.route-card p,
.timeline-item p,
.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.mixed-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.mixed-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
}

.mixed-row:nth-child(even) .image-frame {
  order: 2;
}

.route-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
}

.route-table th,
.route-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(163, 177, 138, 0.22);
  text-align: left;
  vertical-align: top;
}

.route-table th {
  color: var(--gold);
  background: rgba(233, 196, 106, 0.08);
  font-family: "Courier New", monospace;
}

.route-table td {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 18px;
}

.version {
  color: var(--gold);
  font: 800 18px "Courier New", monospace;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.gallery-small {
  display: grid;
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-item {
  padding: 20px;
}

.friend-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.link-card {
  padding: 14px;
  color: var(--muted);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cta-band {
  margin-top: 82px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(24, 31, 28, 0.94), rgba(24, 31, 28, 0.68)),
    url("../img/agent17-download-preview.webp") center / cover no-repeat;
}

.cta-band h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.footer {
  margin-top: 82px;
  border-top: 1px solid var(--line-soft);
  background: rgba(12, 16, 14, 0.7);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero {
    min-height: 590px;
    background-position: center;
  }

  .intel-strip,
  .grid,
  .faq,
  .friend-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .dossier,
  .mixed-row,
  .mixed-row:nth-child(even),
  .gallery,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .mixed-row:nth-child(even) .image-frame {
    order: 0;
  }
}

@media (max-width: 620px) {
  .nav-links a {
    padding: 6px 7px;
    font-size: 13px;
  }

  .hero-inner {
    padding-top: 52px;
  }

  .intel-strip,
  .grid,
  .faq,
  .friend-links {
    grid-template-columns: 1fr;
  }

  .intel-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intel-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 58px;
  }

  .copy-panel,
  .cta-band {
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .route-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* Whitehat protocol surfaces; inherit each original site's theme. */
[data-seo-managed="download-link"] { text-decoration: none; }
.seo-home-news { padding-top: 2rem; padding-bottom: 2rem; }
.seo-news-main { width: min(1120px, calc(100% - 2rem)); margin: 5rem auto 4rem; min-height: 38vh; }
.seo-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.seo-news-list > * { min-width: 0; }
.seo-news-detail { width: min(900px, 100%); margin: 0 auto; }
.seo-news-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.seo-news-date { opacity: .75; margin: .6rem 0 1.2rem; }
.seo-news-back a { color: inherit; text-underline-offset: .2em; }
.seo-news-empty { opacity: .75; text-align: center; }
.seo-download-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.58); }
.seo-download-dialog { width: min(430px,100%); padding: 1.4rem; border-radius: .8rem; background: #182033; color: #fff; box-shadow: 0 1.2rem 3rem rgba(0,0,0,.35); }
.seo-download-dialog h3 { margin: 0 0 .7rem; }.seo-download-dialog p { margin: 0; line-height: 1.65; }.seo-download-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.15rem; }.seo-download-actions button { padding: .65rem 1rem; cursor: pointer; }
@media (max-width: 640px) { .seo-news-main { width: min(100% - 1.25rem,1120px); margin-top: 3.5rem; }.seo-news-list { grid-template-columns: 1fr; } }
