.tab-shell {
  max-width: 100%;
}

.tab-list {
  display: inline-flex;
  max-width: 100%;
  gap: 5px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  -webkit-overflow-scrolling: touch;
}

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

.tab-list [role="tab"]:hover {
  background: var(--color-panel);
  color: var(--color-ink);
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  background: var(--color-accent);
  color: var(--color-canvas);
}

.tab-panel {
  margin-top: 24px;
}

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

.toc-tabs {
  position: sticky;
  z-index: 45;
  top: 10px;
  display: flex;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: var(--shadow-panel);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

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

.toc-tabs a:hover {
  background: var(--color-panel);
  color: var(--color-ink);
}

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

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

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 17px 52px 17px 20px;
  color: var(--color-ink);
  font-weight: 750;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

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

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

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

.plan-card.is-featured {
  border-color: var(--color-accent);
  box-shadow: 0 18px 40px var(--color-accent-shadow);
}

.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-canvas);
  font-size: 12px;
  font-weight: 800;
}

.plan-period {
  margin-bottom: 7px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.plan-name {
  margin-bottom: 20px;
  font-size: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}

.plan-price strong {
  color: var(--color-ink);
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

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

.plan-features li {
  position: relative;
  padding-left: 22px;
}

.plan-features li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--color-success);
  content: "✓";
  font-weight: 800;
}

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

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

.data-table,
.server-table,
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--color-canvas);
}

.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-line);
  color: var(--color-ink);
  text-align: left;
  vertical-align: middle;
}

.data-table th,
.server-table th,
.compare-table th {
  background: var(--color-panel-strong);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even),
.server-table tbody tr:nth-child(even),
.compare-table tbody tr:nth-child(even) {
  background: var(--color-panel);
}

.data-table tbody tr:hover,
.server-table tbody tr:hover,
.compare-table tbody tr:hover {
  background: var(--color-accent-soft);
}

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

.server-region td {
  background: var(--color-ink);
  color: var(--color-canvas);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.table-country {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.flag-mark {
  width: 25px;
  height: 17px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  background: var(--color-canvas);
}

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

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

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 196px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.platform-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

.platform-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--color-panel-strong);
  color: var(--color-ink);
}

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

.platform-name {
  margin-bottom: 18px;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 800;
}

.platform-card .btn {
  width: 100%;
  margin-top: auto;
  padding-inline: 15px;
  font-size: 14px;
}

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

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

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

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

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

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

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

.callout {
  position: relative;
  padding: 20px 22px 20px 54px;
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-ink);
}

.callout::before {
  position: absolute;
  top: 19px;
  left: 20px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-canvas);
  content: "i";
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.callout-success {
  border-left-color: var(--color-success);
  background: var(--color-success-soft);
}

.callout-success::before {
  background: var(--color-success);
  content: "✓";
}

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

.callout-warning::before {
  background: var(--color-warning);
  content: "!";
}

.end-promo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-ink);
  color: var(--color-canvas);
}

.end-promo::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-pill);
  content: "";
}

.end-promo-copy,
.end-promo-actions {
  position: relative;
  z-index: 1;
}

.end-promo h2,
.end-promo h3 {
  color: var(--color-canvas);
}

.end-promo p {
  color: var(--color-panel-strong);
}

.end-promo .btn-primary {
  background: var(--color-canvas);
  color: var(--color-accent-dark);
  box-shadow: none;
}

.end-promo .btn-primary:hover {
  background: var(--color-panel-strong);
}

.float-cta {
  position: fixed;
  z-index: 65;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 13px 23px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-canvas);
  box-shadow: var(--shadow-float);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.float-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.float-cta svg {
  flex: 0 0 auto;
}

.feature-browser {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}

.feature-index {
  display: grid;
  align-content: start;
  gap: 7px;
}

.feature-index button {
  display: grid;
  grid-template-columns: 34px 1fr;
  min-height: 54px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-muted);
  text-align: left;
}

.feature-index button[aria-selected="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-ink);
}

.feature-number,
.feature-keyline {
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-detail {
  min-height: 280px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  box-shadow: var(--shadow-panel);
}

.feature-keyline {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  color: var(--color-accent);
}

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

.swatch {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

.swatch-color {
  height: 78px;
  border-bottom: 1px solid var(--color-line);
}

.swatch-info {
  padding: 12px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.swatch-canvas { background: var(--color-canvas); }
.swatch-panel { background: var(--color-panel); }
.swatch-panel-strong { background: var(--color-panel-strong); }
.swatch-line { background: var(--color-line); }
.swatch-accent { background: var(--color-accent); }
.swatch-accent-dark { background: var(--color-accent-dark); }
.swatch-ink { background: var(--color-ink); }
.swatch-muted { background: var(--color-muted); }
.swatch-success { background: var(--color-success); }
.swatch-warning { background: var(--color-warning); }
.swatch-error { background: var(--color-error); }
.swatch-glow { background: var(--color-glow); }

.hero {
  position: relative;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 552px) minmax(440px, 1fr);
  min-height: 772px;
  align-items: center;
  gap: 44px;
  padding-top: 26px;
  padding-bottom: 34px;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero-title {
  margin-top: 22px;
  margin-bottom: 0;
  font-size: clamp(52px, 5vw, 62px);
  line-height: 1.13;
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.hero-actions {
  margin-top: 30px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 24px;
  color: var(--color-muted);
  font-size: 13px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  flex: 0 0 auto;
  color: var(--color-success);
}

.trust-separator {
  color: var(--color-line);
}

.hero-device {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: 8px;
  overflow-x: clip;
}

.hero-device::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 56%;
  width: 700px;
  height: 700px;
  border-radius: var(--radius-pill);
  background: radial-gradient(closest-side, var(--color-glow), transparent 72%);
  content: "";
  transform: translate(-50%, -50%);
}

.cabinet-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 548px);
  filter: drop-shadow(0 26px 50px var(--color-shadow)) drop-shadow(0 4px 12px var(--color-shadow-soft));
}

.cabinet-body {
  fill: var(--color-canvas);
  stroke: var(--color-ink);
  stroke-opacity: 0.5;
}

.cabinet-slot {
  fill: var(--color-panel-strong);
  stroke: var(--color-line);
}

.cabinet-drawer,
.cabinet-card,
.cabinet-label {
  fill: var(--color-canvas);
  stroke: var(--color-line);
}

.cabinet-accent-label {
  fill: var(--color-accent-soft);
  stroke: var(--color-accent);
}

.cabinet-handle {
  fill: var(--color-panel-strong);
  stroke: var(--color-muted);
}

.cabinet-strip {
  fill: var(--color-panel);
  stroke: var(--color-line);
}

.cabinet-rule {
  fill: var(--color-line);
}

.cabinet-rule-accent,
.svg-accent {
  fill: var(--color-accent);
}

.svg-ink {
  fill: var(--color-ink);
}

.svg-muted {
  fill: var(--color-muted);
}

.svg-canvas {
  fill: var(--color-canvas);
}

.svg-flag-red {
  fill: var(--color-flag-red);
}

.svg-flag-blue {
  fill: var(--color-flag-blue);
}

.svg-korea-blue {
  fill: var(--color-korea-blue);
}

.svg-line {
  fill: none;
  stroke: var(--color-line);
}

.cabinet-text {
  fill: var(--color-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.cabinet-code {
  fill: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.cabinet-card-text {
  fill: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.cabinet-card-value {
  fill: var(--color-accent);
}

.cabinet-platform-text {
  fill: var(--color-muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
}

.client-mock {
  position: relative;
  width: min(100%, 520px);
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  box-shadow: var(--shadow-device);
  transform: rotate(0.35deg);
}

.client-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
}

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

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

.client-title {
  margin-left: 7px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.client-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 300px;
}

.client-sidebar {
  padding: 18px 14px 18px 0;
  border-right: 1px solid var(--color-line);
}

.client-nav-item {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 12px;
}

.client-nav-item.is-active {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-weight: 750;
}

.client-main {
  padding: 24px;
}

.client-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-success);
  font-size: 12px;
  font-weight: 750;
}

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

.client-route small {
  color: var(--color-muted);
}

.client-route strong {
  display: block;
  margin-top: 4px;
}

.client-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 13px;
}

.switch-shape {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-success);
}

.switch-shape::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  content: "";
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-device {
    justify-content: center;
    padding-right: 0;
  }

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

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(28px, 9.2vw, 40px);
  }

  .feature-browser {
    grid-template-columns: 1fr;
  }

  .feature-index {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .feature-index button {
    min-width: 150px;
  }

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

  .client-mock {
    transform: none;
  }
}

@media (max-width: 640px) {
  .plan-grid,
  .article-grid,
  .platform-grid,
  .palette-grid {
    grid-template-columns: 1fr;
  }

  .tab-list {
    display: flex;
    width: 100%;
  }

  .hero-grid {
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .hero-device::before {
    width: 125vw;
    height: 125vw;
  }

  .trust-separator {
    display: none;
  }

  .trust-item {
    width: 100%;
  }

  .float-cta {
    right: 16px;
    bottom: 16px;
    min-height: 46px;
    padding: 12px 18px;
  }

  .client-body {
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .client-nav-item {
    white-space: nowrap;
  }

  .client-main {
    padding: 18px 4px 4px;
  }

  .toc-tabs {
    border-radius: var(--radius-sm);
  }
}