/* ============================================================
   Crypto Exchange Bali — OTC crypto-to-cash, island-wide delivery
   Static build · Clash Display + Satoshi + Spline Sans Mono
   Dark OLED teal theme · glassmorphism · brand #00E1D9
   ============================================================ */

:root {
  /* surfaces */
  --bg: #030d0c;
  --bg-soft: #06211e;
  --card: rgba(8, 34, 32, 0.55);
  --card-solid: #07201e;
  --border: rgba(0, 225, 217, 0.14);
  --border-strong: rgba(0, 225, 217, 0.38);

  /* text */
  --text: #ecfdf9;
  --muted: #9db8b3;

  /* brand */
  --brand: #00e1d9;
  --brand-soft: #6ff2ec;
  --brand-dim: #00b5ae;
  --brand-ink: #032422;

  /* semantic */
  --success: #34d399;
  --wa-green: #25d366;

  /* shape & type */
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: "Clash Display", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  /* elevation scale */
  --shadow-1: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 10px 40px rgba(0, 0, 0, 0.45);
  --glow-brand: 0 0 24px rgba(0, 225, 217, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1, h2 { font-weight: 700; letter-spacing: -0.025em; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(0, 225, 217, 0.3); }

/* ---------- animated background blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.bg-blob.b1 {
  width: 900px;
  height: 600px;
  top: -260px;
  left: 50%;
  margin-left: -450px;
  background: radial-gradient(closest-side, rgba(0, 225, 217, 0.14), transparent 70%);
  animation: drift-1 26s ease-in-out infinite alternate;
}

.bg-blob.b2 {
  width: 560px;
  height: 560px;
  bottom: -220px;
  left: -200px;
  background: radial-gradient(closest-side, rgba(0, 181, 174, 0.1), transparent 70%);
  animation: drift-2 34s ease-in-out infinite alternate;
}

.bg-blob.b3 {
  width: 640px;
  height: 640px;
  top: 30%;
  right: -260px;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.07), transparent 70%);
  animation: drift-3 30s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate(-70px, 0) scale(1); }
  to { transform: translate(90px, 70px) scale(1.18); }
}
@keyframes drift-2 {
  from { transform: translate(0, 40px) scale(1); }
  to { transform: translate(160px, -90px) scale(1.12); }
}
@keyframes drift-3 {
  from { transform: translate(0, -60px) scale(1.05); }
  to { transform: translate(-130px, 90px) scale(0.92); }
}

/* ---------- floating fireflies (kunang-kunang) ---------- */
.fireflies {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.firefly {
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand);
  box-shadow:
    0 0 6px 1px currentColor,
    0 0 14px 4px rgba(0, 225, 217, 0.45),
    0 0 28px 8px rgba(0, 225, 217, 0.15);
  opacity: 0;
  animation: fly-rise linear infinite;
  will-change: transform, opacity;
}

@keyframes fly-rise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: var(--alpha, 0.7);
  }
  92% {
    opacity: var(--alpha, 0.7);
  }
  100% {
    transform: translateY(-120vh) translateX(var(--drift, 0)) scale(0.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .firefly { animation: none; opacity: 0; }
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 225, 217, 0.22) 0%, rgba(0, 225, 217, 0.08) 40%, transparent 62%);
  box-shadow: none;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: transform;
  z-index: 40;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-blob { animation: none; }
  .cursor-glow { display: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .live-dot { animation: none !important; }
  .coin-bubble, .coin3d { animation: none !important; }
  .hero-coin, .coin-flip, .coin-shadow { animation: none !important; }
  .route::after { animation: none !important; opacity: 0; }
  .map-live { animation: none !important; }
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand), var(--brand-dim));
  box-shadow: 0 0 12px 2px rgba(0, 225, 217, 0.55);
  transform-origin: 0 center;
  transform: scaleX(0);
  z-index: 100;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 13, 12, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 38px;
}

.brand-mark img {
  height: 100%;
  width: auto;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 225, 217, 0.35));
}

.brand-accent { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(0, 225, 217, 0.08); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--glow-brand);
}

.btn-primary:hover {
  background: var(--brand-soft);
  box-shadow: 0 0 34px rgba(0, 225, 217, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(0, 225, 217, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--border-strong); background: rgba(0, 225, 217, 0.12); }

.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 1.05rem; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 225, 217, 0.06);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--brand-soft);
}

.pill-glow { box-shadow: var(--glow-brand); }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 158px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title .grad {
  background: linear-gradient(92deg, var(--brand) 10%, var(--brand-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 54ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--brand); }

/* hero — 3D flipping coin (USDT ⇄ IDR) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-coin {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  perspective: 1000px;
  animation: coin-hover 6s ease-in-out infinite;
  will-change: transform;
}

.coin-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: hero-coin-spin 7.5s cubic-bezier(0.55, 0, 0.2, 1) infinite;
  will-change: transform;
}

.hcoin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.hcoin-front {
  transform: translateZ(9px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(38, 161, 123, 0.3));
}

.hcoin-back {
  transform: rotateY(180deg) translateZ(9px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(217, 31, 51, 0.28));
}

/* coin thickness: stacked slices between the two faces,
   sized just inside the coin disc so no ring leaks past the art */
.coin-slice {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
}

.coin-slice.s1 { transform: translateZ(-7.5px); background: #8e1526; }
.coin-slice.s2 { transform: translateZ(-4.5px); background: #8e1526; }
.coin-slice.s3 { transform: translateZ(-1.5px); background: #6d3040; }
.coin-slice.s4 { transform: translateZ(1.5px); background: #1c6b52; }
.coin-slice.s5 { transform: translateZ(4.5px); background: #1c6b52; }
.coin-slice.s6 { transform: translateZ(7.5px); background: #1c6b52; }

.coin-shadow {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 68%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px);
  /* counter-translates against .hero-coin's hover so it stays grounded */
  animation: coin-shadow-sync 6s ease-in-out infinite;
}

@keyframes hero-coin-spin {
  0%, 38% { transform: rotateY(0); }
  50%, 88% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes coin-hover {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-10px); }
}

@keyframes coin-shadow-sync {
  0%, 100% { transform: translate(-50%, -8px) scale(1.05); opacity: 0.85; }
  50% { transform: translate(-50%, 10px) scale(0.85); opacity: 0.55; }
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 32, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
  font-size: 0.8rem;
}

.float-chip .icon { color: var(--brand); width: 20px; height: 20px; }
.float-chip small { display: block; color: var(--muted); font-size: 0.72rem; }
.float-chip b { color: var(--text); font-size: 0.85rem; }

.chip-left { top: -22px; left: -26px; animation: floaty 6s ease-in-out infinite; }
.chip-right { bottom: -20px; right: -18px; animation: floaty 7s ease-in-out 0.8s infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- hero: floating glass coin bubbles ---------- */
.coin-bubbles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.coin-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size, 64px);
  height: var(--size, 64px);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 42%, rgba(0, 225, 217, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(0, 225, 217, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  perspective: 300px;
  animation: bubble-float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}

.coin-bubble::before {
  /* glass reflection, top-left */
  content: "";
  position: absolute;
  top: 7%;
  left: 16%;
  width: 38%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(-18deg);
}

.coin3d {
  position: relative;
  width: 56%;
  height: 56%;
  transform-style: preserve-3d;
  animation: coin-spin var(--spin, 9s) cubic-bezier(0.5, 0, 0.18, 1) var(--spin-delay, 0s) infinite;
  will-change: transform;
}

.coin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.coin-face.back { transform: rotateY(180deg); }

.cb1 { --size: 92px; top: 17%; left: 31%; --dur: 7.5s; --spin: 8.5s; }
.cb2 { --size: 68px; top: 56%; left: 40%; --dur: 6.5s; --delay: 0.9s; --spin: 9.5s; --spin-delay: 2.8s; opacity: 0.92; }
.cb3 { --size: 72px; top: 8%; left: 4%; --dur: 8s; --delay: 1.6s; --spin: 10s; --spin-delay: 1.4s; opacity: 0.95; }
.cb4 { --size: 62px; bottom: 2%; left: 12%; --dur: 7s; --delay: 2.4s; --spin: 9s; --spin-delay: 4.2s; opacity: 0.88; }
.cb5 { --size: 66px; top: 8%; right: 15%; --dur: 6.8s; --delay: 0.5s; --spin: 8.8s; --spin-delay: 3.4s; opacity: 0.9; }
.cb6 { --size: 82px; bottom: 12%; right: 3%; --dur: 7.8s; --delay: 1.2s; --spin: 9.8s; --spin-delay: 5s; }

@keyframes bubble-float {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(-12px); }
}

@keyframes coin-spin {
  0%, 40% { transform: rotateY(0); }
  50%, 90% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* ---------- stats ---------- */
.stats { position: relative; z-index: 1; padding: 26px 0 10px; }

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

.stat-card {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-unit { font-size: 1.1rem; color: var(--brand-soft); }

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: 88px 0 8px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

.section-head .accent { color: var(--brand); }

.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- how it works: delivery-route timeline ---------- */
.route {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 0;
}

/* the spine — the agent's route */
.route::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    var(--border-strong) 6%,
    var(--border-strong) 94%,
    transparent
  );
}

/* traveling pulse — the agent en route to you */
.route::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 16px 4px rgba(0, 225, 217, 0.6);
  animation: route-travel 6.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes route-travel {
  0% { top: 6px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  column-gap: 8px;
}

.route-step + .route-step { margin-top: clamp(20px, 4vw, 44px); }

/* numbered node sits on the spine */
.route-node {
  grid-column: 2;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  box-shadow: 0 0 0 6px var(--bg), inset 0 0 0 1px rgba(0, 225, 217, 0.12);
}

.route-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

/* station content, borderless — the route line carries the structure */
.route-station {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 225, 217, 0.07);
  color: var(--brand);
}

.route-icon .icon { width: 22px; height: 22px; }

.route-copy h3 { font-size: 1.14rem; margin-bottom: 6px; }
.route-copy p { font-size: 0.93rem; color: var(--muted); max-width: 34ch; }

.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.route-chip .icon { width: 14px; height: 14px; color: var(--brand); }

.route-chip.strong {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.09);
  color: var(--success);
}

.route-chip.strong .icon { color: var(--success); }

/* alternate sides on desktop */
.route-step:nth-child(odd) .route-station {
  grid-column: 1;
  flex-direction: row-reverse;
  text-align: right;
}

.route-step:nth-child(odd) .route-copy p { margin-left: auto; }

.route-step:nth-child(even) .route-station { grid-column: 3; }

/* connector from node to station */
.route-station::before {
  content: "";
  position: absolute;
  top: 22px;
  width: clamp(8px, 3vw, 26px);
  height: 1px;
  background: var(--border-strong);
}

.route-step:nth-child(odd) .route-station::before { right: calc(100% + 1px); }
.route-step:nth-child(even) .route-station::before { left: calc(100% + 1px); }

/* step 3 — the trust peak, the one station that earns emphasis */
.route-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.route-flag .icon { width: 14px; height: 14px; }

.route-step.peak .route-station {
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 130% at 50% -20%, rgba(0, 225, 217, 0.12), transparent 60%),
    var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-1);
}

.route-step.peak .route-node {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px rgba(0, 225, 217, 0.55);
}

.route-step.peak .route-num { color: var(--brand-ink); }

.route-step.peak .route-copy p { color: var(--text); }

.route-step.peak:nth-child(odd) .route-station::before,
.route-step.peak:nth-child(even) .route-station::before { top: 33px; }

/* route collapses to a single left rail on narrow screens */
@media (max-width: 700px) {
  .route { max-width: 480px; }
  .route::before,
  .route::after { left: 22px; }
  .route::after { margin-left: -4.5px; }

  .route-step { grid-template-columns: 44px 1fr; column-gap: 18px; }
  .route-step + .route-step { margin-top: 22px; }

  .route-node { grid-column: 1; }

  .route-step:nth-child(odd) .route-station,
  .route-step:nth-child(even) .route-station {
    grid-column: 2;
    flex-direction: row;
    text-align: left;
  }

  .route-step:nth-child(odd) .route-copy p { margin-left: 0; }
  .route-copy p { max-width: none; }

  /* connectors are redundant on a left rail */
  .route-station::before { display: none; }

  .route-step.peak .route-station { padding: 18px; }
}

.how-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
  margin-top: 40px;
}

.how-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.how-note .icon { color: var(--brand); }

/* ---------- assets & networks ---------- */
.asset-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.93rem;
  font-weight: 500;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.asset-chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.asset-chip small {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.asset-chip.more {
  border-style: dashed;
  color: var(--brand-soft);
  background: transparent;
}

.coin-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c, var(--brand));
  box-shadow: 0 0 8px var(--c, var(--brand));
}

.network-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 34px auto 0;
  max-width: 980px;
}

.network-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.network-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.network-chips span {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.network-chips span.dim { border-style: dashed; color: var(--brand-soft); }

.trade-size {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.trade-size-item { text-align: center; }

.trade-size-item small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.trade-size-item b { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--brand); }

.trade-size-sep {
  width: 1px;
  height: 52px;
  background: var(--border);
}

.trade-size p {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- coverage: South Bali map + zone legend ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

/* the map — free Google Maps embed, framed and toned to the dark theme */
.bali-map-wrap {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-solid);
}

.bali-map-embed {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  /* tone the light Google roadmap toward the site's dark teal theme */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.75) brightness(0.92) contrast(0.94);
}

.map-cap {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(3, 13, 12, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  pointer-events: none;
}

.map-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.map-open {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(3, 13, 12, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.map-open:hover { border-color: var(--border-strong); color: var(--brand); }
.map-open .icon { width: 14px; height: 14px; color: var(--brand); }

/* zone legend, keyed to the map pins */
.zones {
  display: flex;
  flex-direction: column;
}

.zone {
  padding: 22px 4px;
  border-top: 1px solid var(--border);
}

.zone:last-child { border-bottom: 1px solid var(--border); }

.zone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.zone-head h3 { font-size: 1.14rem; margin-right: auto; }

.zone-dot {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.5;
}

.zone.is-primary .zone-dot {
  opacity: 1;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(0, 225, 217, 0.85);
}

.zone.is-remote .zone-dot {
  background: transparent;
  border: 1.5px dashed var(--muted);
  opacity: 0.8;
}

.eta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(0, 225, 217, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand);
  white-space: nowrap;
}

.zone-areas {
  padding-left: 23px;
  font-size: 0.95rem;
  color: var(--text);
}

.zone.is-primary .zone-areas { color: var(--text); }
.zone:not(.is-primary) .zone-areas { color: var(--muted); }

.zone-note {
  margin-top: 10px;
  padding-left: 23px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- security: trust bento ---------- */
.trust-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "a a a b b b"
    "a a a c c c"
    "d d e e f f";
  gap: 16px;
}

.trust-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.trust-tile:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 225, 217, 0.08);
  color: var(--brand);
  margin-bottom: 15px;
}

.trust-icon .icon { width: 22px; height: 22px; }

.trust-tile h3 { font-size: 1.06rem; margin-bottom: 6px; }
.trust-tile p { font-size: 0.92rem; color: var(--muted); }

/* anchor tile — the fiat-first guarantee the whole desk rests on */
.trust-anchor {
  padding: 32px;
  border-color: var(--border-strong);
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(0, 225, 217, 0.14), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-1);
}

.trust-icon.lg {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(0, 225, 217, 0.22);
}

.trust-icon.lg .icon { width: 28px; height: 28px; }

.trust-anchor h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.trust-anchor p { font-size: 1.02rem; color: var(--text); max-width: 40ch; }

.protocol-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 26px;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(3, 13, 12, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}

.flow-step .icon { width: 15px; height: 15px; }

.flow-step.done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.09);
  color: var(--success);
}

.flow-arrow { display: inline-flex; color: var(--brand); }
.flow-arrow .icon { width: 20px; height: 20px; }

/* ---------- reviews marquee ---------- */
.marquee { overflow: hidden; position: relative; z-index: 1; }

.reviews-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 8px 0 16px;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee-track.slow { animation-duration: 58s; }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  width: 340px;
  flex: none;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #fbbf24;
}

.stars .icon { width: 15px; height: 15px; }

.review-card > p { font-size: 0.93rem; color: var(--text); }

.reviewer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 225, 217, 0.1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
}

.reviewer b { display: block; font-size: 0.92rem; }
.reviewer small { color: var(--muted); font-size: 0.8rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease;
}

.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA card ---------- */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 60px 40px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    radial-gradient(120% 160% at 50% -30%, rgba(0, 225, 217, 0.18), transparent 60%),
    var(--card-solid);
  text-align: center;
}

.cta-card h2 {
  margin: 20px 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.cta-card > p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.cta-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: rgba(3, 13, 12, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a,
.footer-hours {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--brand); }
.footer-col a .icon, .footer-hours .icon { width: 17px; height: 17px; color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-fine { font-size: 0.78rem; opacity: 0.8; }

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #062b16;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab .icon { width: 28px; height: 28px; }

.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* staggered entrance for the route stations */
.route-step.reveal { transition-delay: 0s; }
.route-step:nth-child(2).reveal { transition-delay: 0.08s; }
.route-step:nth-child(3).reveal { transition-delay: 0.16s; }
.route-step:nth-child(4).reveal { transition-delay: 0.24s; }

/* ---------- responsive: tablet ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .chip-left { left: -8px; }
  .chip-right { right: -6px; }

  /* coin bubbles: scatter all six around the stacked hero */
  .cb1 { --size: 78px; top: 30%; left: auto; right: 6%; }
  .cb2 { top: 40%; left: 5%; }
  .cb3 { top: 6%; left: 4%; }
  .cb4 { bottom: 24%; left: 8%; }
  .cb5 { top: 8%; right: 5%; }
  .cb6 { top: auto; bottom: 5%; right: 8%; }

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

  /* trust bento: anchor on top, then paired tiles */
  .trust-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c"
      "d e"
      "f f";
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- responsive: mobile nav ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: rgba(3, 13, 12, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav-links a { display: block; padding: 13px 14px; font-size: 1rem; }

  .nav-toggle { display: flex; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* coverage stacks: map on top, legend below */
  .coverage { grid-template-columns: 1fr; gap: 28px; }
  .bali-map-wrap { max-width: 560px; margin: 0 auto; width: 100%; }
  .bali-map-embed { height: 400px; }
  .zones { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ---------- responsive: phone ---------- */
@media (max-width: 560px) {
  .container { padding: 0 18px; }

  .hero { padding-top: 128px; }

  .bali-map-embed { height: 340px; }

  .nav .btn-sm { padding: 9px 14px; }
  .nav .btn-sm .icon { width: 1.05em; height: 1.05em; }

  .brand-name { font-size: 0.9rem; }

  .hero-cta .btn { width: 100%; }

  .hero-visual { min-height: 300px; }
  .hero-coin { width: min(240px, 64vw); }
  .chip-left { display: none; }
  .chip-right { bottom: -16px; right: 2px; }

  /* coin bubbles: all six, scaled down and scattered */
  .cb1 { --size: 64px; top: 26%; right: 4%; }
  .cb2 { --size: 54px; top: 30%; left: 4%; }
  .cb3 { --size: 48px; top: 78px; left: 4%; }
  .cb4 { --size: 50px; bottom: 22%; left: 6%; }
  .cb5 { --size: 50px; top: 74px; right: 5%; }
  .cb6 { --size: 58px; bottom: 6%; right: 7%; }

  .stats-grid { gap: 10px; }
  .stat-card { padding: 20px 12px; }
  .stat-number { font-size: 1.55rem; }
  .stat-label { font-size: 0.78rem; }

  .trust-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e" "f";
  }
  .trust-anchor { padding: 26px; }

  .trade-size { grid-template-columns: 1fr; padding: 22px; }
  .trade-size-sep { width: 52px; height: 1px; margin: 0 auto; }

  .review-card { width: 290px; }

  .cta-card { padding: 44px 22px; }
  .cta-actions .btn-lg { width: 100%; font-size: 0.95rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .wa-fab { right: 16px; bottom: 16px; }
}
