/* The Pretender — tactical glitch theme */
:root {
  --bg: #050508;
  --bg-elevated: #0f0f14;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f2f5;
  --text-muted: #9b9ba8;
  --red: #ff2a2a;
  --cyan: #22e5e5;
  --white: #ffffff;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(255, 42, 42, 0.04) 0%, transparent 45%),
    linear-gradient(-20deg, rgba(34, 229, 229, 0.05) 0%, transparent 40%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
 background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: auto;
  filter: drop-shadow(-2px 0 0 rgba(255, 42, 42, 0.35)) drop-shadow(2px 0 0 rgba(34, 229, 229, 0.35));
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}

.site-nav a:not(.btn):hover {
  color: var(--white);
  text-shadow: -2px 0 var(--red), 2px 0 var(--cyan);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-youtube {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.4);
}

.btn-youtube:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.45);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--bg);
}

.btn-cyan.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-cyan.btn-outline:hover {
  background: rgba(34, 229, 229, 0.12);
  box-shadow: 0 0 20px rgba(34, 229, 229, 0.25);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 0.8rem;
}

.btn-amazon {
  background: linear-gradient(180deg, #ff9900 0%, #e47911 100%);
  color: #111;
  border-color: rgba(0, 0, 0, 0.15);
  margin-top: auto;
}

.btn-amazon:hover {
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo-wrap {
  margin-bottom: 0;
  animation: float-logo 6s ease-in-out infinite;
}

.hero-logo {
  width: min(340px, 78vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(-3px 0 0 rgba(255, 42, 42, 0.25)) drop-shadow(3px 0 0 rgba(34, 229, 229, 0.25));
}

@keyframes float-logo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Glitch headings */
.glitch-text {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.section-title.glitch-text:hover::before,
.brand-text.glitch-text:hover::before {
  animation: glitch-red 0.35s steps(2) both;
}

.section-title.glitch-text:hover::after,
.brand-text.glitch-text:hover::after {
  animation: glitch-cyan 0.35s steps(2) both;
}

@keyframes glitch-red {
  0% {
    opacity: 0.85;
    transform: translate(-2px, 0);
    clip-path: inset(10% 0 70% 0);
    color: var(--red);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes glitch-cyan {
  0% {
    opacity: 0.85;
    transform: translate(2px, 0);
    clip-path: inset(65% 0 5% 0);
    color: var(--cyan);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--border);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 640px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
  color: var(--white);
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.section-foot {
  margin-top: 2rem;
}

.link-arrow::after {
  content: ' →';
}

.link-youtube {
  color: var(--red);
  font-weight: 700;
}

/* Videos */
.empty-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.video-card:hover {
  border-color: rgba(34, 229, 229, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 42, 42, 0.15);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  padding: 1rem 1rem 0.5rem;
  letter-spacing: 0.04em;
}

.video-card .link-arrow {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
}

/* Gear */
.gear-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gear-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gear-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 229, 229, 0.4);
}

.gear-card-media {
  aspect-ratio: 16 / 10;
  background: #0a0a0c;
  overflow: hidden;
}

.gear-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gear-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.gear-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.06em;
  color: var(--white);
}

.gear-card-blurb {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* About */
.section-about p {
  color: var(--text-muted);
}

.section-about strong {
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  text-shadow: -1px 0 var(--red), 1px 0 var(--cyan);
}

.footer-social {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.footer-social a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-social a:hover {
  color: var(--red);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.97);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo-wrap {
    animation: none;
  }

  .glitch-text::before,
  .glitch-text::after {
    animation: none !important;
  }

  .btn:hover,
  .gear-card:hover {
    transform: none;
  }
}
