/* =========================================================
   BUBBLE PONS — Premium sky bubble-map styles
   ========================================================= */

:root {
  --sky-blue: #1688D4;
  --deep-blue: #075B9E;
  --light-sky: #65C7F5;
  --cloud-white: #F7FBFF;
  --soft-white: #FFFFFF;
  --bubble-cyan: #AEEFFF;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.38);
  --dark-text: #123047;
  --green-gain: #39D98A;
  --green-glow: #7DFFB2;
  --red-loss: #FF6B81;
  --pink: #FF91B4;
  --neutral-blue: #66BFFF;
  --footer-bg: rgba(7, 91, 158, 0.55);
  --shadow-soft: 0 18px 50px rgba(7, 91, 158, 0.18);
  --shadow-glass: 0 10px 40px rgba(18, 48, 71, 0.12);
  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: "Nunito", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--sky-blue);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--soft-white);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Sky environment ---------- */

.sky-environment {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  contain: strict;
  isolation: isolate;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(174, 239, 255, 0.28), transparent 50%),
    linear-gradient(180deg, #0f6fb8 0%, var(--sky-blue) 28%, var(--light-sky) 68%, #b8e6fb 100%);
}

.atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 35%),
    radial-gradient(circle at 75% 55%, rgba(174, 239, 255, 0.1), transparent 40%);
}

.cloud {
  position: absolute;
  border-radius: 50%;
  /* Soft edge via gradient — avoid live filter:blur (repaints every frame while scrolling). */
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, 0.7), rgba(247, 251, 255, 0.28) 42%, transparent 72%);
  opacity: 0.7;
  animation: cloud-drift linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.cloud-1 { width: 42vw; height: 18vw; top: 8%; left: -10%; animation-duration: 90s; }
.cloud-2 { width: 34vw; height: 14vw; top: 28%; left: 40%; animation-duration: 110s; animation-delay: -20s; opacity: 0.55; }
.cloud-3 { width: 50vw; height: 20vw; top: 55%; left: -5%; animation-duration: 130s; animation-delay: -40s; opacity: 0.65; }
.cloud-4 { width: 28vw; height: 12vw; top: 72%; left: 55%; animation-duration: 100s; animation-delay: -10s; opacity: 0.5; }
.cloud-5 { width: 36vw; height: 15vw; top: 12%; left: 70%; animation-duration: 120s; animation-delay: -55s; opacity: 0.45; }

@keyframes cloud-drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(8vw); }
  100% { transform: translateX(0); }
}

.bg-bubbles .bg-bubble {
  position: absolute;
  opacity: 0.22;
  animation: bg-float ease-in-out infinite;
  transform: translateZ(0);
}

.particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: particle-rise linear infinite;
}

@keyframes bg-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-28px) translateX(12px); }
}

@keyframes particle-rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ---------- Glass primitives ---------- */

.glass-panel,
.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.glass-card {
  border-radius: var(--radius-lg);
}

.glass-panel {
  border-radius: var(--radius-lg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
}

.btn:focus-visible,
.pill:focus-visible,
.nav-toggle:focus-visible,
.panel-close:focus-visible,
.token-bubble:focus-visible {
  outline: 3px solid var(--bubble-cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--soft-white), rgba(174, 239, 255, 0.85));
  color: var(--deep-blue);
  box-shadow: 0 10px 30px rgba(7, 91, 158, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(7, 91, 158, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--dark-text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-nav {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--deep-blue);
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.55);
}

.btn-x {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
}

.x-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.25rem 0;
  transition: padding 0.35s var(--ease);
}

.site-header.scrolled {
  padding-top: 0.65rem;
}

.nav-bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 40px rgba(7, 91, 158, 0.14);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled .nav-bar {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 44px rgba(7, 91, 158, 0.2);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo,
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(174, 239, 255, 0.4));
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--dark-text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(18, 48, 71, 0.78);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.45);
  color: var(--deep-blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease, top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.demo-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--deep-blue);
  backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  color: var(--dark-text);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.35);
}

.hero-line {
  display: block;
}

.hero-line.accent,
.accent {
  color: var(--deep-blue);
  background: linear-gradient(120deg, #053d6b 0%, var(--deep-blue) 38%, #0a7cc4 72%, #1490d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glossy translucent soap-bubble title (hero only) */
.home-hero #hero-title .hero-line.accent {
  letter-spacing: 0.04em;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(220, 240, 255, 0.78) 18%,
    rgba(140, 200, 245, 0.42) 42%,
    rgba(90, 170, 230, 0.38) 58%,
    rgba(200, 230, 255, 0.72) 78%,
    rgba(255, 255, 255, 0.9) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.45);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.55))
    drop-shadow(0 3px 2px rgba(100, 170, 220, 0.25))
    drop-shadow(0 14px 28px rgba(7, 91, 158, 0.28));
}

.hero-sub,
.section-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(18, 48, 71, 0.82);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.section-intro {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.section-intro.centered {
  text-align: center;
}

.section-intro.centered .section-sub {
  margin-inline: auto;
}

.section-intro h2,
.discovery h2,
.philosophy h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--dark-text);
}

/* ---------- Map controls ---------- */

.bubble-map-section {
  padding: 1rem 1.25rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.control-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(18, 48, 71, 0.65);
}

.control-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(18, 48, 71, 0.8);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.4);
}

.pill.active {
  background: linear-gradient(135deg, #fff, rgba(174, 239, 255, 0.75));
  color: var(--deep-blue);
  box-shadow: 0 6px 18px rgba(7, 91, 158, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
}

.inline-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ---------- Bubble map ---------- */

.bubble-map-frame {
  position: relative;
  min-height: min(78vh, 820px);
  height: min(78vh, 820px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(101, 199, 245, 0.25), rgba(22, 136, 212, 0.12));
}

.bubble-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(18, 48, 71, 0.7);
  pointer-events: none;
  z-index: 5;
}

.map-empty[hidden] {
  display: none !important;
}

.token-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    width 0.55s var(--ease),
    height 0.55s var(--ease),
    filter 0.35s ease,
    opacity 0.45s ease,
    z-index 0s;
  animation-name: bubble-bob;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 2;
}

.token-bubble.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
}

.token-bubble .bubble-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.token-bubble .bubble-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  filter: blur(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.token-bubble.gain .bubble-glow {
  background: radial-gradient(circle, rgba(57, 217, 138, 0.55), transparent 70%);
}

.token-bubble.loss .bubble-glow {
  background: radial-gradient(circle, rgba(255, 107, 129, 0.5), transparent 70%);
}

.token-bubble.neutral .bubble-glow {
  background: radial-gradient(circle, rgba(102, 191, 255, 0.5), transparent 70%);
}

.token-bubble.gain .bubble-image {
  filter: drop-shadow(0 0 18px rgba(57, 217, 138, 0.4));
}

.token-bubble.loss .bubble-image {
  filter: drop-shadow(0 0 18px rgba(255, 107, 129, 0.38));
}

.token-bubble.neutral .bubble-image {
  filter: drop-shadow(0 0 16px rgba(102, 191, 255, 0.35));
}

.token-bubble.trending .bubble-glow {
  animation: trend-pulse 2.8s ease-in-out infinite;
}

.token-bubble.trending .bubble-image {
  filter: drop-shadow(0 0 22px rgba(174, 239, 255, 0.55)) drop-shadow(0 0 12px rgba(125, 255, 178, 0.25));
}

.bubble-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  width: 72%;
  max-width: 72%;
  text-align: center;
  padding: 0;
  color: var(--dark-text);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.token-symbol {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.token-change {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.token-change.positive { color: #148a54; }
.token-change.negative { color: #c63d55; }
.token-change.flat { color: var(--deep-blue); }

.token-mcap {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.1;
  white-space: nowrap;
}

.token-bubble.size-tiny .token-symbol { font-size: clamp(0.7rem, 2.2vw, 0.95rem); }
.token-bubble.size-small .token-symbol { font-size: clamp(0.75rem, 1.8vw, 1rem); }
.token-bubble.size-medium .token-symbol { font-size: clamp(0.9rem, 2vw, 1.25rem); }
.token-bubble.size-large .token-symbol { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }

.token-bubble.size-small .token-change { font-size: 0.72em; }
.token-bubble.size-medium .token-change { font-size: 0.78em; }
.token-bubble.size-large .token-change { font-size: 0.82em; }

.token-bubble.label-compact .token-symbol {
  font-size: clamp(0.85rem, 2.4vw, 1.35rem);
  letter-spacing: 0;
}

.token-bubble:hover,
.token-bubble:focus-visible {
  z-index: 20;
  animation-play-state: paused;
}

.token-bubble:hover .bubble-image,
.token-bubble:focus-visible .bubble-image {
  filter: drop-shadow(0 0 28px rgba(174, 239, 255, 0.65));
}

.token-bubble.gain:hover .bubble-image,
.token-bubble.gain:focus-visible .bubble-image {
  filter: drop-shadow(0 0 28px rgba(57, 217, 138, 0.6));
}

.token-bubble.loss:hover .bubble-image,
.token-bubble.loss:focus-visible .bubble-image {
  filter: drop-shadow(0 0 28px rgba(255, 107, 129, 0.55));
}

.token-bubble:hover .bubble-glow,
.token-bubble:focus-visible .bubble-glow {
  opacity: 1;
  transform: scale(1.08);
}

.token-bubble:hover .bubble-content,
.token-bubble:focus-visible .bubble-content {
  transform: scale(1.05);
}

.bubble-ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(174, 239, 255, 0.7);
  width: 40%;
  height: 40%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.token-bubble.rippling .bubble-ripple {
  animation: ripple-out 0.7s var(--ease) forwards;
}

@keyframes bubble-bob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translate(-50%, calc(-50% + var(--bob, -10px))) translateX(var(--drift, 6px)) rotate(var(--rot, 0deg)); }
}

@keyframes trend-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes ripple-out {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

.bubble-map.entering .token-bubble {
  animation-name: bubble-enter, bubble-bob;
  animation-duration: 0.9s, var(--dur, 14s);
  animation-timing-function: var(--ease), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

@keyframes bubble-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.35);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ---------- Summary ---------- */

.market-summary {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.summary-card {
  padding: 1.4rem 1.3rem;
  text-align: center;
}

.summary-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(18, 48, 71, 0.65);
}

.summary-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--deep-blue);
}

.summary-value.gain { color: #1a9a62; }
.summary-value.loss { color: #d14f66; }

.float-card {
  animation: card-float 7s ease-in-out infinite;
}

.float-card:nth-child(2) { animation-delay: -1.5s; }
.float-card:nth-child(3) { animation-delay: -3s; }
.float-card:nth-child(4) { animation-delay: -4.5s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Discovery ---------- */

.discovery {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.discovery-card {
  padding: 1.5rem 1.25rem 1.6rem;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.discovery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(7, 91, 158, 0.18);
}

.discovery-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.discovery-card p {
  margin: 0;
  color: rgba(18, 48, 71, 0.75);
  font-size: 0.95rem;
}

.mini-bubble-art {
  position: relative;
  height: 110px;
  margin-bottom: 1rem;
}

.mini-bubble {
  position: absolute;
  object-fit: contain;
  width: 64px;
  height: 64px;
}

.mini-bubble-art.size-art .large { width: 88px; height: 88px; left: 18%; top: 8%; }
.mini-bubble-art.size-art .medium { width: 58px; height: 58px; left: 48%; top: 28%; opacity: 0.9; }
.mini-bubble-art.size-art .small { width: 36px; height: 36px; left: 68%; top: 18%; opacity: 0.8; }

.mini-bubble-art.color-art .mini-bubble { width: 52px; height: 52px; top: 28%; }
.mini-bubble-art.color-art .glow-gain { left: 12%; }
.mini-bubble-art.color-art .glow-loss { left: 38%; }
.mini-bubble-art.color-art .glow-neutral { left: 64%; }

.mini-bubble-art.motion-art .drift-a {
  left: 22%;
  top: 20%;
  animation: bg-float 6s ease-in-out infinite;
}

.mini-bubble-art.motion-art .drift-b {
  left: 52%;
  top: 35%;
  width: 48px;
  height: 48px;
  animation: bg-float 8s ease-in-out infinite reverse;
}

.mini-bubble-art.volume-art .pulse-glow {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}

.glow-gain { filter: drop-shadow(0 0 16px rgba(57, 217, 138, 0.55)); }
.glow-loss { filter: drop-shadow(0 0 16px rgba(255, 107, 129, 0.5)); }
.glow-neutral { filter: drop-shadow(0 0 16px rgba(102, 191, 255, 0.5)); }
.pulse-glow { animation: trend-pulse 2.8s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(174, 239, 255, 0.65)); }

.home-cta,
.final-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.cta-panel {
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.cta-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-panel p {
  color: rgba(18, 48, 71, 0.78);
  margin-bottom: 1.5rem;
}

.large-cta {
  padding: 3.25rem 2rem;
}

/* ---------- Token panel ---------- */

.token-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.token-panel.open {
  pointer-events: auto;
  visibility: visible;
}

.token-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 55, 95, 0.28);
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

.token-panel.open .token-panel-backdrop {
  opacity: 1;
}

.token-panel-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.55), rgba(174, 239, 255, 0.22));
}

.token-panel.open .token-panel-sheet {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--deep-blue);
}

.panel-bubble-preview {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0.5rem auto 1.25rem;
}

.panel-bubble-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.panel-bubble-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  filter: blur(16px);
  background: radial-gradient(circle, rgba(102, 191, 255, 0.55), transparent 70%);
  z-index: 0;
}

.panel-bubble-glow.gain { background: radial-gradient(circle, rgba(57, 217, 138, 0.55), transparent 70%); }
.panel-bubble-glow.loss { background: radial-gradient(circle, rgba(255, 107, 129, 0.5), transparent 70%); }

#panelTokenName {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.15rem;
}

.panel-ticker {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(18, 48, 71, 0.65);
  margin-bottom: 0.5rem;
}

.panel-change {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.panel-change.positive { color: #1a9a62; }
.panel-change.negative { color: #d14f66; }
.panel-change.flat { color: var(--deep-blue); }

.panel-stats {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.panel-stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.panel-stats dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(18, 48, 71, 0.6);
}

.panel-stats dd {
  margin: 0;
  font-weight: 700;
  font-family: var(--font-display);
}

.panel-cta {
  width: 100%;
}

.panel-disclaimer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(18, 48, 71, 0.55);
}

/* ---------- About page ---------- */

.about-stage {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: calc(100dvh - 7.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.about-mission-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.about-map-holder {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#home {
  --map-y: 48%;
  --map-scale: 1;
  --map-blur: 0px;
  --map-soon: 0;
  --map-hint: 1;
  --map-width: min(860px, calc(100% - 2rem));
  --map-fade: 14%;
  --map-hero-out: 0;
  --map-solid: 0;
  --map-frame-h: 52vh;
  --map-full: 0;
}

.home-map-holder {
  position: absolute;
  left: 50%;
  bottom: max(1rem, 2vh);
  z-index: 3;
  width: var(--map-width);
  margin: 0;
  display: flex;
  justify-content: center;
  transform: translate3d(-50%, var(--map-y), 0) scale(var(--map-scale));
  transform-origin: center bottom;
  transition: none;
  pointer-events: none;
  will-change: transform, filter, width;
  /* Soft flow on left/right/top — no hard window cuts */
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--map-fade),
      #000 calc(100% - var(--map-fade)),
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      #000 18%,
      #000 100%
    );
  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--map-fade),
      #000 calc(100% - var(--map-fade)),
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      #000 18%,
      #000 100%
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

#home.map-engaged .home-map-holder {
  pointer-events: auto;
}

#home.map-engaged .home-stage,
#home.map-leaving .home-stage {
  pointer-events: none;
}

#home.map-complete .scroll-hint {
  pointer-events: none;
}

.about-map-frame {
  position: relative;
  width: 100%;
  height: auto;
  max-height: min(var(--map-frame-h), 900px);
  border-radius: 0;
  overflow: hidden;
  /* Solid backdrop — not glass/transparent */
  background: rgb(
    calc(198 - var(--map-solid) * 18),
    calc(226 - var(--map-solid) * 12),
    calc(245 - var(--map-solid) * 8)
  );
  border: none;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.about-map-image {
  width: 100%;
  height: auto;
  max-height: min(var(--map-frame-h), 900px);
  object-fit: cover;
  object-position: center;
  display: block;
  filter: blur(var(--map-blur));
  transform: scale(calc(1.02 + var(--map-full) * 0.06));
  opacity: calc(1 - var(--map-full) * 0.08);
  will-change: filter, transform, opacity;
}

/* map-complete is a soft final settle only — no layout snap */
#home.map-complete .home-map-holder {
  -webkit-mask-image: none;
  mask-image: none;
}

#home.map-complete .about-map-frame {
  background: transparent;
}

.home-map-soon {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  isolation: isolate;
}

.home-map-soon-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, calc(5.5vw + var(--map-soon) * 2.2vw), calc(3.5rem + var(--map-soon) * 1.5rem));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(220, 240, 255, 0.78) 18%,
    rgba(140, 200, 245, 0.42) 42%,
    rgba(90, 170, 230, 0.38) 58%,
    rgba(200, 230, 255, 0.72) 78%,
    rgba(255, 255, 255, 0.9) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.45);
  text-shadow: none;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.55))
    drop-shadow(0 3px 2px rgba(100, 170, 220, 0.25))
    drop-shadow(0 14px 28px rgba(7, 91, 158, 0.28));
  opacity: var(--map-soon);
  transform: translate3d(0, calc((1 - var(--map-soon)) * 28px), 0) scale(calc(0.94 + var(--map-soon) * 0.06));
  will-change: opacity, transform;
}

.about-map-frame:has(.about-map-image) .about-map-placeholder {
  display: none;
}

.about-map-placeholder {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 48, 71, 0.45);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.about-hero,
.how-hero {
  min-height: 48vh;
  display: flex;
  align-items: center;
}

.decorative-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-bubble {
  position: absolute;
  object-fit: contain;
  opacity: 0.85;
  animation: bg-float ease-in-out infinite;
}

.db-1 { width: 180px; top: 10%; right: 8%; animation-duration: 12s; filter: drop-shadow(0 0 18px rgba(57, 217, 138, 0.35)); }
.db-2 { width: 110px; top: 45%; right: 22%; animation-duration: 16s; animation-delay: -3s; }
.db-3 { width: 70px; top: 20%; right: 32%; animation-duration: 14s; animation-delay: -6s; opacity: 0.7; }
.db-4 { width: 90px; bottom: 8%; right: 12%; animation-duration: 18s; animation-delay: -2s; filter: drop-shadow(0 0 14px rgba(255, 107, 129, 0.3)); }

.about-story {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.story-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.story-copy p {
  color: rgba(18, 48, 71, 0.82);
  font-size: 1.05rem;
}

.story-bubble-cluster {
  position: relative;
  height: 360px;
}

.story-bubble {
  position: absolute;
  object-fit: contain;
}

.sb-lg { width: 240px; left: 18%; top: 10%; }
.sb-md { width: 150px; right: 8%; top: 35%; }
.sb-sm { width: 100px; left: 8%; bottom: 12%; }
.sb-xs { width: 60px; right: 28%; top: 8%; opacity: 0.8; }

.philosophy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.philosophy-card {
  padding: 1.75rem 1.4rem 1.5rem;
  min-height: 280px;
}

.phil-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: rgba(7, 91, 158, 0.28);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.philosophy-card h3 {
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}

.philosophy-card > p {
  color: rgba(18, 48, 71, 0.75);
}

.phil-visual {
  position: relative;
  height: 110px;
  margin-top: 1rem;
}

.phil-bubble {
  position: absolute;
  object-fit: contain;
}

.phil-visual .p-lg { width: 90px; left: 10%; top: 5%; }
.phil-visual .p-md { width: 64px; left: 42%; top: 25%; }
.phil-visual .p-sm { width: 42px; left: 70%; top: 15%; }

.phil-visual.color-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.phil-visual.color-row .phil-bubble {
  position: relative;
  width: 70px;
  left: auto;
  top: auto;
}

.phil-visual .pulse-glow {
  width: 96px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mission {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.mission-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.mission-statement {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
}

.mission-statement span {
  display: block;
}

.mission-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mission-bubble {
  position: absolute;
  object-fit: contain;
  opacity: 0.75;
  animation: bg-float ease-in-out infinite;
}

.mb-1 { width: 120px; left: 8%; top: 20%; animation-duration: 13s; }
.mb-2 { width: 70px; left: 22%; bottom: 18%; animation-duration: 17s; }
.mb-3 { width: 160px; right: 10%; top: 12%; animation-duration: 15s; filter: drop-shadow(0 0 16px rgba(57, 217, 138, 0.35)); }
.mb-4 { width: 55px; right: 28%; bottom: 22%; animation-duration: 11s; }
.mb-5 { width: 90px; left: 45%; top: 8%; animation-duration: 19s; opacity: 0.55; }

/* ---------- How it works ---------- */

.steps {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.step-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.how-step {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.how-step-final {
  overflow-y: auto;
  justify-content: flex-start;
  padding-bottom: 2rem;
}

.how-step-stage {
  width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
}

.how-step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.how-step-card .step-copy {
  text-align: left;
}

.how-step-card .step-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--dark-text);
}

.how-step-card .step-visual {
  min-height: min(42vh, 340px);
  width: 100%;
}

.how-step.is-active .how-step-card .step-copy {
  animation: how-step-in 0.55s var(--ease) both;
}

.how-step.is-active .how-step-card .step-visual {
  animation: how-step-in 0.55s var(--ease) 0.08s both;
}

.how-step.is-active .how-step-card.reverse .step-copy {
  animation-delay: 0.08s;
}

.how-step.is-active .how-step-card.reverse .step-visual {
  animation-delay: 0s;
}

@keyframes how-step-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.how-step-final .how-step-card {
  margin-bottom: 0.25rem;
}

.how-final-cta {
  width: min(640px, 100%);
  margin: 0 auto;
}

.how-final-cta .cta-panel {
  text-align: center;
  padding: 1.4rem 1.5rem;
}

.how-final-cta h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.how-final-cta p {
  margin: 0 0 1rem;
}

.how-step .snap-disclaimer {
  margin: 0;
  text-align: center;
}

.step-block.reverse {
  direction: rtl;
}

.step-block.reverse > * {
  direction: ltr;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(7, 91, 158, 0.25);
  margin-bottom: 0.4rem;
}

.step-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.step-copy p {
  color: rgba(18, 48, 71, 0.8);
  font-size: 1.05rem;
}

.step-visual {
  min-height: 260px;
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.step-token-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-token {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.demo-token img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-token span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--dark-text);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}

.size-demo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 220px;
}

.size-demo-bubble {
  position: relative;
  display: grid;
  place-items: center;
  transition: width 0.55s var(--ease), height 0.55s var(--ease);
}

.size-demo-bubble img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.size-demo-bubble span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--dark-text);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7);
}

.color-demo {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.color-demo-item {
  margin: 0;
  text-align: center;
}

.color-demo-bubble {
  width: 110px;
  height: 110px;
  margin: 0 auto 0.75rem;
}

.color-demo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.color-demo-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-display);
}

.color-demo-item strong {
  letter-spacing: 0.08em;
}

.color-demo-item span {
  font-size: 0.8rem;
  color: rgba(18, 48, 71, 0.65);
}

.dive-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dive-bubble {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}

.dive-bubble:hover {
  transform: scale(1.08);
}

.dive-bubble img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(57, 217, 138, 0.45));
}

.dive-label {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  color: var(--dark-text);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}

.dive-label strong {
  display: block;
  font-size: 1.05rem;
}

.dive-label em {
  font-style: normal;
  font-weight: 700;
  color: #1a9a62;
  font-size: 0.9rem;
}

.dive-arrow {
  font-size: 1.8rem;
  color: var(--deep-blue);
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dive-demo.active .dive-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.dive-panel-preview {
  width: 180px;
  padding: 1rem 1.1rem;
  opacity: 0.35;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}

.dive-demo.active .dive-panel-preview {
  opacity: 1;
  transform: scale(1);
}

.dive-preview-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.dive-preview-ticker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(18, 48, 71, 0.6);
}

.dive-preview-change {
  margin: 0.4rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: #1a9a62;
  font-size: 1.2rem;
}

.dive-preview-meta,
.dive-preview-status {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(18, 48, 71, 0.7);
}

.follow-visual {
  position: relative;
  width: 100%;
  height: 240px;
}

.follow-b {
  position: absolute;
  object-fit: contain;
  animation: bg-float ease-in-out infinite;
}

.fb1 { width: 130px; left: 12%; top: 20%; animation-duration: 12s; }
.fb2 { width: 80px; left: 40%; top: 40%; animation-duration: 15s; }
.fb3 { width: 70px; right: 18%; top: 18%; animation-duration: 13s; }
.fb4 { width: 45px; left: 30%; top: 10%; animation-duration: 17s; opacity: 0.7; }
.fb5 { width: 95px; right: 28%; bottom: 12%; animation-duration: 14s; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(7, 91, 158, 0.35), rgba(7, 55, 95, 0.72));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cloud-white);
  backdrop-filter: blur(14px);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-tag {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
  max-width: 36rem;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .summary-grid,
  .discovery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .story-layout,
  .step-block,
  .step-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .decorative-bubbles {
    opacity: 0.55;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 1.25rem;
    right: 1.25rem;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .btn-nav {
    width: 100%;
    justify-content: center;
  }

  .nav-actions {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .btn-x {
    width: 46px;
    min-width: 46px;
    border-radius: 50%;
  }

  .site-header {
    position: sticky;
  }

  .nav-bar {
    position: relative;
  }

  .bubble-map-frame {
    height: min(70vh, 620px);
    min-height: 480px;
  }

  .hero,
  .page-hero {
    padding-top: 2rem;
  }
}

@media (max-width: 560px) {
  .summary-grid,
  .discovery-grid {
    grid-template-columns: 1fr;
  }

  .map-controls {
    padding: 0.9rem;
  }

  .token-panel-sheet {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }

  .token-panel.open .token-panel-sheet {
    transform: translateY(0);
  }

  .nav-brand-text {
    font-size: 0.82rem;
  }

  .dive-arrow {
    transform: rotate(90deg);
  }

  .dive-demo.active .dive-arrow {
    transform: rotate(90deg) translateX(4px);
  }
}

/* ---------- Full-page snap sections ---------- */

html.home-snap-root,
body.home-snap {
  height: 100%;
  overflow: hidden;
}

.home-snap .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.snap-scroller {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateZ(0);
  overscroll-behavior: none;
}

.snap-scroller::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.snap-panel {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6.5rem 1.25rem 2rem;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  contain: layout paint;
}

.snap-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#home.snap-panel {
  align-items: center;
  overflow: hidden;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

#home .home-stage {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

#about.snap-panel {
  align-items: stretch;
  justify-content: flex-start;
}

.panel-stage {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.home-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(920px, 100%);
  position: relative;
  min-height: min(58vh, 560px);
  z-index: 2;
  opacity: calc(1 - var(--map-hero-out));
  transform: translate3d(0, calc(var(--map-hero-out) * -14vh), 0) scale(calc(1 - var(--map-hero-out) * 0.06));
  transform-origin: center top;
  will-change: opacity, transform;
  transition: none;
}

.home-hero .hero-inner {
  max-width: 780px;
  margin: -12vh auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.home-hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.home-hero .hero-actions {
  justify-content: center;
}

.home-hero-bubbles {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: calc(1 - var(--map-hero-out));
}

.panel-appear {
  opacity: 0.35;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.snap-panel.is-active .panel-appear {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.snap-panel.is-active .panel-appear:nth-child(2) {
  transition-delay: 0.06s;
}

/* While snapping: pause motion + drop expensive filters so scroll stays fluid. */
.home-snap.is-scrolling .cloud,
.home-snap.is-scrolling .bg-bubble,
.home-snap.is-scrolling .particle,
.home-snap.is-scrolling .home-float-bubble,
.home-snap.is-scrolling .deco-bubble,
.home-snap.is-scrolling .mission-bubble,
.home-snap.is-scrolling .follow-b,
.home-snap.is-scrolling .pulse-glow,
.home-snap.is-scrolling .scroll-hint-arrow {
  animation-play-state: paused !important;
}

.home-snap.is-scrolling .glass-panel,
.home-snap.is-scrolling .glass-card,
.home-snap.is-scrolling .nav-bar,
.home-snap.is-scrolling .btn-ghost,
.home-snap.is-scrolling .eyebrow {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-snap.is-scrolling .home-float-bubble,
.home-snap.is-scrolling .deco-bubble,
.home-snap.is-scrolling .mission-bubble,
.home-snap.is-scrolling .follow-b,
.home-snap.is-scrolling .glow-gain,
.home-snap.is-scrolling .glow-loss,
.home-snap.is-scrolling .glow-neutral,
.home-snap.is-scrolling .pulse-glow {
  filter: none !important;
}

.home-snap.is-scrolling .panel-appear {
  transition: none;
}

.home-hero .hero-inner {
  max-width: 780px;
}

.home-float-bubble {
  position: absolute;
  object-fit: contain;
  animation: bg-float ease-in-out infinite;
}

.hfb-1 { width: min(38%, 180px); right: 2%; top: 6%; animation-duration: 12s; }
.hfb-2 { width: min(28%, 130px); left: 0%; top: 22%; animation-duration: 15s; animation-delay: -3s; }
.hfb-3 { width: min(22%, 100px); right: 12%; bottom: 8%; animation-duration: 14s; animation-delay: -6s; }
.hfb-4 { width: min(14%, 64px); left: 18%; bottom: 18%; animation-duration: 18s; opacity: 0.75; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(18, 48, 71, 0.65);
  z-index: 2;
  opacity: var(--map-hint, 1);
  transition: opacity 0.35s ease;
}

.scroll-hint-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hint-bounce 1.8s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.55; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

.snap-dots {
  position: fixed;
  right: 0.85rem;
  top: 0;
  bottom: 0;
  height: fit-content;
  margin-block: auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* No transform here — parent transforms make tiny circles look soft/uneven. */
}

.snap-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
}

.snap-dot-mark {
  box-sizing: border-box;
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.snap-dot.active .snap-dot-mark {
  background: #ffffff;
  border-color: #ffffff;
}

.snap-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 999px;
}

.inline-hero {
  position: relative;
  min-height: auto;
  padding: 0.5rem 0 1.5rem;
  max-width: none;
  margin: 0;
}

.inline-hero h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 0.75rem;
}

.compact-story {
  padding: 0.5rem 0 2rem;
  max-width: none;
  margin: 0;
}

.compact-story h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.compact-philosophy {
  padding: 0.5rem 0 2rem;
  max-width: none;
  margin: 0;
}

.compact-philosophy .philosophy-card {
  min-height: 260px;
}

.compact-philosophy h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

.compact-mission {
  padding: 1rem 0 0.5rem;
  max-width: none;
  margin: 0;
}

.compact-mission .mission-stage {
  min-height: 260px;
}

.compact-mission .mission-statement {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.compact-steps {
  padding: 0.5rem 0;
  max-width: none;
  margin: 0;
  gap: 2.5rem;
}

.compact-steps h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.compact-cta {
  padding: 2rem 0 0.5rem;
  max-width: none;
  margin: 0;
}

.compact-cta .cta-panel {
  padding: 2.5rem 1.75rem;
}

.compact-cta h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.snap-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: rgba(18, 48, 71, 0.55);
  text-align: center;
}

/* ---------- Dedicated map page ---------- */

.page-map {
  min-height: 100vh;
  min-height: 100dvh;
}

.map-page-main {
  min-height: calc(100vh - 100px);
  min-height: calc(100dvh - 100px);
}

.map-page-section {
  max-width: none;
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: calc(100vh - 110px);
  min-height: calc(100dvh - 110px);
}

.map-page-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.map-page-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark-text);
}

.map-page-frame {
  flex: 1;
  min-height: 0;
  height: auto;
}

.map-page-section .map-controls {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.map-page-section .bubble-map-frame {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .home-snap .hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
    line-height: 1.06;
  }

  .snap-dots {
    right: 0.65rem;
  }

  .about-section .decorative-bubbles {
    opacity: 0.45;
  }

  .home-snap .site-header {
    padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  #home.snap-panel {
    padding-top: max(5.25rem, calc(env(safe-area-inset-top, 0px) + 4.25rem));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .home-stage {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  .home-hero .hero-inner {
    margin-top: 0;
    max-width: 100%;
  }

  .home-hero .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 34rem;
  }

  .home-hero .eyebrow {
    margin-bottom: 0.75rem;
  }

  .home-hero-bubbles .hfb-1 {
    width: min(28%, 110px);
    right: -2%;
    top: 2%;
    opacity: 0.7;
  }

  .home-hero-bubbles .hfb-2 {
    width: min(22%, 88px);
    left: -4%;
    top: 18%;
    opacity: 0.65;
  }

  .home-hero-bubbles .hfb-3,
  .home-hero-bubbles .hfb-4 {
    opacity: 0.45;
  }

  .home-map-holder {
    bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  }

  /* Keep Coming Soon locked to viewport center while scrolling */
  .home-map-soon {
    position: fixed;
    inset: 0;
    z-index: 40;
    width: 100%;
    height: 100%;
    place-items: center;
  }

  .home-map-soon-label {
    font-size: clamp(1.55rem, 9vw, 2.55rem);
    letter-spacing: 0.08em;
    padding: 0 1rem;
    text-align: center;
    max-width: 100%;
    /* Stay centered — only fade/scale, no vertical drift */
    transform: scale(calc(0.96 + var(--map-soon) * 0.04));
  }

  .scroll-hint {
    bottom: max(0.85rem, calc(env(safe-area-inset-bottom, 0px) + 0.35rem));
  }

  /* Full-bleed Coming Soon — no banded seams on phones */
  #home.map-complete .home-map-holder {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto !important;
    height: auto;
    max-height: none;
    transform: none !important;
    -webkit-mask-image: none;
    mask-image: none;
  }

  #home.map-complete .about-map-frame {
    position: absolute;
    inset: 0;
    height: auto;
    width: auto;
    max-height: none;
    background: transparent;
  }

  #home.map-complete .about-map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transform: none !important;
  }

  #home.map-complete .home-map-soon {
    position: fixed;
    inset: 0;
  }

  .map-page-main {
    padding: 5.5rem 0.85rem 1.5rem;
  }

  .map-page-frame.bubble-map-frame {
    height: min(68vh, 560px);
    min-height: 360px;
  }

  .map-controls {
    gap: 0.75rem 1rem;
  }
}

@media (max-height: 720px) {
  .home-snap .hero h1 {
    font-size: clamp(1.7rem, 5.5vh, 2.4rem);
  }

  .home-snap .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
  }

  .home-stage {
    min-height: 0;
  }

  .about-map-frame,
  .about-map-image {
    max-height: min(40vh, 360px);
  }

  .home-hero .hero-actions .btn {
    min-height: 46px;
    padding: 0.7rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-map-holder,
  .home-stage {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-step.is-active .how-step-card .step-copy,
  .how-step.is-active .how-step-card .step-visual {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cloud,
  .bg-bubbles .bg-bubble,
  .particles .particle,
  .token-bubble,
  .float-card,
  .pulse-glow,
  .mission-bubble,
  .deco-bubble,
  .follow-b,
  .home-float-bubble {
    animation: none !important;
  }

  .reveal,
  .panel-appear {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .snap-scroller {
    scroll-behavior: auto;
  }
}
