:root {
  --color-home-hero-glow: rgb(16 179 199 / 24%);
  --color-home-sky-glow: rgb(46 155 255 / 18%);
  --color-home-grid: rgb(169 180 200 / 10%);
  --color-home-orbit: rgb(169 180 200 / 26%);
  --color-home-orbit-soft: rgb(16 179 199 / 32%);
  --color-home-panel: rgb(255 255 255 / 5%);
  --color-home-panel-strong: rgb(255 255 255 / 8%);
  --color-home-panel-line: rgb(255 255 255 / 12%);
  --color-home-copy-shadow: rgb(0 0 0 / 24%);
  --color-home-active: rgb(16 179 199 / 9%);
  --color-home-record-line: rgb(16 179 199 / 20%);
  --color-home-warning-line: rgb(242 174 28 / 58%);
  --color-home-flag-ink: #101623;
  --color-home-orbit-shadow: rgb(16 179 199 / 38%);
  --color-home-route-point: rgb(242 174 28 / 18%);
}

.home-hero {
  padding-top: 26px;
  overflow-x: clip;
}

.home-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  min-height: 720px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 73% 40%, var(--color-home-hero-glow), transparent 29%),
    radial-gradient(circle at 92% 10%, var(--color-home-sky-glow), transparent 30%),
    var(--color-hero);
  box-shadow: var(--shadow-card);
}

.home-hero__stage::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-hero-dot) 1px, transparent 1px);
  background-size: 25px 25px;
  content: "";
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 58px 24px 54px 60px;
  color: var(--color-hero-text);
}

.home-hero__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-hero-line);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  background: var(--color-hero-glass);
  color: var(--color-hero-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.home-hero__badge i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning-glow);
}

.home-hero h1 {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--color-hero-text);
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 24px var(--color-home-copy-shadow);
}

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

.home-hero .btn-secondary {
  border-color: var(--color-hero-line);
  background: var(--color-home-panel);
  color: var(--color-hero-text);
}

.home-hero .btn-secondary:hover {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.home-hero__description {
  max-width: 570px;
  margin: 23px 0 0;
  color: var(--color-hero-muted);
  font-size: 16px;
  line-height: 1.85;
}

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

.home-hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 21px;
  padding-top: 20px;
  border-top: 1px solid var(--color-hero-line);
}

.home-hero__trust span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--color-hero-muted);
  font-size: 12px;
}

.home-hero__trust svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-hero__visual {
  position: relative;
  z-index: 2;
  min-height: 720px;
  overflow: hidden;
  padding: 34px 24px 30px;
}

.atmosphere-grid {
  position: absolute;
  right: -12%;
  bottom: -20%;
  width: 118%;
  height: 70%;
  opacity: .76;
  background-image:
    linear-gradient(var(--color-home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-home-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(430px) rotateX(62deg);
  transform-origin: bottom;
}

.atmosphere-glow {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-home-hero-glow), transparent 65%);
}

.route-orbit {
  position: absolute;
  top: 122px;
  left: 50%;
  border: 1px solid var(--color-home-orbit);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
}

.route-orbit--outer {
  width: 370px;
  height: 370px;
  box-shadow: inset 0 0 50px var(--color-home-orbit-soft);
}

.route-orbit--inner {
  top: 174px;
  width: 266px;
  height: 266px;
  border-style: dashed;
  border-color: var(--color-home-orbit-soft);
}

.route-core {
  position: absolute;
  top: 259px;
  left: 50%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid var(--color-home-panel-line);
  border-radius: var(--radius-pill);
  background: var(--color-home-panel-strong);
  box-shadow: 0 0 46px var(--color-home-orbit-shadow);
  transform: translateX(-50%);
}

.route-core img {
  width: 48px;
  height: 48px;
}

.route-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--color-warning);
  border-radius: var(--radius-pill);
  background: var(--color-hero);
  box-shadow: 0 0 0 8px var(--color-home-route-point);
}

.route-point--one {
  top: 180px;
  left: 23%;
}

.route-point--two {
  top: 222px;
  right: 18%;
}

.route-point--three {
  top: 421px;
  left: 29%;
}

.hero-platform-panel,
.hero-route-panel {
  position: absolute;
  z-index: 4;
  right: 24px;
  left: 24px;
  border: 1px solid var(--color-home-panel-line);
  border-radius: var(--radius-md);
  background: var(--color-home-panel);
  box-shadow: 0 14px 34px var(--color-home-copy-shadow);
  backdrop-filter: blur(12px);
}

.hero-platform-panel {
  top: 34px;
  padding: 14px 15px;
}

.hero-route-panel {
  bottom: 76px;
  padding: 14px 15px;
}

.hero-panel-label {
  margin-bottom: 10px;
  color: var(--color-hero-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.hero-platforms,
.hero-flags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.hero-platform,
.hero-flag {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: var(--color-hero-muted);
}

.hero-platform svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.hero-platform svg circle,
.hero-platform svg ellipse {
  fill: var(--color-hero);
}

.hero-platform span,
.hero-flag span {
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.hero-flag svg {
  width: 34px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 0 1px var(--color-home-panel-line);
}

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

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

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

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

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

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

.hero-visual-note {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 28px;
  left: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-visual-note span {
  padding: 3px 9px;
  border: 1px solid var(--color-hero-line);
  border-radius: var(--radius-pill);
  color: var(--color-hero-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.home-feature-browser {
  align-items: start;
  box-shadow: var(--shadow-drop);
}

.home-feature-browser .feature-index {
  position: sticky;
  top: var(--toc-offset);
}

.home-feature-detail {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.feature-record {
  padding: 25px;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-page);
  scroll-margin-top: var(--toc-offset);
  transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}

.feature-record.is-current {
  border-left-color: var(--color-warning);
  background: var(--color-home-active);
  box-shadow: 0 3px 14px var(--color-shadow-soft);
}

.feature-record__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 11px;
}

.feature-record h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.feature-record p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.home-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.home-method-grid article {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--color-hero);
  color: var(--color-hero-muted);
}

.home-method-grid h3 {
  color: var(--color-hero-text);
  font-size: 22px;
}

.home-method-grid p:last-child {
  margin-bottom: 0;
}

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

.route-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--color-page);
  box-shadow: 0 2px 8px var(--color-shadow-soft);
}

.route-guidance h3 {
  margin-bottom: 9px;
  font-size: 23px;
}

.route-guidance p {
  color: var(--color-muted);
}

.route-guidance p:last-child {
  margin-bottom: 0;
}

.platform-card svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.platform-card svg circle,
.platform-card svg ellipse {
  fill: var(--color-panel);
}

.platform-card .btn-small {
  width: 100%;
}

.client-notes,
.pricing-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.client-notes article,
.pricing-rules article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.client-notes h3,
.pricing-rules h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.client-notes p,
.pricing-rules p {
  color: var(--color-muted);
}

.client-notes p:last-child,
.pricing-rules p:last-child {
  margin-bottom: 0;
}

.price-card__note {
  min-height: 110px;
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 13px;
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--color-hero);
  color: var(--color-hero-muted);
  box-shadow: var(--shadow-drop);
}

.traffic-pack-note h3 {
  margin-bottom: 9px;
  color: var(--color-hero-text);
  font-size: 25px;
}

.traffic-pack-note p:last-child {
  margin-bottom: 0;
}

.traffic-pack-note .btn-dark {
  background: var(--color-page);
  color: var(--color-ink);
}

.traffic-pack-note .btn-dark:hover {
  background: var(--color-warning);
  color: var(--color-ink);
}

.pricing-rules article {
  background: var(--color-page);
}

.selection-ledger {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-drop);
}

.selection-ledger article {
  display: grid;
  grid-template-columns: minmax(130px, .35fr) minmax(0, 1.65fr);
  gap: 28px;
  padding: 26px;
  border-bottom: 1px solid var(--color-line);
}

.selection-ledger article:last-child {
  border-bottom: 0;
}

.selection-ledger__key {
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.selection-ledger h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.selection-ledger p {
  margin-bottom: 0;
  color: var(--color-muted);
}

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

.home-article-grid .article-card h3 {
  font-size: 18px;
  line-height: 1.45;
}

.section-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  font-weight: 700;
}

.home-closing {
  padding-bottom: 0;
}

.home-promo {
  margin-top: 0;
}

.home-promo .section-kicker {
  color: var(--color-accent);
}

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

  .home-hero__copy {
    padding: 50px 44px 18px;
  }

  .home-hero__visual {
    min-height: 630px;
  }

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

@media (max-width: 900px) {
  .home-method-grid,
  .client-notes,
  .pricing-rules {
    grid-template-columns: 1fr;
  }

  .route-guidance,
  .traffic-pack-note {
    grid-template-columns: 1fr;
  }

  .route-guidance .btn-dark,
  .traffic-pack-note .btn-dark {
    justify-self: start;
  }

  .price-card__note {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-top: 16px;
  }

  .home-hero__stage {
    min-height: 0;
    border-radius: var(--radius-md);
  }

  .home-hero__copy {
    padding: 34px 22px 16px;
  }

  .home-hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero__actions a {
    width: 100%;
  }

  .home-hero__trust {
    grid-template-columns: 1fr;
  }

  .home-hero__visual {
    min-height: 570px;
    padding-inline: 18px;
  }

  .route-orbit {
    top: 112px;
  }

  .route-orbit--outer {
    width: 320px;
    height: 320px;
  }

  .route-orbit--inner {
    top: 158px;
    width: 228px;
    height: 228px;
  }

  .route-core {
    top: 230px;
  }

  .route-point--one {
    top: 168px;
    left: 18%;
  }

  .route-point--two {
    top: 210px;
    right: 13%;
  }

  .route-point--three {
    top: 382px;
  }

  .hero-platform-panel,
  .hero-route-panel,
  .hero-visual-note {
    right: 18px;
    left: 18px;
  }

  .hero-route-panel {
    bottom: 66px;
  }

  .hero-visual-note {
    bottom: 22px;
  }

  .home-feature-browser .feature-index {
    position: static;
  }

  .home-feature-detail {
    padding: 16px;
  }

  .feature-record {
    padding: 21px;
  }

  .selection-ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .home-hero__visual {
    min-height: 530px;
  }

  .hero-platform-panel,
  .hero-route-panel {
    padding: 12px;
  }

  .hero-platforms,
  .hero-flags {
    gap: 5px;
  }

  .hero-platform svg {
    width: 21px;
    height: 21px;
  }

  .hero-flag svg {
    width: 31px;
    height: 22px;
  }

  .route-orbit--outer {
    width: 280px;
    height: 280px;
  }

  .route-orbit--inner {
    top: 151px;
    width: 202px;
    height: 202px;
  }

  .route-core {
    top: 214px;
    width: 78px;
    height: 78px;
  }

  .route-core img {
    width: 39px;
    height: 39px;
  }

  .route-point--three {
    top: 352px;
  }

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

  .traffic-pack-note,
  .route-guidance,
  .home-method-grid article,
  .client-notes article,
  .pricing-rules article,
  .selection-ledger article {
    padding: 21px;
  }

  .home-promo {
    padding: 24px;
  }
}

@media (max-width: 390px) {
  .hero-platform-panel,
  .hero-route-panel,
  .hero-visual-note {
    right: 12px;
    left: 12px;
  }

  .hero-platform-panel {
    top: 25px;
  }

  .hero-platform span,
  .hero-flag span {
    font-size: 8px;
  }

  .hero-flag svg {
    width: 28px;
    height: 20px;
  }

  .route-orbit--outer {
    width: 250px;
    height: 250px;
  }

  .route-orbit--inner {
    top: 148px;
    width: 180px;
    height: 180px;
  }

  .route-core {
    top: 203px;
  }

  .route-point--one {
    left: 10%;
  }

  .route-point--two {
    right: 7%;
  }
}