/* =========================================================
   Talon AntiCheat — technical / engineered theme
   ========================================================= */

:root {
  --bg:      #08090a;
  --bg-alt:  #0b0d0f;
  --panel:   #0e1113;
  --panel-2: #121619;
  --line:    #1c2127;
  --line-2:  #2a313a;
  --text:    #c7cdd5;
  --head:    #f2f5f8;
  --dim:     #69707a;
  --red:     #ff3b47;
  --red-d:   #db2c37;
  --good:    #57d98a;
  --warn:    #ffb454;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --disp: "Space Grotesk", var(--sans);

  --maxw: 1160px;
  --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

::selection { background: rgba(255,59,71,.28); color: #fff; }

/* ---------- shared typographic bits ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--red);
  margin-bottom: 18px;
}
.head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.head--left { text-align: left; margin-inline: 0; }
.head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--head);
}
.lede { margin-top: 16px; color: var(--dim); font-size: 16.5px; }
.red { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  --pad: 12px 20px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad);
  font-family: var(--mono);
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--sm { --pad: 9px 15px; font-size: 13px; }
.btn--lg { --pad: 15px 26px; font-size: 15px; }
.btn--solid {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 1px var(--red-d) inset, 0 8px 26px -12px rgba(255,59,71,.7);
}
.btn--solid:hover { background: #ff4d58; transform: translateY(-2px); box-shadow: 0 0 0 1px var(--red) inset, 0 14px 34px -12px rgba(255,59,71,.85); }
.btn--line { background: transparent; color: var(--head); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); transform: translateY(-2px); background: rgba(255,255,255,.02); }
.btn__mono { color: rgba(255,255,255,.7); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(8,9,10,.78);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 16px; height: 16px; flex: none;
  background: conic-gradient(from 220deg, var(--red), #fff 55%, var(--red));
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}
.brand__name { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--head); letter-spacing: -.01em; }
.brand__dim { color: var(--dim); font-weight: 400; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--dim); transition: color .15s ease; }
.nav__links a:hover { color: var(--head); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 20px; height: 2px; background: var(--text); transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 84px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0, #000 0%, transparent 68%);
          mask-image: radial-gradient(120% 80% at 70% 0, #000 0%, transparent 68%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,59,71,.16), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px;
  margin-bottom: 26px;
}
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(87,217,138,.18); }
.hero__title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(38px, 6.4vw, 66px); line-height: 1.02; letter-spacing: -.035em;
  color: var(--head);
}
.hero__sub { margin-top: 24px; max-width: 520px; color: var(--dim); font-size: 17px; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__readout {
  display: grid; grid-template-columns: repeat(4, auto); gap: 30px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
  width: fit-content;
}
.hero__readout dt { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: lowercase; letter-spacing: .03em; }
.hero__readout dd { font-family: var(--disp); font-weight: 700; font-size: 26px; color: var(--head); margin-top: 3px; }
.hero__readout dd span { color: var(--dim); font-size: 15px; font-weight: 500; }

/* ---------- packet inspector / terminal ---------- */
.inspector, .terminal {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.inspector__bar, .terminal__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.inspector__dots { display: inline-flex; gap: 6px; }
.inspector__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3038; }
.inspector__dots i:first-child { background: #ff5f56; }
.inspector__dots i:nth-child(2) { background: #ffbd2e; }
.inspector__dots i:nth-child(3) { background: #27c93f; }
.inspector__path { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.inspector__body, .terminal__body {
  margin: 0; padding: 20px 20px 22px;
  font-size: 13px; line-height: 1.85; color: var(--text);
  white-space: pre; overflow-x: auto;
}
.inspector__body .ln, .dim { color: var(--dim); }
.kw { color: #8ab4ff; }
.bad { color: var(--red); }
.good { color: var(--good); }
.num { color: var(--head); }
.warn { color: var(--warn); }
.row-flag { color: var(--red); display: block; margin-top: 6px; }
.row-act { color: var(--good); display: block; }
.cmd { color: var(--head); }
.caret { color: var(--red); animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- latest patch note card ---------- */
.latestwrap { padding: 0 0 8px; }
.latest {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 20px; text-decoration: none;
  transition: border-color .15s ease, transform .12s ease;
}
.latest:hover { border-color: var(--line-2); transform: translateY(-1px); }
.latest__tag { font-family: var(--mono); font-size: 12px; color: var(--red); }
.latest__title { color: var(--head); font-weight: 600; font-size: 15px; }
.latest__date { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.latest__arrow { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--red); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }

/* ---------- pipeline ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow__step { position: relative; padding: 28px 26px 30px; border: 1px solid var(--line); border-left: 0; }
.flow__step:first-child { border-left: 1px solid var(--line); border-radius: var(--r) 0 0 var(--r); }
.flow__step:last-child { border-radius: 0 var(--r) var(--r) 0; }
.flow__step::after {
  content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--line-2); background: var(--bg); padding: 2px; z-index: 2;
}
.flow__step:last-child::after { display: none; }
.flow__no { font-family: var(--mono); font-size: 12px; color: var(--red); }
.flow__step h3 { font-family: var(--disp); font-weight: 600; font-size: 19px; color: var(--head); margin: 12px 0 9px; }
.flow__step p { font-size: 14.5px; color: var(--dim); }
.flow__step code { color: var(--text); background: var(--panel); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; border: 1px solid var(--line); }

/* ---------- detections ---------- */
.det { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.det__col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.det__col--note { background: linear-gradient(180deg, rgba(255,59,71,.05), transparent), var(--panel); }
.det__cat { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 600; font-size: 18px; color: var(--head); margin-bottom: 18px; }
.det__cat--mt { margin-top: 26px; }
.det__idx { display: grid; place-items: center; width: 24px; height: 24px; font-family: var(--mono); font-size: 12px; color: var(--red); border: 1px solid var(--line-2); border-radius: 6px; }
.det__list { list-style: none; }
.det__list li { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid var(--line); }
.det__list li:first-child { border-top: 0; }
.det__list b { font-weight: 600; color: var(--head); font-size: 15px; }
.det__list span { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 2px; }
.det__soft b { color: var(--text); }
.det__col--note p { color: var(--dim); font-size: 14.5px; margin-bottom: 14px; }
.det__meta { display: flex; align-items: center; gap: 10px; font-size: 13px !important; color: var(--text) !important; }
.tickline { width: 22px; height: 2px; background: var(--good); flex: none; }

/* ---------- enforcement strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; padding: 30px 24px; }
.strip__item { text-align: center; padding: 6px 36px; }
.strip__item b { display: block; font-family: var(--mono); font-size: 15px; color: var(--red); margin-bottom: 4px; }
.strip__item span { font-size: 13.5px; color: var(--dim); }
.strip__sep { width: 1px; height: 36px; background: var(--line); }

/* ---------- install ---------- */
.install { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.req { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.req li { font-family: var(--mono); font-size: 13px; color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 8px 13px; }
.req li span { color: var(--red); margin-right: 8px; }

/* ---------- cta ---------- */
.cta { padding: clamp(64px, 9vw, 100px) 0; border-top: 1px solid var(--line); }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.cta__text h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(28px, 4.5vw, 44px); color: var(--head); letter-spacing: -.02em; line-height: 1.08; }
.cta__text p { margin: 16px 0 28px; color: var(--dim); max-width: 460px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__widget iframe { display: block; border-radius: var(--r); border: 1px solid var(--line-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--dim); transition: color .15s; }
.footer__links a:hover { color: var(--head); }
.footer__copy { font-family: var(--mono); font-size: 12px; color: var(--dim); width: 100%; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .caret { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__sub { max-width: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step { border-left: 1px solid var(--line) !important; border-radius: 0 !important; }
  .flow__step::after { display: none; }
  .det { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; gap: 34px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__widget { justify-self: start; }
}
@media (max-width: 680px) {
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(8,9,10,.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .26s ease;
  }
  .nav__links.open { max-height: 340px; }
  .nav__links a { padding: 15px 24px; border-top: 1px solid var(--line); }
  .nav__burger { display: flex; }
  .hero__readout { grid-template-columns: 1fr 1fr; gap: 22px; }
  .flow { grid-template-columns: 1fr; }
  .strip__sep { display: none; }
  .strip__item { padding: 10px 0; }
}
