/* ==========================================================
   HXCKPUNK — shared stylesheet
   Tokens: dark signal-blue base, magenta primary accent,
   cold cyan secondary, acid warn used ONCE (primary CTA only).
   ========================================================== */

:root {
  --bg: #0b0d10;
  --bg-panel: #14171c;
  --bg-panel-raised: #1b1f26;
  --line: #2a2f38;

  --text: #e7e9ec;
  --text-muted: #8a8f98;

  --signal: #ff2e63;      /* primary accent — alerts, links, borders  */
  --signal-dim: #7a1930;
  --cold: #00e5ff;        /* secondary accent — used sparingly        */
  --warn: #f2ff66;        /* reserved for ONE primary CTA button only */

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-tag: "IBM Plex Mono", monospace;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* fixed scanline / grain overlay — cheap, high payoff texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }

img, .bg-media { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

p { color: var(--text-muted); margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.logo span { color: var(--signal); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-tag);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--signal);
}

.nav-cart {
  font-family: var(--font-tag);
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-cart:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-showcase {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin-left: auto;
  aspect-ratio: 9 / 13;
  border: 2px solid var(--signal);
  box-shadow: 0 0 35px rgba(255, 46, 99, 0.22), inset 0 0 25px rgba(255, 46, 99, 0.12);
  background: #0d1014;
  overflow: hidden;
}

.hero-showcase::before, .hero-showcase::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 4;
}

.hero-showcase::before {
  top: -2px; left: -2px;
  border-top: 3px solid var(--cold);
  border-left: 3px solid var(--cold);
}

.hero-showcase::after {
  bottom: -2px; right: -2px;
  border-bottom: 3px solid var(--warn);
  border-right: 3px solid var(--warn);
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-showcase:hover img {
  transform: scale(1.03);
}

.hero-showcase-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--cold);
  background: rgba(11, 13, 16, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.5);
  padding: 4px 10px;
  z-index: 3;
  letter-spacing: 0.08em;
}

.hero-showcase-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--warn);
  background: rgba(11, 13, 16, 0.9);
  border: 1px solid rgba(242, 255, 102, 0.5);
  padding: 4px 10px;
  z-index: 3;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-showcase {
    margin: 0 auto;
    max-width: 380px;
  }
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-tag);
  font-size: 13px;
  color: var(--signal);
  border: 1px solid var(--signal-dim);
  padding: 5px 10px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  max-width: 14ch;
  animation: hero-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--text-muted);
}

@keyframes hero-in {
  0% { opacity: 0; transform: translateY(18px); filter: blur(2px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head a {
  font-family: var(--font-tag);
  font-size: 13px;
  color: var(--signal);
  white-space: nowrap;
}

/* ---------- product grid (asymmetric) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
}

.card {
  background: var(--bg-panel);
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.card-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1b1f26, #0b0d10);
  transition: transform 0.4s ease;
}
.card:hover .card-media { transform: scale(1.04); }

.card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(11,13,16,0.92), transparent);
}

.card-name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.card-tag {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--signal);
  border: 1px solid var(--signal-dim);
  padding: 2px 6px;
}
.card-price { font-family: var(--font-tag); font-size: 13px; color: var(--text-muted); margin-top: 8px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:first-child { grid-column: span 2; grid-row: span 1; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-tag);
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--signal); }

.btn-primary {
  background: var(--warn);
  color: #0b0d10;
  border-color: var(--warn);
  font-weight: 700;
}
.btn-primary:hover { border-color: var(--warn); filter: brightness(1.08); }

/* ---------- footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-family: var(--font-tag);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- generic page header (for non-home pages) ---------- */

.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-head p { margin-top: 14px; max-width: 50ch; }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cold);
  outline-offset: 2px;
}

/* ---------- ticker tape / cyber marquee ---------- */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--bg-panel-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.ticker-move {
  display: flex;
  width: max-content;
  animation: ticker-slide 28s linear infinite;
  gap: 48px;
}
.ticker-item {
  font-family: var(--font-tag);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.ticker-item span.highlight {
  color: var(--cold);
}
.ticker-item span.alert {
  color: var(--signal);
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- status pill / pulses ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tag);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(20, 23, 28, 0.7);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 1.8s infinite;
}
.pulse-dot.cold {
  background: var(--cold);
  box-shadow: 0 0 8px var(--cold);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ---------- badges & cyber tags ---------- */
.tag-cold {
  display: inline-block;
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--cold);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 2px 7px;
  background: rgba(0, 229, 255, 0.05);
}
.tag-warn {
  display: inline-block;
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--warn);
  border: 1px solid rgba(242, 255, 102, 0.35);
  padding: 2px 7px;
  background: rgba(242, 255, 102, 0.05);
}

/* ---------- cyber chamfer cut-corner utility ---------- */
.cyber-box {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}
.cyber-box::before, .cyber-box::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}
.cyber-box::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--cold);
  border-left: 2px solid var(--cold);
}
.cyber-box::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
}

/* ---------- filter bar (the-drop.html) ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-tag);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--text);
  border-color: var(--cold);
  background: rgba(0, 229, 255, 0.06);
}
.filter-count {
  font-family: var(--font-tag);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- enhanced card styling ---------- */
.card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card a.card-hitbox {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.card-inspect {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--cold);
  background: rgba(11, 13, 16, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 3px 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 5;
}
.card:hover .card-inspect {
  opacity: 1;
  transform: translateY(0);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- product detail page (product.html) ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tag);
  font-size: 12px;
  color: var(--text-muted);
  padding: 24px 0 0;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--cold);
}
.breadcrumb span.divider {
  color: var(--signal);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  padding: 40px 0 96px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-main-view {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #1b1f26, #0b0d10);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.thumb-item {
  aspect-ratio: 1;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}
.thumb-item.active, .thumb-item:hover {
  border-color: var(--cold);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.product-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-headline h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1;
}
.product-id-tag {
  font-family: var(--font-tag);
  font-size: 13px;
  color: var(--cold);
  letter-spacing: 0.08em;
}
.product-price-bar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-price-bar .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.product-price-bar .tax-note {
  font-family: var(--font-tag);
  font-size: 12px;
  color: var(--text-muted);
}
.product-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.size-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.size-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tag);
  font-size: 12px;
}
.size-grid {
  display: flex;
  gap: 10px;
}
.size-btn {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-family: var(--font-tag);
  font-size: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.size-btn:hover, .size-btn.active {
  border-color: var(--signal);
  color: #fff;
  background: rgba(255, 46, 99, 0.1);
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.btn-loadout {
  flex: 1;
  text-align: center;
  padding: 16px 24px;
  font-size: 15px;
}

.specs-block {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 20px;
  margin-top: 12px;
}
.specs-title {
  font-family: var(--font-tag);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cold);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-tag);
  font-size: 12px;
}
.specs-table tr {
  border-bottom: 1px solid rgba(42, 47, 56, 0.6);
}
.specs-table tr:last-child {
  border-bottom: none;
}
.specs-table td {
  padding: 8px 0;
}
.specs-table td.label {
  color: var(--text-muted);
  width: 40%;
}
.specs-table td.val {
  color: var(--text);
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- uplink terminal (uplink.html) ---------- */
.uplink-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 96px;
}
.terminal-window {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  position: relative;
}
.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-panel-raised);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-tag);
  font-size: 12px;
  color: var(--text-muted);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.terminal-dot.active-cyan { background: var(--cold); }
.terminal-dot.active-signal { background: var(--signal); }
.terminal-dot.active-warn { background: var(--warn); }

.terminal-body {
  padding: 28px;
}
.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-family: var(--font-tag);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cold);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: #0d1014;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-tag);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--cold);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.uplink-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.beacon-card {
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}
.beacon-title {
  font-family: var(--font-tag);
  font-size: 12px;
  color: var(--signal);
  margin-bottom: 12px;
}
.frequency-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-tag);
  font-size: 13px;
}
.frequency-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.frequency-item span.freq {
  color: var(--cold);
}

@media (max-width: 900px) {
  .uplink-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- manifesto sections (manifesto.html) ---------- */
.manifesto-hero-quote {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.manifesto-hero-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  color: var(--text);
}
.manifesto-hero-quote blockquote span.highlight {
  color: var(--signal);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  margin: 64px 0;
}
.pillar-card {
  background: var(--bg-panel);
  padding: 36px 28px;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--signal);
  line-height: 1;
  margin-bottom: 16px;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}
.pillar-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* Black wall background with faulty-light flicker */
.bg-black-wall {
  position: relative;
  background:
    repeating-linear-gradient(90deg, #050505 0px, #050505 38px, #0a0a0a 39px, #0a0a0a 40px),
    linear-gradient(#08090b, #050608);
  overflow: hidden;
}

.bg-black-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  animation: wall-flicker 4.2s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes wall-flicker {
  0%, 19%, 21%, 23%, 44%, 46%, 100% { background: rgba(0,0,0,0); }
  20%   { background: rgba(0,0,0,0.65); }
  22%   { background: rgba(255,46,99,0.06); } /* faint signal-red bleed on flicker */
  45%   { background: rgba(0,0,0,0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-black-wall::before { animation: none; }
}

