:root {
  --home-hero-space: 38px;
  --home-poster-min-height: 430px;
  --home-panel-gap: 22px;
  --home-flag-red: #D84A57;
  --home-flag-blue: #234A8A;
  --home-flag-white: var(--color-white);
  --home-flag-cut: var(--color-panel-raised);
  --home-poster-number: color-mix(in srgb, var(--color-text) 7%, transparent);
  --home-poster-grid: color-mix(in srgb, var(--color-border) 45%, transparent);
  --home-poster-glow: color-mix(in srgb, var(--color-accent) 32%, transparent);
}

.home-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: var(--home-hero-space);
  padding-bottom: 28px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 32%),
    linear-gradient(112deg, var(--color-bg) 0 52%, color-mix(in srgb, var(--color-panel) 78%, var(--color-bg)) 52% 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-poster-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-poster-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  opacity: 0.34;
  pointer-events: none;
}

.hero-home-wrap {
  position: relative;
  z-index: 1;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-copy h1 {
  max-width: 650px;
  margin-top: 18px;
  margin-bottom: 20px;
  font-size: clamp(52px, 5.2vw, 72px);
}

.home-hero-copy .hero-actions {
  margin-top: 0;
  margin-bottom: 20px;
}

.home-hero-copy .hero-description {
  max-width: 39em;
}

.home-hero-copy .trust-list {
  margin-top: 18px;
}

.latitude-poster {
  position: relative;
  min-width: 0;
  min-height: var(--home-poster-min-height);
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 48%),
    var(--color-panel-raised);
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
}

.latitude-poster::before {
  position: absolute;
  top: -32%;
  right: -18%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--color-accent-pink) 36%, transparent);
  border-radius: var(--radius-pill);
  content: "";
}

.latitude-poster::after {
  position: absolute;
  right: -20%;
  bottom: -48%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 80px var(--home-poster-glow);
  content: "";
}

.poster-coordinate,
.poster-label {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  color: var(--color-accent-pink);
  letter-spacing: 0.1em;
}

.poster-coordinate {
  top: 24px;
  left: 24px;
  padding: 7px 13px;
  font-size: 12px;
}

.poster-label {
  right: 24px;
  bottom: 22px;
  padding: 6px 12px;
  font-size: 10px;
}

.poster-forty {
  position: absolute;
  z-index: 0;
  top: -42px;
  right: -10px;
  color: var(--home-poster-number);
  font-family: var(--font-display);
  font-size: clamp(230px, 25vw, 340px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
}

.poster-map {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 94%;
  transform: translate(-50%, -50%);
}

.poster-grid-line {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
  opacity: 0.3;
}

.poster-orbit {
  fill: none;
  stroke: url("#home-route-gradient");
  stroke-linecap: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--color-accent));
}

.poster-orbit-echo {
  stroke-dasharray: 2 10;
  stroke-width: 1;
  opacity: 0.42;
  filter: none;
}

.poster-node-halo {
  fill: color-mix(in srgb, var(--color-accent) 18%, transparent);
  stroke: var(--color-accent-pink);
  stroke-width: 1.5;
}

.poster-node {
  fill: var(--color-text);
}

.poster-city {
  fill: var(--color-text);
  font-family: var(--font-body);
  font-size: 12px;
}

.hero-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px 34px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}

.hero-support-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.hero-platforms,
.hero-flags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-platforms li,
.hero-flags li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.hero-platforms svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.hero-flags svg {
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
  border-radius: 4px;
}

.linux-cut {
  fill: var(--home-flag-cut);
}

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

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

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

.flag-white-stroke {
  fill: none;
  stroke: var(--home-flag-white);
  stroke-width: 5;
}

.flag-red-thin-stroke {
  fill: none;
  stroke: var(--home-flag-red);
  stroke-width: 1.6;
}

.flag-cross-wide {
  stroke-width: 7;
}

.flag-red-stroke {
  fill: none;
  stroke: var(--home-flag-red);
  stroke-width: 3.2;
}

.home-fact-band {
  border-block: 1px solid var(--color-border);
  background: var(--color-panel-raised);
}

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

.home-fact-grid span {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-align: center;
}

.home-fact-grid span:last-child {
  border-right: 0;
}

.home-fact-grid strong {
  color: var(--color-accent-pink);
}

.feature-panel-stack {
  min-width: 0;
}

.feature-panel:not(.is-active) {
  display: none;
}

.feature-detail h3 {
  margin-top: 20px;
}

.feature-detail p {
  max-width: 52em;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.9;
}

.diagram-line,
.diagram-branch,
.diagram-dash,
.diagram-ring,
.diagram-arrow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-line {
  stroke-width: 2;
}

.diagram-branch {
  stroke: var(--color-accent-pink);
  stroke-width: 2;
}

.diagram-dash {
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
}

.diagram-node {
  fill: var(--color-panel-raised);
  stroke: var(--color-accent-pink);
  stroke-width: 2;
}

.diagram-box {
  fill: color-mix(in srgb, var(--color-accent) 8%, transparent);
  stroke: currentColor;
  stroke-width: 1.5;
}

.diagram-shield {
  fill: color-mix(in srgb, var(--color-accent) 12%, transparent);
  stroke: var(--color-accent-pink);
  stroke-width: 2;
}

.diagram-play {
  fill: var(--color-accent-pink);
}

.diagram-ring,
.diagram-arrow {
  stroke-width: 2;
}

.home-feature-mobile {
  display: none;
}

.selection-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 38px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 45%),
    var(--color-panel);
}

.selection-note h3 {
  font-size: 23px;
}

.selection-note p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.85;
}

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

.route-guidance article {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

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

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

.section-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 30px;
  color: var(--color-accent-pink);
  font-weight: 700;
}

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

.platform-card .btn-secondary {
  width: 100%;
  min-height: 42px;
  padding-inline: 14px;
  font-size: 13px;
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 30px;
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--color-accent) 11%, transparent), transparent 50%),
    var(--color-panel);
}

.traffic-pack-note h3 {
  margin-top: 16px;
}

.traffic-pack-note p {
  color: var(--color-text-muted);
}

.upgrade-note {
  padding-left: 24px;
  border-left: 1px dashed var(--color-accent);
}

.faq-layout {
  max-width: 980px;
}

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

.article-card {
  min-height: 340px;
}

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

@media (max-width: 1120px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(370px, 1.1fr);
    gap: 34px;
  }

  .hero-support {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .home-hero {
    padding-top: 58px;
    padding-bottom: 44px;
    background:
      radial-gradient(circle at 80% 48%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 36%),
      var(--color-bg);
  }

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

  .latitude-poster {
    min-height: 350px;
  }

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

  .home-fact-grid span:nth-child(2) {
    border-right: 0;
  }

  .home-fact-grid span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

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

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

  .upgrade-note {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px dashed var(--color-accent);
    border-left: 0;
  }
}

@media (max-width: 768px) {
  .home-hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 40px);
  }

  .poster-coordinate,
  .poster-label,
  .poster-city {
    display: none;
  }

  .home-feature-desktop {
    display: none;
  }

  .home-feature-mobile {
    display: grid;
    gap: 12px;
  }

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

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

  .article-card {
    min-height: 0;
  }
}

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

  .home-hero-copy .hero-description {
    font-size: 15px;
    line-height: 1.72;
  }

  .latitude-poster {
    min-height: 250px;
    border-radius: var(--radius-lg);
  }

  .poster-forty {
    top: -18px;
    font-size: 190px;
  }

  .poster-map {
    width: 112%;
  }

  .hero-support-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

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

  .home-fact-grid span {
    min-height: 58px;
    padding: 8px;
    font-size: 12px;
  }

  .selection-note,
  .route-guidance article,
  .traffic-pack-note {
    padding: 22px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 390px) {
  .hero-platforms li,
  .hero-flags li {
    font-size: 11px;
  }

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

  .home-fact-grid span {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .home-fact-grid span:last-child {
    border-bottom: 0;
  }
}