:root {
  --hero-frame-ratio: 1.0769;
  --table-min-width: 760px;
  --float-cta-bottom: 22px;
  --float-cta-right: 26px;
}

.tabs {
  min-width: 0;
}

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

.tab-list [role="tab"] {
  min-height: 42px;
  padding: 8px 18px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  background: var(--color-transparent);
  font-weight: 800;
  white-space: nowrap;
}

.tab-list [role="tab"][aria-selected="true"] {
  color: var(--color-white);
  background: var(--color-accent-dark);
}

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

.tab-panel {
  padding-top: 28px;
}

.toc-tabs {
  position: sticky;
  top: 10px;
  z-index: 35;
  width: 100%;
  max-width: 100%;
  padding: 7px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border: var(--border-standard) solid var(--color-accent-dark);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.toc-tabs a {
  min-height: 40px;
  padding: 8px 15px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

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

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

.faq-item {
  overflow: hidden;
  border: var(--border-standard) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
}

.faq-item summary {
  min-height: 64px;
  padding: 18px 54px 18px 20px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-accent-dark);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  right: 20px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: var(--border-standard) solid var(--color-accent-dark);
  border-radius: 50%;
  content: "+";
}

.faq-item[open] summary::after {
  color: var(--color-white);
  background: var(--color-accent);
  content: "−";
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-item:not([open]) > .faq-answer {
  display: none;
}

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

.plan-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: var(--border-standard) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
}

.plan-card.is-featured,
.plan-card[aria-current="true"] {
  border: var(--border-strong) solid var(--color-accent-dark);
  background: var(--color-panel);
}

.plan-badge {
  position: absolute;
  top: -16px;
  right: 22px;
  max-width: calc(100% - 44px);
  padding: 6px 13px;
  overflow: hidden;
  border: var(--border-standard) solid var(--color-accent-dark);
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  background: var(--color-warn);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-name {
  margin-bottom: 9px;
  font-size: 23px;
}

.plan-period {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.plan-price {
  margin: 18px 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan-price small {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.plan-features {
  margin: 0 0 24px;
  padding: 20px 0 0;
  display: grid;
  gap: 10px;
  border-top: var(--border-standard) dashed var(--color-border);
  list-style: none;
}

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

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

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

.table-shell {
  max-width: 100%;
  overflow-x: auto;
  border: var(--border-standard) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.server-table,
.data-table {
  width: 100%;
  min-width: var(--table-min-width);
}

.server-table tbody + tbody tr:first-child th {
  border-top: var(--border-strong) solid var(--color-accent-dark);
}

.region-row th {
  color: var(--color-white);
  background: var(--color-accent-dark);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.server-flag {
  margin-right: 8px;
}

.stream-yes {
  color: var(--color-success);
  font-weight: 800;
}

.stream-check {
  color: var(--color-muted);
  font-weight: 700;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: var(--border-standard) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
}

.platform-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: var(--border-standard) solid var(--color-accent-dark);
  border-radius: var(--radius-small);
  color: var(--color-white);
  background: var(--color-accent);
}

.platform-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

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

.platform-card .button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding-inline: 12px;
  border-width: var(--border-standard);
  font-size: 13px;
}

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

.article-card {
  min-width: 0;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: var(--border-standard) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
}

.article-card:hover {
  border-color: var(--color-accent);
}

.article-meta {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.article-card p {
  flex-grow: 1;
}

.article-link {
  color: var(--color-accent);
  font-weight: 850;
}

.callout {
  padding: 22px 24px;
  border: var(--border-standard) solid var(--color-border);
  border-left: 8px solid var(--color-accent);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  color: var(--color-muted);
  background: var(--color-panel);
}

.callout strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--color-accent-dark);
}

.promo-block {
  margin-top: 50px;
  padding: clamp(26px, 5vw, 46px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: var(--border-strong) solid var(--color-accent-dark);
  border-radius: var(--radius-large);
  color: var(--color-white);
  background: var(--color-accent-dark);
}

.promo-block h2,
.promo-block p {
  color: var(--color-white);
}

.promo-block h2 {
  margin-bottom: 8px;
  font-size: clamp(27px, 4vw, 40px);
}

.promo-block p {
  margin-bottom: 0;
}

.promo-block .button {
  color: var(--color-accent-dark);
  background: var(--color-warn);
}

.float-cta {
  position: fixed;
  right: var(--float-cta-right);
  bottom: var(--float-cta-bottom);
  z-index: 45;
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: var(--border-strong) solid var(--color-accent-dark);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-accent);
  font-size: 14px;
  font-weight: 850;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.float-cta:hover,
.float-cta:focus-visible {
  color: var(--color-white);
  background: var(--color-warn);
  transform: translateY(-2px);
}

.float-cta svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero {
  position: relative;
  height: calc(900px - var(--header-height));
  min-height: 720px;
  overflow: hidden;
  overflow-x: clip;
}

.hero::before {
  position: absolute;
  top: 72px;
  left: -90px;
  width: 270px;
  height: 270px;
  border: var(--border-standard) solid var(--color-panel-strong);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  top: 106px;
  left: -52px;
  width: 190px;
  height: 190px;
  border: var(--border-standard) dashed var(--color-border);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--page-width));
  height: 100%;
  margin-inline: auto;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(500px, 0.91fr) minmax(610px, 1.09fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-top: 10px;
}

.hero-title {
  max-width: 620px;
  margin: 0;
  font-size: clamp(60px, 4.8vw, 72px);
  line-height: 1.02;
}

.title-brand,
.title-value {
  display: block;
}

.title-brand {
  color: var(--color-text);
}

.title-value {
  margin-top: 8px;
  color: var(--color-accent);
}

.hero-actions {
  margin-top: 29px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-description {
  max-width: 590px;
  margin: 25px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}

.trust-list {
  max-width: 620px;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 17px;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.trust-check {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: var(--border-standard) solid var(--color-success);
  border-radius: 50%;
  color: var(--color-success);
  background: var(--color-white);
  font-size: 11px;
  font-weight: 900;
}

.hero-visual {
  width: 100%;
  max-width: 700px;
  justify-self: end;
}

.visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-frame-ratio);
  overflow: hidden;
  border: var(--border-strong) solid var(--color-accent-dark);
  border-radius: var(--radius-large);
  background: var(--color-panel);
}

.visual-frame::before {
  position: absolute;
  top: 22px;
  right: 22px;
  left: 22px;
  z-index: 2;
  height: 34px;
  border-bottom: var(--border-standard) solid var(--color-border);
  content: "";
  pointer-events: none;
}

.chrome-dots {
  position: absolute;
  top: 28px;
  left: 29px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.chrome-dots i {
  width: 9px;
  height: 9px;
  display: block;
  border: var(--border-standard) solid var(--color-accent-dark);
  border-radius: 50%;
}

.chrome-dots i:nth-child(1) {
  background: var(--color-warn);
}

.chrome-dots i:nth-child(2) {
  background: var(--color-panel-strong);
}

.chrome-dots i:nth-child(3) {
  background: var(--color-success);
}

.frame-label {
  position: absolute;
  top: 27px;
  right: 30px;
  z-index: 4;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.visual-svg {
  width: 100%;
  height: 100%;
}

.snow-back {
  fill: var(--color-panel-strong);
}

.snow-front {
  fill: var(--color-white);
}

.snow-line,
.shield-detail {
  fill: none;
  stroke: var(--color-border);
  stroke-linecap: round;
}

.snow-line {
  stroke-width: 2;
}

.shield-detail {
  stroke-width: 3;
}

.field-dot {
  fill: var(--color-border);
}

.shield-outline {
  fill: var(--color-accent-dark);
}

.shield-body {
  fill: var(--color-accent);
}

.shield-face {
  fill: var(--color-panel-strong);
  stroke: var(--color-white);
  stroke-width: 4;
}

.route-under {
  fill: none;
  stroke: var(--color-white);
  stroke-width: 9;
  stroke-linecap: round;
}

.route {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 11;
  animation: route-flow 8s linear infinite;
}

.route-pulse {
  fill: var(--color-warn);
  stroke: var(--color-accent-dark);
  stroke-width: 3;
}

.device-shell {
  fill: var(--color-white);
  stroke: var(--color-accent-dark);
  stroke-width: 4;
  stroke-linejoin: round;
}

.device-screen {
  fill: var(--color-panel-strong);
  stroke: var(--color-border);
  stroke-width: 2;
}

.device-accent {
  fill: var(--color-accent);
}

.device-status {
  fill: var(--color-success);
  stroke: var(--color-accent-dark);
  stroke-width: 2;
}

.device-line {
  fill: none;
  stroke: var(--color-accent-dark);
  stroke-width: 3;
  stroke-linecap: round;
}

.core {
  fill: var(--color-warn);
  stroke: var(--color-accent-dark);
  stroke-width: 5;
}

.core-text {
  fill: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.shield-title {
  fill: var(--color-white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.shield-float {
  transform-origin: center;
  animation: shield-float 5.8s ease-in-out infinite;
}

.next-edge {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 58px;
  border-top: var(--border-strong) solid var(--color-accent-dark);
  background: var(--color-panel-strong);
}

.next-edge-inner {
  width: min(calc(100% - 64px), var(--page-width));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-right: var(--border-standard) solid var(--color-border);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.fact-preview:first-child {
  border-left: var(--border-standard) solid var(--color-border);
}

.fact-preview strong {
  color: var(--color-accent);
  font-size: 15px;
}

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

.swatch {
  overflow: hidden;
  border: var(--border-standard) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
}

.swatch-color {
  height: 86px;
}

.swatch-copy {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

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

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

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

.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-muted);
}

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

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

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

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

@keyframes route-flow {
  to {
    stroke-dashoffset: -84;
  }
}

@keyframes shield-float {
  50% {
    transform: translateY(-7px);
  }
}

.prose > .data-table {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(440px, 0.92fr) minmax(500px, 1.08fr);
    gap: 24px;
  }

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

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

  .hero-inner {
    width: 100%;
    height: auto;
    padding: 64px var(--gutter) 100px;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 680px;
    justify-self: center;
  }

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

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

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

@media (max-width: 640px) {
  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-inner {
    padding-top: 46px;
    padding-bottom: 88px;
  }

  .hero-title {
    font-size: clamp(46px, 14vw, 61px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .trust-list {
    display: grid;
    gap: 9px;
  }

  .visual-frame {
    border-width: var(--border-standard);
  }

  .next-edge {
    height: 52px;
  }

  .next-edge-inner {
    width: 100%;
    padding-inline: var(--gutter);
  }

  .fact-preview {
    gap: 3px;
    border: 0;
    font-size: 9px;
    text-align: center;
  }

  .fact-preview strong {
    font-size: 11px;
  }

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

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

  .toc-tabs {
    top: 6px;
    border-radius: var(--radius-medium);
  }

  .promo-block .button {
    width: 100%;
  }

  .float-cta {
    display: none;
  }

  .prose > .data-table {
    width: 100%;
    min-width: 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route,
  .shield-float {
    animation: none;
  }
}