/* PerpetualWorld Frontend
   Fully static, no external dependencies.
   Backgrounds/illustrations are self-drawn SVG/CSS assets. */

:root {
  --blue-900: #071a3b;
  --blue-800: #0b2558;
  --blue-700: #0d3f9c;
  --blue-600: #0f6cf2;
  --blue-500: #2f89ff;
  --blue-400: #66b7ff;
  --blue-300: #9bd4ff;
  --blue-200: #c9e9ff;
  --blue-100: #eaf6ff;
  --ice: #f7fbff;
  --white: #ffffff;
  --text: #16213d;
  --muted: #66769a;
  --border: rgba(49, 122, 216, 0.18);
  --shadow: 0 22px 70px rgba(20, 87, 174, 0.12);
  --shadow-soft: 0 12px 34px rgba(17, 82, 155, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 8%, rgba(95, 180, 255, .22), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(37, 130, 255, .18), transparent 30%),
    linear-gradient(180deg, #f2f9ff 0%, #ffffff 42%, #f7fbff 72%, #ffffff 100%);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, canvas { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.section { padding: 110px 0; position: relative; }
.section-tight { padding: 46px 0; position: relative; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600), #72d8ff);
  box-shadow: 0 0 16px rgba(47,137,255,.65);
}

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  height: 0;
  transition: transform .35s var(--ease);
}

.nav-shell {
  height: var(--header-h);
  width: min(calc(100% - 42px), 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 16px 0 24px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 40px rgba(13, 81, 160, .13);
  backdrop-filter: saturate(160%) blur(18px);
}

.site-header.scrolled .nav-shell {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 52px rgba(13, 81, 160, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  font-size: 20px;
}
.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 8px 12px rgba(15,108,242,.18));
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 28px 16px 24px;
  font-weight: 650;
  color: #23345b;
  font-size: 14px;
  opacity: .9;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 17px;
  height: 3px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  transition: transform .25s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--blue-600); opacity: 1; }

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-900);
  border-radius: 8px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 780;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform .25s var(--ease),
    box-shadow .25s var(--ease),
    background .25s var(--ease),
    border-color .25s var(--ease),
    color .25s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transition: transform .7s var(--ease);
}

.btn:hover::before { transform: translateX(115%) skewX(-18deg); }

.btn:hover { transform: translateY(-2px); }

.btn-sm {
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
}
.btn-lg {
  height: 56px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0f6cf2 0%, #1f88ff 58%, #0f6cf2 100%);
  box-shadow: 0 12px 26px rgba(15,108,242,.28);
}
.btn-primary:hover { box-shadow: 0 18px 38px rgba(15,108,242,.34); }

.btn-ghost {
  color: var(--blue-600);
  background: rgba(255,255,255,.72);
  border-color: rgba(15,108,242,.36);
  box-shadow: 0 10px 24px rgba(14, 91, 191, .08);
}
.btn-ghost:hover {
  border-color: rgba(15,108,242,.68);
  background: rgba(244,250,255,.95);
}

/* Hero */
.hero {
  min-height: 820px;
  padding: 180px 0 76px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 850px;
  background:
    url("../img/hero-bg.svg") center top / cover no-repeat,
    radial-gradient(circle at 68% 26%, rgba(101, 188, 255, .34), transparent 32%),
    linear-gradient(180deg, #edf8ff 0%, #ffffff 100%);
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.88), transparent 32%),
    linear-gradient(90deg, rgba(255,255,255,.78) 0%, transparent 45%, rgba(255,255,255,.2) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
}
.eyebrow.centered { justify-content: center; }

.hero h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(46px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -0.055em;
}
.hero h1 strong {
  display: inline-block;
  font-weight: 900;
}

.hero-sub {
  max-width: 620px;
  margin: 28px 0 0;
  color: #385174;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.mini-chart {
  width: 18px;
  height: 14px;
  background:
    linear-gradient(180deg, transparent 70%, currentColor 0) 0 0 / 4px 100% no-repeat,
    linear-gradient(180deg, transparent 45%, currentColor 0) 7px 0 / 4px 100% no-repeat,
    linear-gradient(180deg, transparent 25%, currentColor 0) 14px 0 / 4px 100% no-repeat;
  opacity: .75;
}

.hero-trust {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4a6390;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(63,145,238,.18);
  border-radius: 99px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
}
.hero-trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 5px rgba(47,137,255,.12);
}

.hero-visual {
  min-height: 550px;
  position: relative;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -3% 4% 0;
  background:
    radial-gradient(circle at 60% 52%, rgba(18, 108, 242, .18), transparent 36%),
    radial-gradient(circle at 45% 70%, rgba(108, 210, 255, .2), transparent 34%);
  filter: blur(6px);
  z-index: -1;
}
.island {
  width: 100%;
  transform-origin: 50% 60%;
  animation: islandFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 36px 42px rgba(26, 86, 156, .18));
}

.status-card {
  position: absolute;
  min-width: 136px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(122,178,244,.32);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 42px rgba(24, 86, 164, .12);
  animation: cardFloat 5.6s ease-in-out infinite;
}
.status-card small,
.status-card span {
  display: block;
  color: #697b9d;
  font-weight: 700;
  font-size: 12px;
}
.status-card b {
  display: block;
  margin: 5px 0 2px;
  color: var(--blue-900);
  font-size: 30px;
  letter-spacing: -.04em;
}
.card-node { left: 4%; top: 8%; }
.card-latency { right: 4%; top: 12%; animation-delay: -.9s; }
.card-player { right: 5%; bottom: 18%; animation-delay: -1.7s; }

/* Feature cards */
.quick-features {
  margin-top: -72px;
  z-index: 4;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 28px 26px 30px;
  min-height: 178px;
  border: 1px solid rgba(67, 145, 236, .18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 23px;
  height: 2px;
  background:
    radial-gradient(circle, rgba(64,148,245,.34) 0 3px, transparent 3px) left center / 48px 2px repeat-x;
  opacity: .65;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47,137,255,.35);
  box-shadow: 0 24px 54px rgba(17, 82, 155, .16);
}
.feature-card h3 {
  margin: 18px 0 10px;
  color: var(--blue-900);
  font-size: 20px;
}
.feature-card p {
  margin: 0;
  color: #5e7194;
  line-height: 1.65;
  font-size: 14px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fcff, #d9efff);
  border: 1px solid rgba(62,151,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 12px 24px rgba(38,126,231,.14);
  position: relative;
}
.feature-icon::before,
.feature-icon::after { content: ""; position: absolute; }

.globe-icon::before {
  inset: 14px;
  border: 3px solid var(--blue-500);
  border-radius: 50%;
}
.globe-icon::after {
  width: 36px; height: 20px; left: 10px; top: 18px;
  border-top: 2px solid var(--blue-500);
  border-bottom: 2px solid var(--blue-500);
}
.shield-icon::before {
  left: 17px; top: 12px; width: 22px; height: 26px;
  background: linear-gradient(145deg, var(--blue-400), var(--blue-600));
  clip-path: polygon(50% 0, 88% 14%, 80% 72%, 50% 100%, 20% 72%, 12% 14%);
}
.shield-icon::after {
  left: 25px; top: 20px; width: 7px; height: 14px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}
.monitor-icon::before {
  left: 13px; top: 14px; width: 30px; height: 23px;
  border: 3px solid var(--blue-500);
  border-radius: 5px;
}
.monitor-icon::after {
  left: 19px; top: 24px; width: 18px; height: 11px;
  border-top: 3px solid var(--blue-600);
  border-right: 3px solid var(--blue-600);
  transform: skewX(-24deg);
}
.community-icon::before {
  left: 22px; top: 13px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--blue-500);
  box-shadow: -12px 10px 0 rgba(47,137,255,.6), 12px 10px 0 rgba(47,137,255,.6);
}
.community-icon::after {
  left: 12px; top: 34px; width: 32px; height: 12px;
  border-radius: 14px 14px 5px 5px; background: rgba(47,137,255,.86);
}

/* Section heading */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}
.section-heading h2,
.resources-head h2,
.start-panel h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.section-heading p:not(.eyebrow) {
  margin: 18px auto 0;
  color: #5d7197;
  font-size: 16px;
  line-height: 1.8;
}

/* Network */
.network {
  padding-top: 82px;
  overflow: hidden;
}
.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../img/section-network-bg.svg") center 20% / cover no-repeat,
    linear-gradient(180deg, #fff 0%, #eef8ff 45%, #fff 100%);
  z-index: -2;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.metric {
  min-height: 116px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-right: 1px solid rgba(49,122,216,.16);
}
.metric:last-child { border-right: 0; }
.metric i {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fdff, #d8efff);
  border: 1px solid rgba(47,137,255,.24);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.metric b {
  color: var(--blue-600);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}
.metric span { color: #455e85; font-weight: 750; font-size: 14px; }

.metric i::after,
.metric i::before { content: ""; position: absolute; }
.pin::before {
  left: 15px; top: 10px; width: 16px; height: 16px;
  border: 3px solid var(--blue-500); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.pin::after {
  left: 20px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500);
}
.guard::before {
  left: 14px; top: 10px; width: 18px; height: 23px;
  background: var(--blue-500);
  clip-path: polygon(50% 0, 90% 15%, 80% 70%, 50% 100%, 20% 70%, 10% 15%);
}
.clock::before {
  inset: 12px; border: 3px solid var(--blue-500); border-radius: 50%;
}
.clock::after {
  left: 23px; top: 17px; width: 10px; height: 10px;
  border-left: 3px solid var(--blue-500); border-bottom: 3px solid var(--blue-500);
}
.bolt::before {
  left: 18px; top: 10px; width: 16px; height: 27px; background: var(--blue-500);
  clip-path: polygon(55% 0, 100% 0, 62% 45%, 100% 45%, 25% 100%, 45% 56%, 8% 56%);
}

.globe-shell {
  position: relative;
  margin-top: 18px;
  height: 520px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 80%, rgba(42, 138, 255, .24), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(230,246,255,.75));
}
#networkGlobe {
  width: 100%;
  height: 100%;
}

.globe-note {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 99px;
  color: #466086;
  font-weight: 750;
  font-size: 13px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(66,150,244,.18);
  backdrop-filter: blur(10px);
}
.globe-note span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 6px rgba(47,137,255,.12);
}

.live-status-panel {
  position: absolute;
  right: 28px;
  top: 26px;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(47,137,255,.16);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(19, 88, 163, .12);
}
.live-status-panel div {
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,249,255,.7);
}
.live-status-panel strong {
  display: block;
  color: var(--blue-600);
  font-size: 20px;
}
.live-status-panel span {
  display: block;
  margin-top: 2px;
  color: #6a7c98;
  font-size: 12px;
  font-weight: 700;
}

/* Trust */
.trust {
  padding-top: 82px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.tabbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
}
.tab {
  border: 0;
  background: transparent;
  position: relative;
  padding: 12px 26px;
  color: #7a89a6;
  font-weight: 850;
  cursor: pointer;
}
.tab::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 4px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform .24s var(--ease);
}
.tab:hover,
.tab.active { color: var(--blue-600); }
.tab.active::after { transform: scaleX(1); }

.trust-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trust-copy,
.quote-card {
  border: 1px solid rgba(51,134,230,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.83);
  box-shadow: var(--shadow-soft);
}
.trust-copy {
  padding: 40px;
}
.trust-copy h3 {
  margin: 0 0 16px;
  color: var(--blue-900);
  font-size: 30px;
  letter-spacing: -0.035em;
}
.trust-copy p {
  margin: 0;
  color: #5d7197;
  line-height: 1.8;
}
.trust-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.quote-card {
  position: relative;
  padding: 40px 40px 34px;
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(47,137,255,.16), transparent 65%);
}
.quote-mark {
  color: var(--blue-600);
  font-size: 60px;
  line-height: .6;
  font-weight: 900;
}
.quote-card p {
  margin: 12px 0 28px;
  color: #344d73;
  line-height: 1.85;
  font-weight: 620;
}
.quote-card footer {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  width: 50px; height: 50px; border-radius: 15px;
  background:
    linear-gradient(#7cc3ff, #a9d9ff 45%, transparent 45%) center/100% 100%,
    linear-gradient(90deg, #734b32 0 20%, #e7ad73 20% 80%, #734b32 80%) center/100% 100%;
  border: 3px solid rgba(255,255,255,.86);
  box-shadow: 0 10px 22px rgba(26,86,156,.16);
}
.quote-card footer b {
  display: block; color: var(--blue-900);
}
.quote-card footer small {
  display: block; margin-top: 2px; color: #7b8aa5; font-weight: 700;
}
.verified {
  margin-left: auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-600);
  position: relative;
}
.verified::after {
  content: "";
  position: absolute;
  left: 8px; top: 5px;
  width: 6px; height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.logo-marquee {
  margin-top: 20px;
  border: 1px solid rgba(51,134,230,.16);
  background: rgba(255,255,255,.74);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.logo-track {
  display: flex;
  gap: 42px;
  align-items: center;
  width: max-content;
  padding: 20px 28px;
  animation: marquee 28s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #536680;
  font-size: 22px;
  font-weight: 850;
  filter: grayscale(.3);
  white-space: nowrap;
}
.logo-track i {
  width: 24px; height: 24px; display: inline-block;
  opacity: .88;
}
.logo-diamond { background: linear-gradient(145deg, #43556d, #a9b7c9); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.logo-spark { background: radial-gradient(circle, #6f829d 0 30%, transparent 31%), conic-gradient(from 45deg, transparent 0 12%, #7f91aa 12% 18%, transparent 18% 31%, #7f91aa 31% 37%, transparent 37%); }
.logo-hex { background: #74869e; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.logo-cube { background: linear-gradient(135deg, #74869e 0 50%, #b2bfd0 50%); clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); }
.logo-edge { background: linear-gradient(145deg, #52657d, #b5c1d1); clip-path: polygon(50% 0, 95% 100%, 5% 100%); }
.logo-box { background: linear-gradient(135deg, #60738c, #b8c4d3); clip-path: polygon(12% 10%, 88% 10%, 88% 88%, 12% 88%); }

/* Resources */
.resources {
  background: #fff;
  padding-top: 82px;
}
.resources-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.resources-head .eyebrow { margin-bottom: 10px; }
.help-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(47,137,255,.22);
  border-radius: 99px;
  background: rgba(244,251,255,.86);
  padding: 12px 18px;
  color: var(--blue-600);
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}
.help-chip span {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-600);
  position: relative;
}
.help-chip span::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px;
  width: 10px; height: 8px;
  border: 2px solid #fff;
  border-radius: 7px;
}
.help-chip span::after {
  content: "";
  position: absolute;
  left: 15px; top: 14px;
  border: 4px solid transparent;
  border-left-color: #fff;
  transform: rotate(30deg);
}
.resources-tabs { justify-content: center; margin-bottom: 22px; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.resource-card {
  border: 1px solid rgba(51,134,230,.17);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
  transition: transform .3s var(--ease), opacity .24s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.resource-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47,137,255,.34);
  box-shadow: 0 24px 54px rgba(17, 82, 155, .16);
}
.resource-card.hidden {
  display: none;
}
.resource-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #e8f5ff;
}
.resource-card div {
  padding: 22px;
}
.resource-card small {
  color: var(--blue-600);
  font-weight: 850;
}
.resource-card h3 {
  min-height: 56px;
  margin: 10px 0 10px;
  color: var(--blue-900);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.resource-card p {
  min-height: 58px;
  margin: 0;
  color: #5c7194;
  line-height: 1.65;
}
.resource-card a {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-weight: 850;
}

/* Start CTA */
.start {
  padding-bottom: 70px;
}
.start-panel {
  position: relative;
  overflow: hidden;
  padding: 44px 40px 46px;
  border-radius: 28px;
  background:
    url("../img/cta-bg.svg") center / cover no-repeat,
    linear-gradient(145deg, rgba(230,246,255,.92), rgba(255,255,255,.92));
  border: 1px solid rgba(51,134,230,.16);
  box-shadow: var(--shadow);
}
.start-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(47,137,255,.18), transparent 30%),
    radial-gradient(circle at 78% 14%, rgba(107,215,255,.18), transparent 32%);
  pointer-events: none;
}
.start-panel h2 {
  position: relative;
  text-align: center;
  margin-bottom: 34px;
}
.start-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.start-grid article {
  padding: 10px 32px;
  border-right: 1px solid rgba(49,122,216,.16);
}
.start-grid article:last-child { border-right: 0; }
.start-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(47,137,255,.2);
  box-shadow: 0 14px 30px rgba(15,108,242,.12);
  position: relative;
}
.start-icon::before,
.start-icon::after { content: ""; position: absolute; }
.start-cube::before {
  inset: 17px;
  background: var(--blue-500);
  clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
}
.start-headset::before {
  left: 18px; top: 17px; width: 28px; height: 28px;
  border: 4px solid var(--blue-500); border-bottom-color: transparent; border-radius: 50%;
}
.start-headset::after {
  left: 17px; top: 31px; width: 30px; height: 14px;
  background:
    linear-gradient(var(--blue-500),var(--blue-500)) left / 6px 14px no-repeat,
    linear-gradient(var(--blue-500),var(--blue-500)) right / 6px 14px no-repeat;
}
.start-user::before {
  left: 23px; top: 16px; width: 18px; height: 18px;
  background: var(--blue-500); border-radius: 50%;
}
.start-user::after {
  left: 17px; top: 38px; width: 30px; height: 16px;
  background: var(--blue-500); border-radius: 18px 18px 6px 6px;
}
.start-grid h3 {
  margin: 18px 0 10px;
  color: var(--blue-900);
  font-size: 20px;
}
.start-grid p {
  margin: 0;
  color: #5c7194;
  line-height: 1.7;
}
.start-grid a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--blue-600);
  font-weight: 850;
}
.start-grid a span { transition: transform .2s var(--ease); }
.start-grid a:hover span { transform: translateX(4px); }

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 20% -20%, rgba(34,123,255,.25), transparent 32%),
    linear-gradient(180deg, #061b42, #03112b);
  color: rgba(255,255,255,.82);
  padding: 54px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  gap: 38px;
}
.brand-footer { color: #fff; }
.footer-brand p {
  color: rgba(255,255,255,.7);
  margin: 14px 0 24px;
  line-height: 1.7;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  transition: background .24s var(--ease), transform .24s var(--ease);
}
.socials a:hover { background: rgba(47,137,255,.32); transform: translateY(-2px); }
.socials a::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,.82);
}
.footer-col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
}
.footer-col a {
  display: block;
  margin: 11px 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.lang {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.74);
  font-weight: 700;
  cursor: pointer;
}

/* Floating widgets */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(47,137,255,.2);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
  color: var(--blue-600);
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  z-index: 900;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.help-widget {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 950;
}
.help-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(47,137,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--blue-600);
  box-shadow: var(--shadow-soft);
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.help-toggle span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-600);
  position: relative;
}
.help-toggle span::after {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  width: 10px; height: 7px;
  border: 2px solid #fff;
  border-radius: 7px;
}
.help-card {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 300px;
  border: 1px solid rgba(47,137,255,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 28px 60px rgba(13, 81, 160, .2);
  padding: 18px;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.help-widget.open .help-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.help-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--blue-900);
}
.help-card-head button {
  border: 0; background: transparent; font-size: 25px; cursor: pointer; color: #6a7c98;
}
.help-card p {
  margin: 12px 0;
  color: #607396;
  line-height: 1.6;
}
.help-card a {
  display: block;
  padding: 11px 12px;
  margin-top: 8px;
  border-radius: 12px;
  background: #f0f8ff;
  color: var(--blue-600);
  font-weight: 800;
}

/* Reveal and animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@keyframes islandFloat {
  0%,100% { transform: translateY(0) rotate(.2deg); }
  50% { transform: translateY(-18px) rotate(-.2deg); }
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-shell {
    grid-template-columns: 210px 1fr auto;
    gap: 12px;
  }
  .nav-link { padding-left: 10px; padding-right: 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 830px; margin: 0 auto; }
  .feature-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid rgba(49,122,216,.16); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header { top: 8px; }
  .nav-shell {
    grid-template-columns: 1fr auto;
    width: min(calc(100% - 24px), 1240px);
    padding: 0 12px 0 16px;
  }
  .nav-toggle { display: block; justify-self: end; }
  .nav-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 86px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 60px rgba(13,81,160,.18);
    border: 1px solid rgba(47,137,255,.16);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  body.nav-open .nav-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 17px 14px;
    border-radius: 12px;
  }
  .nav-link::after { display: none; }
  .nav-link.active { background: #f0f8ff; }
  .nav-actions { display: none; }
  .hero { padding-top: 130px; min-height: auto; }
  .hero h1 { font-size: clamp(40px, 12vw, 62px); }
  .hero-sub { font-size: 16px; }
  .status-card { transform: scale(.9); }
  .card-node { left: 0; top: 6%; }
  .card-latency { right: 0; top: 8%; }
  .card-player { right: 0; bottom: 8%; }
  .trust-panel, .start-grid { grid-template-columns: 1fr; }
  .start-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(49,122,216,.16);
    padding: 24px 8px;
  }
  .start-grid article:last-child { border-bottom: 0; }
  .resources-head { align-items: flex-start; flex-direction: column; }
  .globe-shell { height: 430px; }
  .live-status-panel {
    position: static;
    margin: -20px 16px 16px;
    justify-content: center;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 620px) {
  .section { padding: 82px 0; }
  .section-tight { padding: 34px 0; }
  .brand span { font-size: 18px; }
  .feature-grid,
  .resource-grid,
  .metric-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(49,122,216,.16);
  }
  .metric:last-child { border-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 390px; }
  .island { transform: scale(1.08); }
  .status-card { min-width: 116px; padding: 12px; }
  .status-card b { font-size: 22px; }
  .card-node { top: -2%; }
  .card-latency { top: 2%; }
  .card-player { bottom: 0; }
  .quick-features { margin-top: -28px; }
  .feature-card { min-height: 150px; }
  .tab { padding: 12px 14px; }
  .trust-copy, .quote-card, .start-panel { padding: 26px 22px; }
  .logo-track span { font-size: 18px; }
  .globe-note {
    width: calc(100% - 32px);
    justify-content: center;
    text-align: center;
  }
  .live-status-panel { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .help-widget { right: 14px; bottom: 74px; }
  .help-card { width: min(300px, calc(100vw - 28px)); }
}

/* =========================
   V2: Mega menu + live API + partner upload slots + improved globe/mobile
   ========================= */

.nav-shell {
  grid-template-columns: 230px minmax(0, 1fr) auto;
}

.nav-menu {
  position: static;
}

.nav-item {
  position: relative;
}

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

.has-mega > .nav-link::before {
  content: "";
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform .22s var(--ease);
}

.has-mega:hover > .nav-link::before,
.has-mega:focus-within > .nav-link::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.mega-panel {
  position: fixed;
  left: 50%;
  top: calc(12px + var(--header-h) - 1px);
  transform: translateX(-50%) translateY(16px);
  width: min(1120px, calc(100vw - 40px));
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(47,137,255,.15);
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 72px rgba(9, 43, 100, .18);
  backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  overflow: hidden;
  z-index: 1200;
}

.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel,
.has-mega.open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-top {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  border-bottom: 1px solid rgba(47,137,255,.12);
}

.mega-top > a {
  min-height: 118px;
  padding: 24px 26px;
  border-right: 1px solid rgba(47,137,255,.12);
  display: grid;
  align-content: center;
  gap: 7px;
  transition: background .22s var(--ease);
}

.mega-top > a:last-child {
  border-right: 0;
}

.mega-top > a:hover,
.mega-main a:hover {
  background: #f3f9ff;
}

.mega-top b,
.mega-col h4,
.mega-side h4 {
  color: var(--blue-900);
}

.mega-top small {
  color: #647897;
  line-height: 1.55;
}

.mega-feature {
  display: grid !important;
  grid-template-columns: 74px 1fr;
  column-gap: 18px !important;
}

.mega-feature b,
.mega-feature small {
  grid-column: 2;
}

.mega-feature-icon {
  grid-row: 1 / span 2;
  width: 74px;
  height: 58px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 62% 38%, #fff 0 15px, transparent 16px),
    radial-gradient(circle at 40% 44%, #fff 0 13px, transparent 14px),
    radial-gradient(circle at 52% 34%, #fff 0 18px, transparent 19px),
    linear-gradient(135deg, #63c8ff, #0f6cf2);
  box-shadow: 0 12px 28px rgba(15,108,242,.18);
}

.mega-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 280px;
}

.mega-panel.compact .mega-main {
  border-top: 4px solid #eff7ff;
}

.mega-col {
  padding: 28px 30px 32px;
}

.mega-col h4 {
  margin: 0 0 14px;
  font-size: 15px;
}

.mega-col a {
  display: block;
  padding: 10px 0;
  color: #3f526f;
  font-weight: 670;
  border-radius: 10px;
}

.mega-side {
  padding: 28px 28px 32px;
  background: linear-gradient(180deg, #f6fbff, #edf7ff);
  border-left: 1px solid rgba(47,137,255,.12);
}

.mega-side p {
  margin: 12px 0 22px;
  color: #647897;
  line-height: 1.7;
}

.mega-side button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f6cf2, #2f89ff);
  color: #fff;
  font-weight: 850;
  padding: 15px 16px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15,108,242,.22);
}

.mega-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(47,137,255,.12);
}

.mega-bottom a {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  padding: 20px 26px;
  border-right: 1px solid rgba(47,137,255,.12);
}

.mega-bottom a:last-child {
  border-right: 0;
}

.mega-bottom b,
.mega-bottom small {
  grid-column: 2;
}

.mega-bottom small {
  color: #71819a;
}

.mini-round {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eaf7ff, #b9e3ff);
  border: 1px solid rgba(15,108,242,.2);
  position: relative;
}

.mini-round::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #0f6cf2;
}

/* Live API status section */
.live-section {
  padding-top: 88px;
  background:
    radial-gradient(circle at 16% 16%, rgba(47,137,255,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 55%, #ffffff 100%);
}

.api-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(47,137,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}

.api-source {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.api-source strong {
  color: var(--blue-900);
}

.api-source small {
  color: #7586a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-signal {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a7b4c4;
  box-shadow: 0 0 0 8px rgba(167,180,196,.14);
  flex: 0 0 auto;
}

.api-signal.ok {
  background: #18ba72;
  box-shadow: 0 0 0 8px rgba(24,186,114,.14);
}

.api-signal.warn,
.api-signal.loading {
  background: #f4ae2a;
  box-shadow: 0 0 0 8px rgba(244,174,42,.16);
}

.api-signal.error {
  background: #e94c4c;
  box-shadow: 0 0 0 8px rgba(233,76,76,.14);
}

.live-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.live-card {
  position: relative;
  min-height: 144px;
  padding: 24px 22px;
  border: 1px solid rgba(47,137,255,.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(47,137,255,.13), transparent 38%),
    rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.live-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e2f4ff, #fff);
  border: 1px solid rgba(47,137,255,.16);
  opacity: .82;
}

.live-card small,
.live-card span {
  display: block;
  color: #687c9c;
  font-weight: 760;
}

.live-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--blue-600);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

.live-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.dash-panel,
.instance-table-wrap {
  border: 1px solid rgba(47,137,255,.15);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
}

.dash-panel {
  padding: 24px;
}

.dash-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dash-title h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 22px;
  letter-spacing: -.025em;
}

.dash-title small {
  color: #71819a;
  font-weight: 700;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 34px;
  align-items: center;
  gap: 12px;
  color: #405575;
  font-size: 13px;
  font-weight: 760;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf6ff;
  overflow: hidden;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #67c8ff, #0f6cf2);
  transition: width .7s var(--ease);
}

.trend-panel canvas {
  width: 100%;
  height: 260px;
}

.instance-table-wrap {
  margin-top: 18px;
  padding: 24px;
}

.table-scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.instance-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #405575;
}

.instance-table th,
.instance-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(47,137,255,.12);
  text-align: left;
  white-space: nowrap;
}

.instance-table th {
  color: var(--blue-900);
  font-size: 13px;
  background: #f4faff;
}

.instance-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf8ff;
  color: #0f6cf2;
  font-weight: 850;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Improved globe display */
.globe-shell {
  height: 620px;
  background:
    radial-gradient(circle at 50% 60%, rgba(70, 161, 255, .18), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(220,242,255,.92));
}

#networkGlobe {
  min-height: 560px;
}

.live-status-panel {
  min-width: 312px;
}

/* Partner upload slots */
.partner-track {
  gap: 18px;
  padding: 18px;
}

.partner-slot {
  flex: 0 0 auto;
  width: 190px;
  height: 70px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(47,137,255,.14);
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}

.partner-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  filter: grayscale(.15);
  opacity: .86;
  transition: filter .24s var(--ease), opacity .24s var(--ease), transform .24s var(--ease);
}

.partner-slot:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
}

.partner-upload-note {
  margin: 12px auto 0;
  max-width: 900px;
  color: #647897;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.partner-upload-note code {
  color: var(--blue-600);
  background: #edf8ff;
  border: 1px solid rgba(47,137,255,.14);
  border-radius: 8px;
  padding: 2px 6px;
}

@media (max-width: 1100px) {
  .live-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-panel {
    width: min(1000px, calc(100vw - 24px));
  }
  .mega-main {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-side {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(47,137,255,.12);
  }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    overflow-y: auto;
    max-height: calc(100vh - 104px);
  }

  .nav-item {
    display: block;
  }

  .nav-item > .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .has-mega > .nav-link::before {
    display: inline-block;
  }

  .mega-panel {
    position: static;
    width: 100%;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    background: #f4faff;
    overflow: hidden;
    transition: max-height .32s var(--ease), margin .32s var(--ease);
    margin: 0;
  }

  .has-mega.open .mega-panel {
    max-height: 1200px;
    margin: 6px 0 10px;
  }

  .has-mega:hover .mega-panel,
  .has-mega:focus-within .mega-panel {
    transform: none;
  }

  .mega-top,
  .mega-main,
  .mega-bottom {
    grid-template-columns: 1fr;
  }

  .mega-top > a,
  .mega-col,
  .mega-bottom a,
  .mega-side {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(47,137,255,.1);
  }

  .mega-feature {
    grid-template-columns: 56px 1fr;
  }

  .mega-feature-icon {
    width: 56px;
    height: 44px;
  }

  .mega-col h4 {
    margin-top: 0;
  }

  .live-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-dashboard {
    grid-template-columns: 1fr;
  }

  .api-toolbar,
  .dash-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .globe-shell {
    height: 560px;
  }

  #networkGlobe {
    min-height: 500px;
  }
}

@media (max-width: 620px) {
  .live-card-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 92px 1fr 30px;
  }

  .partner-slot {
    width: 158px;
    height: 62px;
  }

  .globe-shell {
    height: 520px;
  }

  #networkGlobe {
    min-height: 460px;
  }

  .live-status-panel {
    min-width: 0;
  }
}

/* =========================
   V3 refinements: stable selectable mega menu, player-facing copy, no instance table
   ========================= */

/* Make the hover area continuous from nav bar to dropdown. */
.has-mega::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: calc(12px + var(--header-h) - 4px);
  height: 26px;
  display: none;
  z-index: 1199;
}
.has-mega.open::after,
.has-mega:hover::after,
.has-mega:focus-within::after {
  display: block;
}

.mega-panel {
  top: calc(12px + var(--header-h) + 8px);
  transform: translateX(-50%) translateY(8px);
}

.has-mega.open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  background: transparent;
}

.mega-panel.narrow {
  width: min(860px, calc(100vw - 40px));
}

.mega-main.link-focused {
  grid-template-columns: repeat(3, 1fr) 280px;
}

.mega-main.link-focused.two-col {
  grid-template-columns: repeat(2, 1fr) 280px;
}

.mega-link-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 16px;
  min-height: 146px;
  padding: 28px;
  border-right: 1px solid rgba(47,137,255,.12);
  color: inherit;
  background: rgba(255,255,255,.55);
  transition: background .22s var(--ease), transform .22s var(--ease);
}

.mega-link-card:hover {
  background: #f3f9ff;
  transform: translateY(-2px);
}

.mega-link-card b,
.mega-link-card small {
  grid-column: 2;
}

.mega-link-card b {
  align-self: end;
  color: var(--blue-900);
  font-size: 18px;
}

.mega-link-card small {
  color: #647897;
  line-height: 1.65;
}

.mega-card-icon {
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, #e8f6ff, #ffffff);
  border: 1px solid rgba(47,137,255,.18);
  box-shadow: 0 14px 28px rgba(15,108,242,.12);
  position: relative;
}

.mega-card-icon::before,
.mega-card-icon::after {
  content: "";
  position: absolute;
}

.mega-card-icon.monitor::before {
  left: 14px; top: 16px; width: 30px; height: 22px; border: 3px solid #0f6cf2; border-radius: 6px;
}
.mega-card-icon.monitor::after {
  left: 18px; top: 26px; width: 22px; height: 10px; border-top: 3px solid #0f6cf2; border-right: 3px solid #0f6cf2; transform: skewX(-22deg);
}
.mega-card-icon.infra::before {
  left: 16px; top: 12px; width: 26px; height: 34px; border-radius: 6px; background: linear-gradient(180deg,#67c8ff,#0f6cf2);
  box-shadow: 0 10px 0 rgba(15,108,242,.22);
}
.mega-card-icon.ai::before {
  inset: 15px; border-radius: 50%; border: 3px solid #0f6cf2;
}
.mega-card-icon.ai::after {
  left: 27px; top: 7px; width: 4px; height: 44px; background: #0f6cf2; box-shadow: -14px 14px 0 -1px #67c8ff, 14px 14px 0 -1px #67c8ff; transform: rotate(45deg);
}
.mega-card-icon.account::before {
  left: 21px; top: 13px; width: 17px; height: 17px; background:#0f6cf2; border-radius:50%;
}
.mega-card-icon.account::after {
  left: 15px; top: 36px; width: 29px; height: 15px; background:#0f6cf2; border-radius:18px 18px 6px 6px;
}
.mega-card-icon.shield::before {
  left: 17px; top: 12px; width: 24px; height: 31px; background:#0f6cf2; clip-path: polygon(50% 0, 90% 15%, 80% 72%, 50% 100%, 20% 72%, 10% 15%);
}
.mega-card-icon.shield::after {
  left: 26px; top: 21px; width: 7px; height: 14px; border-right:3px solid white; border-bottom:3px solid white; transform:rotate(45deg);
}
.mega-card-icon.support::before {
  left: 15px; top: 16px; width: 28px; height: 24px; border: 3px solid #0f6cf2; border-radius: 14px 14px 9px 9px;
}
.mega-card-icon.support::after {
  left: 39px; top: 29px; width: 7px; height: 13px; border-right: 3px solid #0f6cf2; border-bottom: 3px solid #0f6cf2; border-radius: 0 0 7px 0;
}
.mega-card-icon.docs::before {
  left: 17px; top: 12px; width: 25px; height: 34px; background:#0f6cf2; border-radius:5px; clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 0 100%);
}
.mega-card-icon.docs::after {
  left: 22px; top: 25px; width: 15px; height: 2px; background:white; box-shadow: 0 7px 0 white;
}
.mega-card-icon.cloud::before {
  left: 12px; top: 27px; width: 34px; height: 15px; background:#0f6cf2; border-radius: 18px;
}
.mega-card-icon.cloud::after {
  left: 18px; top: 16px; width: 24px; height: 24px; background:#0f6cf2; border-radius: 50%; box-shadow: -8px 9px 0 -3px #0f6cf2, 12px 10px 0 -5px #0f6cf2;
}
.mega-card-icon.open::before {
  left: 15px; top: 15px; width: 28px; height: 28px; border: 3px solid #0f6cf2; border-radius: 8px;
}
.mega-card-icon.open::after {
  left: 27px; top: 8px; width: 3px; height: 42px; background:#0f6cf2; transform: rotate(45deg);
}

/* Do not show the instance runtime table in public homepage. */
.instance-table-wrap {
  display: none !important;
}

.live-section .section-heading p:not(.eyebrow) {
  max-width: 820px;
}

/* The globe should be a clean visual; remove noisy top-left canvas badge via JS update. */
.globe-shell {
  border: 1px solid rgba(47,137,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), var(--shadow-soft);
}

@media (max-width: 1100px) {
  .mega-main.link-focused,
  .mega-main.link-focused.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .mega-main.link-focused .mega-side,
  .mega-main.link-focused.two-col .mega-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .has-mega::after,
  .mega-panel::before {
    display: none !important;
  }

  .has-mega.open .mega-panel {
    transform: none;
  }

  .mega-panel,
  .mega-panel.narrow {
    width: 100%;
  }

  .mega-main.link-focused,
  .mega-main.link-focused.two-col {
    grid-template-columns: 1fr;
  }

  .mega-link-card {
    grid-template-columns: 46px 1fr;
    min-height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(47,137,255,.1);
  }

  .mega-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    transform: scale(.78);
    transform-origin: top left;
  }

  .mega-link-card b {
    font-size: 16px;
  }
}


/* =========================
   V4 critical fixes
   - 内容默认可见，JS 成功后才启用入场动画
   - 修复下拉菜单鼠标移入消失、无法点击问题
   - 降低菜单层级冲突
   ========================= */

/* Fail-safe: even if JS fails, page content must be visible. */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* JS 启动后才进入 reveal 初始状态 */
body.anim-ready .reveal {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease) !important;
}

body.anim-ready .reveal.in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: none !important;
}

/* 禁止 V3 全屏透明桥接层吞鼠标事件，改由 JS 控制菜单打开/关闭。 */
.has-mega::after {
  display: none !important;
  pointer-events: none !important;
}

/* 下拉菜单仅靠 .open / :focus-within / :hover 显示，确保可点击。 */
.mega-panel {
  top: calc(12px + var(--header-h) + 8px) !important;
  z-index: 3000 !important;
  pointer-events: none;
}

.has-mega.open .mega-panel,
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* 面板上方加透明命中区，鼠标从菜单项移动到面板时不会断开。 */
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

/* 菜单卡片必须能被点击选中。 */
.mega-panel a,
.mega-panel button {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.mega-link-card {
  cursor: pointer;
  user-select: none;
}

/* 菜单 hover 效果更明显 */
.mega-link-card:hover b {
  color: var(--blue-600);
}

.mega-link-card:hover {
  box-shadow: inset 0 0 0 1px rgba(47,137,255,.16);
}

/* 让 header 在展开菜单时位于最上层 */
.site-header {
  z-index: 2600;
}

.nav-shell {
  overflow: visible;
}

.nav-menu {
  overflow: visible;
}

/* 移动端继续使用折叠菜单，面板不能 fixed。 */
@media (max-width: 860px) {
  body.anim-ready .nav-menu {
    opacity: 0;
  }

  body.nav-open.anim-ready .nav-menu {
    opacity: 1;
  }

  .mega-panel {
    z-index: auto !important;
    pointer-events: auto !important;
  }

  .mega-panel::before {
    display: none !important;
  }

  .has-mega.open .mega-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}


/* =========================
   V5: user-facing status, clean map, refined hero visual
   ========================= */

/* Hero visual: cleaner and smaller. */
.hero-visual {
  min-height: 500px;
}
.hero-visual .island {
  width: min(92%, 720px);
  margin: 0 auto;
  filter: drop-shadow(0 30px 42px rgba(24, 86, 164, .16));
}
.card-node { left: 2%; top: 12%; }
.card-latency { right: 2%; top: 18%; }
.card-player { right: 7%; bottom: 14%; }

/* API toolbar is only a quiet update strip; never expose backend/fallback wording. */
.api-toolbar {
  background: rgba(255,255,255,.72);
}
.api-source strong {
  font-size: 15px;
}
.api-source small {
  color: #7f90aa;
}
.api-signal.warn,
.api-signal.loading,
.api-signal.ok,
.api-signal.error {
  background: #18ba72;
  box-shadow: 0 0 0 8px rgba(24,186,114,.13);
}

/* Clean flat world map replacing the messy rotating globe. */
.globe-shell.map-shell {
  height: auto;
  min-height: 0;
  padding: 26px;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(circle at 50% 5%, rgba(47,137,255,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(230,246,255,.74));
}

.map-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(47,137,255,.14);
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 22px;
  overflow: hidden;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 76% 22%, rgba(47,137,255,.12), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(101,200,255,.12), transparent 28%);
  pointer-events: none;
}

.map-card > * {
  position: relative;
}

.map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.map-header h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 28px;
  letter-spacing: -.035em;
}

.map-header p {
  margin: 8px 0 0;
  color: #617494;
  line-height: 1.7;
}

.route-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #edf8ff;
  border: 1px solid rgba(47,137,255,.18);
  color: var(--blue-600);
  font-weight: 850;
  font-size: 13px;
}

.route-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18ba72;
  box-shadow: 0 0 0 6px rgba(24,186,114,.12);
}

.world-map {
  margin-top: 8px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(249,253,255,.92), rgba(233,247,255,.72));
  overflow: hidden;
}

.world-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.routes path {
  stroke-dasharray: 7 10;
  animation: routeFlow 9s linear infinite;
}

.map-nodes .node circle:first-child {
  fill: rgba(15,108,242,.14);
  filter: url(#nodeGlow);
}

.map-nodes .node circle:nth-child(2) {
  fill: #2f89ff;
  stroke: white;
  stroke-width: 2;
}

.map-nodes .node.primary circle:first-child {
  fill: rgba(15,108,242,.20);
}

.map-nodes .node.primary circle:nth-child(2) {
  fill: #0f6cf2;
}

.map-nodes text {
  font: 700 13px Inter, system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  fill: #1c3355;
  paint-order: stroke;
  stroke: rgba(255,255,255,.88);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #647897;
  font-size: 13px;
  font-weight: 760;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.map-legend .excellent { background: #18ba72; }
.map-legend .good { background: #2f89ff; }
.map-legend .normal { background: #f4b740; }

.clean-panel {
  position: absolute;
  right: 54px;
  top: 132px;
}

@keyframes routeFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -170; }
}

/* Public page wording polish */
.live-card small {
  color: #5d7194;
}

.live-card strong {
  color: var(--blue-600);
}

.dash-title small {
  color: #6f819b;
}

/* better mobile visual balance */
@media (max-width: 860px) {
  .hero-visual {
    min-height: 390px;
  }
  .hero-visual .island {
    width: min(100%, 620px);
  }
  .globe-shell.map-shell {
    padding: 16px;
  }
  .map-card {
    padding: 20px 16px 18px;
  }
  .map-header {
    flex-direction: column;
    gap: 12px;
  }
  .clean-panel {
    position: static;
    margin: 14px 0 0;
    width: 100%;
  }
  .map-nodes text {
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .card-node, .card-latency, .card-player {
    display: none;
  }
  .hero-visual {
    min-height: 300px;
  }
  .map-header h3 {
    font-size: 24px;
  }
  .world-map {
    overflow-x: auto;
  }
  .world-map svg {
    min-width: 760px;
  }
  .map-legend {
    gap: 14px;
  }
}


/* =========================
   V6 hero refresh
   - Apply light lighthouse-style homepage image
   - Improve copy rhythm and layout polish
   ========================= */

.hero {
  min-height: 790px;
}

.hero-bg {
  height: 860px;
  background:
    url("../img/hero-bg.svg") center top / cover no-repeat,
    radial-gradient(circle at 69% 22%, rgba(118, 201, 255, .30), transparent 30%),
    linear-gradient(180deg, #eef9ff 0%, #ffffff 100%);
}

.hero-copy {
  max-width: 600px;
}

.hero-copy h1 {
  letter-spacing: -.045em;
}

.hero-copy p {
  max-width: 590px;
  line-height: 1.9;
}

.hero-pills {
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hero-pills span {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(47,137,255,.12);
}

.hero-visual {
  min-height: 560px;
}

.hero-visual .island {
  width: min(100%, 820px);
  margin: 16px auto 0;
  filter: drop-shadow(0 28px 40px rgba(34, 116, 194, .12));
}

.card-node {
  left: -1%;
  top: 12%;
}
.card-latency {
  right: -2%;
  top: 18%;
}
.card-player {
  right: 6%;
  bottom: 12%;
}

.hero-card {
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(47,137,255,.14);
}

.hero-card small {
  color: #7184a0;
}

.section-heading p {
  line-height: 1.8;
}

.feature-card,
.resource-card,
.cta-card,
.quote-card,
.live-card {
  backdrop-filter: blur(12px);
}

.resource-card p,
.cta-card p,
.quote-card p,
.live-card p,
.feature-card p {
  line-height: 1.75;
}

.map-card {
  background: rgba(255,255,255,.82);
}

.map-header p {
  max-width: 780px;
}

.live-section .section-heading {
  margin-bottom: 22px;
}

@media (max-width: 1180px) {
  .hero-visual .island {
    width: min(100%, 740px);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 150px;
  }

  .hero-visual {
    min-height: 360px;
    margin-top: 18px;
  }

  .hero-visual .island {
    width: min(100%, 640px);
  }

  .card-node, .card-latency, .card-player {
    display: none;
  }

  .hero-copy p {
    line-height: 1.82;
  }
}


/* =========================
   V7
   - homepage hero uses the user's provided lighthouse image
   - lighter presentation and refined content rhythm
   ========================= */

.hero {
  min-height: 800px;
}

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

.hero-copy p {
  max-width: 600px;
  line-height: 1.92;
}

.hero-visual {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  inset: 10% 4% 4% 4%;
  background:
    radial-gradient(circle at 50% 44%, rgba(142, 207, 255, .22), transparent 34%),
    radial-gradient(circle at 50% 78%, rgba(68, 161, 255, .14), transparent 28%);
  filter: blur(12px);
}

.hero-visual .island {
  width: min(100%, 840px);
  border-radius: 28px;
  border: 1px solid rgba(47,137,255,.16);
  box-shadow:
    0 28px 60px rgba(29, 95, 178, .14),
    0 10px 24px rgba(255,255,255,.55) inset;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.06) saturate(.95) contrast(.97);
  background: linear-gradient(180deg, #f6fbff 0%, #ddecff 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 10% 4% 10%;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(121,189,255,.22), rgba(121,189,255,0));
  filter: blur(12px);
  z-index: -1;
}

.card-node {
  left: -2%;
  top: 13%;
}
.card-latency {
  right: -1%;
  top: 16%;
}
.card-player {
  right: 6%;
  bottom: 10%;
}

.status-card {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(47,137,255,.14);
  box-shadow: 0 16px 36px rgba(25, 92, 178, .12);
}

.status-card small {
  color: #7789a4;
}

.status-card span {
  color: #567196;
}

.section-heading p,
.resource-card p,
.cta-card p,
.feature-card p,
.quote-card p,
.live-card p {
  line-height: 1.8;
}

.section-heading h2 {
  letter-spacing: -.036em;
}

.resource-card h3,
.feature-card h3,
.cta-card h3 {
  letter-spacing: -.02em;
}

@media (max-width: 1180px) {
  .hero-visual .island {
    width: min(100%, 760px);
  }
}

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

  .hero-visual {
    min-height: 320px;
    margin-top: 18px;
  }

  .hero-visual .island {
    width: min(100%, 100%);
    border-radius: 22px;
  }

  .card-node,
  .card-latency,
  .card-player {
    display: none;
  }
}


/* =========================
   V8 polish
   - remove ugly homepage image; use clean enterprise hero visual
   - remove messy global map; use clean network capability cards
   - apply real partner logos
   ========================= */

.hero-showcase {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.showcase-panel {
  position: relative;
  width: min(100%, 780px);
  min-height: 500px;
  border: 1px solid rgba(47,137,255,.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 72% 20%, rgba(70, 167, 255, .18), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(118, 216, 255, .14), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(233,247,255,.82));
  box-shadow:
    0 32px 80px rgba(20, 87, 174, .14),
    inset 0 1px 0 rgba(255,255,255,.88);
  overflow: hidden;
  padding: 28px;
}

.showcase-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15,108,242,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,108,242,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 44%, #000 0 40%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}

.showcase-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 20px;
  border-radius: 50%;
  border: 1px solid rgba(47,137,255,.18);
  transform: rotate(-22deg);
}

.showcase-orbit::before,
.showcase-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47,137,255,.12);
}

.showcase-orbit::before {
  inset: 58px;
}

.showcase-orbit::after {
  inset: 118px;
}

.showcase-top,
.showcase-core,
.showcase-metrics,
.showcase-footer {
  position: relative;
  z-index: 2;
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.showcase-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.showcase-brandmark img {
  width: 40px;
  height: 40px;
}

.showcase-brandmark b {
  display: block;
  color: var(--blue-900);
  font-size: 18px;
  letter-spacing: -.02em;
}

.showcase-brandmark span {
  display: block;
  color: #70829e;
  font-size: 12px;
  font-weight: 760;
  margin-top: 2px;
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #137047;
  background: rgba(24,186,114,.10);
  border: 1px solid rgba(24,186,114,.18);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 850;
}

.showcase-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18ba72;
  box-shadow: 0 0 0 6px rgba(24,186,114,.12);
}

.showcase-core {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 42px;
}

.core-tower {
  position: relative;
  height: 250px;
}

.tower-base {
  position: absolute;
  left: 14px;
  bottom: 18px;
  width: 200px;
  height: 92px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(205,232,255,.72));
  border: 1px solid rgba(47,137,255,.16);
  box-shadow: 0 18px 40px rgba(15,108,242,.12);
}

.tower-light {
  position: absolute;
  left: 96px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #95d8ff);
  box-shadow:
    0 0 0 10px rgba(47,137,255,.08),
    0 0 42px rgba(47,137,255,.25);
}

.tower-light::before {
  content: "";
  position: absolute;
  left: -76px;
  top: 14px;
  width: 190px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(47,137,255,.20), rgba(255,255,255,0));
}

.tower-block {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #d5efff);
  border: 1px solid rgba(47,137,255,.16);
  box-shadow: 0 18px 38px rgba(15,108,242,.12);
}

.block-a {
  width: 92px;
  height: 126px;
  left: 70px;
  top: 78px;
}

.block-b {
  width: 74px;
  height: 74px;
  left: 10px;
  top: 140px;
}

.block-c {
  width: 74px;
  height: 74px;
  right: 4px;
  top: 140px;
}

.tower-block::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 10px;
  background:
    linear-gradient(to right, rgba(15,108,242,.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,108,242,.16) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .8;
}

.core-copy small {
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.core-copy strong {
  display: block;
  margin: 12px 0 14px;
  color: var(--blue-900);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.core-copy p {
  margin: 0;
  color: #587092;
  line-height: 1.82;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.showcase-metrics div {
  border: 1px solid rgba(47,137,255,.14);
  background: rgba(255,255,255,.72);
  border-radius: 18px;
  padding: 17px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.showcase-metrics small,
.showcase-metrics span {
  display: block;
  color: #6e7f99;
  font-size: 12px;
  font-weight: 780;
}

.showcase-metrics b {
  display: block;
  margin: 6px 0 2px;
  color: var(--blue-600);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}

.showcase-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.showcase-footer span {
  border-radius: 999px;
  background: #edf8ff;
  border: 1px solid rgba(47,137,255,.12);
  color: #526887;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

/* Network section: no background map; clean information cards only */
.network-clean {
  margin-top: 22px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.access-card {
  position: relative;
  min-height: 270px;
  border-radius: 24px;
  border: 1px solid rgba(47,137,255,.15);
  background:
    radial-gradient(circle at 80% 12%, rgba(47,137,255,.12), transparent 34%),
    rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  overflow: hidden;
}

.access-card.primary {
  background:
    radial-gradient(circle at 80% 12%, rgba(47,137,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(232,247,255,.86));
}

.access-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fcff, #d8efff);
  border: 1px solid rgba(47,137,255,.18);
  position: relative;
  box-shadow: 0 14px 26px rgba(15,108,242,.12);
}

.access-icon::before,
.access-icon::after {
  content: "";
  position: absolute;
}

.access-icon.cn::before {
  inset: 16px;
  border: 3px solid #0f6cf2;
  border-radius: 50%;
}
.access-icon.cn::after {
  left: 27px;
  top: 11px;
  width: 4px;
  height: 36px;
  background: #0f6cf2;
  box-shadow: -12px 10px 0 -1px #67c8ff, 12px 10px 0 -1px #67c8ff;
  transform: rotate(45deg);
}

.access-icon.overseas::before {
  left: 14px;
  top: 26px;
  width: 30px;
  height: 16px;
  background: #0f6cf2;
  border-radius: 18px;
}
.access-icon.overseas::after {
  left: 20px;
  top: 15px;
  width: 23px;
  height: 23px;
  background: #0f6cf2;
  border-radius: 50%;
  box-shadow: -8px 8px 0 -3px #0f6cf2, 12px 9px 0 -4px #0f6cf2;
}

.access-icon.monitor::before {
  left: 14px;
  top: 16px;
  width: 30px;
  height: 22px;
  border: 3px solid #0f6cf2;
  border-radius: 6px;
}
.access-icon.monitor::after {
  left: 19px;
  top: 26px;
  width: 22px;
  height: 10px;
  border-top: 3px solid #0f6cf2;
  border-right: 3px solid #0f6cf2;
  transform: skewX(-22deg);
}

.access-icon.safety::before {
  left: 17px;
  top: 12px;
  width: 24px;
  height: 32px;
  background: #0f6cf2;
  clip-path: polygon(50% 0, 90% 15%, 80% 72%, 50% 100%, 20% 72%, 10% 15%);
}
.access-icon.safety::after {
  left: 26px;
  top: 21px;
  width: 7px;
  height: 14px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

.access-card small {
  display: block;
  margin-top: 22px;
  color: var(--blue-600);
  font-weight: 900;
  letter-spacing: .06em;
}

.access-card h3 {
  margin: 8px 0 12px;
  color: var(--blue-900);
  font-size: 22px;
  letter-spacing: -.03em;
}

.access-card p {
  margin: 0 0 18px;
  color: #5b7194;
  line-height: 1.75;
}

.access-card strong {
  display: block;
  color: var(--blue-600);
  font-size: 34px;
  letter-spacing: -.04em;
}

.access-card > span {
  display: block;
  color: #72839d;
  font-size: 12px;
  font-weight: 760;
}

.route-flow {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(47,137,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.route-step {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f3faff;
}

.route-step b {
  display: block;
  color: var(--blue-900);
  font-size: 16px;
}

.route-step span {
  display: block;
  margin-top: 6px;
  color: #637895;
  font-size: 13px;
  font-weight: 720;
}

.route-flow i {
  height: 2px;
  background: linear-gradient(90deg, transparent, #0f6cf2, transparent);
  position: relative;
}

.route-flow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #0f6cf2;
  border-right: 2px solid #0f6cf2;
  transform: rotate(45deg);
}

/* Real supplier logos */
.partner-track {
  gap: 14px;
  animation-duration: 42s;
}

.partner-slot {
  width: 178px;
  height: 70px;
  background: rgba(255,255,255,.88);
}

.partner-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 18px;
  filter: none;
  opacity: .92;
}

.partner-slot:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.partner-upload-note {
  color: #617494;
}

@media (max-width: 1180px) {
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-core {
    grid-template-columns: 210px 1fr;
  }
}

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

  .showcase-panel {
    min-height: auto;
    padding: 22px;
  }

  .showcase-core {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .core-tower {
    height: 210px;
    transform: scale(.9);
    transform-origin: center;
  }

  .showcase-metrics {
    grid-template-columns: 1fr;
  }

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

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

  .route-flow i {
    width: 2px;
    height: 28px;
    justify-self: center;
    background: linear-gradient(180deg, transparent, #0f6cf2, transparent);
  }

  .route-flow i::after {
    right: -4px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }
}

@media (max-width: 620px) {
  .showcase-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .core-copy strong {
    font-size: 28px;
  }

  .partner-slot {
    width: 150px;
    height: 60px;
  }
}


/* =========================
   V9 live status + supplier section
   ========================= */

.api-toolbar {
  padding: 18px 20px;
  border-radius: 22px;
}

.api-source {
  flex-wrap: wrap;
}

.api-freshness {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(24,186,114,.10);
  color: #137047 !important;
  font-weight: 850;
}

.api-freshness::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #18ba72;
  box-shadow: 0 0 0 5px rgba(24,186,114,.12);
}

.live-card-grid {
  grid-template-columns: 1.1fr repeat(4, 1fr);
}

.live-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(238,248,255,.82));
}

.live-card strong {
  text-shadow: 0 8px 22px rgba(15,108,242,.14);
}

.live-dashboard {
  gap: 20px;
}

.dash-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(47,137,255,.11), transparent 28%),
    rgba(255,255,255,.88);
}

.suppliers {
  background:
    radial-gradient(circle at 16% 18%, rgba(47,137,255,.11), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(123,215,255,.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3faff 52%, #ffffff 100%);
  padding-top: 92px;
  padding-bottom: 96px;
}

.suppliers .section-heading {
  max-width: 920px;
}

.suppliers .section-heading p:not(.eyebrow) {
  max-width: 860px;
  font-size: 17px;
}

.supplier-panel {
  position: relative;
  border: 1px solid rgba(47,137,255,.15);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 14%, rgba(47,137,255,.14), transparent 30%),
    rgba(255,255,255,.84);
  box-shadow: 0 28px 72px rgba(17,82,155,.12);
  overflow: hidden;
  padding: 26px 26px 22px;
}

.supplier-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15,108,242,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,108,242,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .58;
  pointer-events: none;
}

.supplier-panel > * {
  position: relative;
}

.supplier-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 8px 4px 18px;
  border-bottom: 1px solid rgba(47,137,255,.12);
}

.supplier-panel-head h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.035em;
}

.supplier-panel-head p {
  margin: 10px 0 0;
  color: #5e7394;
  line-height: 1.75;
}

.supplier-panel-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--blue-600);
  background: #edf8ff;
  border: 1px solid rgba(47,137,255,.18);
  font-weight: 900;
}

.suppliers .logo-marquee {
  margin-top: 0;
  box-shadow: none;
  border: 0;
  background: rgba(255,255,255,.58);
}

.suppliers .partner-track {
  padding: 18px 0;
  gap: 16px;
}

.suppliers .partner-slot {
  width: 188px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(47,137,255,.13);
  background: rgba(255,255,255,.92);
  box-shadow:
    0 12px 28px rgba(20,87,174,.08),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.suppliers .partner-slot img {
  padding: 13px 18px;
  object-fit: contain;
}

.suppliers .partner-upload-note {
  margin-top: 10px;
  max-width: none;
  color: #5f7394;
}

@media (max-width: 1100px) {
  .live-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .supplier-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .supplier-panel {
    padding: 20px 16px 18px;
  }
}

@media (max-width: 620px) {
  .live-card-grid {
    grid-template-columns: 1fr;
  }

  .suppliers {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .suppliers .partner-slot {
    width: 158px;
    height: 66px;
  }
}

/* V11: realtime status fetch fix */
.api-freshness {
  min-width: 76px;
  justify-content: center;
}

/* V13: status chip visual polish */
.api-freshness {
  min-width: 82px;
}

/* V14: real status warning state */
.api-signal.warn {
  background: #f4ae2a !important;
  box-shadow: 0 0 0 8px rgba(244,174,42,.16) !important;
}
.api-signal.error {
  background: #e94c4c !important;
  box-shadow: 0 0 0 8px rgba(233,76,76,.14) !important;
}
