/* ============================================================
   comcomAI · 云管端平台 — sections
   ============================================================ */

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 108px;
  background: var(--green-900);
  color: var(--green-50);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(116deg, rgba(236, 246, 241, 0.045) 0 1px, transparent 1px 74px),
    radial-gradient(900px 620px at 78% 22%, rgba(28, 129, 88, 0.34), transparent 68%),
    radial-gradient(700px 500px at 4% 96%, rgba(28, 129, 88, 0.16), transparent 70%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(236, 246, 241, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, transparent 92%);
  opacity: 0.55;
}

.hero__grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  padding-bottom: 46px;
}

.hero__title {
  font-size: clamp(34px, 5.6vw, 78px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__title-em {
  color: var(--green-100);
}

.hero__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: -6px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(236, 246, 241, 0.12);
  max-width: 420px;
}

.hero__product-en {
  font-family: var(--f-disp);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--green-50);
}

.hero__product-cn {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--green-300);
  padding-left: 12px;
  border-left: 1px solid rgba(166, 213, 192, 0.35);
  line-height: 1.2;
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 34px;
  }
}

.hero__lead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.7;
  font-weight: 500;
  color: var(--green-50);
  padding-left: 18px;
  border-left: 2px solid var(--orange);
  margin-bottom: 18px;
}

.hero__body {
  max-width: 47ch;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(236, 246, 241, 0.6);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 34px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(236, 246, 241, 0.46);
}

.hero__tags span {
  display: inline-flex;
  align-items: center;
}

.hero__tags span + span {
  padding-left: 22px;
  border-left: 1px solid rgba(236, 246, 241, 0.16);
}

/* hero chain */

.herochain {
  width: 100%;
  max-width: 408px;
  justify-self: end;
}

.hnode {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  grid-template-areas:
    "top art"
    "title art"
    "meta art";
  align-items: center;
  column-gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(236, 246, 241, 0.16);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(236, 246, 241, 0.055), rgba(236, 246, 241, 0.018));
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.hnode:hover {
  border-color: rgba(166, 213, 192, 0.4);
  background: rgba(236, 246, 241, 0.06);
}

.hnode__top {
  grid-area: top;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--green-300);
  margin-bottom: 5px;
}

.hnode__idx {
  color: rgba(236, 246, 241, 0.32);
}

.hnode__title {
  grid-area: title;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--green-50);
}

.hnode__meta {
  grid-area: meta;
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(236, 246, 241, 0.45);
}

.hnode__art {
  grid-area: art;
  width: 100%;
  height: auto;
  color: rgba(166, 213, 192, 0.6);
}

.hnode--cloud .hnode__art {
  color: rgba(166, 213, 192, 0.75);
}

.hnode--device .hnode__art {
  color: rgba(166, 213, 192, 0.5);
}

/* connector */

.hlink {
  position: relative;
  height: 56px;
}

.hlink svg {
  width: 100%;
  height: 100%;
}

.hlink__data,
.hlink__cmd {
  fill: none;
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  animation: dashflow 1.8s linear infinite;
}

.hlink__data {
  stroke: var(--green-400);
}

.hlink__cmd {
  stroke: var(--orange);
  animation-direction: reverse;
  opacity: 0.85;
}

.hlink__head {
  fill: none;
  stroke-width: 1.2;
}

.hlink__head--up {
  stroke: var(--green-400);
}

.hlink__head--down {
  stroke: var(--orange);
}

.hlink__label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hlink__label--data {
  left: 2px;
  color: var(--green-300);
}

.hlink__label--cmd {
  right: 2px;
  color: rgba(240, 130, 0, 0.9);
}

@keyframes dashflow {
  to { stroke-dashoffset: -16; }
}

.telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 246, 241, 0.1);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(236, 246, 241, 0.48);
}

.telemetry__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.telemetry__item i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 0 rgba(113, 187, 157, 0.5);
  animation: livepulse 2.8s ease-out infinite;
}

.telemetry__item:nth-child(2) i { animation-delay: 0.6s; }
.telemetry__item:nth-child(3) i { animation-delay: 1.2s; }

.telemetry__time {
  margin-left: auto;
  color: rgba(236, 246, 241, 0.3);
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(113, 187, 157, 0.45); }
  70% { box-shadow: 0 0 0 5px rgba(113, 187, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(113, 187, 157, 0); }
}

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px 24px;
  border-top: 1px solid rgba(236, 246, 241, 0.1);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(236, 246, 241, 0.36);
}

.hero__foot-line {
  flex: 1;
  height: 1px;
  background: rgba(236, 246, 241, 0.12);
}

/* ============ ARCHITECTURE ============ */

.legend {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--n8);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend__item i {
  width: 20px;
  height: 1px;
  background: var(--green-600);
}

.legend__item--cmd i {
  background: var(--orange);
}

.tiers {
  position: relative;
  border-top: 1px solid var(--light-line);
}

.tiers::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--green-300), rgba(166, 213, 192, 0.2));
}

.tier {
  position: relative;
  display: grid;
  grid-template-columns: 64px 216px minmax(0, 1fr) 330px;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding-block: 38px;
  border-bottom: 1px solid var(--light-line);
  transition: background 0.35s var(--ease);
}

.tier:hover {
  background: rgba(236, 246, 241, 0.5);
}

.tier__spine {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
}

.tier__idx {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 24px;
  background: var(--n1);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green-600);
}

.tier__en {
  font-family: var(--f-disp);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--n6);
  line-height: 1;
}

.tier__name h3 {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--n11);
  line-height: 1.2;
}

.tier__role {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--n8);
}

.tier__graphic {
  color: var(--green-600);
  opacity: 0.9;
}

.tier__graphic svg {
  width: 100%;
  height: auto;
}

.tier__copy {
  font-size: 14px;
  line-height: 1.92;
  color: var(--n8);
  max-width: 46ch;
}

.arch__foot {
  margin-top: 24px;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--n8);
}

.arch__foot::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  background: var(--orange);
  transform: translateY(-1px);
}
