/* ── Platform Hero ── */
.phero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 0;
  min-height: 280px;
}

.phero__heading {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #111;
  margin: 20px 0 18px;
}

.phero__sub {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
}

.phero__img {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 620px;
  max-width: 50%;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, #000 50%, transparent 82%);
  mask-image: radial-gradient(ellipse 75% 75% at center, #000 50%, transparent 82%);
}

/* ── Section ── */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 48px 0;
}

/* ── Feature Cards ── */
.pfeatures-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.pfeature {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 13px;
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pfeature:hover {
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.pfeature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.picon--blue { background: #eef2ff; }
.picon--green { background: #ecfdf3; }
.picon--amber { background: #fffbeb; }
.picon--purple { background: #f5f0ff; }

.pfeature h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pfeature p {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 12px;
}

.pfeature__link {
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
}
.link--blue { color: #3b6cf6; }
.link--green { color: #16a34a; }
.link--amber { color: #d97706; }
.link--purple { color: #7c3aed; }

/* ── Mid Grid ── */
.pmid-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 26px;
}

.panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* Architecture flow */
.arch-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px 14px;
  min-width: 90px;
}

.arch-node__icon { font-size: 1.1rem; }
.arch-node__label { font-size: 0.72rem; font-weight: 500; color: #333; text-align: center; }
.arch-node__sub { font-size: 0.62rem; color: #999; }
.arch-node__logo { width: 26px; height: auto; }

.arch-arrow { color: #bbb; font-size: 1rem; }

.arch-core {
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px;
}

.arch-core__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-bottom: 10px;
}

.arch-core__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.arch-chip {
  font-size: 0.66rem;
  color: #555;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 7px;
  padding: 7px 8px;
  white-space: nowrap;
}

.arch-footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(0,0,0,0.1);
  font-size: 0.74rem;
  color: #777;
  flex-wrap: wrap;
}

/* For Developers */
.dev-intro {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.dev-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 18px 0 22px;
}

.dev-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #333;
}

.dev-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code block */
.code-block {
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-method { font-size: 0.72rem; color: #9ca3af; }
.code-sdk { font-size: 0.68rem; color: #6b7280; }

.code-block__body {
  padding: 14px 16px;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #d4d4d4;
  overflow-x: auto;
}

.code-block__body code { font-family: inherit; }

.ln {
  display: inline-block;
  width: 22px;
  color: #4b5563;
  user-select: none;
}

.c-cmd { color: #c084fc; }
.c-str { color: #86efac; }
.c-key { color: #93c5fd; }
.c-bool { color: #fca5a5; }

/* ── Bottom Features ── */
.pbottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 28px;
  margin-top: 40px;
  margin-bottom: 64px;
  max-width: calc(1440px - 96px);
}

.pbf {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.pbf:not(:last-child) {
  border-right: 1px solid rgba(0,0,0,0.06);
  padding-right: 20px;
}

.pbf__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f3f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pbf strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.pbf p {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .pfeatures-grid { grid-template-columns: repeat(3, 1fr); }
  .pmid-grid { grid-template-columns: 1fr; }
  .pbottom { grid-template-columns: repeat(2, 1fr); }
  .pbf:nth-child(2) { border-right: none; }
  .phero__img { width: 480px; opacity: 0.85; }
}

@media (max-width: 640px) {
  .phero, .section { padding-left: 20px; padding-right: 20px; }
  .phero__img { position: static; width: 100%; max-width: 100%; margin: 20px 0; }
  .pfeatures-grid { grid-template-columns: 1fr 1fr; }
  .pbottom { grid-template-columns: 1fr; padding: 22px; }
  .pbf { border-right: none !important; padding-right: 0 !important; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
}
