/* 
  Architecture Manifesto Page - Specific Styles 
  IA Pro Solutions
*/

/* Hero Adjustments */
.hero-arch {
  position: relative;
  max-width: 1000px;
}

.arch-glow-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Benefit Cards */
.benefit-card-arch {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2.5rem;
  position: relative;
  transition: all 0.4s var(--ease-fluid);
}

.benefit-card-arch:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--brand-primary);
  transform: translateY(-5px);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: rgba(229, 188, 51, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--brand-primary);
}

.benefit-card-arch h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.benefit-card-arch p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.benefit-card-arch p strong {
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

/* Highlight Box */
.highlight-box-arch {
  border-left: 2px solid var(--brand-primary);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.highlight-box-arch i {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.highlight-box-arch p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Orchestrator Section */
.orquestrador-visual {
  position: relative;
  background: #000;
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 2rem;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  box-shadow: 0 0 15px var(--brand-primary);
  animation: scan 4s linear infinite;
  z-index: 2;
  opacity: 0.3;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

.tech-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 3;
}

.orchestrator-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.spec-arch-item {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #eeeed2;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

/* Operational Flow - Framework Style */
.flow-steps-arch {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 6rem;
  position: relative;
}

/* Connecting Progression Line (Desktop) */
.flow-steps-arch::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    rgba(229, 188, 51, 0.1) 100%
  );
  z-index: 1;
}

.flow-step {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 1.5rem 2rem;
  text-align: left;
  transition: all 0.4s var(--ease-fluid);
}

.flow-step:hover {
  background: rgba(229, 188, 51, 0.03);
  border-color: rgba(229, 188, 51, 0.2);
  transform: translateY(-5px);
}

.step-num {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--brand-primary);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Keeping it sharp/geometric */
  box-shadow: 0 0 20px rgba(229, 188, 51, 0.3);
}

.flow-step h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.flow-arrow {
  display: none; /* Removed in favor of the track line */
}

@media (max-width: 1024px) {
  .flow-steps-arch {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-left: 2rem;
  }

  .flow-steps-arch::before {
    top: 0;
    bottom: 0;
    left: 45px;
    width: 2px;
    height: 100%;
    background: linear-gradient(
      180deg,
      var(--brand-primary) 0%,
      rgba(229, 188, 51, 0.1) 100%
    );
  }

  .flow-step {
    padding: 2rem;
  }

  .step-num {
    left: -25px;
    top: 20px;
  }
}

/* Agent Explorer - Premium List + Detail Layout */
.agent-explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4rem;
  min-height: 500px;
}

.agent-list {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.agent-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agent-list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.agent-list-item:hover .agent-list-name {
  color: #fff;
}

.agent-list-item.active {
  background: rgba(229, 188, 51, 0.04);
}

.agent-list-item.active::before {
  opacity: 1;
}

.agent-list-item.active .agent-list-name {
  color: var(--brand-primary);
}

.agent-list-num {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  min-width: 24px;
}

.agent-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.agent-list-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.agent-list-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.agent-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.agent-list-value {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: rgba(229, 188, 51, 0.5);
  padding-left: 1rem;
  transition: color 0.3s ease;
}

.agent-list-item.active .agent-list-value {
  color: rgba(229, 188, 51, 0.8);
}

.agent-list-tag {
  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  color: var(--brand-primary);
  border: 1px solid rgba(229, 188, 51, 0.2);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  align-self: flex-start;
}

/* Detail Panel */
.agent-detail-panel {
  position: relative;
  background: rgba(10, 10, 10, 0.5);
  overflow: hidden;
}

.agent-detail {
  position: absolute;
  inset: 0;
  padding: 3.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.agent-detail.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.agent-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-detail-icon {
  width: 72px;
  height: 72px;
  background: rgba(229, 188, 51, 0.05);
  border: 1px solid rgba(229, 188, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(229, 188, 51, 0.1);
}

.agent-detail-tag {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--brand-primary);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.5rem;
}

.agent-detail-name {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: #fff;
  line-height: 1;
  margin: 0 0 0.5rem;
}

.agent-detail-role {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Terminal Prompt */
.agent-terminal-prompt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--brand-primary);
}

.terminal-cursor {
  color: var(--brand-primary);
  font-size: 0.8rem;
  animation: blink 1.2s step-end infinite;
}

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

.terminal-cmd {
  flex: 1;
  color: rgba(255, 255, 255, 0.45);
}

.terminal-cmd strong {
  color: var(--brand-primary);
}

.terminal-status {
  color: #22c55e;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

/* Impact Headline */
.agent-impact-headline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Detail desc */
.agent-detail-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* 3-Block spec layout */
.agent-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.agent-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agent-block-label {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
}

.agent-block-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agent-block-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 0.8rem;
  position: relative;
}

.agent-block-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  opacity: 0.4;
}

.agent-block-value {
  background: rgba(229, 188, 51, 0.03);
  border: 1px solid rgba(229, 188, 51, 0.1);
  padding: 1rem;
  margin: 0;
}

.agent-block-highlight {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--brand-primary);
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .agent-blocks {
    grid-template-columns: 1fr;
  }
}

.agent-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agent-spec-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-label {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.spec-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .agent-explorer.is-accordion {
    display: flex;
    flex-direction: column;
    border: none;
    min-height: auto;
  }
  
  .agent-explorer.is-accordion .agent-list {
    display: flex;
    flex-direction: column;
    border: none;
  }
  
  .agent-explorer.is-accordion .agent-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: none;
    padding: 1.5rem;
    width: 100%;
  }

  /* Keep the left border accent for the accordion header active state */
  .agent-list-item::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    height: 100%;
  }

  .agent-explorer.is-accordion .agent-detail-panel {
    display: none; /* Hide the empty right-side container */
  }

  .agent-explorer.is-accordion .agent-detail {
    position: static;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    max-height: 0;
    padding: 0 1.5rem; /* Only horizontal padding when closed */
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease;
    background: rgba(0, 0, 0, 0.3); /* Distinguish inner content */
    border-bottom: 1px solid transparent;
  }

  .agent-explorer.is-accordion .agent-detail.active {
    max-height: 3000px; /* Large enough to hold the content */
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: max-height 1s ease-in-out, padding 0.5s ease;
  }

  .agent-detail-name {
    font-size: 2.2rem;
  }
}

@media (max-width: 560px) {
  .agent-list-item {
    min-width: 180px; /* Slightly smaller cards on very small phones */
  }
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--brand-primary);
  box-shadow: 0 0 10px var(--brand-primary);
  transform: scale(1.5);
}

/* Demand Bullets */
.demand-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reveal Transitions (if not in style.css or extended) */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-fluid);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s var(--ease-fluid);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s var(--ease-fluid);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0);
}
