/* =========================================================
   THE VERDANT COLLAPSE
   Shared stylesheet — cyberpunk bio-horror
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Barlow:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Core palette */
  --void: #050510;
  --void-2: #0a0a18;
  --void-3: #101024;
  --ink: #1a1a30;
  --bone: #e8e8ff;
  --bone-dim: #9797b8;
  --bone-faded: #5a5a7a;

  /* Accents */
  --cyan: #00f0ff;
  --cyan-dim: #0099aa;
  --magenta: #ff2d75;
  --magenta-dim: #b01e54;
  --rot: #7eff3d;        /* verdant infection green */
  --rot-dim: #4fa823;
  --warn: #ffb03d;
  --blood: #c41e3a;

  /* Faction colors */
  --pandora: #ff3838;      /* militarized red */
  --aether: #00f0ff;       /* clinical cyan */
  --helix: #ffb03d;        /* corporate gold */
  --rootbound: #7eff3d;    /* infected green */
  --veil: #e8e8ff;         /* pure white */

  /* Typography */
  --font-display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   Atmospheric background layers
   ========================================================= */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 85%, rgba(255, 45, 117, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(126, 255, 61, 0.025) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 240, 255, 0.025) 3px,
      transparent 4px
    );
  pointer-events: none;
  z-index: 2;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--bone);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

p {
  margin-bottom: 1.2em;
  color: var(--bone-dim);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  color: var(--bone);
  font-weight: 500;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--magenta);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 10;
}

section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 10;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 900px;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* =========================================================
   Header / Nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-logo .logo-mark {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bone-dim);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::before {
  content: '//';
  color: var(--cyan);
  margin-right: 0.4rem;
  opacity: 0.5;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bone);
}

.nav-links a.active::before {
  opacity: 1;
  color: var(--magenta);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 16, 0.98);
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  }
  .nav-links.open {
    display: flex;
  }
}

/* =========================================================
   Hero (used on index)
   ========================================================= */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, rgba(0, 240, 255, 0.03) 50%, transparent 100%),
    linear-gradient(to bottom, transparent 60%, var(--void) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  position: relative;
}

.hero-tag::before,
.hero-tag::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
}

.hero-tag::before {
  top: -4px;
  left: -4px;
  border-right: none;
  border-bottom: none;
}

.hero-tag::after {
  bottom: -4px;
  right: -4px;
  border-left: none;
  border-top: none;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title .line-1 {
  display: block;
  color: var(--bone);
}

.hero-title .line-2 {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--bone-dim);
  margin-bottom: 2.5rem;
  max-width: 640px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone-faded);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 232, 255, 0.1);
}

.hero-meta span strong {
  color: var(--cyan);
  font-weight: 700;
}

/* Glitch on hero title */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--magenta);
  z-index: -1;
  animation: glitch-1 4s infinite steps(1);
}

.glitch::after {
  color: var(--cyan);
  z-index: -2;
  animation: glitch-2 3.5s infinite steps(1);
}

@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(-3px, 1px); opacity: 0.7; }
  94% { transform: translate(2px, -1px); opacity: 0.7; }
  95% { transform: translate(-1px, 2px); opacity: 0.7; }
  96% { transform: translate(0); opacity: 0; }
}

@keyframes glitch-2 {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(2px, -2px); opacity: 0.7; }
  90% { transform: translate(-2px, 1px); opacity: 0.7; }
  91% { transform: translate(1px, 1px); opacity: 0.7; }
  92% { transform: translate(0); opacity: 0; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--cyan);
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
  text-decoration: none;
}

.btn::before {
  content: '[';
  color: var(--cyan);
  opacity: 0.6;
}

.btn::after {
  content: ']';
  color: var(--cyan);
  opacity: 0.6;
}

.btn:hover {
  background: var(--cyan);
  color: var(--void);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}

.btn:hover::before,
.btn:hover::after {
  color: var(--void);
  opacity: 1;
}

.btn-secondary {
  border-color: var(--magenta);
}

.btn-secondary::before,
.btn-secondary::after {
  color: var(--magenta);
}

.btn-secondary:hover {
  background: var(--magenta);
  box-shadow: 0 0 24px rgba(255, 45, 117, 0.4);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* =========================================================
   Cards / Grid
   ========================================================= */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: linear-gradient(135deg, var(--void-2) 0%, var(--void-3) 100%);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 2rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.card:hover::before {
  width: 100%;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
}

/* Faction cards use their color for the top accent */
.card.faction-pandora::before { background: var(--pandora); box-shadow: 0 0 12px var(--pandora); }
.card.faction-aether::before { background: var(--aether); box-shadow: 0 0 12px var(--aether); }
.card.faction-helix::before { background: var(--helix); box-shadow: 0 0 12px var(--helix); }
.card.faction-rootbound::before { background: var(--rootbound); box-shadow: 0 0 12px var(--rootbound); }
.card.faction-veil::before { background: var(--veil); box-shadow: 0 0 12px var(--veil); }

.card.faction-pandora .card-label { color: var(--pandora); }
.card.faction-aether .card-label { color: var(--aether); }
.card.faction-helix .card-label { color: var(--helix); }
.card.faction-rootbound .card-label { color: var(--rootbound); }
.card.faction-veil .card-label { color: var(--veil); }

.card.faction-pandora:hover { border-color: rgba(255, 56, 56, 0.5); }
.card.faction-aether:hover { border-color: rgba(0, 240, 255, 0.5); }
.card.faction-helix:hover { border-color: rgba(255, 176, 61, 0.5); }
.card.faction-rootbound:hover { border-color: rgba(126, 255, 61, 0.5); }
.card.faction-veil:hover { border-color: rgba(232, 232, 255, 0.5); }

/* =========================================================
   Dossier blocks (lore sections)
   ========================================================= */

.dossier {
  border-left: 1px solid rgba(0, 240, 255, 0.2);
  padding-left: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.dossier::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 60px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.dossier-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bone-faded);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  display: block;
}

.dossier-id .tag-rot { color: var(--rot); }
.dossier-id .tag-magenta { color: var(--magenta); }

.dossier h2 {
  margin-bottom: 1.5rem;
}

.dossier p + p {
  margin-top: 0;
}

/* =========================================================
   Character grid
   ========================================================= */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.char-card {
  display: block;
  background: var(--void-2);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.char-portrait {
  margin: -1.75rem -1.75rem 1.5rem -1.75rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--void-3);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.char-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s, filter 0.25s;
  filter: saturate(0.85) contrast(1.05);
}

.char-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(5, 5, 16, 0.4) 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 240, 255, 0.04) 3px,
      transparent 4px
    );
  pointer-events: none;
}

.char-card:hover .char-portrait img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.08);
}

.char-art-credit {
  display: block;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(232, 232, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--bone-faded);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.char-card::after {
  content: '↗';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  color: var(--cyan);
  opacity: 0.4;
  transition: all 0.25s;
}

.char-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.1);
}

.char-card:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.char-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone);
  margin-bottom: 0.5rem;
  display: block;
}

.char-faction {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.char-summary {
  font-size: 0.9rem;
  color: var(--bone-dim);
  margin-bottom: 1rem;
}

.char-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bone-faded);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 232, 255, 0.08);
}

.char-placeholder {
  border-style: dashed;
  border-color: rgba(232, 232, 255, 0.15);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bone-faded);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 2rem;
}

.char-placeholder::after {
  display: none;
}

.char-placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* =========================================================
   Info panels / callouts
   ========================================================= */

.panel {
  background: var(--void-2);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2.5rem;
  margin: 2.5rem 0;
  position: relative;
}

.panel::before {
  content: attr(data-label);
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--void);
  padding: 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.panel.warn {
  border-color: var(--magenta);
}

.panel.warn::before {
  color: var(--magenta);
}

.panel.rot {
  border-color: var(--rot);
}

.panel.rot::before {
  color: var(--rot);
}

/* =========================================================
   Lists
   ========================================================= */

ul.tech-list,
ul.feature-list {
  list-style: none;
  padding: 0;
}

ul.tech-list li,
ul.feature-list li {
  padding: 0.75rem 0 0.75rem 1.8rem;
  border-bottom: 1px solid rgba(232, 232, 255, 0.06);
  position: relative;
  color: var(--bone-dim);
}

ul.tech-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--cyan);
}

ul.feature-list li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 700;
}

ul.feature-list {
  counter-reset: item;
}

ul.tech-list li strong,
ul.feature-list li strong {
  color: var(--bone);
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

/* =========================================================
   Sub-faction list
   ========================================================= */

.subfaction-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.subfaction {
  padding: 1.25rem;
  background: rgba(10, 10, 24, 0.6);
  border-left: 2px solid var(--cyan);
}

.subfaction h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.subfaction p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.subfaction.sf-pandora { border-left-color: var(--pandora); }
.subfaction.sf-pandora h4 { color: var(--pandora); }
.subfaction.sf-aether { border-left-color: var(--aether); }
.subfaction.sf-aether h4 { color: var(--aether); }
.subfaction.sf-helix { border-left-color: var(--helix); }
.subfaction.sf-helix h4 { color: var(--helix); }
.subfaction.sf-rootbound { border-left-color: var(--rootbound); }
.subfaction.sf-rootbound h4 { color: var(--rootbound); }
.subfaction.sf-veil { border-left-color: var(--veil); }
.subfaction.sf-veil h4 { color: var(--veil); }

/* =========================================================
   Join / submission form styling
   ========================================================= */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.step {
  padding: 1.75rem 1.75rem 1.75rem 5rem;
  background: var(--void-2);
  border: 1px solid rgba(0, 240, 255, 0.12);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.75rem;
  top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.4;
  line-height: 1;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: var(--void-2);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding: 3rem 0 2rem;
  margin-top: 6rem;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

footer h4 {
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(232, 232, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bone-faded);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* =========================================================
   Blinking cursor for terminal flavor
   ========================================================= */

.blink::after {
  content: '_';
  color: var(--cyan);
  animation: blink 1s steps(1) infinite;
  margin-left: 0.25rem;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Sub-page hero (smaller than homepage hero)
   ========================================================= */

.page-hero {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone-faded);
  margin-bottom: 1.5rem;
}

.page-hero .breadcrumb span {
  color: var(--cyan);
}

.page-hero p {
  font-size: 1.05rem;
  max-width: 700px;
}

/* =========================================================
   Utility
   ========================================================= */

.text-cyan { color: var(--cyan); }
.text-magenta { color: var(--magenta); }
.text-rot { color: var(--rot); }
.text-warn { color: var(--warn); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  margin: 4rem 0;
  border: none;
}
