.segmented,
.tab-list{
  display:flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  background:var(--panel-muted);
}
.segmented a,
.tab-button{
  display:inline-flex;
  min-width:24px;
  min-height:34px;
  align-items:center;
  justify-content:center;
  padding:7px 16px;
  border:1px solid transparent;
  border-radius:var(--radius-pill);
  background:transparent;
  color:var(--text-muted);
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}
.segmented .is-active,
.segmented [aria-current="true"],
.tab-button.is-active,
.tab-button[aria-selected="true"]{
  background:var(--panel);
  box-shadow:0 1px 2px rgba(35,57,47,.10),0 4px 10px -6px rgba(35,57,47,.18);
  color:var(--accent);
}
.tab-panel[hidden]{display:none}
.feature-tabs{
  display:flex;
  max-width:100%;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 8px;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.feature-tabs .tab-button{
  border-color:var(--border);
  background:var(--panel);
}
.feature-tabs .tab-button[aria-selected="true"]{
  border-color:var(--accent);
  background:var(--accent);
  color:var(--on-accent);
}
.feature-panel{
  position:relative;
  min-height:360px;
  margin-top:16px;
  overflow:hidden;
  padding:38px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--panel-muted);
}
.feature-panel::before{
  position:absolute;
  inset:0;
  background-image:var(--grain);
  content:"";
  opacity:.03;
  pointer-events:none;
}
.feature-panel__grid{
  position:relative;
  display:grid;
  grid-template-columns:5fr 7fr;
  gap:40px;
  align-items:center;
}
.toc-tabs{
  position:sticky;
  z-index:30;
  top:12px;
  display:flex;
  max-width:100%;
  gap:8px;
  overflow-x:auto;
  margin-bottom:32px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  background:var(--panel);
  box-shadow:var(--shadow-card);
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.toc-tabs::-webkit-scrollbar{display:none}
.toc-tabs a{
  display:inline-flex;
  min-height:36px;
  align-items:center;
  padding:7px 14px;
  border-radius:var(--radius-pill);
  color:var(--text-muted);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.toc-tabs a.is-current,
.toc-tabs a[aria-current="location"]{background:var(--accent);color:var(--on-accent)}
body:has(.toc-tabs) section[id]{scroll-margin-top:116px}
.faq-list{display:grid;gap:10px}
.faq-item{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
}
.faq-item summary{
  position:relative;
  min-height:58px;
  padding:16px 52px 16px 18px;
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  position:absolute;
  top:50%;
  right:18px;
  width:22px;
  height:22px;
  border:1px solid var(--border);
  border-radius:50%;
  content:"+";
  line-height:19px;
  text-align:center;
  transform:translateY(-50%);
}
.faq-item[open] summary::after{content:"−"}
.faq-item__answer{padding:0 18px 18px;color:var(--text-muted)}
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.plan-card{
  position:relative;
  display:flex;
  min-width:0;
  min-height:410px;
  flex-direction:column;
  padding:26px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
  box-shadow:var(--shadow-card);
  transform-style:preserve-3d;
}
.plan-card.is-featured{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accent-soft),var(--shadow-window);
}
.plan-card__badge{
  position:absolute;
  top:14px;
  right:14px;
  max-width:calc(100% - 28px);
  overflow:hidden;
  padding:4px 9px;
  border-radius:var(--radius-pill);
  background:var(--accent);
  color:var(--on-accent);
  font-size:11px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.plan-card__period{align-self:flex-start;color:var(--text-muted);font-size:13px}
.plan-card__price{
  margin:18px 0;
  font-family:var(--font-display);
  font-size:40px;
  font-weight:700;
  letter-spacing:-.03em;
}
.plan-card__price small{color:var(--text-muted);font-size:14px;letter-spacing:0}
.plan-card ul{display:grid;gap:9px;margin-bottom:24px;color:var(--text-muted);font-size:14px}
.plan-card .btn{margin-top:auto}
.table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
  -webkit-overflow-scrolling:touch;
}
.data-table,
.server-table,
.compare-table{width:100%;min-width:680px}
.data-table th,
.data-table td,
.server-table th,
.server-table td,
.compare-table th,
.compare-table td{
  padding:14px 16px;
  border-bottom:1px solid var(--border-soft);
  color:var(--text);
  text-align:left;
  vertical-align:top;
}
.data-table th,
.server-table th,
.compare-table th{
  background:var(--panel-muted);
  color:var(--text);
  font-size:13px;
  font-weight:800;
}
.data-table tbody tr:last-child td,
.server-table tbody tr:last-child td,
.compare-table tbody tr:last-child td{border-bottom:0}
.server-group td{
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:800;
}
.prose>.data-table{
  display:block;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.platform-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.platform-card{
  display:flex;
  min-width:0;
  min-height:180px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:20px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
  text-align:center;
}
.platform-card__icon{
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
}
.platform-card__icon svg{width:24px;height:24px}
.platform-card .btn{width:auto}
.article-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.article-card{
  display:flex;
  min-width:0;
  min-height:280px;
  flex-direction:column;
  padding:24px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
  box-shadow:var(--shadow-card);
}
.article-card__meta{color:var(--accent);font-family:var(--font-mono);font-size:12px}
.article-card h3{margin:14px 0 10px;font-size:22px}
.article-card p{color:var(--text-muted);font-size:14px}
.article-card__link{margin-top:auto;color:var(--accent);font-weight:700}
.callout{
  padding:20px 22px;
  border-left:4px solid var(--accent);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  background:var(--accent-soft);
  color:var(--text);
}
.promo-block{
  display:grid;
  grid-template-columns:1fr auto;
  gap:28px;
  align-items:center;
  padding:34px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  color:var(--on-accent);
  box-shadow:var(--shadow-window);
}
.promo-block h2,
.promo-block h3{margin-bottom:7px;color:var(--on-accent)}
.promo-block p{margin:0;color:var(--border)}
.promo-block .btn{background:var(--panel);color:var(--accent)}
.float-cta{
  position:fixed;
  z-index:60;
  right:20px;
  bottom:calc(20px + env(safe-area-inset-bottom,0px));
  display:inline-flex;
  min-height:48px;
  align-items:center;
  gap:9px;
  padding:10px 18px;
  border-radius:var(--radius-pill);
  background:var(--accent-dark);
  box-shadow:var(--shadow-button);
  color:var(--on-accent);
  font-size:14px;
  font-weight:800;
}
.float-cta svg{width:18px;height:18px;flex-shrink:0}
body:has(.float-cta)::after{
  display:block;
  height:calc(88px + env(safe-area-inset-bottom,0px));
  content:"";
}
.badge-row{display:flex;flex-wrap:wrap;gap:10px}
.info-badge{
  display:inline-flex;
  max-width:100%;
  min-height:40px;
  align-items:center;
  gap:9px;
  padding:8px 12px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
}
.info-badge svg{width:18px;height:18px;flex-shrink:0;color:var(--accent)}
.info-badge span{min-width:0;overflow-wrap:anywhere}
.label{
  display:inline-flex;
  max-width:100%;
  min-height:28px;
  align-items:center;
  padding:4px 10px;
  overflow:hidden;
  border-radius:var(--radius-pill);
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hero-preview{
  position:relative;
  overflow-x:clip;
  max-width:100%;
  padding-top:20px;
  padding-bottom:12px;
  background:linear-gradient(180deg,var(--bg-hero-top),var(--bg-hero-bottom));
}
.hero-preview::before{
  position:absolute;
  inset:0;
  background:radial-gradient(60% 40% at 50% 0%,rgba(233,201,180,.35),transparent 70%),radial-gradient(40% 30% at 12% 70%,rgba(169,179,154,.18),transparent 70%);
  content:"";
  pointer-events:none;
}
.hero-preview__inner{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-preview__title{
  max-width:900px;
  margin:16px 0 0;
  color:var(--text);
  font-family:var(--font-display);
  font-size:56px;
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1.1;
  text-align:center;
}
.hero-preview__title strong{color:var(--accent);font-weight:700}
.hero-preview__lede{
  max-width:880px;
  margin:12px auto 0;
  color:var(--text-muted);
  font-size:18px;
  line-height:1.5;
  text-align:center;
}
.hero-preview__actions{display:flex;gap:12px;margin-top:22px}
.hero-trust{
  display:grid;
  grid-template-columns:max-content max-content;
  gap:10px 18px;
  align-items:center;
  justify-content:center;
  margin-top:22px;
}
.hero-trust__label{color:var(--text-muted);font-size:12px;font-weight:700;letter-spacing:.06em;text-align:right}
.hero-trust__items{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.platform-inline,
.flag-inline{display:inline-flex;min-height:24px;align-items:center;gap:7px;font-size:13px}
.platform-inline svg{width:18px;height:18px;flex-shrink:0;color:var(--accent)}
.flag-inline svg{
  width:22px;
  height:15px;
  flex-shrink:0;
  overflow:hidden;
  border-radius:3px;
  box-shadow:inset 0 0 0 1px var(--accent-mid);
}
.stage{
  position:relative;
  width:100%;
  height:348px;
  margin-top:24px;
  overflow:hidden;
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,var(--dusk-top),var(--dusk-middle) 48%,var(--dusk-bottom));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),var(--shadow-card);
}
.stage::before{
  position:absolute;
  inset:0;
  background-image:var(--grain);
  content:"";
  opacity:.04;
}
.stage::after{
  position:absolute;
  inset:0;
  background:radial-gradient(55% 60% at 22% 10%,rgba(255,255,255,.38),transparent 70%),radial-gradient(40% 50% at 88% 90%,rgba(21,36,29,.18),transparent 70%);
  content:"";
}
.dispatch-window{
  position:absolute;
  z-index:2;
  top:28px;
  left:56px;
  display:grid;
  width:936px;
  height:292px;
  grid-template-rows:36px 1fr;
  overflow:hidden;
  border-radius:var(--radius-md);
  background:var(--panel);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),0 0 0 1px var(--accent-mid),var(--shadow-window);
}
.dispatch-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-inline:14px;
  border-bottom:1px solid var(--border);
  background:var(--panel-bar);
  color:var(--text-muted);
  font-size:12px;
}
.dispatch-bar__trail,
.dispatch-bar__tools{display:flex;align-items:center;gap:8px}
.dispatch-bar__trail b{color:var(--text)}
.dispatch-body{display:grid;grid-template-columns:44px 1fr 250px;min-height:0}
.dispatch-tools{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding-top:12px;
  border-right:1px solid var(--border-soft);
}
.dispatch-tools span{
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  border-radius:7px;
  color:var(--text-muted);
}
.dispatch-tools span:first-child{background:var(--accent-soft);color:var(--accent)}
.dispatch-tools svg{width:16px;height:16px}
.dispatch-canvas{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-content:start;
  gap:10px 12px;
  padding:14px;
  background-color:var(--canvas);
  background-image:linear-gradient(var(--accent-soft) 1px,transparent 1px),linear-gradient(90deg,var(--accent-soft) 1px,transparent 1px);
  background-size:28px 28px;
}
.route-group{display:flex;min-width:0;flex-direction:column;gap:8px}
.route-tag{
  align-self:flex-start;
  padding:3px 8px;
  border-radius:var(--radius-xs);
  background:var(--accent);
  color:var(--on-accent);
  font-size:11px;
  font-weight:800;
}
.route-group--relay .route-tag{background:var(--relay)}
.route-group--direct .route-tag{background:var(--direct);color:var(--accent-dark)}
.route-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:3px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--iepl-tint);
}
.route-group--relay .route-grid{background:var(--relay-tint)}
.route-group--direct .route-grid{background:var(--direct-tint)}
.route-cell{
  min-width:0;
  padding:9px 8px;
  border-radius:5px;
  background:var(--panel);
}
.route-cell b{display:block;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.route-cell small{display:block;color:var(--text-muted);font-size:10px}
.route-cell em{
  display:inline-flex;
  margin-top:6px;
  padding:2px 5px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-pill);
  color:var(--text-muted);
  font-size:9px;
  font-style:normal;
}
.dispatch-detail{
  display:flex;
  min-height:0;
  flex-direction:column;
  padding:14px;
  border-left:1px solid var(--border-soft);
}
.dispatch-detail h3{margin:0 0 9px;font-size:13px}
.dispatch-kv{
  display:flex;
  min-height:25px;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-bottom:1px solid var(--border-soft);
  font-size:11px;
}
.dispatch-kv span:first-child{color:var(--text-muted)}
.dispatch-kv strong{text-align:right}
.dispatch-status{
  display:flex;
  min-height:30px;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
  padding:6px 10px;
  border-radius:var(--radius-sm);
  background:linear-gradient(180deg,var(--accent),var(--accent-dark));
  color:var(--on-accent);
  font-size:11px;
  font-weight:800;
}
.dispatch-status i{
  width:7px;
  height:7px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 3px rgba(60,125,85,.28);
}
.stage-note{
  position:absolute;
  z-index:3;
  top:24px;
  right:22px;
  width:196px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
  box-shadow:var(--shadow-card);
  font-size:12px;
  font-weight:800;
}
.stage-shield{
  position:absolute;
  z-index:3;
  right:28px;
  bottom:26px;
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(180deg,var(--accent),var(--accent-dark));
  box-shadow:var(--shadow-button);
}
.stage-shield svg{width:22px;height:22px;color:var(--on-accent)}
.preview-main{padding-top:70px;padding-bottom:90px}
.preview-section{
  padding-top:48px;
  padding-bottom:48px;
  border-top:1px solid var(--border);
}
.preview-heading{margin-bottom:28px}
.token-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.token-swatch{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
}
.token-swatch__color{height:88px}
.token-swatch__color--bg{background:var(--bg)}
.token-swatch__color--panel{background:var(--panel)}
.token-swatch__color--panel-muted{background:var(--panel-muted)}
.token-swatch__color--border{background:var(--border)}
.token-swatch__color--accent{background:var(--accent)}
.token-swatch__color--accent-dark{background:var(--accent-dark)}
.token-swatch__color--text{background:var(--text)}
.token-swatch__color--muted{background:var(--text-muted)}
.token-swatch__name{padding:10px 12px;font-family:var(--font-mono);font-size:12px}
.type-samples{display:grid;gap:18px}
.type-display{font-family:var(--font-display);font-size:52px;font-weight:700;line-height:1.1;letter-spacing:-.02em}
.type-body{max-width:720px;color:var(--text-muted);font-size:18px}
.type-mono{font-family:var(--font-mono);font-size:14px}
.preview-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.preview-footer{margin-top:60px}
@media (max-width:1040px){
  .dispatch-window{left:24px;width:calc(100% - 48px)}
  .stage-note{display:none}
  .platform-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .dispatch-body{grid-template-columns:44px 1fr}
  .dispatch-detail{display:none}
  .pricing-grid,
  .article-grid{grid-template-columns:1fr 1fr}
  .feature-panel__grid{grid-template-columns:1fr}
  .token-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .hero-preview__title{font-size:34px;letter-spacing:-.02em}
  .hero-preview__lede{font-size:16px}
  .hero-preview__actions{width:100%;flex-direction:column}
  .hero-trust{grid-template-columns:1fr;width:100%}
  .hero-trust__label{text-align:left}
  .hero-trust__items{gap:10px 14px}
  .stage{height:300px;border-radius:14px}
  .dispatch-window{top:18px;left:14px;width:calc(100% - 28px);height:264px;grid-template-rows:32px 1fr}
  .dispatch-bar__tools,
  .dispatch-tools,
  .stage-shield{display:none}
  .dispatch-body{grid-template-columns:1fr}
  .dispatch-canvas{grid-template-columns:1fr 1fr;padding:12px;gap:10px}
  .route-group:nth-child(3){display:none}
  .pricing-grid,
  .platform-grid,
  .article-grid,
  .token-grid{grid-template-columns:1fr}
  .feature-panel{min-height:0;padding:24px 18px}
  .promo-block{grid-template-columns:1fr;padding:26px 20px}
  .promo-block .btn{width:100%}
  .float-cta{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .platform-card .btn{width:auto}
  .type-display{font-size:38px}
}