:root {
  --navy: #001d5f;
  --navy-deep: #001448;
  --yolk: #ffd241;
  --yolk-hot: #ffe36e;
  --bubble: #f79df4;
  --helmet: #a9a6ff;
  --text: #f7f9ff;
  --muted: #d5e0f7;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: Outfit, sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3,
.font-display {
  font-family: Fredoka, Outfit, sans-serif;
  line-height: 1.05;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--yolk);
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--yolk);
  outline-offset: 3px;
}

.muted {
  color: var(--muted);
}

.link {
  color: var(--yolk);
  font-weight: 600;
}

.link:hover {
  color: var(--yolk-hot);
}

.site-header {
  background: rgba(0, 29, 95, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(247, 157, 244, 0.4);
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--yolk);
}

.ticker {
  border: 1px solid rgba(255, 210, 65, 0.55);
  background: rgba(255, 210, 65, 0.12);
  color: var(--yolk);
}

.hero {
  background: var(--navy);
}

.hero-stage {
  min-height: 240px;
}

.hero-shade {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 29, 95, 0.94) 0%, rgba(0, 29, 95, 0.78) 18%, rgba(0, 29, 95, 0.28) 36%, rgba(0, 29, 95, 0) 58%),
    linear-gradient(180deg, rgba(0, 29, 95, 0.08) 0%, rgba(0, 29, 95, 0) 42%, #001d5f 100%);
}

@media (min-width: 640px) {
  .hero-stage {
    min-height: 320px;
  }
}

@media (min-width: 768px) {
  .hero-stage {
    min-height: 420px;
  }
}

.mascot {
  border-radius: 1.75rem;
  box-shadow:
    0 0 0 4px var(--helmet),
    0 0 0 8px rgba(247, 157, 244, 0.72),
    0 18px 50px rgba(255, 210, 65, 0.38);
}

.floaty {
  animation: floaty 5.5s ease-in-out infinite;
}

.chain-pill {
  border: 1px solid rgba(247, 157, 244, 0.7);
  background: rgba(0, 20, 72, 0.45);
}

.ca-box {
  width: min(100%, 36rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 12, 40, 0.55);
  backdrop-filter: blur(12px);
}

.btn-primary,
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--yolk) !important;
  color: var(--navy) !important;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(255, 210, 65, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
}

.btn-copy {
  min-width: 6.75rem;
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  font-weight: 700;
}

.btn-primary:hover,
.btn-copy:hover {
  background: var(--yolk-hot) !important;
  box-shadow: 0 10px 34px rgba(255, 210, 65, 0.42);
  transform: translateY(-1px);
}

.btn-copy.is-copied {
  background: #ffffff !important;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 65, 0.6);
  color: var(--yolk);
  background: rgba(255, 210, 65, 0.08);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-icon:hover {
  background: var(--yolk);
  color: var(--navy);
  box-shadow: 0 0 24px rgba(255, 210, 65, 0.4);
  transform: translateY(-1px);
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--yolk);
  box-shadow: 0 0 0 0 rgba(255, 210, 65, 0.65);
  animation: pulse 1.8s ease-out infinite;
}

.section {
  scroll-margin-top: 5.25rem;
  padding: 4.5rem 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(247, 157, 244, 0.45);
  border-radius: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--yolk);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 210, 65, 0.12);
}

.callout {
  border: 1px solid rgba(255, 210, 65, 0.5);
  background: rgba(255, 210, 65, 0.1);
  border-radius: 1.25rem;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 210, 65, 0.14);
  color: var(--yolk);
}

.icon-tile.solid {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--yolk);
  color: var(--navy);
}

.step-no {
  color: var(--yolk);
  font-family: Fredoka, Outfit, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.chart-panel {
  overflow: hidden;
  border: 1px solid rgba(247, 157, 244, 0.45);
  border-radius: 1.5rem;
  background: var(--navy-deep);
}

.chart-placeholder {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem 1.25rem;
  background-color: #001448;
  background-image:
    linear-gradient(rgba(247, 157, 244, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 157, 244, 0.13) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 100%, rgba(255, 210, 65, 0.16), transparent 58%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.menu-panel {
  background: #001448;
  border: 1px solid rgba(247, 157, 244, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] .icon-menu {
  display: none;
}

details[open] .icon-close {
  display: block;
}

.icon-close {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(247, 157, 244, 0.28);
  background: #001448;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 210, 65, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 210, 65, 0);
  }
}

@media (min-width: 768px) {
  .section {
    padding: 6.5rem 1.5rem;
  }
}

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

  .floaty,
  .live-dot {
    animation: none;
  }

  .card,
  .btn-primary,
  .btn-copy,
  .btn-icon {
    transition: none;
  }
}
