/* ============================================================
   NEURONEX AI SYSTEMS — ANANSI Shared Styles
   ============================================================ */

/* ── ANANSI HERO (overview page) ─────────────────────────── */

.anansi-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('../assets/images/anansi-bg.svg');
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.anansi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #050b14 0%, #080f1c 100%);
  z-index: 0;
}

.anansi-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(3,8,16,0.9) 0%,
    rgba(3,8,16,0.5) 55%,
    rgba(3,8,16,0.1) 100%
  );
  z-index: 1;
}

.anansi-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 64px;
  max-width: 640px;
}

.anansi-hero__eyebrow {
  margin-bottom: 24px;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74,158,218,0.8);
  border: 1px solid rgba(74,158,218,0.25);
  padding: 5px 12px;
}

.anansi-hero__title {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.anansi-hero__body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  max-width: 480px;
}

.anansi-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 8px;
  transition: opacity 0.2s;
}

.anansi-hero__cta:hover { opacity: 0.65; }

/* Acronym breakdown right side */
.anansi-hero__acronym {
  position: relative;
  z-index: 2;
  padding: 80px 64px 80px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acronym-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.5s forwards;
}

.acronym-row:nth-child(1) { animation-delay: 0.1s; }
.acronym-row:nth-child(2) { animation-delay: 0.2s; }
.acronym-row:nth-child(3) { animation-delay: 0.3s; }
.acronym-row:nth-child(4) { animation-delay: 0.4s; }
.acronym-row:nth-child(5) { animation-delay: 0.5s; }
.acronym-row:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acronym-row .letter {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: rgba(74,158,218,0.7);
  min-width: 48px;
  line-height: 1;
}

.acronym-row .word {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

/* ── PILLARS SECTION ─────────────────────────────────────── */

.pillars {
  background: #08111e;
  padding: 80px 64px 100px;
}

.pillars__header {
  margin-bottom: 56px;
}

.pillars__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74,158,218,0.6);
  margin-bottom: 12px;
}

.pillars__title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.pillar-card {
  background: #08111e;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
}

.pillar-card:hover { background: #0c1828; }

.pillar-card--accent { background: #091520; }
.pillar-card--accent:hover { background: #0e1e30; }

.pillar-card__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(74,158,218,0.5);
}

.pillar-card__icon {
  color: rgba(74,158,218,0.7);
  margin: 4px 0;
}

.pillar-card__title {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.pillar-card__body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

.pillar-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(74,158,218,0.8);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s, gap 0.2s;
}

.pillar-card__link:hover {
  color: #4a9eda;
  gap: 12px;
}

/* ── CTA BAND ────────────────────────────────────────────── */

.anansi-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 64px;
  background: #060c16;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.anansi-cta-band__text {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
}

.btn-outline-light {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 32px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.7);
}

/* ── DETAIL HERO (sub-pages) ─────────────────────────────── */

.detail-hero {
  position: relative;
  width: 100%;
  height: 380px;
  background-image: url('../assets/images/anansi-bg.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #050b14 0%, #080f1c 100%);
  z-index: 0;
}

.detail-hero--bespoke::before {
  background: linear-gradient(135deg, #0a0f14 0%, #0c1620 100%);
}

.detail-hero--devtools::before {
  background: linear-gradient(135deg, #080d14 0%, #0b1422 100%);
}

.detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,11,20,0.4) 0%,
    rgba(5,11,20,0.2) 40%,
    rgba(5,11,20,0.82) 100%
  );
  z-index: 1;
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 64px 48px;
  width: 100%;
  max-width: 800px;
}

.detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(74,158,218,0.65);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.detail-breadcrumb:hover { color: #4a9eda; }

.detail-hero__meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

.detail-hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.detail-hero__body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
}

/* ── DETAIL MAIN ─────────────────────────────────────────── */

.detail-main {
  background: #08111e;
}

.detail-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 64px 0;
}

.detail-intro p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
}

.detail-section {
  padding: 64px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-section--dark {
  max-width: 100%;
  background: #060c16;
  padding: 64px;
}

.detail-section--dark > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.detail-section__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── NODES GRID (AI Nodes page) ──────────────────────────── */

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.node-card {
  background: #08111e;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s;
}

.node-card:hover { background: #0c1828; }

.node-card__sector {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}

.node-card p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  flex: 1;
}

.node-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.node-card__features li {
  font-size: 12px;
  font-weight: 300;
  color: rgba(74,158,218,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-card__features li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74,158,218,0.5);
  flex-shrink: 0;
}

/* ── STEPS ROW (how nodes integrate) ────────────────────────*/

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1000px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(74,158,218,0.6);
}

.step__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
}

.step p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

.step__arrow {
  font-size: 20px;
  color: rgba(74,158,218,0.3);
  padding: 40px 24px 0;
  flex-shrink: 0;
}

/* ── BESPOKE PROCESS ─────────────────────────────────────── */

.bespoke-process {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.process-step:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.process-step__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(74,158,218,0.5);
  padding-top: 4px;
}

.process-step__content h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 10px;
}

.process-step__content p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

/* ── ENGAGEMENT GRID (bespoke) ───────────────────────────── */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  max-width: 1000px;
}

.engagement-card {
  background: #060c16;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s;
}

.engagement-card:hover { background: #091420; }

.engagement-card__type {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.engagement-card p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255,255,255,0.5);
}

/* ── TOOLS GRID (dev tools) ──────────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.tool-card {
  background: #08111e;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s;
}

.tool-card:hover { background: #0c1828; }

.tool-card__icon { color: rgba(74,158,218,0.65); }

.tool-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.tool-card p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  flex: 1;
}

.tool-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-features li {
  font-size: 12px;
  font-weight: 300;
  color: rgba(74,158,218,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-features li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74,158,218,0.45);
  flex-shrink: 0;
}

/* ── CODE BLOCK ──────────────────────────────────────────── */

.code-block-wrap {
  max-width: 700px;
  margin-bottom: 24px;
}

.code-block-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74,158,218,0.5);
  margin-bottom: 12px;
}

.code-block {
  background: #030810;
  border: 1px solid rgba(74,158,218,0.15);
  padding: 28px 32px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  overflow-x: auto;
}

.code-comment { color: rgba(255,255,255,0.25); }
.code-keyword { color: rgba(74,158,218,0.9); }
.code-string  { color: rgba(120,210,150,0.85); }

.code-note {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.code-note a {
  color: rgba(74,158,218,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.code-note a:hover { color: #4a9eda; }

/* ── DETAIL PAGINATION ───────────────────────────────────── */

.detail-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 64px;
  background: #060c16;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.detail-pagination__prev,
.detail-pagination__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.detail-pagination__prev:hover,
.detail-pagination__next:hover { color: var(--color-white); }

.detail-pagination__next { margin-left: auto; }

/* ── INFOGRAPHICS ────────────────────────────────────────── */

.infographic-section {
  background: #07111e;
  padding: 80px 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.infographic-section__header {
  margin-bottom: 48px;
  max-width: 600px;
}

.infographic-section__sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
}

.infographic-container {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
  background: #06101e;
}

.infographic-container--centered {
  max-width: 700px;
  margin: 0 auto;
}

.infographic-legend {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.infg-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}

.infg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.infg-dot--hub    { background: #4a9eda; }
.infg-dot--pillar { background: rgba(74,158,218,0.5); border: 1px solid #4a9eda; }
.infg-dot--leaf   { background: rgba(42,106,170,0.5); border: 1px solid #2a6aaa; }

.infg-line {
  display: inline-block;
  width: 20px;
  height: 2px;
  flex-shrink: 0;
}

.infg-line--flow {
  background: repeating-linear-gradient(
    to right,
    #4a9eda 0px,
    #4a9eda 5px,
    transparent 5px,
    transparent 10px
  );
}

.infographic-caption {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
  font-style: italic;
}

.infographic-caption--centered {
  text-align: center;
}

/* ── INFOGRAPHIC ANIMATIONS ──────────────────────────────── */

@keyframes bpDash {
  to { stroke-dashoffset: -28; }
}

.bp-flow {
  animation: bpDash 1.4s linear infinite;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .anansi-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 48px;
  }

  .anansi-hero__acronym { display: none; }

  .pillars__grid,
  .nodes-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

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

  .steps-row {
    flex-direction: column;
    gap: 32px;
  }

  .step__arrow { display: none; }
}

@media (max-width: 768px) {
  .anansi-hero__content,
  .detail-hero__content,
  .detail-intro,
  .detail-section,
  .detail-section--dark,
  .pillars,
  .anansi-cta-band,
  .detail-pagination {
    padding-left: 24px;
    padding-right: 24px;
  }

  .anansi-cta-band { flex-direction: column; align-items: flex-start; }

  .detail-pagination { flex-direction: column; gap: 16px; align-items: flex-start; }
  .detail-pagination__next { margin-left: 0; }

  .process-step { grid-template-columns: 40px 1fr; gap: 16px; }

  .pillar-card,
  .node-card,
  .tool-card,
  .engagement-card { padding: 28px 24px; }
}
