/* ==========================================================================
   Skynet Showcase — Multi-Agent AI Infrastructure Sections
   Theme: ai-wp-manager-template
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Keyframe Animations
   -------------------------------------------------------------------------- */

@keyframes nodePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb, 0, 102, 204), 0.5);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(var(--color-primary-rgb, 0, 102, 204), 0.25);
  }
}

@keyframes nodePulseAccent {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(255, 59, 48, 0.2);
  }
}

@keyframes connectionFlow {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes connectionFlowReverse {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 24;
  }
}

@keyframes floatKeyword {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shimmerBadge {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitalRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   1. Skynet Showcase — Multi-Agent AI Infrastructure
   -------------------------------------------------------------------------- */

.skynet-showcase {
  position: relative;
  padding: var(--space-24, 96px) 0;
  background: linear-gradient(160deg, #0a0e27 0%, #111640 40%, #1a1045 70%, #0d0d2b 100%);
  color: var(--color-white, #fff);
  overflow: hidden;
  z-index: 2;
}

.skynet-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(0, 102, 204, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 60%, rgba(120, 50, 200, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.skynet-showcase .section-intro__eyebrow {
  color: var(--color-primary-light, #3399ff);
}

.skynet-showcase .section-intro__title {
  color: var(--color-white, #fff);
}

.skynet-showcase .section-intro__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Node Graph --- */

.skynet-showcase__graph {
  position: relative;
  max-width: 720px;
  height: 420px;
  margin: var(--space-12, 48px) auto var(--space-8, 32px);
}

.skynet-showcase__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skynet-showcase__connections line {
  stroke: rgba(51, 153, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: connectionFlow 1.2s linear infinite;
}

.skynet-showcase__connections line:nth-child(even) {
  animation-name: connectionFlowReverse;
  animation-duration: 1.6s;
}

.skynet-showcase__connections line[data-type="consultant"] {
  stroke: rgba(255, 59, 48, 0.3);
  stroke-dasharray: 4 8;
  animation-duration: 2s;
}

/* --- Agent Nodes --- */

.skynet-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: transform 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
}

.skynet-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.skynet-node__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  border: 2px solid rgba(51, 153, 255, 0.5);
  background: rgba(0, 102, 204, 0.15);
  color: var(--color-primary-light, #3399ff);
  animation: nodePulse 3s ease-in-out infinite;
  will-change: box-shadow;
}

.skynet-node--orchestrator {
  z-index: 3;
}

.skynet-node--orchestrator .skynet-node__circle {
  width: 80px;
  height: 80px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-color: var(--color-primary-light, #3399ff);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(51, 153, 255, 0.15));
  color: #fff;
  animation-duration: 2.5s;
}

.skynet-node--worker .skynet-node__circle {
  background: rgba(0, 102, 204, 0.12);
}

.skynet-node--consultant .skynet-node__circle {
  border-color: rgba(255, 59, 48, 0.5);
  background: rgba(255, 59, 48, 0.1);
  color: var(--color-accent, #ff3b30);
  animation-name: nodePulseAccent;
  animation-duration: 3.5s;
}

.skynet-node__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.skynet-node--orchestrator .skynet-node__label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
}

.skynet-node__role {
  max-width: 12.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.skynet-node__circle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

.skynet-node--orchestrator .skynet-node__circle svg {
  width: 24px;
  height: 24px;
}

/* Node positions — desktop (720×420 coordinate space) */
.skynet-node--orchestrator  { left: 50%;    top: 50%; }
.skynet-node--alpha         { left: 22%;    top: 25%; }
.skynet-node--beta          { left: 78%;    top: 25%; }
.skynet-node--gamma         { left: 22%;    top: 75%; }
.skynet-node--delta         { left: 78%;    top: 75%; }
.skynet-node--codex         { left: 50%;    top: 8%;  }
.skynet-node--gemini        { left: 50%;    top: 92%; }

/* --- Stats Bar --- */

.skynet-showcase__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4, 16px);
  max-width: 880px;
  margin: 0 auto;
  padding-top: var(--space-8, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.skynet-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  animation: countUp 0.6s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)) both;
}

.skynet-stat:nth-child(2) { animation-delay: 0.1s; }
.skynet-stat:nth-child(3) { animation-delay: 0.2s; }
.skynet-stat:nth-child(4) { animation-delay: 0.3s; }

.skynet-stat__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg, 12px);
  background: rgba(51, 153, 255, 0.12);
  color: var(--color-primary-light, #3399ff);
  font-size: 1.1rem;
}

.skynet-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.skynet-stat__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. ScreenMemory Section — Visual Intelligence
   -------------------------------------------------------------------------- */

.screenmemory-section {
  position: relative;
  padding: var(--space-24, 96px) 0;
  background: var(--color-surface, #f5f5f7);
  z-index: 2;
}

:root[data-theme="dark"] .screenmemory-section {
  background: var(--color-surface, #1c1c1e);
}

/* --- Capability Grid --- */

.screenmemory-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6, 24px);
  margin-top: var(--space-12, 48px);
}

.capability-card {
  position: relative;
  padding: var(--space-8, 32px) var(--space-6, 24px);
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
  border-radius: var(--radius-2xl, 24px);
  text-align: center;
  transition:
    transform 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)),
    box-shadow 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
  will-change: transform;
}

.capability-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .capability-card {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .capability-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.capability-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl, 16px);
  background: var(--color-primary-10, rgba(0, 102, 204, 0.1));
  color: var(--color-primary, #0066cc);
  font-size: 1.5rem;
}

.capability-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text, var(--color-dark, #1d1d1f));
  margin-bottom: 4px;
}

:root[data-theme="dark"] .capability-card__title {
  color: #fff;
}

.capability-card__metric {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary, #0066cc);
  background: var(--color-primary-10, rgba(0, 102, 204, 0.1));
  padding: 2px 10px;
  border-radius: var(--radius-full, 999px);
  margin-bottom: var(--space-3, 12px);
}

.capability-card__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted, #86868b);
}

/* --- Tech Stack Badges --- */

.screenmemory-section__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-10, 40px);
  padding-top: var(--space-8, 32px);
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
}

:root[data-theme="dark"] .screenmemory-section__badges {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text, var(--color-dark, #1d1d1f));
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-full, 999px);
  transition: border-color 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--color-primary, #0066cc);
}

:root[data-theme="dark"] .tech-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

:root[data-theme="dark"] .tech-badge:hover {
  border-color: var(--color-primary-light, #3399ff);
}

.tech-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary, #0066cc);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Tech Architecture — Architecture Overview
   -------------------------------------------------------------------------- */

.tech-architecture {
  position: relative;
  padding: var(--space-24, 96px) 0;
  background: var(--color-bg, #fff);
  z-index: 2;
}

:root[data-theme="dark"] .tech-architecture {
  background: var(--color-bg, #111);
}

.tech-architecture__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12, 48px);
  align-items: center;
  margin-top: var(--space-12, 48px);
}

.tech-architecture__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 24px);
}

.tech-architecture__headline {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text, var(--color-dark, #1d1d1f));
  letter-spacing: -0.02em;
}

:root[data-theme="dark"] .tech-architecture__headline {
  color: #fff;
}

.tech-architecture__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted, #86868b);
}

.tech-architecture__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.tech-architecture__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text, var(--color-dark, #1d1d1f));
}

:root[data-theme="dark"] .tech-architecture__bullets li {
  color: rgba(255, 255, 255, 0.85);
}

.tech-architecture__bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-primary-10, rgba(0, 102, 204, 0.1));
  border: 2px solid var(--color-primary, #0066cc);
}

/* --- Layer Diagram --- */

.tech-architecture__diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-layer {
  position: relative;
  width: 280px;
  padding: 20px 24px;
  text-align: center;
  border-radius: var(--radius-xl, 16px);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition:
    transform 0.25s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)),
    box-shadow 0.25s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
}

.arch-layer:hover {
  transform: scale(1.04);
}

.arch-layer--perception {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(51, 153, 255, 0.06));
  border-color: rgba(0, 102, 204, 0.25);
  color: var(--color-primary, #0066cc);
}

.arch-layer--cognition {
  background: linear-gradient(135deg, rgba(120, 50, 200, 0.1), rgba(160, 80, 240, 0.06));
  border-color: rgba(120, 50, 200, 0.25);
  color: #7832c8;
}

.arch-layer--action {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(48, 209, 88, 0.06));
  border-color: rgba(52, 199, 89, 0.25);
  color: var(--color-success, #34c759);
}

.arch-layer--memory {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 159, 10, 0.06));
  border-color: rgba(255, 149, 0, 0.25);
  color: #ff9500;
}

:root[data-theme="dark"] .arch-layer--perception {
  background: linear-gradient(135deg, rgba(51, 153, 255, 0.15), rgba(0, 102, 204, 0.08));
  color: var(--color-primary-light, #3399ff);
}

:root[data-theme="dark"] .arch-layer--cognition {
  background: linear-gradient(135deg, rgba(160, 80, 240, 0.15), rgba(120, 50, 200, 0.08));
  color: #a050f0;
}

:root[data-theme="dark"] .arch-layer--action {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(52, 199, 89, 0.08));
  color: #30d158;
}

:root[data-theme="dark"] .arch-layer--memory {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.15), rgba(255, 149, 0, 0.08));
  color: #ff9f0a;
}

.arch-layer__sub {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.7;
}

/* Connector lines between layers */
.arch-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--color-border, rgba(0, 0, 0, 0.1)), var(--color-border, rgba(0, 0, 0, 0.06)));
  flex-shrink: 0;
}

:root[data-theme="dark"] .arch-connector {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

/* --------------------------------------------------------------------------
   4. Investment CTA — Partnership / Investment
   -------------------------------------------------------------------------- */

.investment-cta {
  position: relative;
  padding: var(--space-24, 96px) 0;
  background: var(--color-surface, #f5f5f7);
  z-index: 2;
}

:root[data-theme="dark"] .investment-cta {
  background: var(--color-surface, #1c1c1e);
}

.investment-cta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6, 24px);
  margin-top: var(--space-12, 48px);
}

.investment-card {
  position: relative;
  padding: var(--space-10, 40px) var(--space-8, 32px);
  border-radius: var(--radius-2xl, 24px);
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)),
    box-shadow 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
  will-change: transform;

  /* Glass-morphism base */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.investment-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .investment-card {
  background: rgba(30, 30, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .investment-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Card gradient accent line (top) */
.investment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-2xl, 24px) var(--radius-2xl, 24px) 0 0;
}

.investment-card--sponsor::before {
  background: linear-gradient(90deg, #0066cc, #3399ff);
}

.investment-card--invest::before {
  background: linear-gradient(90deg, #7832c8, #a050f0);
}

.investment-card--enterprise::before {
  background: linear-gradient(90deg, #34c759, #30d158);
}

.investment-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl, 16px);
  font-size: 1.75rem;
}

.investment-card--sponsor .investment-card__icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(51, 153, 255, 0.06));
  color: var(--color-primary, #0066cc);
}

.investment-card--invest .investment-card__icon {
  background: linear-gradient(135deg, rgba(120, 50, 200, 0.12), rgba(160, 80, 240, 0.06));
  color: #7832c8;
}

.investment-card--enterprise .investment-card__icon {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.12), rgba(48, 209, 88, 0.06));
  color: var(--color-success, #34c759);
}

.investment-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text, var(--color-dark, #1d1d1f));
  margin-bottom: var(--space-3, 12px);
  letter-spacing: -0.01em;
}

:root[data-theme="dark"] .investment-card__title {
  color: #fff;
}

.investment-card__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-muted, #86868b);
  margin-bottom: var(--space-6, 24px);
}

.investment-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}

.investment-card__cta:hover {
  transform: translateY(-2px);
}

.investment-card--sponsor .investment-card__cta {
  background: linear-gradient(135deg, #0066cc, #3399ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.investment-card--sponsor .investment-card__cta:hover {
  box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4);
}

.investment-card--invest .investment-card__cta {
  background: linear-gradient(135deg, #7832c8, #a050f0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(120, 50, 200, 0.3);
}

.investment-card--invest .investment-card__cta:hover {
  box-shadow: 0 6px 24px rgba(120, 50, 200, 0.4);
}

.investment-card--enterprise .investment-card__cta {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: #fff;
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.investment-card--enterprise .investment-card__cta:hover {
  box-shadow: 0 6px 24px rgba(52, 199, 89, 0.4);
}

/* --------------------------------------------------------------------------
   5. Platform Hero — Extended Styles
   -------------------------------------------------------------------------- */

.platform-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: rgba(26, 26, 26, 0.76);
  max-width: 640px;
  margin: var(--space-2, 8px) auto 0;
  line-height: 1.55;
}

:root[data-theme="dark"] .platform-hero__subtitle {
  color: rgba(255, 255, 255, 0.72);
}

.platform-hero__partner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full, 999px);
  background: var(--color-accent, #ff3b30);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.platform-hero__partner-cta:hover {
  background: #e6352b;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

/* --- Hero Tech Keywords --- */

.hero-tech-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-6, 24px);
}

.hero-tech-keywords__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(26, 26, 26, 0.78);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: var(--radius-full, 999px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  animation: floatKeyword 4s ease-in-out infinite;
  will-change: transform;
}

:root[data-theme="dark"] .hero-tech-keywords__tag {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero-tech-keywords__tag:nth-child(2) { animation-delay: 0.4s; }
.hero-tech-keywords__tag:nth-child(3) { animation-delay: 0.8s; }
.hero-tech-keywords__tag:nth-child(4) { animation-delay: 1.2s; }
.hero-tech-keywords__tag:nth-child(5) { animation-delay: 1.6s; }
.hero-tech-keywords__tag:nth-child(6) { animation-delay: 2.0s; }
.hero-tech-keywords__tag:nth-child(7) { animation-delay: 2.4s; }
.hero-tech-keywords__tag:nth-child(8) { animation-delay: 2.8s; }

/* --------------------------------------------------------------------------
   6. Responsive — Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .screenmemory-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investment-cta__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investment-cta__grid .investment-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }

  .tech-architecture__layout {
    gap: var(--space-8, 32px);
  }

  .skynet-showcase__graph {
    max-width: 560px;
    height: 340px;
  }

  .skynet-node--orchestrator .skynet-node__circle {
    width: 64px;
    height: 64px;
    font-size: 0.55rem;
  }

  .skynet-node__circle {
    width: 40px;
    height: 40px;
    font-size: 0.65rem;
  }

  .skynet-node__role {
    max-width: 10rem;
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   7. Responsive — Mobile (≤ 767px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .skynet-showcase,
  .screenmemory-section,
  .tech-architecture,
  .investment-cta {
    padding: var(--space-16, 64px) 0;
  }

  /* Node graph — stacked mobile layout */
  .skynet-showcase__graph {
    max-width: 100%;
    height: auto;
    min-height: 360px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: var(--space-4, 16px);
    justify-items: center;
    align-items: center;
  }

  .skynet-node {
    position: static;
    transform: none;
  }

  .skynet-node:hover {
    transform: scale(1.06);
  }

  .skynet-node--orchestrator {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .skynet-node--alpha  { grid-column: 1; grid-row: 2; }
  .skynet-node--beta   { grid-column: 2; grid-row: 2; }
  .skynet-node--gamma  { grid-column: 1; grid-row: 3; }
  .skynet-node--delta  { grid-column: 2; grid-row: 3; }
  .skynet-node--codex  { grid-column: 3; grid-row: 2; }
  .skynet-node--gemini { grid-column: 3; grid-row: 3; }

  .skynet-showcase__connections {
    display: none;
  }

  .skynet-showcase__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4, 16px);
  }

  .screenmemory-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4, 16px);
  }

  .tech-architecture__layout {
    grid-template-columns: 1fr;
    gap: var(--space-8, 32px);
  }

  .tech-architecture__diagram {
    order: -1;
  }

  .arch-layer {
    width: 100%;
    max-width: 320px;
  }

  .investment-cta__grid {
    grid-template-columns: 1fr;
  }

  .investment-cta__grid .investment-card:last-child {
    max-width: none;
  }

  .hero-tech-keywords {
    gap: 8px;
  }

  .hero-tech-keywords__tag {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .platform-hero__partner-cta {
    padding: 12px 24px;
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   8. Reduced Motion Accessibility
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .skynet-node__circle,
  .hero-tech-keywords__tag,
  .skynet-stat {
    animation: none;
  }

  .skynet-showcase__connections line {
    animation: none;
  }

  .capability-card,
  .investment-card,
  .investment-card__cta,
  .platform-hero__partner-cta,
  .arch-layer,
  .skynet-node {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   9. Animate-on-Scroll Integration
   -------------------------------------------------------------------------- */

.skynet-showcase .animate-on-scroll,
.screenmemory-section .animate-on-scroll,
.tech-architecture .animate-on-scroll,
.investment-cta .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)),
    transform 0.6s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
}

.skynet-showcase .animate-on-scroll.is-visible,
.screenmemory-section .animate-on-scroll.is-visible,
.tech-architecture .animate-on-scroll.is-visible,
.investment-cta .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.screenmemory-section__grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.screenmemory-section__grid .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.screenmemory-section__grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.screenmemory-section__grid .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }

.investment-cta__grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.investment-cta__grid .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.investment-cta__grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }

/* Fallback: ensure content is visible if JS fails */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
