/* =============================
   platform.html - Specific Styles
============================== */

/* ---------------------------
   Page Hero
---------------------------- */
.page-hero {
  padding: 56px 0 22px;
}

.hero-box {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(34,211,238,0.22), transparent 55%),
    radial-gradient(900px 360px at 90% 20%, rgba(96,165,250,0.28), transparent 58%),
    linear-gradient(135deg, rgba(59,130,246,0.22), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
  position: relative;
}

.hero-box::before {
  content: "";
  position: absolute;
  inset: -140px -120px auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.16), transparent 66%);
  transform: translate(40px, -30px);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  width: fit-content;
  margin-bottom: 12px;
}

.k-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(52,211,153,0.12);
}

.hero-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-title .grad {
  background: linear-gradient(90deg, rgba(96,165,250,1), rgba(34,211,238,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 15px;
  max-width: 90ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------------------------
   Layout
---------------------------- */
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  padding: 26px 0 64px;
  align-items: start;
}

/* ---------------------------
   TOC
---------------------------- */
.toc {
  position: sticky;
  top: 88px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.toc-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}

.toc-title {
  font-weight: 850;
  letter-spacing: -0.01em;
  font-size: 14px;
  margin-bottom: 4px;
}

.toc-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.toc-links {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.toc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-weight: 650;
  font-size: 13px;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.toc-links a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}

.toc-links a small {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.toc-links a.active {
  border-color: rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.10);
}

/* ---------------------------
   Content
---------------------------- */
.content {
  display: grid;
  gap: 16px;
}

.section {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.section-head {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.10);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 900;
  margin-bottom: 4px;
}

.section-head p {
  color: var(--muted);
  font-size: 13px;
  max-width: 95ch;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 750;
}

.chip b {
  color: var(--accent);
}

.section-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

/* ---------------------------
   Cards
---------------------------- */
.card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.065);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.14), transparent 62%);
  pointer-events: none;
}

.card h3 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------------------------
   Callouts
---------------------------- */
.callout {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  font-weight: 650;
}

.callout strong {
  font-weight: 900;
}

.callout.warn {
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.10);
}

.callout.success {
  border-color: rgba(52,211,153,0.30);
  background: rgba(52,211,153,0.10);
}

/* ---------------------------
   Code Blocks
---------------------------- */
.code {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
}

/* ---------------------------
   Lists
---------------------------- */
.list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
}

.list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
  margin-top: 1px;
}

/* ---------------------------
   Comparison Table
---------------------------- */
.table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 14px 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  vertical-align: top;
}

tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------------------------
   Pills/Badges
---------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}

.pill.red {
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.10);
}

.pill.green {
  border-color: rgba(52,211,153,0.30);
  background: rgba(52,211,153,0.10);
}

.pill.blue {
  border-color: rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.10);
}

.mini-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------------------------
   Responsive
---------------------------- */
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 1fr;
  }
  
  .toc {
    position: relative;
    top: 0;
  }
}

@media (max-width: 720px) {
  .table-wrap {
    overflow-x: auto;
  }
  
  table {
    min-width: 860px;
  }
}
