:root {
  --ink: #0c110f;
  --panel: #141c18;
  --cream: #f4efe4;
  --mist: #c5d0c4;
  --sage: #9aab9c;
  --bow: #e892a8;
  --bow-soft: #f6c4d1;
  --ink-text: #1a1012;
  --gold: #c6a36a;
  --line: rgba(198, 163, 106, 0.28);
  --nav-h: 4.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
}

::selection {
  background: var(--bow);
  color: var(--ink-text);
}

:focus-visible {
  outline: 2px solid var(--bow);
  outline-offset: 3px;
}

.nav-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(12, 17, 15, 0.92), rgba(12, 17, 15, 0.55));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.nav-bar.is-scrolled {
  background: rgba(12, 17, 15, 0.94);
  border-bottom-color: var(--line);
}

.nav-link {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 1.25rem 1rem;
  background: rgba(12, 17, 15, 0.97);
  border-top: 1px solid var(--line);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu .nav-link {
  padding: 0.8rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(244, 239, 228, 0.06);
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 228, 0.2);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: var(--cream);
  position: relative;
  transition: transform 0.18s ease, top 0.18s ease, background 0.18s ease;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 4.5rem;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 17, 15, 0.55), transparent 16%, transparent 84%, rgba(12, 17, 15, 0.55)),
    linear-gradient(180deg, rgba(12, 17, 15, 0.42) 0%, rgba(12, 17, 15, 0.08) 22%, rgba(12, 17, 15, 0.22) 58%, var(--ink) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 22%;
  width: min(64rem, 170%);
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 58%, rgba(12, 17, 15, 0.94) 0%, rgba(12, 17, 15, 0.8) 42%, rgba(12, 17, 15, 0.28) 68%, rgba(12, 17, 15, 0) 78%);
  pointer-events: none;
}

.hero-content h1 {
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.mascot-wrap {
  position: relative;
  display: inline-block;
}

.mascot-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 2rem;
  background: rgba(232, 146, 168, 0.45);
  filter: blur(28px);
  z-index: -1;
}

.mascot {
  width: min(12.5rem, 62vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.75rem;
  border: 1px solid rgba(198, 163, 106, 0.7);
  box-shadow:
    0 0 0 6px rgba(12, 17, 15, 0.35),
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(232, 146, 168, 0.28);
}

.tagline {
  color: var(--cream);
  font-size: 1.125rem;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 146, 168, 0.55);
  background: rgba(12, 17, 15, 0.55);
  color: var(--bow-soft);
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(232, 146, 168, 0.16);
}

.pill-sm {
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  box-shadow: none;
}

.pill-div {
  color: var(--gold);
  font-weight: 500;
}

.kicker,
.footer-label {
  color: var(--bow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--bow);
  color: var(--ink-text);
  padding: 0.95rem 1.4rem;
  box-shadow: 0 10px 30px rgba(232, 146, 168, 0.3);
}

.btn-primary:hover {
  background: var(--bow-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(232, 146, 168, 0.45);
}

.btn-sm {
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--cream);
  background: rgba(12, 17, 15, 0.5);
  border-color: rgba(244, 239, 228, 0.22);
  backdrop-filter: blur(8px);
}

.btn-icon:hover {
  color: var(--ink-text);
  background: var(--bow);
  border-color: var(--bow);
  box-shadow: 0 0 24px rgba(232, 146, 168, 0.45);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 36rem);
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border-radius: 1rem;
  background: rgba(8, 12, 10, 0.78);
  border: 1px solid rgba(232, 146, 168, 0.5);
  box-shadow: 0 0 32px rgba(232, 146, 168, 0.14);
  backdrop-filter: blur(12px);
}

.ca-kicker {
  color: var(--bow);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ca-value {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--cream);
  word-break: break-all;
}

.copy-btn {
  border: 0;
  border-radius: 999px;
  background: var(--bow);
  color: var(--ink-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(232, 146, 168, 0.28);
}

.copy-btn:hover {
  background: var(--bow-soft);
}

.copy-btn.is-copied {
  background: var(--gold);
  color: #1a140c;
  box-shadow: 0 0 18px rgba(198, 163, 106, 0.45);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #b7d7a8;
  box-shadow: 0 0 0 0 rgba(183, 215, 168, 0.7);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(183, 215, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(183, 215, 168, 0);
  }
}

.info-card {
  border-radius: 1.25rem;
  background: rgba(8, 12, 10, 0.45);
  border: 1px solid var(--line);
  padding: 1.35rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 146, 168, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 32px rgba(232, 146, 168, 0.12);
}

.icon-badge {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--bow);
  background: rgba(232, 146, 168, 0.12);
  border: 1px solid rgba(232, 146, 168, 0.35);
  box-shadow: 0 0 24px rgba(232, 146, 168, 0.15);
}

.step-no {
  font-family: Cinzel, Palatino, "Palatino Linotype", serif;
  color: var(--bow);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.highlight {
  border-radius: 1.25rem;
  border: 1px solid rgba(232, 146, 168, 0.45);
  background: rgba(232, 146, 168, 0.08);
  box-shadow: 0 0 32px rgba(232, 146, 168, 0.08);
  padding: 1.15rem 1.25rem;
  color: var(--cream);
  line-height: 1.6;
}

.highlight strong {
  color: var(--bow-soft);
  font-weight: 600;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.chart-frame {
  position: relative;
  height: 24rem;
  margin-top: 2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 146, 168, 0.06), transparent 32%),
    #101714;
}

.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-frame.is-placeholder {
  display: grid;
  place-items: center;
}

.chart-ghost {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(244, 239, 228, 0.05) 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(90deg, rgba(244, 239, 228, 0.05) 1px, transparent 1px) 0 0 / 12.5% 100%;
}

.chart-ghost::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 12%;
  height: 48%;
  background: linear-gradient(180deg, rgba(232, 146, 168, 0.42), rgba(232, 146, 168, 0));
  clip-path: polygon(0 72%, 14% 58%, 26% 66%, 40% 36%, 54% 48%, 68% 18%, 80% 28%, 100% 8%, 100% 100%, 0 100%);
}

.chart-empty {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  margin: 0;
  padding: 0.9rem 1.1rem;
  text-align: center;
  color: var(--cream);
  background: rgba(12, 17, 15, 0.78);
  border: 1px solid rgba(232, 146, 168, 0.28);
  border-radius: 0.9rem;
}

.text-link {
  color: var(--bow);
  font-weight: 600;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--bow-soft);
}

.footer {
  background: #090d0b;
  border-top: 1px solid var(--line);
}

.footer-link {
  color: var(--mist);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--bow);
}

.footer .ca-box {
  width: min(100%, 36rem);
}

@media (min-width: 768px) {
  .mascot {
    width: 16rem;
  }

  .tagline {
    font-size: 1.35rem;
  }

  .nav-menu,
  .nav-menu.is-open {
    display: none;
  }

  .social-card {
    flex-direction: row;
    align-items: center;
  }

  .chart-frame {
    height: 32rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
