.home-hero {
  position: relative;
  padding-top: 32px;
  padding-bottom: 52px;
  overflow-x: clip;
}

.home-hero::before {
  position: absolute;
  top: 18px;
  right: -150px;
  width: 680px;
  height: 680px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-panel-tint), transparent 68%);
  content: "";
  pointer-events: none;
}

.home-hero .hero-bento {
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.home-hero .hero-main {
  min-height: 680px;
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 22px;
}

.hero-kicker .kicker-dot,
.server-panel .status-dot {
  flex-shrink: 0;
}

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

.hero-lead {
  margin-top: 24px;
}

.hero-platforms,
.hero-routes {
  margin-top: 20px;
}

.hero-line-label {
  display: block;
  margin-bottom: 9px;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.06em;
}

.mini-flag {
  width: 27px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel);
}

.mini-flag svg {
  width: 100%;
  height: 100%;
}

.home-hero .hero-side {
  min-height: 680px;
  display: block;
}

.home-bento-visual {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1.25fr 0.75fr 0.8fr;
  gap: 14px;
}

.home-bento-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-float);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.home-bento-cell:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.home-bento-cell strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
}

.home-bento-cell > span:last-child {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.home-bento-label {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-bento-primary {
  position: relative;
  grid-row: 1 / 3;
  overflow: clip;
  background:
    radial-gradient(circle at 82% 18%, var(--color-accent-soft), transparent 36%),
    var(--color-panel);
}

.home-bento-primary strong {
  font-size: clamp(32px, 4vw, 48px);
}

.home-bento-refund {
  background: var(--color-panel-tint);
}

.home-bento-account {
  background: var(--color-panel-soft);
}

.home-bento-device {
  background: var(--color-accent-soft);
}

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

.home-route-map {
  position: absolute;
  top: 70px;
  right: 18px;
  left: 18px;
  width: calc(100% - 36px);
  color: var(--color-accent);
}

.home-route-path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
}

.home-route-path-soft {
  stroke: var(--color-cyan);
  stroke-dasharray: 7 8;
  stroke-width: 2;
}

.home-route-node {
  fill: var(--color-panel);
  stroke: var(--color-accent);
  stroke-width: 4;
}

.home-route-node-soft {
  fill: var(--color-cyan);
  stroke: var(--color-panel);
  stroke-width: 3;
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
}

.diagnostic-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.diagnostic-rail::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(var(--color-accent), var(--color-cyan));
  content: "";
}

.diagnostic-rail span {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  width: 17px;
  height: 17px;
  display: block;
  margin-top: 32px;
  border: 4px solid var(--color-panel-tint);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-success-ring);
}

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

.diagnostic-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-float);
}

.diagnostic-card:nth-child(even) {
  background: var(--color-panel-soft);
}

.diagnostic-wide {
  grid-column: span 3;
}

.diagnostic-narrow {
  grid-column: span 2;
}

.diagnostic-index {
  min-width: 48px;
  height: fit-content;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.diagnostic-card h3 {
  font-size: clamp(22px, 2.2vw, 27px);
}

.diagnostic-card p {
  margin-bottom: 0;
  line-height: 1.82;
}

.fact-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1px;
  margin-top: 28px;
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-border);
  box-shadow: var(--shadow-float);
}

.fact-board > div {
  padding: 28px;
  background: var(--color-panel);
}

.fact-board > div:nth-child(2) {
  background: var(--color-panel-soft);
}

.fact-board span {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 680;
}

.fact-board strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 21px;
}

.fact-board p {
  margin-bottom: 0;
  font-size: 14px;
}

.selection-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.selection-note h3 {
  margin-top: 16px;
  margin-bottom: 0;
}

.selection-note p {
  margin-bottom: 0;
}

.route-guidance {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1.4fr) auto;
  align-items: start;
  gap: 28px;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-soft);
}

.route-guidance h3,
.route-guidance p {
  margin-bottom: 0;
}

.server-panel {
  margin-top: 34px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-float);
}

.server-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.server-panel-heading h3 {
  margin: 13px 0 0;
}

.server-panel-heading p {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 14px;
}

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

.srv-row {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel-soft);
}

.srv-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-ring);
}

.srv-flag {
  width: 27px;
  height: 19px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel);
}

.srv-flag img,
.srv-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srv-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 680;
}

.srv-type {
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 10px;
  font-weight: 680;
}

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

.traffic-pack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 5%, var(--color-accent-soft), transparent 30%),
    var(--color-panel-soft);
}

.traffic-pack-panel h3 {
  margin-top: 15px;
}

.traffic-pack-panel p {
  max-width: 780px;
  margin-bottom: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 58px;
}

.faq-layout .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  margin-bottom: 0;
}

.faq-layout .section-heading .button {
  margin-top: 26px;
}

.blog-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.blog-heading-row .section-heading {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .diagnostic-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-wide,
  .diagnostic-narrow {
    grid-column: span 1;
  }

  .server-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .home-hero .hero-main,
  .home-hero .hero-side,
  .home-bento-visual {
    min-height: auto;
  }

  .home-bento-visual {
    grid-template-rows: 270px 170px 170px;
  }

  .fact-board {
    grid-template-columns: 1fr;
  }

  .selection-note,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout .section-heading {
    position: static;
  }

  .route-guidance {
    grid-template-columns: 1fr;
  }
}

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

  .home-hero .hero-main {
    padding: 25px;
  }

  .home-bento-visual {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px auto auto;
  }

  .home-bento-primary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .diagnostic-layout {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
  }

  .diagnostic-modules {
    grid-template-columns: 1fr;
  }

  .diagnostic-card {
    grid-template-columns: 1fr;
  }

  .diagnostic-index {
    width: fit-content;
  }

  .selection-note {
    gap: 20px;
  }

  .server-panel-heading,
  .blog-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .traffic-pack-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero .hero-main {
    padding: 21px;
  }

  .home-bento-visual {
    grid-template-columns: 1fr;
    grid-template-rows: 220px repeat(4, auto);
  }

  .home-bento-primary {
    grid-column: auto;
  }

  .home-route-map {
    top: 48px;
  }

  .home-bento-cell {
    min-height: 130px;
    padding: 20px;
  }

  .diagnostic-layout {
    display: block;
  }

  .diagnostic-rail {
    display: none;
  }

  .diagnostic-card,
  .fact-board > div,
  .selection-note,
  .route-guidance,
  .traffic-pack-panel,
  .server-panel {
    padding: 20px;
  }

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

  .srv-type {
    display: none;
  }

  .srv-bw {
    grid-column: 3 / -1;
  }

  .blog-heading-row .button {
    width: 100%;
  }
}