.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(147, 197, 253, 0.36), transparent 21%),
    radial-gradient(circle at 84% 14%, rgba(186, 230, 253, 0.38), transparent 21%),
    radial-gradient(circle at 72% 70%, rgba(167, 243, 208, 0.22), transparent 22%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin-top: 0.6rem;
  white-space: pre-line;
}

.hero-claim {
  font-size: clamp(1.12rem, 2.4vw, 1.5rem);
  color: var(--text);
  max-width: 54ch;
  margin: 1.2rem 0 1rem;
}

.hero-subtitle {
  max-width: 64ch;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tag {
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(31, 79, 209, 0.1);
  color: var(--text-soft);
  box-shadow: 0 10px 20px rgba(19, 40, 72, 0.04);
  font-size: 0.9rem;
}

.hero-editorial-card {
  position: relative;
  min-height: 720px;
  border-radius: 32px;
  border: 1px solid rgba(28, 55, 94, 0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,246,255,0.94));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-editorial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(219, 234, 254, 0.9), transparent 26%);
  pointer-events: none;
}

.hero-image-stack {
  position: absolute;
  inset: 0;
}

.hero-image {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(28, 55, 94, 0.1);
  box-shadow: 0 20px 50px rgba(19, 40, 72, 0.12);
  background: rgba(255,255,255,0.8);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-main {
  top: 5.2%;
  right: 5.5%;
  width: 74%;
  height: 58%;
}

.hero-image-side {
  bottom: 7%;
  left: 7%;
  width: 42%;
  height: 28%;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(16,34,59,0.12));
}

.signal-card {
  position: absolute;
  display: grid;
  gap: 0.4rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(28, 55, 94, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(19, 40, 72, 0.1);
}

.signal-card-primary {
  top: 49%;
  left: 4.5%;
  width: 46%;
  padding: 1.2rem;
}

.signal-card-secondary {
  right: 5.2%;
  bottom: 6%;
  width: 45%;
  padding: 1.1rem;
}

.signal-card-label,
.metric-card span,
.stack-card span,
.aside-label {
  color: var(--primary-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card strong {
  font-size: 1.02rem;
  color: var(--text);
}

.live-diagram {
  position: absolute;
  right: 5.5%;
  top: 6%;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.96), rgba(232, 242, 255, 0.8));
  border: 1px solid rgba(28, 55, 94, 0.08);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(19, 40, 72, 0.08);
}

.live-diagram::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(31, 79, 209, 0.18);
}

.diagram-node {
  position: absolute;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(31, 79, 209, 0.1);
  box-shadow: 0 8px 18px rgba(19, 40, 72, 0.05);
}

.diagram-node:nth-child(1) { top: 14px; left: 50%; transform: translateX(-50%); }
.diagram-node:nth-child(2) { top: 34%; right: 8px; }
.diagram-node:nth-child(3) { bottom: 36%; right: 12px; }
.diagram-node:nth-child(4) { bottom: 14px; left: 50%; transform: translateX(-50%); }
.diagram-node:nth-child(5) { bottom: 36%; left: 10px; }
.diagram-node:nth-child(6) { top: 34%; left: 8px; }

.metric-card strong {
  display: block;
  font-size: 1.08rem;
  margin-top: 0.45rem;
  color: var(--text);
}

.architecture-flow {
  display: grid;
  gap: 1rem;
}

.architecture-layer {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.98));
  box-shadow: var(--shadow-soft);
}

.architecture-layer-name {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(240, 249, 255, 0.96));
  border: 1px solid rgba(31, 79, 209, 0.1);
  color: var(--primary-strong);
  font-weight: 700;
}

.architecture-layer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.architecture-layer-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(28, 55, 94, 0.08);
  color: var(--text-soft);
}

.work-list {
  display: grid;
  gap: 1rem;
}

.work-item {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.work-item-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(204, 251, 241, 0.95));
  border: 1px solid rgba(31, 79, 209, 0.12);
  color: var(--primary-strong);
  font-weight: 700;
}

.stack-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.stack-card li {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 79, 209, 0.08);
  background: rgba(255,255,255,0.94);
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-editorial-card {
    min-height: 660px;
  }
}

@media (max-width: 760px) {
  .hero-section {
    padding-top: 2.2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 10vw, 3.6rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-editorial-card {
    min-height: 600px;
  }

  .hero-image-main {
    top: 4.5%;
    left: 5%;
    right: auto;
    width: 90%;
    height: 43%;
  }

  .hero-image-side {
    bottom: 23%;
    left: 6%;
    width: 52%;
    height: 18%;
  }

  .signal-card-primary {
    left: 6%;
    top: 49%;
    width: 88%;
  }

  .signal-card-secondary {
    left: 6%;
    right: auto;
    bottom: 6%;
    width: 88%;
  }

  .live-diagram {
    width: 140px;
    top: 7%;
    right: 7%;
  }

  .architecture-layer {
    grid-template-columns: 1fr;
  }
}
