/* VIBERPSYCHOSIS — Styles
   "Infected SaaS" — Clean startup layout with cyberpunk symptoms bleeding through. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* === VARIABLES === */
:root {
  --bg-deep: #0B0B1A;
  --bg-card: rgba(45, 45, 68, 0.4);
  --bg-card-solid: #1E1E32;
  --cyan: #00D4FF;
  --purple: #7B2FBE;
  --purple-light: #A855F7;
  --amber: #FFB800;
  --text: #CCCCCC;
  --text-muted: #888899;
  --green: #00FF88;
  --red: #FF4444;
  --white: #EEEEFF;
  --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
  --glow-purple: 0 0 20px rgba(123, 47, 190, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* === GRADIENT MESH BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(123, 47, 190, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 90% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  z-index: -2;
  animation: meshShift 20s ease-in-out infinite alternate;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes meshShift {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 80% 30%, rgba(123, 47, 190, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse 70% 50% at 50% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse 50% 40% at 10% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse 40% 60% at 90% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse 70% 70% at 30% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 50% 70% at 70% 40%, rgba(123, 47, 190, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse 60% 40% at 40% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 60% 50% at 20% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
      radial-gradient(ellipse 50% 50% at 80% 90%, rgba(0, 255, 136, 0.04) 0%, transparent 50%);
  }
}

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

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

img {
  max-width: 100%;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

/* Monospace accents for section labels */
h2 .mono-prefix {
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--cyan);
  opacity: 0.6;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--purple-light);
}

.section-subheading {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

/* === SECTION DIVIDERS === */
.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0.3;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
  margin: 0;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 0;
  transition: background 0.3s;
}

.site-nav.scrolled {
  background: rgba(11, 11, 26, 0.95);
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Blinking status dot */
.nav-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: statusBlink 3s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    display: flex;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

/* Floating gradient orb behind hero */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, rgba(123, 47, 190, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

/* Barely perceptible scan lines */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 212, 255, 0.015) 3px,
    rgba(0, 212, 255, 0.015) 6px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* === HERO BOOT SEQUENCE === */
/* Single h1 that starts as a terminal line and transforms into the headline */
.hero-boot {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow: none;
  transition: font-size 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              letter-spacing 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              text-shadow 0.7s ease-out;
}

/* After typing completes — name stays, grows into headline */
.hero-boot.revealed {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  text-shadow:
    0 0 10px rgba(0, 212, 255, 0.5),
    0 0 30px rgba(0, 212, 255, 0.3),
    0 0 60px rgba(0, 212, 255, 0.15);
  animation: glitch 6s 1.5s infinite;
}

/* The "> LOADING " prefix — fades and collapses */
.hero-boot-prefix {
  display: inline-block;
  max-width: 20ch;
  overflow: hidden;
  vertical-align: bottom;
  transition: opacity 0.4s ease-out, max-width 0.5s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-boot-prefix.fade-out {
  opacity: 0;
  max-width: 0;
}

.hero-boot-prompt {
  color: var(--amber);
}

/* Blinking cursor */
.hero-boot-cursor {
  animation: cursorBlink 1s step-end infinite;
  transition: opacity 0.4s ease-out;
}

.hero-boot-cursor.fade-out {
  opacity: 0;
}

/* Glitch — chromatic aberration that fires occasionally */
@keyframes glitch {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.15); transform: none; }
  92% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.15); transform: none; }
  93% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff, 0 0 10px rgba(0, 212, 255, 0.5); transform: translateX(2px); }
  94% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff, 0 0 10px rgba(0, 212, 255, 0.5); transform: translateX(-1px); }
  95% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.15); transform: none; }
}

/* Content below headline — hidden until boot reveals it */
.hero-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--purple-light);
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.hero-intro {
  margin-top: 2rem;
  font-size: 1.05rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Hero status bar */
.hero-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(45, 45, 68, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-status-bar .status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: statusBlink 2s ease-in-out infinite;
}

.hero-status-bar span {
  opacity: 0.6;
}

.hero-status-bar span:first-child {
  opacity: 1;
  color: var(--green);
}

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

.hero-callout {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* === CTA BUTTONS === */
.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.cta-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}

.cta-button--outline {
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  box-shadow: none;
}

.cta-button--outline:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* === GLASSMORPHISM CARDS (shared base) === */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), var(--glow-cyan);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.2);
}

/* === STAGES === */
.stages-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stage-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stage-card:hover {
  transform: translateY(-4px);
}

/* Severity colour coding — left accent + glow */
.stage-card[data-severity="low"] {
  border-left: 3px solid var(--green);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 255, 136, 0.08);
}
.stage-card[data-severity="low"]:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 255, 136, 0.15);
}
.stage-card[data-severity="low"] .stage-number {
  color: var(--green);
}

.stage-card[data-severity="mid"] {
  border-left: 3px solid var(--amber);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 184, 0, 0.08);
}
.stage-card[data-severity="mid"]:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 184, 0, 0.15);
}
.stage-card[data-severity="mid"] .stage-number {
  color: var(--amber);
}

.stage-card[data-severity="high"] {
  border-left: 3px solid var(--red);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 68, 68, 0.08);
}
.stage-card[data-severity="high"]:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 68, 68, 0.15);
}
.stage-card[data-severity="high"] .stage-number {
  color: var(--red);
}

/* Stage card header row */
.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.3rem;
}

.stage-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Threat badge */
.threat-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid currentColor;
  opacity: 0.7;
}

.stage-title {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.stage-card p {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Progress bar at bottom of stage cards */
.stage-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 0 2px 2px 0;
}

.stage-progress-fill.animated {
  /* Width set via inline style */
}

/* Progress bar colours */
.stage-card[data-severity="low"] .stage-progress-fill { background: var(--green); box-shadow: 0 0 6px var(--green); }
.stage-card[data-severity="mid"] .stage-progress-fill { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.stage-card[data-severity="high"] .stage-progress-fill { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* === CALLOUT BOXES (now CTA style) === */
.callout {
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2.5rem;
  border-radius: 8px;
  background: rgba(45, 45, 68, 0.3);
  border: 1px solid rgba(255, 184, 0, 0.2);
  color: var(--amber);
}

.callout--cyan {
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--cyan);
}

.callout--purple {
  border-color: rgba(123, 47, 190, 0.2);
  color: var(--purple-light);
}

/* === DISPATCHES TEASER === */
.dispatch-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(123, 47, 190, 0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), var(--glow-purple);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dispatch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(123, 47, 190, 0.2);
}

.dispatch-card::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--purple-light);
  position: absolute;
  left: 0.8rem;
  top: 1.5rem;
  opacity: 0.5;
}

.dispatch-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 0.5rem;
}

.dispatch-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* === VIBE SCRIBE BIO === */
.bio-section .bio-text {
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
}

/* === NEWSLETTER SIGNUP === */
.signup-section {
  text-align: center;
  padding: 5rem 0;
}

.signup-section .section-subheading {
  margin-bottom: 2rem;
}

#beehiiv-embed {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.embed-warning {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.embed-disclaimer {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.2rem;
}

#beehiiv-embed .beehiiv-frame {
  width: 100%;
  max-width: 560px;
  height: 314px;
  border: none;
  background: transparent;
}

.signup-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* === GLOSSARY PAGE === */
.glossary-category {
  margin-bottom: 3rem;
}

.glossary-category h3 {
  font-family: var(--font-mono);
  color: var(--purple-light);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(123, 47, 190, 0.2);
  margin-bottom: 1.5rem;
}

.glossary-term-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.glossary-term-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), var(--glow-cyan);
}

.glossary-term-content {
  flex: 1;
}

.glossary-term-name {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.glossary-term-name a {
  color: var(--cyan);
}

.glossary-term-name a:hover {
  color: var(--amber);
}

.glossary-term-def {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.share-btn {
  background: none;
  border: 1px solid rgba(136, 136, 153, 0.3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.2rem;
  border-radius: 4px;
}

.share-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

/* === INDIVIDUAL TERM PAGE === */
.term-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.term-page .term-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.term-page .term-name {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.term-page .term-definition {
  max-width: 600px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.term-page .term-category {
  font-family: var(--font-mono);
  color: var(--purple-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.share-buttons {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-buttons a {
  display: inline-block;
  border: 1px solid rgba(136, 136, 153, 0.3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.share-buttons a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: var(--glow-cyan);
}

.term-page .term-cta {
  margin-top: 1rem;
}

.term-page .term-cta a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(136, 136, 153, 0.3);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.term-page .term-cta a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--cyan);
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(136, 136, 153, 0.4);
}

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITIES === */
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple-light); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(45, 45, 68, 0.8);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

/* === SELECTION === */
::selection {
  background: var(--purple);
  color: var(--white);
}
