.home-hero {
  min-height: calc(100svh - var(--header-height));
  padding-top: 28px;
  padding-bottom: 28px;
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  gap: 58px;
}

.home-hero .hero-copy {
  max-width: 610px;
}

.home-hero .hero-title {
  max-width: 590px;
  margin-bottom: 0;
}

.hero-cta-row {
  margin-top: 24px;
  margin-bottom: 22px;
}

.home-hero .gear-rows {
  margin-top: 20px;
  padding-top: 18px;
}

.home-hero .gear-line {
  gap: 14px;
}

.home-hero .platform-list,
.home-hero .flag-list {
  gap: 9px 14px;
}

.home-hero .platform-mark,
.home-hero .flag-mark {
  font-size: 11.5px;
}

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

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

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

.home-device {
  perspective: 1500px;
}

.home-app-card {
  position: relative;
  max-width: 570px;
}

.home-app-card::before {
  position: absolute;
  right: 22px;
  bottom: -10px;
  left: 22px;
  z-index: -1;
  height: 22px;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--color-bg);
  content: '';
}

.client-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
}

.client-status div {
  display: grid;
  gap: 4px;
}

.client-status strong {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
}

.client-caption {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.client-seal {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent-deep);
  border-radius: var(--radius-round);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.route-console {
  position: relative;
  height: 236px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.route-console::before,
.route-console::after {
  position: absolute;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  content: '';
}

.route-console::before {
  top: 50%;
  left: 18%;
  width: 210px;
  height: 210px;
  transform: translateY(-50%);
}

.route-console::after {
  top: 50%;
  left: 33%;
  width: 128px;
  height: 128px;
  transform: translateY(-50%);
}

.route-console-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.32;
}

.route-origin {
  position: absolute;
  top: 50%;
  left: 30%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  transform: translate(-50%, -50%);
}

.route-origin-dot,
.route-station i {
  display: block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  box-shadow: 0 0 9px var(--color-accent-glow);
}

.route-line {
  position: absolute;
  z-index: 2;
  height: 1px;
  background: var(--color-accent-deep);
  transform-origin: left center;
}

.route-line::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  content: '';
}

.route-line-one {
  top: 50%;
  left: 30%;
  width: 46%;
  transform: rotate(-27deg);
}

.route-line-two {
  top: 50%;
  left: 30%;
  width: 51%;
  transform: rotate(4deg);
}

.route-line-three {
  top: 50%;
  left: 30%;
  width: 41%;
  transform: rotate(31deg);
}

.route-station {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.route-station-sin {
  top: 24%;
  right: 13%;
}

.route-station-hkg {
  top: 51%;
  right: 8%;
}

.route-station-tyo {
  right: 19%;
  bottom: 17%;
}

.device-edge {
  height: 8px;
  margin: 0 36px -8px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-panel-raised);
}

.section-divider {
  border-top: 1px solid var(--color-border);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 56px;
}

.split-heading > p {
  margin-bottom: 10px;
}

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

.log-browser {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--edge-highlight);
}

.log-index {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-panel);
}

.log-tab {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
}

.log-tab:last-child {
  border-bottom: 0;
}

.log-tab::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  background: transparent;
  content: '';
}

.log-tab:hover,
.log-tab.is-active {
  background: var(--color-panel-raised);
  color: var(--color-text);
}

.log-tab.is-active::before {
  background: var(--color-accent);
}

.log-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.log-name {
  font-size: 14px;
  font-weight: 600;
}

.log-detail {
  min-height: 480px;
  padding: 34px 38px;
}

.log-panel {
  max-width: 780px;
}

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

.log-status {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.log-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
}

.log-panel p,
.log-panel li {
  font-size: 15.5px;
  line-height: 1.86;
}

.log-panel ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  list-style: none;
}

.log-panel li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-muted);
}

.log-panel li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  content: '';
}

.route-guidance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.route-step {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--color-accent-deep);
  border-radius: var(--radius-round);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.route-guidance h3 {
  font-size: 18px;
}

.route-guidance p {
  margin-bottom: 0;
  font-size: 13.5px;
}

.server-block {
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.server-block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 20px;
}

.server-block-head h3,
.server-block-head p {
  margin-bottom: 0;
}

.server-block-head > p {
  font-size: 12.5px;
}

.server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 52px;
}

.srv-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto minmax(70px, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel-raised);
}

.srv-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-round);
  background: var(--color-success);
  animation: server-pulse 2.8s ease-in-out infinite;
}

.srv-flag {
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}

.srv-name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-type {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-ms,
.srv-bw {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

@keyframes server-pulse {
  50% {
    opacity: 0.42;
    transform: scale(0.78);
  }
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.text-link:hover {
  color: var(--color-accent);
}

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

.comparison-ledger {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.ledger-intro {
  padding: 32px;
  border-right: 1px solid var(--color-border);
  background: var(--color-panel-raised);
}

.ledger-code {
  display: block;
  margin-bottom: 36px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ledger-intro h3 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
}

.ledger-intro p {
  margin-bottom: 0;
}

.ledger-list {
  margin: 0;
}

.ledger-list > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--color-border);
}

.ledger-list > div:last-child {
  border-bottom: 0;
}

.ledger-list dt {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ledger-list dd {
  display: grid;
  gap: 3px;
  margin: 0;
}

.ledger-list strong {
  color: var(--color-text);
  font-size: 14px;
}

.ledger-list span {
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.decision-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.decision-note {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.decision-note > span {
  display: block;
  margin-bottom: 24px;
  color: var(--color-accent);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.decision-note h3 {
  font-size: 19px;
}

.decision-note p {
  margin-bottom: 0;
  font-size: 13.5px;
}

.plan-audience {
  min-height: 116px;
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
}

.traffic-pack-note h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
}

.traffic-pack-note p:last-child {
  max-width: 850px;
  margin-bottom: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 72px;
}

.faq-intro {
  position: sticky;
  top: var(--toc-offset);
}

.faq-intro h2 {
  font-size: clamp(32px, 3.5vw, 44px);
}

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

.home-article-grid .article-card {
  min-height: 300px;
}

.home-article-grid .article-title {
  font-size: 22px;
}

.article-all-link {
  margin-top: 30px;
}

.closing-section {
  border-top: 1px solid var(--color-border);
}

.home-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
  box-shadow: var(--edge-highlight);
}

.home-promo h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.home-promo p:last-child {
  max-width: 740px;
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .home-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero .hero-copy {
    max-width: 760px;
  }

  .home-device {
    max-width: 700px;
  }

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

@media (max-width: 980px) {
  .split-heading,
  .server-block-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .route-guidance {
    grid-template-columns: minmax(0, 1fr);
  }

  .comparison-ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger-intro {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 820px) {
  .log-browser {
    display: block;
    overflow: visible;
  }

  .log-index {
    border-right: 0;
  }

  .log-tab {
    min-height: 62px;
    border-bottom: 1px solid var(--color-border);
  }

  .log-tab:last-of-type {
    border-bottom: 1px solid var(--color-border);
  }

  .log-detail {
    min-height: 0;
    padding: 0;
  }

  .log-panel {
    max-width: none;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
  }

  .log-status {
    margin-bottom: 24px;
  }

  .server-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .decision-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .traffic-pack-note,
  .home-promo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .home-hero .hero-grid {
    gap: 44px;
  }

  .home-hero .hero-copy-text {
    font-size: 14px;
  }

  .home-hero .gear-rows {
    margin-top: 18px;
  }

  .home-hero .platform-list,
  .home-hero .flag-list {
    gap: 10px 15px;
  }

  .home-device {
    width: 100%;
  }

  .home-app-card {
    width: 100%;
  }

  .client-status {
    padding: 14px;
  }

  .client-status strong {
    font-size: 13px;
  }

  .client-seal {
    width: 38px;
    height: 38px;
  }

  .route-console {
    height: 190px;
  }

  .route-console::before {
    left: 9%;
    width: 170px;
    height: 170px;
  }

  .route-console::after {
    left: 24%;
    width: 100px;
    height: 100px;
  }

  .route-origin {
    left: 25%;
  }

  .route-line-one,
  .route-line-two,
  .route-line-three {
    left: 25%;
  }

  .route-line-one {
    width: 51%;
  }

  .route-line-two {
    width: 58%;
  }

  .route-line-three {
    width: 48%;
  }

  .route-station-sin {
    right: 8%;
  }

  .route-station-hkg {
    right: 3%;
  }

  .route-station-tyo {
    right: 12%;
  }

  .app-setting {
    padding: 11px 12px;
  }

  .setting-value {
    font-size: 12.5px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .log-panel {
    padding: 20px;
  }

  .log-panel p,
  .log-panel li {
    font-size: 14px;
  }

  .route-guidance article,
  .server-block,
  .decision-note {
    padding: 20px;
  }

  .srv-row {
    grid-template-columns: auto auto minmax(55px, 1fr) auto auto;
  }

  .srv-type {
    display: none;
  }

  .ledger-intro {
    padding: 24px;
  }

  .ledger-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 18px 20px;
  }

  .plan-audience {
    min-height: 0;
  }

  .traffic-pack-note,
  .home-promo {
    padding: 24px;
  }

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

@media (max-width: 390px) {
  .chrome-title {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .route-station span {
    font-size: 8px;
  }

  .srv-bw {
    display: none;
  }

  .srv-row {
    grid-template-columns: auto auto minmax(55px, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srv-dot {
    animation: none;
  }
}