/* =============================================
   ZERO DAYS — Stylesheet
   AI Governance & T&S Intelligence
   ============================================= */

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

:root {
  --black: #080a0f;
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #21262d;
  --dark-4: #30363d;
  --border: rgba(255,255,255,0.07);
  --border-subtle: rgba(255,255,255,0.04);
  --white: #f0f6fc;
  --white-dim: rgba(240, 246, 252, 0.7);
  --white-muted: rgba(240, 246, 252, 0.45);
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-subtle: rgba(37, 99, 235, 0.08);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--white-dim); }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--dark-3);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--white-dim);
  padding: 12px 20px;
}
.btn-ghost:hover {
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* =============================================
   NAV
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  font-size: 1.4rem;
  color: var(--accent-light);
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-active { color: var(--white) !important; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-light) !important;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 196px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  font-family: var(--font-mono);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}

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

.hero-headline {
  color: var(--white);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0f6fc 0%, rgba(240,246,252,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 680px;
}

.hero-social-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-channel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--dark-2);
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.hero-channel-btn:hover {
  border-color: var(--accent-light);
  color: var(--white);
  background: var(--dark-3);
}

.hero-channel-newsletter {
  border-color: rgba(37, 99, 235, 0.4);
  background: var(--accent-subtle);
  color: var(--white);
}

.hero-channel-newsletter:hover {
  background: rgba(37, 99, 235, 0.15);
}

.hero-channel-live {
  border-color: rgba(16, 185, 129, 0.4);
}

.hero-channel-coming {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.coming-tag {
  font-size: 0.62rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* Coming Soon channel cards */
.channel-card-soon {
  opacity: 0.72;
  position: relative;
}

.channel-coming-banner {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.channel-icon-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #0a66c2;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
}

.channel-icon-x {
  font-size: 0.9rem;
  color: var(--white);
}

.channel-icon-yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ff0000;
  color: white;
  font-size: 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.channel-icon-pod {
  font-size: 0.9rem;
  color: #a855f7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =============================================
   CHANNELS
   ============================================= */

.channels {
  padding: 100px 0;
  background: var(--dark);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.channel-card-wide {
  grid-column: 1 / -1;
}

.channel-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.channel-card:hover {
  transform: translateY(-2px);
}

.channel-li  { border-top: 3px solid #0a66c2; }
.channel-x   { border-top: 3px solid #e7e9ea; }
.channel-yt  { border-top: 3px solid #ff0000; }
.channel-pod { border-top: 3px solid #a855f7; }
.channel-nl  { border-top: 3px solid var(--accent); background: linear-gradient(135deg, rgba(37,99,235,0.07) 0%, var(--dark-2) 60%); }

.channel-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-platform-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.channel-badge-li  { background: #0a66c2; color: white; font-size: 0.85rem; }
.channel-badge-x   { background: #000; color: white; border: 1px solid #333; }
.channel-badge-yt  { background: #ff0000; color: white; font-size: 0.75rem; }
.channel-badge-pod { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.channel-badge-nl  { background: var(--accent-subtle); color: var(--accent-light); border: 1px solid rgba(37,99,235,0.3); }

.channel-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.channel-freq {
  font-size: 0.8rem;
  color: var(--white-muted);
  font-family: var(--font-mono);
}

.channel-desc {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.65;
  flex: 1;
}

.channel-content-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-type {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white-muted);
}

.channel-follow-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}

.channel-follow-x    { background: #000; color: white; border: 1px solid #555; }
.channel-follow-x:hover { background: #111; }
.channel-follow-soon { background: var(--dark-3); color: var(--white-muted); border: 1px solid var(--border); cursor: default; opacity: 0.75; }
.channel-follow-soon:hover { background: var(--dark-3); opacity: 0.9; }
.channel-follow-nl-free { background: var(--dark-3); color: var(--white); border: 1px solid var(--border); }
.channel-follow-nl-free:hover { border-color: var(--accent-light); color: var(--accent-light); }
.channel-follow-nl-paid { background: var(--accent); color: white; }
.channel-follow-nl-paid:hover { background: var(--accent-light); }

.channel-nl-tiers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .channels-grid { grid-template-columns: 1fr; }
  .channel-card-wide { grid-column: 1; }
}

/* =============================================
   NEWSLETTER CTA
   ============================================= */

.newsletter-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, var(--dark) 50%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.newsletter-content .section-eyebrow { text-align: left; margin-bottom: 12px; }
.newsletter-content h2 { color: var(--white); margin-bottom: 20px; }
.newsletter-content > p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 32px; }

.newsletter-tiers { display: flex; flex-direction: column; gap: 12px; }

.tier {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.tier-paid {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.06);
}

.tier-name { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.tier-paid .tier-name { color: #93c5fd; }
.tier-desc { font-size: 0.82rem; color: var(--white-muted); line-height: 1.5; }

.signup-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.signup-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.signup-icon { font-size: 1.8rem; }
.signup-title { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.signup-sub { font-size: 0.82rem; color: var(--white-muted); }

.signup-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.signup-form input {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.signup-form input:focus { border-color: var(--accent); }

.signup-channels {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--white-muted);
  flex-wrap: wrap;
}

.channel-link { color: var(--accent-light); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.channel-link:hover { color: var(--white); }

@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid-4 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto 48px; }
}

/* =============================================
   PIPELINE / CONTENT MACHINE
   ============================================= */

.pipeline {
  padding: 100px 0;
  background: var(--dark);
}

.pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
}

.pipeline-layer {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

.pipeline-layer-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-steps-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pipeline-step {
  flex: 1;
  min-width: 160px;
}

.pipeline-step-channel {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-step-dist {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  flex: 1;
}

.pipeline-ch-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
  height: 24px;
  display: flex;
  align-items: center;
}

.pipeline-step-time {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-light);
  margin-bottom: 4px;
}

.pipeline-step-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.pipeline-step-desc {
  font-size: 0.82rem;
  color: var(--white-muted);
  line-height: 1.5;
}

.pipeline-arrow {
  font-size: 1.2rem;
  color: var(--white-muted);
  padding-top: 8px;
  flex-shrink: 0;
  align-self: center;
}

.pipeline-divider {
  text-align: center;
  font-size: 1.5rem;
  color: var(--accent-light);
  padding: 12px 0;
}

.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding: 36px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pipeline-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.pipeline-stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
}

.pipeline-stat-label {
  font-size: 0.82rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 1024px) {
  .pipeline-steps-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .pipeline-steps-5 { grid-template-columns: repeat(2, 1fr); }
  .pipeline-steps { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); align-self: center; }
  .pipeline-stats { grid-template-columns: repeat(2, 1fr); }
  .pipeline-layer { padding: 24px 20px; }
}

/* =============================================
   PROBLEM
   ============================================= */

.problem {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.problem-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 8px;
}

.problem-content h2 {
  margin-bottom: 24px;
  color: var(--white);
}

.problem-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.problem-callout {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  color: var(--white-dim) !important;
  font-size: 1.05rem !important;
}

/* =============================================
   ICP SECTION
   ============================================= */

.icp {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.icp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.icp-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
}

.icp-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--dark-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.icp-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.icp-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.icp-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.icp-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* =============================================
   AGENTS
   ============================================= */

.agents {
  padding: 100px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.agent-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}

.agent-card:hover {
  border-color: var(--border);
  background: var(--dark-2);
}

.agent-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.agent-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.agent-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.agent-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-light);
  letter-spacing: 0.05em;
}

.agent-card > p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =============================================
   SERVICES / PACKAGES
   ============================================= */

.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 48px;
}

.advisory-separator {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 56px 0 48px;
}

.advisory-sep-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.advisory-sep-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-header-sm {
  margin-bottom: 32px;
}

.section-header-sm h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.section-header-sm p {
  font-size: 1rem;
  color: var(--white-muted);
}

.service-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.service-featured {
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, var(--dark-2) 50%);
  border-color: rgba(37, 99, 235, 0.3);
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.service-tier {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.service-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.service-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--white-muted);
}

.service-commitment {
  font-size: 0.82rem;
  color: var(--white-muted);
  margin-bottom: 24px;
}

.service-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.service-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.5;
}

.check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.service-note {
  font-size: 0.8rem;
  color: var(--white-muted);
  margin-top: 16px;
  line-height: 1.5;
  text-align: center;
}

/* =============================================
   WHY
   ============================================= */

.why {
  padding: 100px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.why-content h2 {
  color: var(--white);
  margin-bottom: 48px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.why-point {
  display: flex;
  gap: 24px;
}

.why-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}

.why-point h4 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1rem;
}

.why-point p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.risk-card {
  background: var(--dark-2);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.risk-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.risk-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.risk-item {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.5;
}

.risk-icon { flex-shrink: 0; }

.risk-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}

.risk-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--white-muted);
  font-style: italic;
}

/* =============================================
   ABOUT
   ============================================= */

.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.about-content .section-eyebrow {
  text-align: left;
  margin-bottom: 8px;
}

.about-content h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.about-title {
  font-size: 1.1rem;
  color: var(--accent-light) !important;
  margin-bottom: 28px;
}

.about-content p {
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.credential {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-dim);
  background: var(--dark-3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
}

.quote-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-left: 3px solid var(--accent);
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--white-dim);
  font-style: italic;
  margin-bottom: 24px;
}

.quote-attr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
}

/* =============================================
   FAQ
   ============================================= */

.faq {
  padding: 100px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 40px;
}

.faq-item h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1rem;
}

.faq-item p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */

.contact {
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong { color: var(--white); display: block; }
.contact-item span { color: var(--accent-light); }

.contact-form-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-card h3 {
  color: var(--white);
  margin-bottom: 28px;
  font-size: 1.15rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group select option {
  background: var(--dark-3);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social-link:hover { opacity: 0.8; }
.footer-x   { background: #000; color: white; border: 1px solid #333; font-size: 0.75rem; }
.footer-nl  { background: var(--accent-subtle); color: var(--white); border: 1px solid rgba(37,99,235,0.4); font-size: 0.9rem; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--white-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .risk-card {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* =============================================
   MOBILE NAV
   ============================================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.hamburger-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 93px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8, 10, 15, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.mobile-nav-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-inner {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--white-dim);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: var(--white);
}

.mobile-nav-cta {
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--accent);
  color: white !important;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  border-bottom: none !important;
}

.mobile-nav-cta:hover {
  background: var(--accent-light);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   LIVE SIGNALS BAR
   ============================================= */

.live-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #06080f;
  border-bottom: 2px solid rgba(239, 68, 68, 0.4);
  height: 52px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(239, 68, 68, 0.08);
}

.live-bar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ef4444;
  white-space: nowrap;
  border-right: 1px solid rgba(239, 68, 68, 0.25);
  height: 100%;
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.04);
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: live-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(239,68,68,0.6); }
  50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 4px rgba(239,68,68,0.3); }
}

.live-ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 96%, transparent 100%);
}

.live-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 80s linear infinite;
  will-change: transform;
}

.live-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(240, 246, 252, 0.8);
  text-decoration: none;
  padding: 0 12px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item:hover {
  color: var(--white);
}

.ticker-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.ticker-tag-eu        { background: rgba(59,130,246,0.2); color: #60a5fa; }
.ticker-tag-dsa       { background: rgba(139,92,246,0.2); color: #a78bfa; }
.ticker-tag-kosa      { background: rgba(245,158,11,0.2); color: #fbbf24; }
.ticker-tag-ftc       { background: rgba(239,68,68,0.2); color: #f87171; }
.ticker-tag-agentic   { background: rgba(6,182,212,0.2); color: #22d3ee; }
.ticker-tag-synthetic { background: rgba(236,72,153,0.2); color: #f472b6; }
.ticker-tag-incidents { background: rgba(249,115,22,0.2); color: #fb923c; }
.ticker-tag-safety    { background: rgba(34,197,94,0.2); color: #4ade80; }

.ticker-sep {
  color: rgba(239, 68, 68, 0.45);
  font-size: 11px;
  padding: 0 8px;
  flex-shrink: 0;
}

.ticker-view-all {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ef4444;
  text-decoration: none;
  white-space: nowrap;
  border-left: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.ticker-view-all:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fff;
}

/* Push nav and content down to account for fixed bar */
.nav {
  top: 52px !important;
}

body {
  padding-top: 0;
}

/* Badge agents tag */
.badge-sep {
  margin: 0 6px;
  opacity: 0.4;
}

.badge-agents {
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* =============================================
   NAV LIVE DOT (News link)
   ============================================= */

.nav-link-news {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: live-pulse 1.8s ease-in-out infinite;
}

/* =============================================
   INTELLIGENCE LIBRARY SECTION
   ============================================= */

.news-library {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
}

.library-header {
  margin-bottom: 36px;
}

.library-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.library-header-top h2 {
  margin: 8px 0 12px;
}

.library-header-top > div > p {
  max-width: 600px;
  color: var(--white-muted);
  font-size: 1rem;
}

.library-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.library-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ef4444;
  font-family: var(--font-mono);
}

.library-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}

.library-stat-row {
  display: flex;
  gap: 20px;
}

.library-meta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lib-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-mono);
  line-height: 1;
}

.lib-label {
  font-size: 10px;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Controls */
.library-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.library-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--white-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.library-search {
  width: 100%;
  padding: 12px 40px 12px 42px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.library-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.library-search::placeholder {
  color: var(--white-muted);
}

.search-clear {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-3);
  border: none;
  border-radius: 50%;
  color: var(--white-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.search-clear:hover { background: var(--dark-4); color: var(--white); }

/* Filter pills */
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  background: var(--dark-2);
}

.filter-btn.filter-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 200px;
}

/* Card */
.library-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card-accent-bar {
  height: 3px;
  background: var(--card-accent, var(--accent));
  width: 100%;
  flex-shrink: 0;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-cat-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}

.card-date {
  font-size: 0.78rem;
  color: var(--white-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.card-title {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}

.card-title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s;
}

.card-title a:hover {
  color: var(--accent-light);
}

.card-summary {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.card-source {
  font-size: 0.78rem;
  color: var(--white-muted);
  font-weight: 500;
}

.card-read-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  white-space: nowrap;
}
.card-read-link:hover { color: white; }

/* Loading state */
.library-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--white-muted);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.library-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--white-muted);
  text-align: center;
}

.empty-icon { font-size: 2.5rem; }

/* Library footer */
.library-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.library-count {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-family: var(--font-mono);
}

/* Bottom CTA */
.library-bottom-cta {
  margin-top: 40px;
}

.library-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
}

.library-cta-text {
  font-size: 0.92rem;
  color: var(--white-dim);
}

.library-cta-text strong {
  color: var(--white);
}

/* Small button variant */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* =============================================
   RESPONSIVE — LIBRARY
   ============================================= */

@media (max-width: 900px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .library-header-top { flex-direction: column; }
  .library-header-meta { align-items: flex-start; }
  .ticker-view-all { display: none; }
}

@media (max-width: 600px) {
  .library-grid { grid-template-columns: 1fr; }
  .library-controls { gap: 12px; }
  .library-search-wrap { max-width: 100%; }
  .lib-num { font-size: 1.2rem; }
  .library-cta-inner { flex-direction: column; align-items: flex-start; }
  .live-label span:last-child { display: none; }
}

/* =============================================
   HUMAN VS AGENT SECTION
   ============================================= */

.hva-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hva-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.hva-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}

.hva-header {
  text-align: center;
  max-width: 640px;
}

.hva-header h2 {
  margin: 12px 0 16px;
}

.hva-header p {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Scoreboard */
.hva-scoreboard {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(37, 99, 235, 0.06);
}

.hva-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  gap: 8px;
  text-align: center;
}

.hva-agents {
  background: rgba(37, 99, 235, 0.04);
}

.hva-human {
  background: rgba(34, 197, 94, 0.04);
}

.hva-icon {
  font-size: 1.6rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.hva-agents .hva-icon { color: var(--accent-light); }
.hva-human .hva-icon { color: var(--green); }

.hva-count {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hva-agents .hva-count { color: var(--accent-light); }
.hva-human .hva-count { color: var(--green); }

.hva-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.hva-sublabel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}

.hva-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  gap: 16px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 160px;
}

.hva-vs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--white-muted);
  text-transform: uppercase;
}

.hva-override-rate {
  text-align: center;
}

.hva-rate-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--amber);
}

.hva-rate-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Breakdown */
.hva-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 800px;
}

.hva-col {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.hva-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.hva-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hva-list li {
  font-size: 0.88rem;
  color: var(--white-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.hva-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 0.78rem;
}

/* Statement */
.hva-statement {
  max-width: 640px;
  text-align: center;
  padding: 28px 36px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.hva-statement p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--white-dim);
}

.hva-statement strong {
  color: var(--white);
}

/* Responsive HVA */
@media (max-width: 768px) {
  .hva-scoreboard {
    flex-direction: column;
  }

  .hva-divider {
    flex-direction: row;
    min-height: auto;
    padding: 16px 24px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    width: 100%;
    justify-content: space-around;
  }

  .hva-breakdown {
    grid-template-columns: 1fr;
  }

  .hva-count {
    font-size: 2.4rem;
  }
}

/* =============================================
   AGENT ROSTER SECTION
   ============================================= */

.roster-section {
  padding: 100px 0 80px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.roster-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(37,99,235,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(124,58,237,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

/* Agent Card */
.agent-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.agent-card:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(37,99,235,0.08);
}

.agent-card:hover::before {
  opacity: 1;
}

.agent-card-featured {
  border-color: rgba(34,197,94,0.2);
  background: linear-gradient(135deg, var(--dark-2) 0%, rgba(34,197,94,0.03) 100%);
}

.agent-card-featured::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.6;
}

/* Card top row */
.agent-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

/* Avatar */
.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--dark-3);
  flex-shrink: 0;
}

/* Status badges */
.agent-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.agent-status-live {
  color: var(--green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
}

.agent-status-demand {
  color: var(--amber);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
}

.agent-status-weekly {
  color: var(--accent-light);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
}

.agent-status-monthly {
  color: #a78bfa;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
}

/* Agent text */
.agent-codename {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.agent-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-top: -4px;
}

.agent-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--white-dim);
  flex: 1;
}

/* Agent tags */
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.agent-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--dark-3);
  color: var(--white-muted);
  border: 1px solid var(--border-subtle);
}

/* =============================================
   FABIAN — HUMAN ANCHOR CARD
   ============================================= */

.human-anchor {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--dark-2) 0%, rgba(37,99,235,0.06) 100%);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.human-anchor::before {
  content: 'HUMAN JUDGMENT LAYER';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  opacity: 0.5;
}

.human-anchor::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(124,58,237,0.6), var(--accent));
}

.human-anchor-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.human-anchor-left {
  flex-shrink: 0;
}

.human-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  border: 1px solid rgba(37,99,235,0.4);
  box-shadow: 0 0 24px rgba(37,99,235,0.2);
}

.human-anchor-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.human-anchor-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.human-anchor-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.human-anchor-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}

.human-anchor-bio {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--white-dim);
  max-width: 780px;
  margin-top: 4px;
}

.human-anchor-domains {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-muted);
  letter-spacing: 0.04em;
  padding: 10px 14px;
  background: var(--dark-3);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  width: fit-content;
  margin-top: 4px;
}

/* Roster responsive */
@media (max-width: 1100px) {
  .roster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .human-anchor-inner {
    flex-direction: column;
    gap: 20px;
  }

  .human-anchor::before {
    display: none;
  }

  .human-anchor {
    padding: 28px 24px;
  }
}

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