/*
  HTXpunk.net â€” design system matched to unique-ue.com
  Palette / type / cards / CTAs / stats / dividers from uniQue-ue style.css
  Content: HTXpunk LLC master catalog
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@700;800;900&display=swap");

:root {
  --brand-primary: #020418;
  --brand-secondary: #10142c;
  --brand-accent: #00f6ff;
  --brand-accent-hover: #9efffd;
  --brand-magenta: #f000b8;
  --brand-text: #e5e7eb;
  --brand-text-muted: #9ca3af;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--brand-primary);
  color: var(--brand-text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
}

a:hover {
  color: var(--brand-accent-hover);
}

/* Particle-like fixed atmosphere (CSS-only; no JS canvas required) */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 246, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(240, 0, 184, 0.07), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(0, 246, 255, 0.04), transparent 50%);
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 44, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 246, 255, 0.12);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
  white-space: nowrap;
}

.logo span {
  color: var(--brand-accent);
  text-shadow: 0 0 12px rgba(0, 246, 255, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--brand-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.45rem;
  border-radius: 0.375rem;
  transition: all 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-accent);
  background: rgba(0, 246, 255, 0.1);
}

/* —— Home: Earth photo globe + lat/lon grid + single orbiting line —— */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  min-height: min(78vh, 720px);
  justify-content: center;
}

.globe-lockup {
  position: relative;
  width: min(400px, 90vw);
  height: min(400px, 90vw);
  margin: 0 auto 2.25rem;
}

.globe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Single brand line — opposite spin from Earth */
.globe-orbit {
  position: absolute;
  inset: 0;
  z-index: 5;
  animation: orbit-ccw 40s linear infinite;
  pointer-events: none;
}

.orbit-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(0, 246, 255, 0.55));
}

.orbit-text {
  fill: #00f6ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.globe {
  position: absolute;
  inset: 16%;
  display: grid;
  place-items: center;
}

.globe-sphere {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(0, 246, 255, 0.35),
    0 0 40px rgba(0, 246, 255, 0.35),
    0 0 80px rgba(0, 246, 255, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.globe-earth {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  animation: earth-cw 50s linear infinite;
}

.globe-earth-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
  transform: scale(1.08);
}

.globe-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.globe-grid-spin {
  transform-origin: 100px 100px;
  animation: grid-ccw 50s linear infinite;
}

.grid-line {
  fill: none;
  stroke: rgba(0, 246, 255, 0.55);
  stroke-width: 0.9;
}

.net-arc {
  stroke: rgba(0, 246, 255, 0.75);
  stroke-width: 1.1;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 2px rgba(0, 246, 255, 0.8));
}

.net-node {
  fill: #00f6ff;
  stroke: rgba(158, 255, 253, 0.9);
  stroke-width: 0.6;
  filter: drop-shadow(0 0 3px #00f6ff);
}

.globe-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  box-shadow:
    inset -16px -10px 28px rgba(0, 0, 0, 0.45),
    inset 10px 8px 22px rgba(158, 255, 253, 0.12);
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 38%
  );
}

@keyframes earth-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes grid-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes orbit-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.home-welcome {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  background: linear-gradient(135deg, #00f6ff 0%, #9efffd 50%, #f000b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.home-veteran {
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: var(--brand-text-muted);
  letter-spacing: 0.02em;
  max-width: 28rem;
}

/* Banner ad â€” HTXpunk.com */
.banner-ad {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.banner-ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  border: 1px solid rgba(0, 246, 255, 0.35);
  background:
    linear-gradient(120deg, rgba(0, 246, 255, 0.12), rgba(240, 0, 184, 0.1)),
    linear-gradient(145deg, rgba(16, 20, 44, 0.98), rgba(2, 4, 24, 0.95));
  box-shadow: 0 12px 40px rgba(0, 246, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.banner-ad-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(0, 246, 255, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.banner-ad-link:hover {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 48px rgba(0, 246, 255, 0.22);
  color: inherit;
}

.banner-ad-link:hover::before {
  transform: translateX(100%);
}

.banner-ad-inner {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
}

.banner-kicker {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.banner-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--brand-accent);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 18px rgba(0, 246, 255, 0.35);
}

.banner-copy {
  margin: 0 0 1rem;
  color: var(--brand-text-muted);
  font-size: 0.98rem;
}

.banner-cta {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-accent-hover);
  letter-spacing: 0.04em;
}

/* Category thumbnail grid */
.category-thumbs {
  padding: 2rem 1.5rem 4.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.thumb-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 200px;
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 246, 255, 0.2);
  background: linear-gradient(145deg, rgba(16, 20, 44, 0.95), rgba(2, 4, 24, 0.9));
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.thumb-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent);
  box-shadow: 0 14px 32px rgba(0, 246, 255, 0.2);
  color: inherit;
}

.thumb-icon {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-magenta);
  text-shadow: 0 0 10px rgba(240, 0, 184, 0.35);
}

.thumb-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin: 0;
}

.thumb-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  line-height: 1.5;
}

.thumb-go {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-accent);
}

.thumb-card:hover .thumb-go {
  text-shadow: 0 0 10px var(--brand-accent);
}

/* Inner page hero */
.page-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.page-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #00f6ff 0%, #9efffd 50%, #f000b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-lede {
  color: var(--brand-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto 1.5rem;
  max-width: 36rem;
}

.hero-kicker {
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 1.25rem;
  text-shadow: 0 0 12px rgba(0, 246, 255, 0.5);
  font-weight: 700;
}

.feature-note {
  font-size: 0.85rem !important;
  font-style: italic;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 0.75rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 200px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-primary {
  background: linear-gradient(135deg, var(--brand-accent) 0%, rgba(0, 246, 255, 0.8) 100%);
  color: var(--brand-primary);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.4);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 246, 255, 0.6);
  color: var(--brand-primary);
}

.cta-secondary {
  background: rgba(16, 20, 44, 0.85);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.cta-secondary:hover {
  background: rgba(0, 246, 255, 0.1);
  transform: translateY(-2px);
  color: var(--brand-accent-hover);
}

/* Sections */
.catalog-section {
  padding: 4.5rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: var(--brand-text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.category-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  text-align: center;
  margin: 2.5rem 0 1.25rem;
  text-shadow: 0 0 12px rgba(240, 0, 184, 0.35);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 20, 44, 0.95), rgba(2, 4, 24, 0.9));
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 220px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 36px rgba(0, 246, 255, 0.22);
}

.feature-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin: 0;
}

.paths-section .feature-card h3 {
  color: var(--brand-text);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--brand-text-muted);
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 246, 255, 0.35);
  color: var(--brand-accent);
  background: rgba(0, 246, 255, 0.08);
}

.badge.status {
  border-color: rgba(240, 0, 184, 0.4);
  color: #ff7ad9;
  background: rgba(240, 0, 184, 0.1);
}

.badge.book {
  border-color: rgba(158, 255, 253, 0.4);
  color: var(--brand-accent-hover);
}

.feature-link {
  display: inline-flex;
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.feature-link:hover {
  text-shadow: 0 0 10px var(--brand-accent);
}

.section-divider {
  height: 2px;
  max-width: 600px;
  margin: 0.5rem auto;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.45);
}

/* Stats */
.stats-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  margin-top: 0.4rem;
  color: var(--brand-text-muted);
  font-size: 0.9rem;
}

/* Terminal */
.terminal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.terminal {
  background: #05060f;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 246, 255, 0.15);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--brand-secondary);
  border-bottom: 1px solid rgba(0, 246, 255, 0.15);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  color: var(--brand-text-muted);
  letter-spacing: 0.06em;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}
.terminal-dot.yellow {
  background: #febc2e;
}
.terminal-dot.green {
  background: #28c840;
}

.terminal pre {
  margin: 0;
  padding: 1.25rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  color: #9efffd;
  line-height: 1.55;
  overflow-x: auto;
}

/* Principles */
.principles-section {
  padding: 4rem 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.principles-section blockquote {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand-accent);
  background: rgba(16, 20, 44, 0.8);
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--brand-text);
  font-size: 1.05rem;
  box-shadow: 0 0 20px rgba(0, 246, 255, 0.08);
}

.principles-section p {
  color: var(--brand-text-muted);
  margin: 0 0 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 246, 255, 0.12);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--brand-text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

/* Article pages (SFE pilot) keep same tokens */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  background: linear-gradient(135deg, #00f6ff, #f000b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem;
}

.article h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--brand-accent);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article h3 {
  color: var(--brand-accent-hover);
  margin: 1.25rem 0 0.5rem;
}

.article h4 {
  color: var(--brand-text);
  margin: 1rem 0 0.4rem;
}

.answer-block {
  background: rgba(16, 20, 44, 0.9);
  border: 1px solid rgba(0, 246, 255, 0.35);
  border-left: 4px solid var(--brand-accent);
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}

.meta,
.crumb {
  color: var(--brand-text-muted);
  font-size: 0.9rem;
}

.stats-list {
  color: var(--brand-text-muted);
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-inner.wrap {
  padding-left: 0;
  padding-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .globe-orbit,
  .globe-earth,
  .globe-grid-spin,
  .home-welcome {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}
