/* ============ TG6 — glitch editorial + telemetry ============ */
/* 1. TOKENS */
:root {
  --bg: #07060c; --panel: #0d0b16; --line: #1e1b2e;
  --purple: #a855f7; --cyan: #22d3ee; --magenta: #e879f9; --green: #34d399;
  --text: #e7e9ee; --body: #94a3b8; --muted: #64748b;
  --grad: linear-gradient(90deg, var(--purple), var(--cyan));
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "Space Mono", monospace;
  --wrap: 1140px;
}

/* 2. RESET / BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--body);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.1; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { max-width: 70ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }

/* 3. UTILITIES */
.kicker {
  font-family: var(--font-mono); font-size: 17px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: block;
}
.mono { font-family: var(--font-mono); }
.badge-pre { font-family: var(--font-mono); font-size: 14px; color: var(--magenta); letter-spacing: 1px; }
.status-dot { font-family: var(--font-mono); font-size: 11px; color: var(--green); letter-spacing: 1px; }
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: 5px; border: 0; cursor: pointer;
  background: var(--grad); color: #07060c; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px #a855f755; }
.btn-ghost { background: none; border: 1px solid #475569; color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }

/* 4. OVERLAYS (grain + glow, YFE technique recolored) */
.grain, .glow { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.grain {
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}
.glow {
  background:
    radial-gradient(600px 400px at 85% -5%, #a855f71f, transparent 70%),
    radial-gradient(500px 360px at 10% 40%, #22d3ee14, transparent 70%);
}
main, header, footer { position: relative; z-index: 2; }

/* 5. SCANLINE DIVIDER */
.scanline { height: 1px; background: var(--line); position: relative; overflow: visible; }
.scanline::after {
  content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 1px;
  background: var(--grad); animation: scan 6s linear infinite;
}
@keyframes scan { from { left: -120px; } to { left: 100%; } }

/* 6. REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 7. GLITCH TICK (decorative headings only) */
@keyframes glitch-tick {
  0%, 94%, 100% { text-shadow: none; transform: none; }
  95% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); transform: translateX(1px); }
  97% { text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); transform: translateX(-1px); }
}
.glitch { animation: glitch-tick 8s infinite; }

/* 8. REDUCED MOTION — everything inert */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glitch, .scanline::after, .footer::before, .marquee-track { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ============ NAV ============ */
.nav { position: sticky; top: 0; z-index: 50; background: #07060cb3; backdrop-filter: blur(0px); transition: backdrop-filter .2s, background .2s; border-bottom: 1px solid transparent; }
.nav.scrolled { backdrop-filter: blur(14px); background: #07060ce6; border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links a:hover { color: var(--text); }
.nav-status { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
.mobile-menu { display: none; }
@media (max-width: 768px) {
  .nav-links, .nav-status { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .mobile-menu { display: none; position: fixed; inset: 0; top: 63px; z-index: 49; background: #07060cfa; padding: 36px 24px; flex-direction: column; gap: 22px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { color: var(--text); font-size: 20px; font-family: var(--font-display); }
  .mobile-menu .socials { display: flex; gap: 18px; margin-top: 12px; }
  .mobile-menu .socials a, .footer .socials a { color: var(--body); }
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 96px; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 1px;
  background: var(--grad); animation: scan 6s linear infinite;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer .socials { display: flex; gap: 18px; }
.footer .socials a { color: var(--muted); } .footer .socials a:hover { color: var(--text); }
.footer-tag { font-size: 12px; color: var(--purple); letter-spacing: 2px; }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ============ HERO ============ */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero-copy .btn { margin-top: 8px; font-size: 17px; padding: 16px 32px; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats dt { font-size: 26px; color: var(--cyan); }
.hero-stats dd { font-size: 14px; color: var(--muted); letter-spacing: 2px; }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -10% -16%;
  background: url("../img/brand/tg6-circuit.jpg") center/cover; opacity: .28; border-radius: 18px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.hero-art img { position: relative; filter: drop-shadow(0 18px 48px #a855f733); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 320px; margin: 0 auto; } }

/* ============ FINDER (Signal Check) ============ */
.lineup .kicker { text-align: center; margin-bottom: 22px; }
.finder-tiles { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.finder-tile {
  font-family: var(--font-mono); font-size: 18px; letter-spacing: 2px; cursor: pointer;
  padding: 16px 32px; border-radius: 5px; background: none; color: var(--body);
  border: 1px solid #475569; transition: border-color .15s, color .15s;
}
.finder-tile:hover { border-color: var(--cyan); color: var(--text); }
.finder-tile.is-active { border-color: var(--cyan); color: var(--cyan); }
.finder-line { min-height: 30px; font-size: 16px; text-align: center; color: var(--green); margin-bottom: 28px; }
@media (max-width: 600px) {
  .finder-tiles { flex-wrap: nowrap; gap: 8px; }
  .finder-tile {
    flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap;
    padding: 14px 4px; letter-spacing: .5px;
    font-size: clamp(11px, 3vw, 18px);
  }
}
@media (max-width: 360px) {
  .finder-tiles { gap: 6px; }
  .finder-tile { padding: 13px 2px; letter-spacing: 0; font-size: clamp(10px, 3.2vw, 14px); }
}
.finder-line .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ LINEUP CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.pcard {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 10px 34px #a855f722; }
.pcard.is-rec { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 10px 40px #22d3ee2c; }
.lineup.has-pick .pcard:not(.is-rec) { opacity: .45; }
.tier-label { font-size: 15px; letter-spacing: 1.5px; }
.pcard img { margin: 6px auto; max-height: 230px; object-fit: contain; }
.pcard-name { font-family: var(--font-display); font-size: 28px; color: var(--text); }
.pcard-row { display: flex; justify-content: space-between; align-items: baseline; }
.pcard-price { font-family: var(--font-mono); font-size: 22px; color: var(--text); }
.pcard .badge-pre { font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ============ SUBSCRIBE ============ */
.subscribe-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#subscribe-form { width: min(720px, 100%); }
.sub-row { display: flex; gap: 10px; width: 100%; margin-top: 16px; }
.sub-row input {
  flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  color: var(--text); padding: 16px 20px; font-family: var(--font-body); font-size: 18px;
}
.sub-row .btn { font-size: 17px; }
.sub-row input::placeholder { color: var(--muted); }
.hp { display: none; }
#form-status { font-size: 15px; min-height: 22px; color: var(--green); }
#form-status.err { color: #f87171; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media (max-width: 520px) { .sub-row { flex-direction: column; } }

/* ============ PRODUCT PAGES ============ */
.product-hero { padding: 64px 0 40px; overflow: hidden; }
.product-hero-inner { display: block; max-width: 760px; }
.product-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.product-hero h1 .dot { color: var(--cyan); }
.price-row { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-mono); margin: 10px 0 4px; }
.price-row .price { font-size: 28px; color: var(--text); }
.hero-specs { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 26px; font-family: var(--font-mono); font-size: 16px; color: var(--green); letter-spacing: 1.5px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.product-art { position: relative; }
.product-art img { position: relative; filter: drop-shadow(0 18px 48px #a855f733); }

/* Sticky bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(110%);
  transition: transform .25s ease; background: #0d0b16f2; backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 0;
}
.sticky-bar.visible { transform: none; }
.sticky-bar-inner { display: flex; align-items: center; gap: 18px; }
.sticky-bar .mono { color: var(--text); font-size: 16px; letter-spacing: 1px; }
.sticky-bar .btn { margin-left: auto; padding: 11px 24px; font-size: 16px; }

/* Loadout manifest */
.loadout { padding-top: 56px; position: relative; overflow: hidden; }
.loadout::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/brand/tg6-circuit.jpg") center/cover; opacity: .2;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.loadout-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.loadout-art { position: sticky; top: 96px; }
.loadout-main { min-width: 0; }
.loadout-list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 22px; }
.load-row { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.load-row:last-child { border-bottom: none; }
.load-row img, .load-tile { width: 58px; height: 58px; border-radius: 8px; background: #fff; object-fit: contain; flex: none; padding: 4px; }
.load-tile { background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 10px; }
.load-name { color: var(--text); font-weight: 700; font-size: 18px; }
.load-name .badge-pre { font-size: 14px; margin-left: 8px; }
.load-role { font-size: 16px; color: var(--body); }
.load-spec { margin-left: auto; text-align: right; font-family: var(--font-mono); font-size: 14px; color: var(--green); letter-spacing: 1px; flex: none; }
.load-bar { height: 4px; border-radius: 2px; background: var(--grad); margin-top: 6px; margin-left: auto; transform-origin: right; transform: scaleX(0); transition: transform .9s ease .15s; }
.load-row.in .load-bar { transform: none; }
.load-note { font-size: 16px; color: var(--muted); margin-top: 16px; }
.load-credit { font-size: 13px; color: var(--muted); margin-top: 6px; }
.load-credit a { color: var(--muted); text-decoration: underline; }
@media (max-width: 860px) {
  .loadout-grid { grid-template-columns: 1fr; gap: 28px; }
  .loadout-art { position: static; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .load-spec { display: none; }
  .load-row { gap: 14px; }
}

/* Tier switch */
.tier-switch-wrap { position: relative; z-index: 1; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.tier-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
a.tier-item:hover { border-color: var(--purple); transform: translateY(-2px); }
.tier-item.current { border-color: var(--cyan); }
.tier-item .mono { font-size: 15px; letter-spacing: 1.5px; }
.tier-item .status-dot { font-size: 14px; }
.tier-item .name { font-family: var(--font-display); color: var(--text); font-size: 22px; }
@media (max-width: 640px) { .tier-switch { grid-template-columns: 1fr; } }

/* ============ CONTACT FORM ============ */
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-top: 28px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  color: var(--text); padding: 13px 16px; font-family: var(--font-body); font-size: 15px; width: 100%;
}
.contact-form select:invalid { color: var(--muted); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form ::placeholder { color: var(--muted); }
.contact-form .btn { align-self: flex-start; }
.contact-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; font-size: 13px; }

/* ============ FAQ / LEGAL (details accordions) ============ */
.qa-sub { margin-top: 18px; }
.qa-group { margin: 40px 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
details.qa { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
details.qa summary { cursor: pointer; padding: 16px 18px; color: var(--text); font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-family: var(--font-mono); color: var(--cyan); flex: none; }
details.qa[open] summary::after { content: "–"; }
details.qa .qa-body { padding: 0 18px 16px; font-size: 14px; }
details.qa .qa-body strong { color: var(--text); }
