/* ========== CURRENCY GLYPH (HERO) — planetary system ========== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-text { min-width: 0; }
.cg-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Stars */
.cg-stars { position: absolute; inset: -10%; z-index: 0; pointer-events: none; }
.cg-star {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
  animation: cgTwinkle var(--dur) ease-in-out infinite;
  animation-delay: var(--d);
  opacity: 0.5;
}
@keyframes cgTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

/* Orbital paths — circles since planets travel circular orbits, just at different radii and tilts */
.cg-orbits {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* Central glyph — the generic currency sign ¤ */
.cg-symbol {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(160px, 22vw, 300px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fafafa 0%, #c7d2fe 35%, var(--accent-2) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 24px 60px rgba(99,102,241,0.5)) drop-shadow(0 0 30px rgba(99,102,241,0.3));
  position: relative;
  z-index: 4;
  animation: cgBreathe 5s ease-in-out infinite;
}
@keyframes cgBreathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 24px 60px rgba(99,102,241,0.5)) drop-shadow(0 0 30px rgba(99,102,241,0.3)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 24px 80px rgba(99,102,241,0.7)) drop-shadow(0 0 50px rgba(99,102,241,0.5)); }
}

/* Gravity well — radial glow */
.cg-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 65%);
  filter: blur(40px);
  z-index: 2;
  animation: cgPulse 4s ease-in-out infinite;
}
.cg-glow-2 {
  inset: 30%;
  background: radial-gradient(circle, rgba(167,139,250,0.5), transparent 60%);
  filter: blur(20px);
  animation-duration: 3s;
  animation-direction: reverse;
}
@keyframes cgPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Orbits — each is a positioned wrapper that spins around the center.
   The planet inside is offset by translateX (orbital radius) and counter-rotates
   so its glyph stays upright. True 2D satellite motion. */
.cg-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: 0 0;
}
.cg-orbit-1 { animation: cgSpin1 12s linear infinite; }
.cg-orbit-2 { animation: cgSpin2 18s linear infinite reverse; }
.cg-orbit-3 { animation: cgSpin3 15s linear infinite; }
.cg-orbit-4 { animation: cgSpin4 22s linear infinite reverse; }
.cg-orbit-5 { animation: cgSpin5 28s linear infinite; }

/* Each orbit has a unique tilt — like Saturn's ring system */
@keyframes cgSpin1 { from { transform: rotate(-15deg) rotate(0deg); } to { transform: rotate(-15deg) rotate(360deg); } }
@keyframes cgSpin2 { from { transform: rotate(25deg) rotate(0deg); } to { transform: rotate(25deg) rotate(360deg); } }
@keyframes cgSpin3 { from { transform: rotate(-40deg) rotate(0deg); } to { transform: rotate(-40deg) rotate(360deg); } }
@keyframes cgSpin4 { from { transform: rotate(10deg) rotate(0deg); } to { transform: rotate(10deg) rotate(360deg); } }
@keyframes cgSpin5 { from { transform: rotate(-60deg) rotate(0deg); } to { transform: rotate(-60deg) rotate(360deg); } }

.cg-planet {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(99,102,241,0.25) 60%, rgba(99,102,241,0.08));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(255,255,255,0.18),
              0 0 16px rgba(99,102,241,0.4);
  /* Position planet at its orbital radius, then counter-rotate to stay upright. */
  top: -22px;
}
.cg-orbit-1 .cg-planet { left: 110px; animation: cgUpright1 12s linear infinite; }
.cg-orbit-2 .cg-planet { left: 145px; animation: cgUpright2 18s linear infinite reverse; }
.cg-orbit-3 .cg-planet { left: 95px; animation: cgUpright3 15s linear infinite; }
.cg-orbit-4 .cg-planet { left: 175px; animation: cgUpright4 22s linear infinite reverse; }
.cg-orbit-5 .cg-planet { left: 210px; animation: cgUpright5 28s linear infinite; }

/* The planet counter-rotates by the SAME amount the orbit spins, but inverse,
   so the glyph never appears tilted or upside-down. Includes the orbit tilt offset. */
@keyframes cgUpright1 { from { transform: translateX(-22px) rotate(15deg) rotate(0deg); } to { transform: translateX(-22px) rotate(15deg) rotate(-360deg); } }
@keyframes cgUpright2 { from { transform: translateX(-22px) rotate(-25deg) rotate(0deg); } to { transform: translateX(-22px) rotate(-25deg) rotate(-360deg); } }
@keyframes cgUpright3 { from { transform: translateX(-22px) rotate(40deg) rotate(0deg); } to { transform: translateX(-22px) rotate(40deg) rotate(-360deg); } }
@keyframes cgUpright4 { from { transform: translateX(-22px) rotate(-10deg) rotate(0deg); } to { transform: translateX(-22px) rotate(-10deg) rotate(-360deg); } }
@keyframes cgUpright5 { from { transform: translateX(-22px) rotate(60deg) rotate(0deg); } to { transform: translateX(-22px) rotate(60deg) rotate(-360deg); } }

/* Color tints per currency */
.cg-planet[data-c="dollar"] { background: radial-gradient(circle at 30% 30%, rgba(134,239,172,0.4), rgba(34,197,94,0.25) 60%, rgba(34,197,94,0.08)); box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 16px rgba(34,197,94,0.4); }
.cg-planet[data-c="pound"] { background: radial-gradient(circle at 30% 30%, rgba(252,165,165,0.4), rgba(239,68,68,0.25) 60%, rgba(239,68,68,0.08)); box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 16px rgba(239,68,68,0.4); }
.cg-planet[data-c="yen"] { background: radial-gradient(circle at 30% 30%, rgba(253,224,71,0.4), rgba(245,158,11,0.25) 60%, rgba(245,158,11,0.08)); box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 16px rgba(245,158,11,0.4); }
.cg-planet[data-c="euro"] { background: radial-gradient(circle at 30% 30%, rgba(199,210,254,0.45), rgba(99,102,241,0.3) 60%, rgba(99,102,241,0.1)); box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2), 0 0 18px rgba(99,102,241,0.5); }
.cg-planet[data-c="btc"] { background: radial-gradient(circle at 30% 30%, rgba(254,215,170,0.4), rgba(249,115,22,0.25) 60%, rgba(249,115,22,0.08)); box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 16px rgba(249,115,22,0.4); }

/* Particles — gravity dust pulled toward center */
.cg-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cg-particle {
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent);
  transform-origin: 0 0;
  animation: cgGravity 4s ease-in infinite;
  animation-delay: var(--delay);
  opacity: 0;
}
@keyframes cgGravity {
  0% { transform: rotate(var(--angle)) translateX(240px) scale(1); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: rotate(var(--angle)) translateX(40px) scale(0.2); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cg-wrap { max-width: 360px; margin: 20px auto 0; }
}

/* ========== HOW IT WORKS ========== */
.how-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.how-steps { display: flex; flex-direction: column; gap: 10px; }
.how-step {
  display: flex; gap: 18px; padding: 20px; text-align: left;
  background: transparent; border: 1px solid var(--border); border-radius: 14px;
  color: var(--muted); cursor: pointer; transition: all .3s; font-family: inherit;
}
.how-step.on { background: rgba(99,102,241,0.05); border-color: rgba(99,102,241,0.3); color: var(--text); }
.how-num { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--accent-2); min-width: 40px; letter-spacing: -0.02em; }
.how-t { font-size: 17px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.how-d { font-size: 13px; color: var(--muted); }
.how-visual {
  background: linear-gradient(180deg, #0b0b14, #07070c);
  border: 1px solid var(--border); border-radius: 20px;
  min-height: 380px; position: relative; overflow: hidden;
}
.how-viz-inner { position: absolute; inset: 0; }
.connect-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: 10px;
  opacity: 0; animation: slideUp .6s ease forwards;
}
@keyframes slideUp { to { opacity: 1; } }
.connect-bank {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px;
}
.connect-check {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(34,197,94,0.15);
  color: #22c55e; display: grid; place-items: center;
}
.insight-card {
  display: flex; gap: 14px; align-items: start;
  padding: 14px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: 10px;
  opacity: 0; animation: slideUp .6s ease forwards;
}

/* ========== CALCULATOR ========== */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: linear-gradient(180deg, #0b0b14, #07070c);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.calc-left { padding: 48px; border-right: 1px solid var(--border); }
.calc-right {
  padding: 48px;
  background: radial-gradient(600px 300px at 50% 50%, rgba(99,102,241,0.08), transparent);
}
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.3), 0 4px 12px rgba(0,0,0,0.4);
}
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border: 0;
  border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.3);
}

/* ========== BEFORE/AFTER ========== */
.ba-wrap {
  position: relative; height: 560px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  user-select: none; cursor: ew-resize;
  background: #0a0a12;
}
.ba-side { position: absolute; inset: 0; overflow: hidden; }
.ba-before { background: #1a1a1a; color: #222; }
.ba-after { background: linear-gradient(180deg, #0b0b14, #07070c); }
.ba-label {
  position: absolute; top: 20px;
  font-size: 11px; letterSpacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  font-weight: 500; z-index: 3;
}
.ba-label-l { left: 20px; background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.ba-label-r { right: 20px; background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--accent); z-index: 4;
  box-shadow: 0 0 20px rgba(99,102,241,0.6);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.excel {
  padding: 20px; height: 100%; overflow: hidden;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-size: 11px;
  color: #333; background: #fff;
}
.excel-bar { padding: 6px 8px; background: #f3f3f3; border-bottom: 1px solid #ccc; margin: -20px -20px 0; }
.excel-tabs { display: flex; gap: 2px; font-size: 11px; }
.excel-tab { padding: 4px 10px; background: #e0e0e0; border: 1px solid #ccc; border-bottom: 0; color: #666; }
.excel-tab.on { background: #fff; color: #0066cc; font-weight: 600; }
.excel-row { display: grid; grid-template-columns: 32px 1.6fr 1fr 0.9fr 0.8fr; border-bottom: 1px solid #e5e5e5; }
.excel-row > div { padding: 5px 8px; border-right: 1px solid #e5e5e5; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.excel-head { background: #f8f8f8; font-weight: 600; color: #555; border-bottom: 2px solid #999; }
.excel-row .unknown { background: #fff3cd; color: #856404; }
.excel-sticky { position: absolute; bottom: 12px; right: 16px; background: #fef2f2; border: 1px solid #ef4444; color: #dc2626; padding: 4px 10px; font-size: 11px; font-family: var(--mono); transform: rotate(-2deg); }

.mini-dash { padding: 28px; color: var(--text); height: 100%; box-sizing: border-box; }

/* ========== PRICING ========== */
.pricing-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px;
}
.pricing-toggle button {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 7px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.pricing-toggle button.on { background: var(--text); color: #111; }
.save-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(34,197,94,0.2); color: #22c55e; font-weight: 600; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  padding: 32px; border: 1px solid var(--border);
  border-radius: 20px; background: linear-gradient(180deg, #0c0c16, #08080e);
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.1), #08080e);
  box-shadow: 0 0 60px rgba(99,102,241,0.2);
}
.price-ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
}
.price-name { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.price-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price-n { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; }
.price-per { color: var(--muted); font-size: 15px; }
.price-note { font-size: 11px; color: var(--dim); }
.price-tagline { color: var(--muted); font-size: 14px; margin: 14px 0 24px; }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-features li { display: flex; align-items: start; gap: 10px; font-size: 14px; color: var(--text); }
.price-features li svg { color: var(--accent-2); margin-top: 3px; flex-shrink: 0; }
.price-features li.off { color: var(--dim); }
.price-features li.off svg { color: var(--dim); }
.price-cta { width: 100%; justify-content: center; }

/* ========== MARQUEE ========== */
.marquee { overflow: hidden; position: relative; padding: 8px 0 20px; }
.marquee-track { display: flex; gap: 40px; animation: scroll 40s linear infinite; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.marquee-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ========== COMPETITOR TABLE ========== */
.comp-table { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #08080e; }
.comp-row { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.comp-row:last-child { border-bottom: 0; }
.comp-row.comp-head { background: rgba(255,255,255,0.02); }
.comp-feat { padding: 18px 20px; color: var(--text); font-size: 14px; border-right: 1px solid var(--border); }
.comp-cell { padding: 18px 20px; text-align: center; font-size: 13px; color: var(--muted); border-right: 1px solid var(--border); display: grid; place-items: center; }
.comp-cell:last-child { border-right: 0; }
.comp-cell.comp-us { background: rgba(99,102,241,0.05); color: var(--text); font-weight: 500; }
.comp-row.comp-head .comp-cell { font-size: 13px; font-weight: 500; color: var(--text); }
.comp-yes { color: var(--green); }
.comp-no { color: var(--dim); }

/* ========== TRANSPARENCY ========== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.cert-card { padding: 28px; background: #08080e; display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.cert-card:hover { background: #0c0c15; }
.cert-icon { color: var(--accent-2); width: 40px; height: 40px; }
.cert-label { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cert-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.cert-link { font-size: 13px; color: var(--accent-2); margin-top: auto; }
.cert-link:hover { text-decoration: underline; }

/* ========== STICKY MOBILE CTA ========== */
.sticky-cta {
  position: fixed; bottom: -80px; left: 0; right: 0; z-index: 40;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(6,6,10,0.95) 40%);
  display: none; justify-content: center;
  transition: bottom .3s;
}
.sticky-cta.on { bottom: 0; }
.sticky-cta .btn { width: 100%; max-width: 400px; justify-content: center; }
@media (max-width: 700px) { .sticky-cta { display: flex; } }

/* ========== WAITLIST COUNTER ========== */
.waitlist-counter {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 20px auto 0;
  padding: 8px 16px 8px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--muted);
}
.waitlist-counter strong { color: var(--text); font-variant-numeric: tabular-nums; }
.wlc-dots { display: flex; }
.wlc-avatar { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; }
.wlc-avatar:first-child { margin-left: 0; }

/* ========== THEME TOGGLE ========== */
html.light { }
html.light body { background: #fafaf7; color: #111; }
html.light body::before { opacity: 0.4; }
html.light {
  --bg: #fafaf7; --bg-1: #f5f5f0; --bg-2: #fff;
  --surface: rgba(0,0,0,0.025); --surface-2: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.08); --border-strong: rgba(0,0,0,0.15);
  --text: #111; --muted: #666; --dim: #999;
}
html.light .nav { background: rgba(250,250,247,0.8); }
html.light .nav.scrolled { background: rgba(250,250,247,0.95); }
html.light .brand img { filter: invert(1); }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .how-wrap, .calc-wrap { grid-template-columns: 1fr; }
  .calc-left { border-right: 0; border-bottom: 1px solid var(--border); }
  .pricing-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .comp-row { grid-template-columns: 1.3fr repeat(4, 1fr); font-size: 12px; }
  .comp-feat, .comp-cell { padding: 12px 8px; font-size: 12px; }
  .ba-wrap { height: 420px; }
}
