/*
Theme Name: Skynet Road
Theme URI: https://skynetroad.com
Author: Skynet Road Inc
Author URI: https://skynetroad.com
Description: A dark, Terminator/Skynet-inspired WordPress theme with boot sequence, ARG hooks, Node ID generator, and cult-brand curiosity mechanics. Built for the network.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skynetroad
Tags: dark, one-column, custom-background, featured-images
*/

/* ════════════════════════════════════
   RESET & VARIABLES
   ════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void: #030303;
  --surface: #080808;
  --card: #0c0c0c;
  --elevated: #111;
  --red: #dc2626;
  --red-hot: #ef4444;
  --red-deep: #7f1d1d;
  --red-faint: rgba(220,38,38,0.06);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,0.08);
  --amber: #f59e0b;
  --text-1: #e4e4e7;
  --text-2: #a1a1aa;
  --text-3: #52525b;
  --text-4: #3f3f46;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red-deep) var(--void);
}

body {
  background: var(--void);
  color: var(--text-1);
  font-family: var(--mono);
  overflow-x: hidden;
  cursor: crosshair;
}

::selection {
  background: var(--red);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ════════════════════════════════════
   BOOT SEQUENCE
   ════════════════════════════════════ */
#boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

#boot.done {
  opacity: 0;
  pointer-events: none;
}

#boot-inner {
  width: 500px;
  max-width: 92vw;
  font-size: 13px;
  line-height: 2.1;
  color: var(--red);
}

.bl { opacity: 0; }
.bl.on { animation: lineIn 0.08s forwards; }
.bl .ok { color: #22c55e; }
.bl .warn { color: var(--amber); }
.bl .fail { color: var(--red-hot); font-weight: 600; }
.bl .dim { color: var(--text-3); }

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--red);
  animation: blink 0.5s step-end infinite;
  vertical-align: middle;
  margin-left: 3px;
}

@keyframes lineIn { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════
   SCANLINES + VIGNETTE
   ════════════════════════════════════ */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px
  );
  opacity: 0.5;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* ════════════════════════════════════
   SITE WRAPPER
   ════════════════════════════════════ */
#site {
  opacity: 0;
  transition: opacity 1.2s 0.3s ease;
}

#site.visible { opacity: 1; }

/* ════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════ */
.skynet-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(3,3,3,0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(220,38,38,0.1);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-svg {
  width: 30px;
  height: 30px;
}

.nav-eye-core {
  animation: eyePulse 2.5s ease-in-out infinite;
}

@keyframes eyePulse {
  0%, 100% { transform-origin: center; transform: scale(1); opacity: 1; }
  50% { transform-origin: center; transform: scale(0.6); opacity: 0.4; }
}

.nav-name {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-1);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-status {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 2s infinite;
}

.nav-classified {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  border: 1px solid var(--red-deep);
  padding: 3px 10px;
  text-transform: uppercase;
}

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,38,38,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
  to { background-position: 80px 80px; }
}

.hero-pulse {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  border: 1px solid rgba(220,38,38,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroPulse 4s ease-in-out infinite;
}

.hero-pulse:nth-child(2) { width: 1100px; height: 1100px; animation-delay: 1s; }
.hero-pulse:nth-child(3) { width: 1400px; height: 1400px; animation-delay: 2s; }

@keyframes heroPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: riseIn 0.8s 0.2s forwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: riseIn 1s 0.5s forwards;
}

.hero-h1 .glitch {
  position: relative;
  display: inline-block;
}

.hero-h1 .glitch::before,
.hero-h1 .glitch::after {
  content: attr(data-t);
  position: absolute;
  inset: 0;
}

.hero-h1 .glitch::before {
  color: var(--cyan);
  clip-path: inset(15% 0 65% 0);
  animation: g1 4s infinite;
}

.hero-h1 .glitch::after {
  color: var(--red-hot);
  clip-path: inset(65% 0 10% 0);
  animation: g2 4s infinite;
}

@keyframes g1 {
  0%,93%,100% { transform: translate(0); }
  94% { transform: translate(-3px, 1px); }
  96% { transform: translate(2px, -1px); }
}

@keyframes g2 {
  0%,91%,100% { transform: translate(0); }
  92% { transform: translate(3px, -1px); }
  95% { transform: translate(-2px, 1px); }
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: riseIn 0.8s 0.9s forwards;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 0.8s 1.2s forwards;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: none;
  padding: 15px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { background: var(--red-hot); transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--text-4);
  padding: 15px 36px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ════════════════════════════════════
   ENEMY SECTION
   ════════════════════════════════════ */
.enemy {
  padding: 8rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.enemy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--red-deep));
}

.enemy-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
  text-align: center;
}

.enemy-block {
  text-align: center;
  margin-bottom: 3rem;
}

.enemy-block h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.enemy-block p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.versus-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 3rem;
}

.versus-col { padding: 2rem; }

.versus-col.them {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.03);
  text-align: right;
}

.versus-col.us {
  background: rgba(220,38,38,0.03);
  border: 1px solid rgba(220,38,38,0.08);
  text-align: left;
}

.versus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--void);
  position: relative;
}

.versus-divider::before {
  content: 'VS';
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-3);
  font-weight: 600;
}

.versus-header {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.them .versus-header { color: var(--text-3); }
.us .versus-header { color: var(--red); }

.versus-item {
  font-size: 13px;
  line-height: 2.4;
  font-weight: 300;
}

.them .versus-item { color: var(--text-3); }
.us .versus-item { color: var(--text-2); }

/* ════════════════════════════════════
   TRANSMISSIONS
   ════════════════════════════════════ */
.transmissions {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.tx-header { margin-bottom: 3rem; }

.tx-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
}

.tx-title {
  font-family: var(--display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -1px;
}

.tx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(220,38,38,0.06);
}

.tx-card {
  background: var(--surface);
  padding: 2rem;
  position: relative;
  transition: background 0.4s;
  cursor: pointer;
}

.tx-card:hover { background: var(--card); }

.tx-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.tx-card:hover::after { opacity: 1; }

.tx-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.tx-badge {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  font-weight: 500;
}

.tx-badge.open { color: var(--red); border: 1px solid var(--red-deep); }
.tx-badge.restricted { color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.tx-badge.classified { color: var(--cyan); border: 1px solid rgba(34,211,238,0.15); }
.tx-badge.low { color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.tx-badge.elevated { color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.tx-badge.critical { color: var(--red-hot); border: 1px solid var(--red-deep); }

.tx-card h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.tx-card p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.75;
  font-weight: 300;
}

.tx-card .tx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  margin-top: 1.25rem;
  transition: gap 0.3s;
}

.tx-card:hover .tx-link { gap: 12px; }

/* ════════════════════════════════════
   INTERCEPTED SIGNAL
   ════════════════════════════════════ */
.signal {
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
  max-width: 700px;
  margin: 0 auto;
}

.signal-box {
  background: var(--surface);
  border: 1px solid rgba(34,211,238,0.08);
  border-left: 3px solid var(--cyan);
  padding: 1.5rem 2rem;
  position: relative;
}

.signal-header {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-header::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1s infinite;
}

.signal-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
  font-weight: 300;
}

.signal-text .redacted {
  background: var(--text-3);
  color: var(--text-3);
  padding: 0 4px;
  user-select: none;
  cursor: help;
  transition: all 0.3s;
}

.signal-text .redacted:hover {
  background: var(--red-deep);
  color: var(--red-hot);
}

.signal-footer {
  margin-top: 1rem;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 1px;
}

/* ════════════════════════════════════
   COUNTDOWN
   ════════════════════════════════════ */
.countdown-section {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.countdown-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  margin-bottom: 1.5rem;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.cd-num {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -2px;
}

.cd-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-4);
  margin-top: 8px;
}

.countdown-name {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 2px;
}

.countdown-name span { color: var(--red); }

/* ════════════════════════════════════
   CLOSING QUOTE
   ════════════════════════════════════ */
.closing-section {
  padding: 8rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(220,38,38,0.04) 0%, transparent 60%);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.closing-logo {
  margin-bottom: 2.5rem;
}

.closing-logo-svg {
  width: 60px;
  height: 60px;
  opacity: 0.7;
}

.closing-logo-svg circle:last-of-type {
  animation: eyePulse 2.5s ease-in-out infinite;
}

.closing-quote {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.5px;
  color: var(--text-1);
  font-style: normal;
  margin: 0 0 1.5rem 0;
  padding: 0;
  text-align: center;
  border: none;
}

.closing-attr {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 3rem;
}

.closing-line {
  width: 40px;
  height: 1px;
  background: var(--red-deep);
  margin: 0 auto 2rem;
}

.closing-tag {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
  line-height: 1.8;
  font-weight: 300;
}

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.skynet-footer {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 2px;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-right a:hover { color: var(--red); }

/* ════════════════════════════════════
   WORDPRESS OVERRIDES
   ════════════════════════════════════ */
.wp-block-post-content { color: var(--text-2); }
.wp-admin-bar-fix { padding-top: 32px; }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 768px) {
  .versus-grid { grid-template-columns: 1fr; }
  .versus-divider { width: 100%; height: 40px; }
  .versus-col.them, .versus-col.us { text-align: left; }
  .tx-grid { grid-template-columns: 1fr; }
  .nav-classified { display: none; }
  .countdown-display { gap: 8px; }
  .cd-unit { min-width: 50px; }
  .skynet-footer { flex-direction: column; text-align: center; }
}
