/* ==========================================================================
   AiHub.sol - Hero Section & AI Ecosystem Interconnected Hub (Option 3)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 75% 40%, rgba(255, 122, 0, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(255, 122, 0, 0.04) 0%, transparent 50%),
              var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 4rem;
}

/* Left Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 122, 0, 0.3);
  width: fit-content;
}

.hero-title {
  font-size: 4.15rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #ffffff;
}

.hero-title .highlight-orange {
  color: var(--accent-orange);
  display: block;
}

.hero-subtitle {
  font-size: 1.175rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Hero Search Bar */
.hero-search-wrapper {
  position: relative;
  margin-top: 0.5rem;
  max-width: 540px;
}

.hero-search-input {
  width: 100%;
  padding: 1.05rem 3.25rem 1.05rem 1.35rem;
  font-size: 1.05rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

.hero-search-icon {
  position: absolute;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-orange);
  pointer-events: none;
  display: flex;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Right Hero: AI Ecosystem Visual (Interactive Cyber Conduit Network)
   -------------------------------------------------------------------------- */

.ecosystem-container {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Connection Lines */
.ecosystem-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conduit-line {
  stroke: rgba(255, 122, 0, 0.25);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  animation: pulseConduit 25s linear infinite;
}

.conduit-glow {
  stroke: var(--accent-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 20 180;
  animation: dataFlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--accent-orange));
}

@keyframes pulseConduit {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 1000; }
}

@keyframes dataFlow {
  0% { stroke-dashoffset: 200; opacity: 0; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Ecosystem Center Hub */
.eco-center-node {
  position: absolute;
  z-index: 3;
  width: 215px;
  height: 115px;
  background: linear-gradient(145deg, #191924 0%, #0d0d12 100%);
  border: 2px solid rgba(255, 122, 0, 0.65);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-shadow: 0 0 40px rgba(255, 122, 0, 0.32), inset 0 0 18px rgba(255, 122, 0, 0.18);
  cursor: default;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.eco-center-node:hover {
  transform: scale(1.04);
  box-shadow: 0 0 50px rgba(255, 122, 0, 0.45);
}

.eco-center-logo-img {
  height: 38px;
  width: auto;
  aspect-ratio: 2172 / 724;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  display: block;
}

.eco-center-sub {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Satellite Ecosystem Cards */
.eco-card {
  position: absolute;
  z-index: 2;
  width: 215px;
  background-color: rgba(18, 18, 25, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.eco-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.22);
  background-color: var(--bg-surface-elevated);
}

.eco-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 122, 0, 0.25);
}

.eco-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.eco-card-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

/* Positioning Satellite Cards */
.eco-tools {
  top: 15px;
  left: 15px;
}

.eco-models {
  top: 15px;
  right: 15px;
}

.eco-agents {
  bottom: 20px;
  left: 15px;
}

.eco-apps {
  bottom: 20px;
  right: 15px;
}

/* --------------------------------------------------------------------------
   Responsive Ecosystem & Hero Layout
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-tag {
    margin: 0 auto;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-search-wrapper {
    margin: 0.5rem auto 0;
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 4rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .ecosystem-container {
    height: 420px;
    max-width: 480px;
    margin: 0 auto;
  }

  .eco-center-node {
    width: 175px;
    height: 95px;
  }

  .eco-center-logo-img {
    height: 32px;
  }

  .eco-card {
    width: 170px;
    padding: 0.75rem 0.9rem;
    gap: 0.65rem;
  }

  .eco-card-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .eco-card-info h4 {
    font-size: 0.875rem;
  }

  .eco-card-info p {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-title {
    font-size: 2.35rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-search-wrapper {
    max-width: 100%;
  }

  .hero-search-input {
    font-size: 0.95rem;
    padding: 0.85rem 2.75rem 0.85rem 1.15rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ecosystem-container {
    height: 340px;
    width: 100%;
    max-width: 100%;
  }

  .eco-center-node {
    width: 130px;
    height: 74px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 24px rgba(255, 122, 0, 0.28);
  }

  .eco-center-logo-img {
    height: 24px;
  }

  .eco-center-sub {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .eco-card {
    width: 128px;
    padding: 0.5rem 0.6rem;
    gap: 0.45rem;
  }

  .eco-card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .eco-card-info h4 {
    font-size: 0.8rem;
    margin-bottom: 0.05rem;
  }

  .eco-card-info p {
    font-size: 0.65rem;
    line-height: 1.15;
  }

  .eco-tools {
    top: 6px;
    left: 2px;
  }

  .eco-models {
    top: 6px;
    right: 2px;
  }

  .eco-agents {
    bottom: 6px;
    left: 2px;
  }

  .eco-apps {
    bottom: 6px;
    right: 2px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .ecosystem-container {
    height: 290px;
  }

  .eco-center-node {
    width: 110px;
    height: 62px;
  }

  .eco-center-logo-img {
    height: 20px;
  }

  .eco-card {
    width: 102px;
    padding: 0.4rem 0.45rem;
    gap: 0.35rem;
  }

  .eco-card-icon {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }

  .eco-card-info h4 {
    font-size: 0.72rem;
  }

  .eco-card-info p {
    display: none;
  }
}
