.tabs {
  min-width: 0;
}

.tab-list {
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 5px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel-soft);
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

[role="tab"] {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 17px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

[role="tab"][aria-selected="true"] {
  color: var(--color-panel);
  background: var(--color-text);
  box-shadow: 0 8px 18px var(--color-shadow);
}

[role="tabpanel"] {
  min-width: 0;
  margin-top: 24px;
}

[role="tabpanel"][hidden] {
  display: none;
}

.toc-tabs {
  position: sticky;
  z-index: 34;
  top: var(--toc-offset);
  max-width: 100%;
  display: flex;
  gap: 6px;
  margin-bottom: 34px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  box-shadow: 0 12px 34px var(--color-shadow);
  scrollbar-width: none;
}

.toc-tabs::-webkit-scrollbar {
  display: none;
}

.toc-tabs a {
  min-height: 40px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.toc-tabs a:hover,
.toc-tabs a.is-current,
.toc-tabs a[aria-current="location"] {
  color: var(--color-panel);
  background: var(--color-accent);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: 0 10px 34px var(--color-shadow);
}

.faq-item summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-pill);
  content: "+";
  color: var(--color-accent);
  background: var(--color-accent-soft);
  font-size: 20px;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: 0 20px 56px var(--color-shadow);
}

.plan-card.is-featured,
.plan-card[aria-current="true"] {
  border-color: var(--color-accent);
  box-shadow: 0 28px 74px var(--color-accent-glow);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: calc(100% - 32px);
}

.plan-name {
  margin-bottom: 8px;
  font-size: 21px;
}

.plan-period {
  color: var(--color-text-muted);
  font: 700 12px var(--font-mono);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 26px 0 22px;
}

.plan-price strong {
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--color-text-muted);
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
}

.plan-features li {
  display: flex;
  gap: 9px;
}

.plan-features li::before {
  flex: 0 0 auto;
  content: "✓";
  color: var(--color-success);
  font-weight: 800;
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.server-table,
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td,
.server-table th,
.server-table td,
.compare-table th,
.compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.data-table th,
.server-table th,
.compare-table th {
  color: var(--color-text);
  background: var(--color-panel-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.data-table td:first-child,
.server-table td:first-child,
.compare-table td:first-child {
  color: var(--color-text);
  font-weight: 720;
}

.data-table tr:last-child td,
.server-table tr:last-child td,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.region-row th {
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

.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: 14px;
}

.platform-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: 0 14px 38px var(--color-shadow);
}

.platform-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.platform-icon svg {
  width: 24px;
  height: 24px;
}

.platform-card h3 {
  font-size: 18px;
}

.platform-card p {
  color: var(--color-text-muted);
  font-size: 13px;
}

.platform-card .button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding-inline: 12px;
  font-size: 13px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: 0 16px 48px var(--color-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font: 650 11px var(--font-mono);
}

.article-card h3 {
  font-size: 22px;
}

.article-card p {
  color: var(--color-text-muted);
}

.article-link {
  margin-top: auto;
  color: var(--color-accent-dark);
  font-weight: 750;
}

.callout {
  margin: 1.75rem 0;
  padding: 20px 22px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-muted);
  background: var(--color-accent-soft);
}

.callout strong {
  color: var(--color-text);
}

.promo-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  padding: clamp(26px, 5vw, 46px);
  overflow-x: clip;
  border-radius: var(--radius-lg);
  color: var(--color-panel);
  background: var(--color-text);
  box-shadow: var(--shadow-card-deep);
}

.promo-block::after {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 230px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: var(--gradient-ribbon);
  opacity: 0.72;
  transform: rotate(-18deg);
}

.promo-copy,
.promo-block .button {
  position: relative;
  z-index: 1;
}

.promo-copy h2 {
  margin-bottom: 8px;
  color: var(--color-panel);
  font-size: clamp(26px, 4vw, 38px);
}

.promo-copy p {
  margin-bottom: 0;
  color: var(--color-border-strong);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 1.75rem 0;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-soft);
}

.stat-num {
  color: var(--color-accent-dark);
  font: 800 22px var(--font-mono);
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 13px;
}

.check-list {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.verdict {
  margin: 1.5rem 0;
  padding: 18px 20px;
  border-left: 4px solid var(--color-success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-success-soft);
}

.preview-hero {
  position: relative;
  min-height: 762px;
  overflow-x: clip;
  background:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px),
    var(--color-bg);
  background-size: 72px 72px;
}

.preview-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 44%, var(--color-ribbon-fade) 72%);
  pointer-events: none;
}

.preview-hero-inner {
  position: relative;
  min-height: 762px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  align-items: center;
  gap: 46px;
}

.preview-hero-copy {
  position: relative;
  z-index: 8;
  min-width: 0;
}

.hero-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 8px 13px 8px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-panel);
  box-shadow: 0 8px 26px var(--color-shadow);
  font-size: 13px;
  font-weight: 700;
}

.hero-eyebrow-icon {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--color-panel);
  background: var(--gradient-accent);
}

.hero-eyebrow-icon svg {
  width: 13px;
  height: 13px;
}

.preview-hero-title {
  max-width: 650px;
  margin-bottom: 0;
}

.title-brand {
  display: block;
}

.title-accent {
  display: inline-block;
  color: var(--color-accent);
  background: var(--gradient-title);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-accent::after {
  width: 74%;
  height: 7px;
  display: block;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--gradient-ribbon);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-description {
  max-width: 580px;
  margin: 25px 0 0;
  color: var(--color-text-muted);
  font-size: 17px;
}

.hero-description strong {
  color: var(--color-text);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-visual {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: 650px;
}

.hero-ribbon {
  position: absolute;
  z-index: 1;
  top: 80px;
  right: -230px;
  width: 820px;
  height: 235px;
  border-radius: 46% 12% 48% 18%;
  background: var(--gradient-ribbon);
  box-shadow: 0 34px 74px var(--color-accent-glow);
  opacity: 0.94;
  transform: rotate(23deg) skewX(-12deg);
}

.hero-ribbon::before {
  position: absolute;
  inset: 19px -12px auto 24px;
  height: 42px;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--gradient-ribbon-highlight);
  opacity: 0.62;
}

.orbit-ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  border: 1px dashed var(--color-border-strong);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring-large {
  width: 630px;
  height: 535px;
  transform: translate(-50%, -50%);
  animation: orbit-turn 24s linear infinite;
}

.orbit-ring-small {
  width: 520px;
  height: 425px;
  border-style: solid;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: orbit-turn-reverse 28s linear infinite;
}

.platform-chip {
  position: absolute;
  z-index: 6;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: var(--color-panel);
  box-shadow: 0 9px 25px var(--color-shadow);
  font: 650 11px var(--font-mono);
}

.platform-chip svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.chip-windows {
  top: 58px;
  left: 18px;
}

.chip-macos {
  top: 18px;
  right: 82px;
}

.chip-ios {
  top: 274px;
  right: -8px;
}

.chip-android {
  right: 22px;
  bottom: 82px;
}

.chip-linux {
  bottom: 24px;
  left: 40px;
}

.connection-card {
  position: absolute;
  z-index: 5;
  top: 66px;
  left: 50%;
  width: 430px;
  min-height: 536px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-card-deep);
  transform: translateX(-48%) rotate(-1.2deg);
}

.card-chrome {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
}

.chrome-dot-accent {
  background: var(--color-accent);
}

.chrome-dot-warn {
  background: var(--color-warn);
}

.chrome-dot-success {
  background: var(--color-success);
}

.chrome-title {
  color: var(--color-text-muted);
  font: 650 10px var(--font-mono);
  letter-spacing: 0.08em;
}

.connection-main {
  padding: 28px 31px;
}

.connection-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.connection-kicker {
  margin-bottom: 6px;
  color: var(--color-text-faint);
  font: 650 10px var(--font-mono);
  letter-spacing: 0.12em;
}

.connection-state {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--color-success-dark);
  background: var(--color-success-soft);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.toggle-zone {
  position: relative;
  height: 112px;
  display: grid;
  place-items: center;
}

.toggle-halo {
  position: absolute;
  width: 154px;
  height: 90px;
  border: 1px solid var(--color-success);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 34px var(--color-success-glow);
}

.connection-toggle {
  position: relative;
  width: 126px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 16px 32px var(--color-success-glow);
}

.toggle-knob {
  position: absolute;
  top: 7px;
  left: 69px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--color-success);
  background: var(--color-panel);
  box-shadow: 0 8px 18px var(--color-shadow);
}

.toggle-knob svg {
  width: 22px;
  height: 22px;
}

.route-panel {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-soft);
}

.route-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.route-label {
  font-size: 12px;
  font-weight: 750;
}

.route-protocol {
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-panel);
  font: 650 9px var(--font-mono);
}

.route-map {
  width: 100%;
  height: 104px;
  display: block;
}

.route-base {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.route-live {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 3;
  stroke-linecap: round;
}

.route-node {
  fill: var(--color-panel);
  stroke: var(--color-success);
  stroke-width: 2;
}

.route-core {
  fill: var(--color-success);
}

.route-earth {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 2;
  stroke-linecap: round;
}

.route-city {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font: 600 9px var(--font-mono);
}

.route-city span {
  flex: 1;
  text-align: center;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.swatch {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.swatch-color {
  height: 96px;
}

.swatch-copy {
  padding: 14px;
  font: 650 11px var(--font-mono);
  overflow-wrap: anywhere;
}

.swatch-bg {
  background: var(--color-bg);
}

.swatch-panel {
  background: var(--color-panel);
}

.swatch-soft {
  background: var(--color-panel-soft);
}

.swatch-border {
  background: var(--color-border);
}

.swatch-accent {
  background: var(--color-accent);
}

.swatch-accent-dark {
  background: var(--color-accent-dark);
}

.swatch-text {
  background: var(--color-text);
}

.swatch-muted {
  background: var(--color-text-muted);
}

.swatch-success {
  background: var(--color-success);
}

.swatch-warn {
  background: var(--color-warn);
}

.swatch-error {
  background: var(--color-error);
}

.swatch-ribbon {
  background: var(--gradient-ribbon);
}

.component-stack {
  display: grid;
  gap: 24px;
}

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

@keyframes orbit-turn {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-turn-reverse {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@media (max-width: 1040px) {
  .preview-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-visual {
    width: min(650px, 100%);
    margin-inline: auto;
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-card.is-featured,
  .plan-card[aria-current="true"] {
    transform: none;
  }
}

@media (max-width: 768px) {
  .preview-hero {
    min-height: auto;
  }

  .preview-hero-inner {
    min-height: auto;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-visual {
    height: 560px;
    overflow-x: clip;
  }

  .connection-card {
    top: 48px;
    width: min(430px, calc(100% - 28px));
    transform: translateX(-50%);
  }

  .orbit-ring-large {
    width: 540px;
    height: 470px;
  }

  .orbit-ring-small {
    width: 440px;
    height: 380px;
  }

  .platform-chip {
    display: none;
  }

  .platform-grid,
  .pricing-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .promo-block {
    grid-template-columns: 1fr;
  }

  .promo-block .button {
    width: fit-content;
  }

  .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions .button,
  .hero-actions .cta {
    width: 100%;
  }

  .hero-visual {
    height: 520px;
  }

  .connection-main {
    padding: 22px 18px;
  }

  .connection-card {
    min-height: 490px;
    border-radius: var(--radius-lg);
  }

  .connection-heading {
    align-items: flex-start;
  }

  .connection-state {
    font-size: 22px;
  }

  .status-pill {
    padding-inline: 8px;
  }

  .route-city {
    font-size: 8px;
  }

  .palette-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring-large,
  .orbit-ring-small {
    animation: none;
  }
}