/* =========================================================
   INSIDE THE SYSTEM - Platform Architecture
   Mobile-first with numbered cards
   ========================================================= */

/* =========================================================
   SECTION BASE
   ========================================================= */

.system-architecture-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #0f1419 100%);
  padding: 80px 20px;
  position: relative;
}

.system-architecture-section .cs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.system-architecture-section .section-label {
  color: #00D4B8;
  text-align: center;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.system-architecture-section .section-heading {
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.system-architecture-section .section-subhead {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 48px;
}


/* =========================================================
   PARTNERS LAYER
   ========================================================= */

.partners-layer {
  margin-bottom: 24px;
}

.partners-layer .layer-label {
  display: none;
}

.partners-layer .layer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.system-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.node-icon {
  width: 168px;
  height: 34px;
  padding: 8px;
  min-width: 48px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.node-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.node-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.node-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0f0f0f;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}


/* =========================================================
   CONNECTOR - Partners to Hub
   ========================================================= */

.connector-to-hub {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.connector-to-hub .connector-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, #00D4B8 0%, rgba(0, 212, 184, 0.3) 100%);
}


/* =========================================================
   CENTRAL HUB
   ========================================================= */

.system-hub {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 
    0 0 0 1px rgba(0, 212, 184, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.hub-logo {
  margin-bottom: 16px;
}

.hub-logo img {
  height: 32px;
  width: auto;
}

.hub-description {
  font-size: 1rem;
  font-weight: 500;
  color: #0f0f0f;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  max-width: 1200px !important;
}


/* =========================================================
   CONNECTOR - Hub to Creative
   ========================================================= */

.connector-to-creative {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
}

.connector-to-creative .connector-line {
  width: 2px;
  height: 24px;
  background: rgba(0, 212, 184, 0.4);
}

.connector-arrows {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 8px;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #00D4B8;
}


/* =========================================================
   CREATIVE LAYER - With Large Numbers
   ========================================================= */

.creative-layer {
  margin-top: 0;
}

.creative-layer .layer-label {
  display: none;
}

.creative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Creative Stack - with number overlay */
.creative-stack {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px 20px;
  padding-left: 70px; /* Space for number on mobile */
  min-height: 120px;
}

/* Large transparent number */
.creative-stack::before {
  content: attr(data-number);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 212, 184, 0.15);
  line-height: 1;
  pointer-events: none;
}

.stack-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stack-primary .node-icon {
  width: 168px;
  height: 34px;
  padding: 8px;
  min-width: 56px;
  margin-bottom: 16px;
  margin-top: 16px;
  background: #ffffff;
  border-radius: 12px;
}

.stack-primary .node-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.stack-primary .node-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Stack connector */
.stack-connector {
  display: flex;
  justify-content: flex-start;
  padding: 16px 0;
  padding-left: 16px;
}

.stack-connector .arrow-down {
  border-left-width: 5px;
  border-right-width: 5px;
  border-top-width: 6px;
  opacity: 0.6;
}

/* Secondary tools row */
.stack-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 212, 184, 0.05);
  border: 1px dashed rgba(0, 212, 184, 0.2);
  border-radius: 12px;
}

.secondary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-item .node-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 6px;
  border-radius: 8px;
}

.secondary-item .node-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   TABLET (640px+)
   ========================================================= */

@media (min-width: 640px) {
  .system-architecture-section {
    padding: 100px 24px;
  }
  
  .partners-layer .layer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .system-node {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .node-info {
    align-items: center;
  }
  
  .connector-arrows {
    gap: 80px;
  }
  
  .creative-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Adjust number position for 2-col grid */
  .creative-stack {
    padding-left: 20px;
    padding-top: 60px;
  }
  
  .creative-stack::before {
    left: 16px;
    top: 16px;
    transform: none;
    font-size: 3.5rem;
  }
  
  .stack-primary {
    align-items: center;
    text-align: center;
  }
  
  .stack-connector {
    justify-content: center;
    padding-left: 0;
  }
  
  .stack-secondary {
    justify-content: center;
  }
  
  .secondary-item {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* =========================================================
   DESKTOP (1024px+)
   ========================================================= */

@media (min-width: 1024px) {
  .system-architecture-section {
    padding: 120px 40px;
  }
  
  /* Partners layer with vertical label */
  .partners-layer {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: stretch;
  }
  
  .partners-layer .layer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 184, 0.08);
    border: 1px solid rgba(0, 212, 184, 0.15);
    border-radius: 8px;
  }
  
  .partners-layer .layer-label span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00D4B8;
  }
  
  .partners-layer .layer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .connector-arrows {
    gap: 140px;
  }
  
  /* Creative layer with vertical label */
  .creative-layer {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: start;
  }
  
  .creative-layer .layer-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 212, 184, 0.08);
    border: 1px solid rgba(0, 212, 184, 0.15);
    border-radius: 8px;
    padding: 20px 0;
    height: fit-content;
  }
  
  .creative-layer .layer-label span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00D4B8;
  }
  
  .creative-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Numbers smaller on desktop - less prominent */
  .creative-stack {
    padding: 24px;
    padding-top: 48px;
    min-height: 260px;
  }
  
  .creative-stack::before {
    font-size: 2.5rem;
    left: 16px;
    top: 12px;
    color: rgba(0, 212, 184, 0.12);
  }
  
  .stack-primary .node-icon {
    width: 168px;
    height: 34px;
    padding: 8px;
  }
  
  .stack-primary .node-title {
    font-size: 1rem;
  }
}


/* =========================================================
   LARGE DESKTOP (1280px+)
   ========================================================= */

@media (min-width: 1280px) {
  .partners-layer {
    grid-template-columns: 56px 1fr;
  }
  
  .creative-layer {
    grid-template-columns: 56px 1fr;
  }
  
  .system-node {
    padding: 24px;
  }
  
  .system-hub {
    padding: 36px 48px;
  }
  
  .hub-logo img {
    height: 36px;
  }
  
  .hub-description {
    font-size: 1.1rem;
  }
  
  .connector-arrows {
    gap: 180px;
  }
}

/* =========================================================
   TRANSITION BAND: Visual Zoom In
   Add this to your existing CSS
   ========================================================= */

.architecture-transition {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Increasing grid intensity */
.architecture-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 184, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
  pointer-events: none;
}

.transition-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 184, 0.5) 50%, transparent 100%);
  max-width: 200px;
}

.transition-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0, 212, 184, 0.1);
  border: 1px solid rgba(0, 212, 184, 0.3);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.transition-indicator svg {
  color: #00D4B8;
  animation: pulseDown 2s ease-in-out infinite;
}

@keyframes pulseDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.6; }
}

.transition-indicator span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00D4B8;
  white-space: nowrap;
}

/* Subtle grid mesh background effect for dark sections */

/* Apply to sections that need the grid */
.system-section.pow-section,
.architecture-transition,
.system-architecture-section {
  background: #0a0a0a;
  position: relative;
}

/* Grid pattern overlay - very subtle */
.system-section.pow-section::before,
.architecture-transition::after,
.system-architecture-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Make sure content sits above the grid */
.system-section .cs-container,
.system-architecture-section .cs-container {
  position: relative;
  z-index: 1;
}

/* Transition band uses both patterns */
.architecture-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 184, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.architecture-transition::after {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.transition-indicator {
  position: relative;
  z-index: 2;
}

/* Simple 3-layer architecture visual with SVG icons */

.system-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 40px 20px;
}

.arch-layer {
  width: 100%;
  max-width: 400px;
}

.arch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: rgba(0, 212, 184, 0.08);
  border: 2px solid rgba(0, 212, 184, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.arch-box.hub {
  background: rgba(0, 212, 184, 0.15);
  border-color: rgba(0, 212, 184, 0.5);
  box-shadow: 0 0 30px rgba(0, 212, 184, 0.2);
}

.arch-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 184, 0.6);
}

.arch-icon {
  color: #00D4B8;
  width: 32px;
  height: 32px;
}

.arch-label {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.arch-arrow-svg {
  color: #00D4B8;
  opacity: 0.7;
}

.arch-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 212, 184, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.arch-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00D4B8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Desktop: make it more compact and elegant */
@media (min-width: 768px) {
  .system-visual {
    padding: 60px 40px;
  }
  
  .arch-layer {
    max-width: 450px;
  }
  
  .arch-box {
    padding: 32px 48px;
  }
  
  .arch-icon {
    width: 36px;
    height: 36px;
  }
  
  .arch-label {
    font-size: 1.05rem;
  }
}

/* Ultra compact visual - fits everything in container */

.system-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px;
  height: 100%;
}

.arch-layer {
  width: 100%;
  max-width: 260px;
}

.arch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(0, 212, 184, 0.08);
  border: 2px solid rgba(0, 212, 184, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.arch-box.hub {
  background: rgba(0, 212, 184, 0.15);
  border-color: rgba(0, 212, 184, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 184, 0.15);
}

.arch-icon {
  color: #00D4B8;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.arch-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  gap: 2px;
  flex-shrink: 0;
}

.arch-connector svg:first-child {
  height: 20px;
}

.arch-arrow-svg {
  color: #00D4B8;
  opacity: 0.7;
  width: 14px;
  height: 14px;
}

.arch-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 212, 184, 0.2);
  width: 100%;
  max-width: 260px;
  text-align: center;
}

.arch-note {
  font-size: 0.7rem;
  font-weight: 600;
  color: #00D4B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop */
@media (min-width: 768px) {
  .system-visual {
    padding: 30px;
  }
  
  .arch-layer {
    max-width: 280px;
  }
  
  .arch-box {
    padding: 14px 24px;
    gap: 8px;
  }
  
  .arch-icon {
    width: 22px;
    height: 22px;
  }
  
  .arch-label {
    font-size: 0.85rem;
  }
  
  .arch-footer {
    margin-top: 14px;
  }
  
  .arch-note {
    font-size: 0.75rem;
  }
}