@import url('style.css');

/* ── SBL Hero ──────────────────────────────────────────────────────────── */
.sbl-hero {
  position: relative; min-height: 96vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #0a0a0a;
}
.sbl-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.sbl-hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 120px 72px 80px; max-width: 900px; margin: 0 auto;
}
.sbl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 28px;
  padding: 6px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 100px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

.sbl-title {
  font-size: clamp(64px, 12vw, 180px); font-weight: 900; letter-spacing: -6px; line-height: 1;
  margin-bottom: 24px;
}
.sbl-title em { font-style: italic; font-weight: 200; }

.sbl-sub {
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,.5); margin-bottom: 36px; max-width: 640px; margin-inline: auto;
}
.sbl-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.sbl-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden;
}
.sbl-stat { padding: 20px 32px; text-align: center; }
.sbl-stat-div { width: 1px; background: rgba(255,255,255,.08); align-self: stretch; }
.stat-n { display: block; font-size: 22px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.stat-l { display: block; font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: .03em; }

/* ── Why section ───────────────────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.why-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 28px; transition: border-color .2s;
}
.why-card:hover { border-color: rgba(255,255,255,.14); }
.why-icon { font-size: 28px; margin-bottom: 16px; }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.why-card p  { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.5); }

/* ── Stack visual ──────────────────────────────────────────────────────── */
.stack-visual {
  max-width: 640px; margin: 0 auto 60px; display: flex; flex-direction: column; gap: 4px;
}
.stack-layer {
  border-radius: 8px; padding: 14px 20px; text-align: center;
  display: flex; justify-content: space-between; align-items: center;
}
.stack-row { display: flex; gap: 4px; }
.stack-row .stack-layer { flex: 1; justify-content: center; flex-direction: column; gap: 4px; }
.sl-label { font-size: 13px; font-weight: 700; }
.sl-desc  { font-size: 12px; color: rgba(255,255,255,.45); }
.stack-layer.app     { background: rgba(255,255,255,.06); }
.stack-layer.media   { background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.2); }
.stack-layer.control { background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.2); }
.stack-layer.dtls    { background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.15); }
.stack-layer.ice     { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.15); }
.stack-layer.udp     { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }

/* ── Flow diagram ──────────────────────────────────────────────────────── */
.flow-section { margin-bottom: 56px; }
.flow-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 28px; }
.flow-diagram {
  display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0;
  max-width: 700px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden;
}
.flow-side { padding: 20px; }
.flow-side.right { text-align: right; }
.flow-header {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 20px;
}
.flow-msg {
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 5px;
  margin-bottom: 8px; display: inline-block;
}
.flow-msg.out { background: rgba(96,165,250,.12); color: #93c5fd; }
.flow-msg.in  { background: rgba(52,211,153,.1);  color: #6ee7b7; float: right; }
.flow-msg.bi  { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
.flow-space   { height: 14px; }
.flow-arrows  {
  display: flex; flex-direction: column; align-items: center; justify-content: space-around;
  padding: 20px 0; border-left: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.fa { font-size: 16px; color: rgba(255,255,255,.3); }
.fa-sp { height: 28px; }

/* ── Messages grid ─────────────────────────────────────────────────────── */
.msg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.msg-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 20px;
}
.msg-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; margin-bottom: 10px; display: inline-block;
}
.msg-tag.setup   { background: rgba(96,165,250,.12);  color: #93c5fd; }
.msg-tag.control { background: rgba(167,139,250,.12); color: #c4b5fd; }
.msg-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.msg-card p  { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); }
.msg-card code { font-family: monospace; font-size: 12px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 3px; }

/* ── Comparison table ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.comp-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.comp-table th, .comp-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06);
}
.comp-table th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.comp-table .th-sbl { color: #fff; }
.comp-table .td-label { color: rgba(255,255,255,.5); font-size: 13px; }
.comp-table .td-sbl { color: #fff; background: rgba(255,255,255,.03); }
.yes  { color: #4ade80; }
.no   { color: rgba(255,255,255,.25); }
.warn { color: #fbbf24; }
.table-note { font-size: 13px; color: rgba(255,255,255,.4); font-style: italic; margin-top: 12px; }

/* ── Implementation ────────────────────────────────────────────────────── */
.impl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.impl-steps { display: flex; flex-direction: column; gap: 24px; }
.impl-step { display: flex; gap: 20px; }
.is-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5);
}
.is-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.is-body p  { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); }
.is-body code { font-family: monospace; font-size: 12px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 3px; }
.impl-code { background: #111; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.code-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-lang { font-size: 12px; color: rgba(255,255,255,.3); margin-left: auto; letter-spacing: .04em; }
.code-block { padding: 20px; font-family: monospace; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.75); margin: 0; overflow-x: auto; }
.impl-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Ecosystem ─────────────────────────────────────────────────────────── */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 28px;
  position: relative; transition: border-color .2s;
}
.eco-card:hover { border-color: rgba(255,255,255,.18); }
.eco-official { border-color: rgba(255,255,255,.12); }
.eco-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; margin-bottom: 14px; display: inline-block;
  background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.2);
}
.eco-badge.community { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.1); }
.eco-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.eco-card p  { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); margin-bottom: 20px; }

/* ── Nav back ──────────────────────────────────────────────────────────── */
.nav-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.nav-back:hover { color: #fff; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .msg-grid { grid-template-columns: repeat(2, 1fr); }
  .impl-grid { grid-template-columns: 1fr; }
  .eco-grid  { grid-template-columns: 1fr; }
  .sbl-stats { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .why-grid  { grid-template-columns: 1fr; }
  .msg-grid  { grid-template-columns: 1fr; }
  .sbl-hero-inner { padding: 100px 24px 60px; }
  .sbl-title { letter-spacing: -4px; }
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-arrows { display: none; }
}
