:root {
  --bg: #1b1c21;
  --bg-2: #1d1e25;
  --mint: #9fe8d6;
  --mint-deep: #5ecfb4;
  --ink: #1b1c21;
  --text: #f4f2ef;
  --muted: #8f929a;
  --line: rgba(255, 255, 255, 0.07);
  --glass: linear-gradient(165deg, #2a2b33 0%, #262730 48%, #22232b 100%);
  --shadow: none;
  --radius: 22px;
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--mint); text-decoration: none; }
h1, h2, h3, .brand-name { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.12; margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
h3 { margin: 8px 0; font-size: 1.25rem; }
p { margin: 0 0 12px; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(111, 212, 188, 0.16), transparent 60%),
    radial-gradient(700px 420px at 90% 8%, rgba(80, 120, 140, 0.18), transparent 55%);
}
#qr-header, main, .footer { position: relative; z-index: 1; }
#qr-header { z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-logo { height: 40px; width: auto; max-width: 40px; object-fit: contain; }
.brand-name { font-size: 1.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; padding: 0 18px; min-height: 36px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
  text-decoration: none; color: inherit;
}
.btn:hover { filter: brightness(1.06); }
.btn.primary { background: var(--mint); color: var(--ink); border-color: rgba(159, 232, 214, 0.28); }
.btn.mint { background: rgba(159, 232, 214, 0.12); color: var(--mint); }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.block { width: 100%; margin-top: 8px; }

.hero, .section, .footer { max-width: 1120px; margin: 0 auto; padding: 32px 20px; }
.section { scroll-margin-top: 96px; }
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.2fr);
  gap: 28px 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  color: var(--mint-deep); font-weight: 700; margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: #c5d0cc; max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.hero-pills li {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-visual { min-width: 0; }
.visual-card { padding: 14px 14px 12px; position: relative; }
.visual-top, .visual-stats { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.visual-top { margin-bottom: 6px; }
.spacer { flex: 1; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.map-expand-btns { display: flex; gap: 6px; }
.map-expand-btn {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}
.map-expand-btn:hover,
.map-expand-btn.is-on {
  border-color: rgba(159, 232, 214, 0.45);
  color: var(--mint);
}
.map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
}
.map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at 48% 42%, transparent 42%, rgba(7, 9, 11, 0.55) 100%);
}
.route-map { width: 100%; height: auto; display: block; overflow: hidden; }
.ocean { fill: url(#ocean-fill); }
.world-land {
  fill: rgba(126, 211, 195, 0.22);
  stroke: #8ee0d0;
  stroke-opacity: 0.95;
  stroke-width: 0.85;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.graticule line {
  fill: none;
  stroke: rgba(159, 232, 214, 0.07);
  stroke-width: 0.6;
}
.route-glow {
  fill: none;
  stroke: rgba(159, 232, 214, 0.16);
  stroke-width: 3.4;
  pointer-events: none;
}
.route {
  fill: none;
  stroke: #b7f3e6;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3.2 6.4;
  animation: dash 11s linear infinite;
  pointer-events: none;
}
.route.is-down {
  stroke: #8a9090;
  stroke-dasharray: 2.2 7;
  animation: none;
  opacity: 0.55;
}
.route.delay { animation-delay: -3.6s; }
.route.delay-2 { animation-delay: -7.2s; }
.route-packet {
  fill: #ecfff8;
  filter: drop-shadow(0 0 4px #9fe8d6);
  pointer-events: none;
}
.hub-ring {
  fill: none;
  stroke: rgba(159, 232, 214, 0.55);
  stroke-width: 1.2;
  stroke-dasharray: 2.5 3.5;
}
.node-code {
  fill: #d7f6ee;
  font: 600 6.2px/1 var(--sans);
  letter-spacing: 0.01em;
  pointer-events: none;
}
.node-flag.is-hot .flag-ring { stroke: #ecfff8; stroke-width: 2; }
.flag-ring { fill: none; stroke: #0b1012; stroke-width: 1.6; }
.node-dot {
  fill: var(--mint);
  stroke: #0b1012;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(159, 232, 214, 0.95));
}
.node-dot.is-hot { fill: #ecfff8; filter: drop-shadow(0 0 12px rgba(159, 232, 214, 1)); }
.node-dot.is-down { fill: #8a9090; filter: none; }
.node-hit { fill: transparent; cursor: pointer; }
.pulse-g { pointer-events: none; }
.pulse-g .pulse {
  fill: none; stroke: var(--mint); stroke-opacity: .45;
  transform-box: fill-box; transform-origin: center;
  animation: pulseRing 2.8s ease-out infinite;
}
.pulse-g.delay .pulse { animation-delay: .6s; }
.pulse-g.delay-2 .pulse { animation-delay: 1.2s; }
.node-flag.is-down { opacity: .45; }
.globe-host {
  position: absolute;
  inset: 0;
  background: #000008;
}
.globe-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 3;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.globe-pin {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: rgba(10, 14, 18, 0.9);
  border: 1px solid rgba(159, 232, 214, 0.45);
  color: #e8f7f2;
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -110%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.globe-pin img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}
.globe-pin.is-down {
  border-color: rgba(138, 144, 144, 0.7);
  color: #c5c8c8;
}
.globe-pin.is-hub { border-color: #ecfff8; }
#map-stage[data-mode="full"] .globe-hint { display: block; }
#map-stage[data-mode="compact"] .globe-hint { display: none; }
body.map-expanded { overflow: hidden; }
body.map-expanded .qr-bar { visibility: hidden; }
#map-stage[data-mode="full"] {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #16171c;
  border: 1px solid var(--line);
  border-radius: 16px;
  inset: 12px;
  height: auto;
  max-height: none;
}
#map-stage[data-mode="full"] .map-wrap {
  flex: 1;
  min-height: 0;
}
#map-stage[data-mode="full"] .route-map { display: none; }
.map-tip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(20, 22, 24, 0.94);
  border: 1px solid var(--line);
  color: var(--text); font-size: 12px; font-weight: 600;
  pointer-events: none; white-space: nowrap; z-index: 2;
  transform: translate(-50%, calc(-100% - 10px));
}
.map-tip[hidden] { display: none; }
.map-tip img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.visual-stats { justify-content: space-around; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.visual-stats strong { display: block; color: var(--text); font-size: 1.1rem; }

@keyframes dash { to { stroke-dashoffset: -220; } }
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(2.8); opacity: 0; }
}

.section-head { margin-bottom: 28px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(4, 1fr); }
.card { padding: 22px; transition: transform .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(159, 232, 214, 0.35); }
.icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; background: rgba(159, 232, 214, 0.1);
  color: var(--mint);
}
.icon.ico svg { width: 22px; height: 22px; display: block; }

.privacy-wrap {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 32px;
}
.privacy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.privacy-list li { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.03); }

.pricing { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.price { display: flex; flex-direction: column; }
.amount { font-size: 1.8rem; font-family: var(--serif); margin: 0; }
.sub, .note { color: var(--muted); font-size: 13px; }
.note { flex: 1; }
.featured {
  border-color: rgba(159, 232, 214, 0.45);
  background:
    linear-gradient(180deg, rgba(159, 232, 214, 0.12), transparent 48%),
    linear-gradient(165deg, #2a2b33 0%, #262730 48%, #22232b 100%);
}
.badge {
  align-self: flex-start; margin: 0 0 8px;
  background: var(--mint); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
}
.pay-row { text-align: center; color: var(--muted); margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.step-n {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; background: var(--mint); color: var(--ink); font-weight: 700;
}

.faq { display: grid; gap: 10px; }
.faq details { padding: 4px 18px 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--mint); }

.footer { padding-bottom: 48px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.footer-grid h4 { color: var(--text); margin: 0 0 10px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a, .linkish { display: block; color: var(--muted); background: none; border: 0; padding: 0; margin: 0 0 8px; font: inherit; cursor: pointer; text-align: left; }
.footer-grid a:hover, .linkish:hover { color: var(--mint); }
.copy { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }

.modal { border: 0; padding: 0; background: transparent; }
.modal::backdrop { background: rgba(0,0,0,.55); }
.modal-card { max-width: 420px; padding: 28px; margin: auto; }
.modal[open] { display: grid; place-items: center; min-height: 100%; }

@media (max-width: 1080px) {
  .features, .pricing, .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing .featured { grid-column: span 2; }
}
@media (max-width: 840px) {
  .hero, .privacy-wrap, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
  #map-stage[data-mode="full"] { inset: 8px; }
  .hero-cta .btn { flex: 1 1 140px; }
}
@media (max-width: 560px) {
  .features, .pricing, .steps { grid-template-columns: 1fr; }
  .pricing .featured { grid-column: auto; }
  h1 { font-size: 2rem; }
}
