.tabs {
  min-width: 0;
}

.tab-list {
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  max-width: 100%;
  padding: 6px;
}

.tab-button {
  background: transparent;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  cursor: pointer;
  flex: 1 1 auto;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 18px;
}

.tab-button:hover {
  color: var(--color-accent-dark);
}

.tab-button[aria-selected="true"],
.tab-button.is-active {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.tab-panel {
  min-width: 0;
}

.tab-panel[hidden] {
  display: none;
}

.toc {
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  color: var(--color-text);
  margin-bottom: 44px;
  padding: 20px;
}

.toc__title {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 12px;
}

.toc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.toc__links a {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  display: inline-flex;
  min-height: 40px;
  padding: 7px 14px;
  text-decoration: none;
}

.toc__links a:hover {
  border-color: var(--color-accent);
}

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

.faq-item {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  color: var(--color-text);
  overflow: clip;
}

.faq-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  min-height: 62px;
  padding: 16px 20px;
}

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

.faq-item summary::after {
  align-items: center;
  background: var(--color-accent-soft);
  border-radius: 50%;
  color: var(--color-accent-dark);
  content: "+";
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 28px;
  justify-content: center;
  width: 28px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 18px 20px 20px;
}

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

.glossary-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  min-width: 0;
  padding: 28px;
}

.glossary-card__term {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 25px;
  margin-bottom: 8px;
}

.glossary-card__meta {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.glossary-card p:last-child {
  margin-bottom: 0;
}

.download-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
}

.download-card__head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.download-card__identity {
  align-items: center;
  display: flex;
  gap: 15px;
  min-width: 0;
}

.download-card__icon {
  flex-shrink: 0;
  height: 54px;
  width: 54px;
}

.download-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.download-card__version {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 22px;
}

.badge,
.status-badge,
.tag {
  align-items: center;
  border-radius: var(--radius-pill);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  line-height: 1.3;
  max-width: 100%;
  min-height: 28px;
  overflow: hidden;
  padding: 5px 10px;
}

.badge-primary,
.badge-featured {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge-recommended {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

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

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

.badge-retired {
  background: var(--color-error);
  color: var(--color-white);
}

.badge-outline {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.article-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  text-decoration: none;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

.article-card__meta {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 9px;
  margin-bottom: 14px;
}

.article-card__title {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 13px;
}

.article-card__summary {
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 20px;
}

.article-card__more {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.callout {
  background: var(--color-accent-soft);
  border-left: 5px solid var(--color-accent);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  color: var(--color-text);
  margin: 28px 0;
  padding: 20px 22px;
}

.callout strong,
.callout__title {
  color: var(--color-accent-dark);
}

.callout-warning {
  background: var(--color-panel-soft);
  border-left-color: var(--color-warning);
  color: var(--color-text);
}

.callout-error {
  background: var(--color-panel-soft);
  border-left-color: var(--color-error);
  color: var(--color-text);
}

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

.dl-fab {
  align-items: center;
  background: var(--color-accent-dark);
  border: 1px solid var(--color-white-30);
  border-radius: var(--radius-pill);
  bottom: 22px;
  box-shadow: var(--shadow-button);
  color: var(--color-white);
  display: flex;
  gap: 11px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 10px;
  position: fixed;
  right: 22px;
  text-decoration: none;
  z-index: 80;
}

.dl-fab:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.dl-fab__icon {
  align-items: center;
  background: var(--color-white-14);
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.dl-fab__icon svg {
  height: 19px;
  width: 19px;
}

.dl-fab__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.dl-fab__copy strong {
  color: var(--color-white);
  font-size: 13px;
}

.dl-fab__copy span {
  color: var(--color-white-82);
  font-size: 11px;
}

.end-download-card {
  align-items: center;
  background: var(--color-ocean);
  border-radius: var(--radius-large);
  color: var(--color-white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 56px;
  padding: clamp(24px, 5vw, 42px);
}

.end-download-card h2,
.end-download-card h3 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.end-download-card p {
  color: var(--color-white-82);
  margin-bottom: 0;
}

.hero-shell {
  background: linear-gradient(180deg, var(--color-ocean-top) 0%, var(--color-ocean) 46%, var(--color-ocean-low) 100%);
  color: var(--color-white);
  overflow-x: clip;
}

.preview-hero {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.06fr .94fr;
  margin-inline: auto;
  max-width: calc(1320px + var(--gutter) * 2);
  min-width: 0;
  padding: 8px var(--gutter) 30px;
}

.hero-stage {
  height: 660px;
  min-width: 0;
  position: relative;
}

.hero-curve {
  border-radius: 50%;
  left: 52%;
  position: absolute;
  top: 55%;
  transform: translate(-50%, -50%);
}

.hero-curve--one {
  background: var(--color-curve-one);
  height: 790px;
  width: 790px;
}

.hero-curve--two {
  background: var(--color-curve-two);
  height: 614px;
  width: 614px;
}

.hero-curve--three {
  background: var(--color-curve-three);
  height: 452px;
  width: 452px;
}

.hero-deco {
  position: absolute;
}

.hero-deco--pink {
  background: var(--color-pink);
  border-radius: 50%;
  height: 232px;
  left: -136px;
  top: 33%;
  width: 232px;
  z-index: 1;
}

.hero-deco--fan {
  background: var(--color-warning);
  border-radius: 0 100% 0 0;
  bottom: 6%;
  height: 132px;
  right: -14px;
  width: 132px;
  z-index: 1;
}

.hero-deco--triangle {
  background: var(--color-warning);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 22px;
  right: 15%;
  top: 5%;
  transform: rotate(14deg);
  width: 26px;
  z-index: 1;
}

.hero-deco--dot {
  background: var(--color-pink);
  border-radius: 50%;
  height: 13px;
  left: 11%;
  top: 8%;
  width: 13px;
  z-index: 1;
}

.mock-window {
  background: var(--color-panel);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-window);
  color: var(--color-text);
  left: 14px;
  overflow: hidden;
  position: absolute;
  top: 74px;
  transform: rotate(-1.4deg);
  width: 566px;
  z-index: 3;
}

.mock-window__bar {
  align-items: center;
  background: var(--color-panel-soft);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 8px;
  padding: 13px 16px;
}

.chrome-dot {
  border-radius: 50%;
  flex-shrink: 0;
  height: 11px;
  width: 11px;
}

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

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

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

.mock-window__title {
  color: var(--color-text-muted);
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding-right: 49px;
  text-align: center;
}

.mock-window__body {
  display: grid;
  grid-template-columns: 172px 1fr;
}

.mock-window__side {
  background: var(--color-panel-soft);
  border-right: 1px solid var(--color-border);
  list-style: none;
  margin: 0;
  padding: 14px 10px;
}

.mock-window__side li {
  border-left: 3px solid transparent;
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-size: 13.5px;
  margin-bottom: 2px;
  padding: 9px 12px;
}

.mock-window__side .is-active {
  background: var(--color-accent-soft);
  border-left-color: var(--color-accent);
  color: var(--color-accent-dark);
  font-weight: 700;
}

.mock-window__main {
  padding: 16px 22px 18px;
}

.mock-label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.setting-row {
  align-items: center;
  border-bottom: 1px dashed var(--color-border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 0;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row__name {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.setting-row__sub {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 3px 0 0;
}

.switch {
  background: var(--color-border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  height: 21px;
  position: relative;
  width: 38px;
}

.switch::after {
  background: var(--color-panel);
  border-radius: 50%;
  box-shadow: 0 1px 3px var(--color-text-shadow-28);
  content: "";
  height: 16px;
  left: 3px;
  position: absolute;
  top: 2.5px;
  width: 16px;
}

.switch.is-on {
  background: var(--color-accent);
}

.switch.is-on::after {
  left: auto;
  right: 3px;
}

.mock-phone {
  background: var(--color-panel);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-phone);
  color: var(--color-text);
  overflow: hidden;
  position: absolute;
  right: 6px;
  top: 296px;
  transform: rotate(1.7deg);
  width: 196px;
  z-index: 4;
}

.mock-phone__bar {
  align-items: center;
  background: var(--color-accent-dark);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
}

.mock-phone__bar svg {
  height: 15px;
  width: 15px;
}

.mock-phone__title {
  font-size: 12.5px;
  font-weight: 700;
}

.mock-phone__list {
  padding: 12px 12px 8px;
}

.mock-profile {
  align-items: center;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
  padding: 11px;
}

.mock-profile.is-selected {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.mock-radio {
  border: 2px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  height: 13px;
  width: 13px;
}

.mock-profile.is-selected .mock-radio {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.mock-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.mock-line {
  background: var(--color-border);
  border-radius: 4px;
  height: 7px;
}

.mock-line--wide {
  width: 78%;
}

.mock-line--short {
  width: 52%;
}

.mock-phone__foot {
  display: grid;
  padding: 6px 0 18px;
  place-items: center;
}

.mock-connect {
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: var(--shadow-button);
  color: var(--color-white);
  display: grid;
  height: 52px;
  place-items: center;
  width: 52px;
}

.mock-connect svg {
  height: 22px;
  width: 22px;
}

.hero-copy {
  align-self: center;
  min-width: 0;
  padding-bottom: 14px;
  position: relative;
  z-index: 5;
}

.hero-kicker {
  align-items: center;
  color: var(--color-accent-bright);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: .22em;
  margin-bottom: 18px;
}

.hero-kicker::before {
  background: var(--color-accent-bright);
  border-radius: 2px;
  content: "";
  height: 2px;
  width: 26px;
}

.hero-copy h1 {
  color: var(--color-white);
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: 1.28;
  margin-bottom: 0;
}

.hero-title-line {
  display: block;
}

.hero-highlight {
  color: var(--color-accent-bright);
  font-style: normal;
}

.hero-subtitle {
  color: var(--color-white-82);
  font-size: 16.5px;
  line-height: 1.85;
  margin-top: 20px;
  max-width: 34em;
}

.hero-subtitle strong {
  color: var(--color-white);
}

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

.platform-row {
  margin-top: 34px;
}

.platform-row__label {
  color: var(--color-white-62);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  margin-bottom: 12px;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.platform-chip {
  align-items: center;
  background: var(--color-white-14);
  border: 1px solid var(--color-white-30);
  border-radius: var(--radius-pill);
  color: var(--color-white-82);
  display: inline-flex;
  font-size: 13.5px;
  gap: 8px;
  padding: 9px 17px;
  text-decoration: none;
}

.platform-chip:hover {
  border-color: var(--color-white-82);
  color: var(--color-white);
}

.platform-chip svg {
  flex-shrink: 0;
  height: 15px;
  width: 15px;
}

.hero-next-edge {
  background: var(--color-panel);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  height: 74px;
}

.token-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.token-swatch {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.token-swatch__color {
  height: 90px;
}

.token-swatch__body {
  background: var(--color-panel);
  color: var(--color-text);
  padding: 14px;
}

.token-swatch__body code {
  font-size: 11px;
}

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

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

.swatch-panel-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-warning {
  background: var(--color-warning);
}

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

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

@media (max-width: 1100px) {
  .preview-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-row: 1;
    padding-top: 44px;
  }

  .hero-stage {
    height: 560px;
  }
}

@media (max-width: 700px) {
  .hero-stage {
    height: 455px;
  }

  .mock-window {
    left: 2%;
    top: 70px;
    width: 88%;
  }

  .mock-window__body {
    grid-template-columns: 118px 1fr;
  }

  .mock-window__side {
    padding-inline: 6px;
  }

  .mock-window__side li {
    font-size: 11px;
    padding: 7px;
  }

  .mock-window__main {
    padding: 12px;
  }

  .setting-row {
    padding: 8px 0;
  }

  .setting-row__sub {
    display: none;
  }

  .mock-phone {
    right: 1%;
    top: 236px;
    width: 155px;
  }

  .hero-curve--one {
    height: 590px;
    width: 590px;
  }

  .hero-curve--two {
    height: 470px;
    width: 470px;
  }

  .hero-curve--three {
    height: 360px;
    width: 360px;
  }

  .hero-deco--pink {
    height: 150px;
    left: -85px;
    width: 150px;
  }

  .hero-deco--fan {
    height: 90px;
    right: -30px;
    width: 90px;
  }

  .end-download-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .mock-window,
  .mock-phone {
    transform: none;
  }

  .platform-chips {
    flex-direction: row;
  }

  .platform-chip {
    flex: 0 1 auto;
    padding-inline: 12px;
  }

  .tab-list {
    border-radius: var(--radius-medium);
  }

  .download-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dl-fab {
    bottom: 16px;
    right: 16px;
  }

  .article-card:hover {
    transform: none;
  }
}

@media (max-width: 430px) {
  .hero-stage {
    height: 400px;
  }

  .mock-window {
    width: 96%;
  }

  .mock-window__body {
    grid-template-columns: 92px 1fr;
  }

  .mock-window__side li:nth-child(-n+2),
  .setting-row:nth-of-type(n+4) {
    display: none;
  }

  .mock-phone {
    top: 218px;
    width: 138px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}