/* ═══════════════════════════════════════════════════════════════
   VibeShift AI — Content Pages Stylesheet
   Cyber-glow aesthetic for The Nexus story pages
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #020617;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.8);
  --border-dim: #1e293b;
  --border-glow: rgba(6, 182, 212, 0.3);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.6);
  --purple: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --emerald: #10b981;
  --blue: #3b82f6;
  --rose: #f43f5e;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background Grid ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(6, 182, 212, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--cyan-glow);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 20px var(--cyan-glow);
  }
}

.nav-brand span span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  overflow-x: auto;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ── Layout Container ───────────────────────────────────────── */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  text-align: center;
  margin-bottom: 0;
}

.page-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.badge-cyan {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}

.badge-purple {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}

.badge-amber {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.badge-emerald {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-pink {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.25);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Section ────────────────────────────────────────────────── */
.section {
  margin-bottom: 4rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.section-label .bar {
  width: 3px;
  height: 24px;
  border-radius: 3px;
}

.section-label h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.section>p,
.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}

.glass-card:hover {
  border-color: var(--border-glow);
}

/* ── Pillar / Feature Cards Grid ────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.pillar-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.08);
}

.pillar-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Fleet Cards ────────────────────────────────────────────── */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.fleet-card {
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid;
  transition: transform 0.3s, box-shadow 0.3s;
}

.fleet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.fleet-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fleet-card .phase {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.fleet-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.fleet-card .artifact {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.fleet-research {
  background: rgba(30, 58, 95, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
}

.fleet-research h3 {
  color: #93c5fd;
}

.fleet-research .phase {
  color: var(--blue);
}

.fleet-research p {
  color: #94a3b8;
}

.fleet-research .artifact {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.fleet-architect {
  background: rgba(59, 31, 92, 0.5);
  border-color: rgba(139, 92, 246, 0.3);
}

.fleet-architect h3 {
  color: #c4b5fd;
}

.fleet-architect .phase {
  color: var(--purple);
}

.fleet-architect p {
  color: #94a3b8;
}

.fleet-architect .artifact {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

.fleet-builder {
  background: rgba(74, 55, 40, 0.5);
  border-color: rgba(245, 158, 11, 0.3);
}

.fleet-builder h3 {
  color: #fcd34d;
}

.fleet-builder .phase {
  color: var(--amber);
}

.fleet-builder p {
  color: #94a3b8;
}

.fleet-builder .artifact {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.fleet-auditor {
  background: rgba(74, 40, 50, 0.5);
  border-color: rgba(244, 63, 94, 0.3);
}

.fleet-auditor h3 {
  color: #fda4af;
}

.fleet-auditor .phase {
  color: var(--rose);
}

.fleet-auditor p {
  color: #94a3b8;
}

.fleet-auditor .artifact {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

/* ── SVG Diagram Container ──────────────────────────────────── */
.diagram-container {
  border-radius: 16px;
  border: 1px solid var(--border-dim);
  background: rgba(15, 23, 42, 0.4);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Break out of the .page-container to center on the screen */
  position: relative;
  width: 95vw;
  max-width: 1600px;
  /* The original diagram width */
  left: 50%;
  transform: translateX(-50%);
}

.diagram-container object,
.diagram-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Annotated Screenshot ───────────────────────────────────── */
.annotated-screenshot {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-dim);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  margin-top: 1rem;
}

.annotated-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}

.hotspot {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.hotspot-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 15px var(--cyan-glow);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.hotspot-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: hotspot-ping 2s ease-in-out infinite;
}

@keyframes hotspot-ping {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hotspot:hover {
  z-index: 30;
}

.hotspot:hover .hotspot-dot {
  transform: scale(1.3);
}

.hotspot-tooltip {
  position: absolute;
  width: 250px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.2s;
  pointer-events: none;
  z-index: 20;
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: scale(1);
}

.hotspot-tooltip h4 {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.hotspot-tooltip p {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Tooltip alignment */
.hotspot.align-right .hotspot-tooltip {
  left: 28px;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
}

.hotspot.align-right:hover .hotspot-tooltip {
  transform: translateY(-50%) scale(1);
}

.hotspot.align-left .hotspot-tooltip {
  right: 28px;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
}

.hotspot.align-left:hover .hotspot-tooltip {
  transform: translateY(-50%) scale(1);
}

.hotspot.align-top .hotspot-tooltip {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
}

.hotspot.align-top:hover .hotspot-tooltip {
  transform: translateX(-50%) scale(1);
}

.hotspot.align-bottom .hotspot-tooltip {
  top: 28px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
}

.hotspot.align-bottom:hover .hotspot-tooltip {
  transform: translateX(-50%) scale(1);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 1.5rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 20%, var(--cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero .tagline em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 500;
}

/* ── Call to Action ─────────────────────────────────────────── */
.cta-bar {
  display: flex;
  justify-content: center;
  padding: 3rem 0 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  box-shadow: none;
}

.cta-button.secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

/* ── Callout Box ────────────────────────────────────────────── */
.callout {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid;
  font-size: 0.9rem;
  line-height: 1.7;
}

.callout-cyan {
  background: rgba(6, 182, 212, 0.06);
  border-color: var(--cyan);
  color: var(--text-secondary);
}

.callout-pink {
  background: rgba(236, 72, 153, 0.06);
  border-color: var(--pink);
  color: var(--text-secondary);
}

.callout-amber {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--amber);
  color: var(--text-secondary);
}

.callout strong {
  color: #fff;
}

/* ── Color utility highlights ───────────────────────────────── */
.text-cyan {
  color: var(--cyan);
}

.text-purple {
  color: var(--purple);
}

.text-amber {
  color: var(--amber);
}

.text-emerald {
  color: var(--emerald);
}

.text-pink {
  color: var(--pink);
}

.text-blue {
  color: var(--blue);
}

.text-rose {
  color: var(--rose);
}

.bg-gradient-cyan {
  background: linear-gradient(to bottom, var(--cyan), var(--blue));
}

.bg-gradient-purple {
  background: linear-gradient(to bottom, var(--purple), var(--pink));
}

.bg-gradient-amber {
  background: linear-gradient(to bottom, var(--amber), rgba(245, 158, 11, 0.4));
}

.bg-gradient-emerald {
  background: linear-gradient(to bottom, var(--emerald), var(--cyan));
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
  }

  .page-container {
    padding: 2rem 1rem 3rem;
  }

  .page-header {
    margin-bottom: 2.5rem;
  }

  .hero {
    padding: 3rem 1rem 2rem;
  }

  .pillars-grid,
  .fleet-grid {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 1.25rem;
  }

  .hotspot-tooltip {
    width: 200px;
    padding: 0.75rem;
  }

  .hotspot-dot {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}