:root {
  --cream: #f6eadb;
  --cream-2: #fff8ef;
  --paper: #fffaf3;
  --tan: #dba55f;
  --tan-2: #f0c57e;
  --pink: #ff8f88;
  --pink-2: #ffc1b8;
  --ink: #25140d;
  --ink-2: #4a2a1d;
  --muted: #7d6558;
  --line: rgba(51, 28, 17, 0.18);
  --shadow: 0 18px 50px rgba(64, 33, 17, 0.12);
  --radius: 28px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7ecdf;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

::selection { background: var(--pink-2); color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
}
.skip-link:focus { transform: translateY(0); }

.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { position: relative; padding: 108px 0; }
section[id] { scroll-margin-top: 100px; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 50%;
  width: min(1220px, calc(100% - 28px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(58, 30, 18, 0.11);
  border-radius: 22px;
  background: rgba(255, 249, 241, 0.90);
  box-shadow: 0 12px 34px rgba(74, 38, 21, .09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { width: 196px; min-width: 0; flex: 0 0 auto; }
.brand img { width: 100%; height: 42px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.section-nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(58, 30, 18, .09);
  border-radius: 16px;
  background: rgba(225, 198, 165, .20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.section-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #5a3828;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .065em;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.section-nav-link:hover {
  background: rgba(255,250,244,.72);
  border-color: rgba(58,30,18,.08);
  transform: translateY(-1px);
}
.section-nav-link.is-active, .section-nav-link[aria-current="page"] {
  background: linear-gradient(180deg, #fffaf3, #f4dfc5);
  color: var(--ink);
  border-color: rgba(72,38,23,.14);
  box-shadow: 0 3px 9px rgba(83,46,28,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.section-nav-link.is-active::after,
.section-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pink);
}
.desktop-socials {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
  margin-left: 1px;
  border-left: 1px solid rgba(58,30,18,.12);
}
.social-link {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: transform .18s ease, opacity .18s ease;
}
.social-link:hover { transform: translateY(-2px) rotate(-2deg); }
.social-link img { width: 100%; height: 100%; object-fit: contain; }
.social-link.is-disabled { opacity: .38; cursor: default; pointer-events: none; filter: grayscale(.25); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream-2);
  font-weight: 900;
  letter-spacing: -.02em;
  cursor: pointer;
  box-shadow: 4px 5px 0 #d99f68;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translate(-1px,-2px); box-shadow: 6px 7px 0 #d99f68; }
.button:active { transform: translate(2px,2px); box-shadow: 1px 2px 0 #d99f68; }
.button-small { min-height: 42px; padding: 0 16px; border-radius: 14px; }
.site-header .button-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  box-shadow: 3px 4px 0 #d99f68;
  font-size: 13px;
}
.site-header .button-small:hover { box-shadow: 4px 5px 0 #d99f68; }
.button-ghost { background: rgba(255, 250, 244, .72); color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 9px; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,249,241,.98);
  box-shadow: var(--shadow);
}
.mobile-section-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}
.mobile-section-nav .section-nav-link {
  min-height: 44px;
  border: 1px solid rgba(49,25,15,.12);
  background: rgba(255,255,255,.54);
  font-size: 11px;
}
.mobile-section-nav .section-nav-link:last-child { grid-column: 1 / -1; }
.mobile-section-nav .section-nav-link.is-active,
.mobile-section-nav .section-nav-link[aria-current="page"] { background: var(--ink); color: var(--cream-2); }
.mobile-socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.mobile-menu .button { width: 100%; }

.hero {
  min-height: 100svh;
  padding: 120px 0 34px;
  display: grid;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(255,250,245,.14), rgba(255,250,245,0)), url('../assets/images/bg-desktop.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-inner {
  min-height: calc(100svh - 150px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 10px 30px;
}
.hero-copy { position: relative; z-index: 2; padding: 30px 0 12px; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--pink); box-shadow: 0 0 0 5px rgba(255,143,136,.16); }
.hero h1, .section-head h2, .pop-copy h2, .community-copy h2 {
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-weight: 1000;
  letter-spacing: -.065em;
  line-height: .88;
}
.hero h1 { font-size: clamp(64px, 7vw, 108px); }
.hero h1 span { color: var(--pink); text-shadow: 3px 3px 0 rgba(59,29,18,.12); }
.hero-line { margin: 26px 0 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.06; font-weight: 820; letter-spacing: -.035em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ca-box {
  width: min(560px, 100%);
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(49,25,15,.16);
  border-radius: 18px;
  background: rgba(255,250,244,.66);
  backdrop-filter: blur(6px);
}
.ca-copy-wrap { min-width: 0; display: flex; align-items: center; gap: 10px; }
.ca-label { font-size: 11px; font-weight: 950; letter-spacing: .12em; color: var(--muted); }
.ca-box code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.copy-button { flex: 0 0 auto; border: 0; border-radius: 12px; padding: 10px 13px; background: var(--tan-2); color: var(--ink); font-weight: 950; cursor: pointer; }

.hero-visual { align-self: end; justify-self: end; width: min(620px, 100%); height: min(78vh, 720px); display: flex; align-items: flex-end; justify-content: center; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 22px 22px rgba(89,50,28,.1)); }

.market-strip {
  grid-column: 1 / -1;
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(47,25,16,.13);
  border-radius: 24px;
  background: rgba(255,250,244,.82);
  box-shadow: 0 10px 34px rgba(70,38,19,.07);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.market-stat { padding: 16px 20px; border-right: 1px solid rgba(45,25,16,.11); }
.market-stat span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.market-stat strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -.035em; }
.market-source { padding: 0 20px; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.live-dot { width: 8px; height: 8px; background: #5bb874; border-radius: 50%; box-shadow: 0 0 0 4px rgba(91,184,116,.13); }
.market-source.is-fallback .live-dot { background: #d89b58; box-shadow: 0 0 0 4px rgba(216,155,88,.13); }

.evolution-section { background: #fff7ec; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2, .pop-copy h2, .community-copy h2 { font-size: clamp(52px, 6vw, 88px); }
.section-head p:not(.kicker), .pop-copy > p:not(.kicker), .community-copy > p { margin: 18px 0 0; font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.evolution-card { border: 2px solid var(--ink); border-radius: 30px; background: var(--paper); box-shadow: 8px 10px 0 #e0b27c; overflow: hidden; }
.evolution-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.evolution-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 26px 26px;
}
.evolution-labels div:not(.evo-arrow) { text-align: center; }
.evolution-labels strong { display: block; font-size: clamp(16px,2vw,24px); letter-spacing: -.04em; }
.evolution-labels span { display: block; margin-top: 4px; color: var(--muted); font-weight: 650; }
.evo-arrow { font-size: 32px; font-weight: 950; color: var(--pink); }

.pop-section { background: #f4e3d3; }
.pop-grid { display: grid; grid-template-columns: .74fr 1.26fr; align-items: center; gap: 44px; }
.pop-copy { position: relative; z-index: 2; }
.pop-button {
  width: 180px;
  height: 180px;
  margin-top: 34px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: 50px;
  font-weight: 1000;
  letter-spacing: -.05em;
  cursor: pointer;
  box-shadow: 9px 11px 0 var(--ink), inset 0 5px 0 rgba(255,255,255,.32);
  transition: transform .08s ease, box-shadow .08s ease;
}
.pop-button:active, .pop-button.is-popping { transform: translate(6px, 7px) scale(.97); box-shadow: 3px 4px 0 var(--ink), inset 0 5px 0 rgba(255,255,255,.24); }
.pop-count { margin-top: 22px; font-size: 16px; font-weight: 900; letter-spacing: .08em; }
.pop-stage { position: relative; height: min(730px, 74vw); max-height: 730px; min-height: 520px; }
.pop-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; filter: drop-shadow(0 24px 22px rgba(63,33,19,.09)); }
.pop-frame.is-visible { opacity: 1; }
.pop-stage.is-pop .pop-frame { transform: scale(1.01); }

.chart-section { background: #fff8ee; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.text-link { font-weight: 900; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link.is-disabled { opacity: .4; pointer-events: none; }
.chart-wrap { position: relative; margin-top: 28px; }
.chart-frame {
  position: relative;
  min-height: 640px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 8px 10px 0 #e0b27c;
}
.chart-frame iframe { width: 100%; height: 640px; border: 0; display: block; }
.chart-empty { height: 640px; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.chart-empty[hidden] { display: none !important; }
.chart-mascot {
  position: absolute;
  z-index: 3;
  right: -44px;
  bottom: -34px;
  width: clamp(150px, 18vw, 235px);
  max-height: 300px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 16px 14px rgba(60,30,16,.13));
}

.community-section { background: #f0deca; }
.community-card {
  position: relative;
  min-height: 640px;
  border: 2px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 9px 11px 0 #d7a471;
}
.community-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.community-card::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,249,241,.98) 0%, rgba(255,249,241,.94) 28%, rgba(255,249,241,.38) 51%, rgba(255,249,241,.03) 72%); }
.community-copy { position: relative; z-index: 2; width: min(550px, 52%); padding: 72px 56px; }
.community-copy h2 span { color: var(--pink); }
.community-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.footer { padding: 48px 0 56px; background: var(--ink); color: var(--cream-2); }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-brand img { width: min(320px, 60vw); height: 82px; object-fit: contain; object-position: left center; }
.footer-brand p { margin: 12px 0 0; color: #d7c8bb; font-weight: 700; line-height: 1.25; }
.footer-right { display: grid; justify-items: end; gap: 14px; }
.footer-right > strong { font-size: 22px; }
.footer-socials { display: flex; gap: 7px; }
.footer .social-link { width: 46px; height: 46px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1120px) {
  .site-header { width: min(1080px, calc(100% - 24px)); }
  .brand { width: 178px; }
  .section-nav-link { padding: 0 9px; font-size: 9.5px; }
  .social-link { width: 37px; height: 37px; }
  .site-header .button-small { padding: 0 13px; font-size: 12px; }
}

@media (max-width: 1020px) {
  .desktop-socials { display: none; }
  .section-nav-links { left: 56%; }
}

@media (max-width: 980px) {
  .brand { width: 170px; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(60px,8vw,86px); }
  .market-strip { grid-template-columns: repeat(4, 1fr); }
  .market-source { grid-column: 1/-1; padding: 10px 20px 13px; border-top: 1px solid rgba(45,25,16,.1); }
  .pop-grid { grid-template-columns: .8fr 1.2fr; }
  .chart-mascot { right: -25px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .site-shell { width: min(100% - 24px, 620px); }
  .section { padding: 76px 0; }
  .site-header { top: 9px; width: calc(100% - 18px); min-height: 58px; padding: 7px 8px 7px 12px; border-radius: 18px; }
  .brand { width: 170px; }
  .brand img { height: 38px; }
  .hero {
    min-height: 100svh;
    padding: 91px 0 24px;
    background-image: linear-gradient(180deg, rgba(255,250,245,.04), rgba(255,250,245,.14)), url('../assets/images/bg-mobile.webp');
    background-position: center;
  }
  .hero-inner { min-height: calc(100svh - 115px); grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 0; align-content: start; }
  .hero-copy { padding: 26px 0 0; text-align: center; }
  .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(58px, 19vw, 88px); line-height: .86; }
  .hero-line { margin-top: 16px; font-size: 21px; }
  .hero-actions { justify-content: center; margin-top: 18px; }
  .button { min-height: 46px; padding: 0 18px; }
  .ca-box { margin: 16px auto 0; text-align: left; }
  .hero-visual { grid-row: 2; width: 100%; height: min(52svh, 500px); margin-top: -10px; }
  .market-strip { grid-row: 3; grid-template-columns: 1fr 1fr; border-radius: 20px; margin-top: -8px; }
  .market-stat { padding: 13px 15px; }
  .market-stat:nth-child(2) { border-right: 0; }
  .market-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(45,25,16,.11); }
  .market-stat strong { font-size: 18px; }
  .market-source { grid-column: 1/-1; justify-content: center; }

  .section-head { margin-bottom: 24px; }
  .section-head h2, .pop-copy h2, .community-copy h2 { font-size: clamp(48px, 15vw, 68px); }
  .section-head p:not(.kicker), .pop-copy > p:not(.kicker), .community-copy > p { font-size: 18px; }
  .evolution-card { border-radius: 22px; box-shadow: 5px 7px 0 #e0b27c; }
  .evolution-labels { grid-template-columns: 1fr; gap: 7px; padding: 18px; }
  .evo-arrow { transform: rotate(90deg); line-height: 1; }
  .evolution-labels strong { font-size: 19px; }

  .pop-grid { grid-template-columns: 1fr; gap: 18px; }
  .pop-copy { text-align: center; }
  .pop-button { width: 142px; height: 142px; font-size: 42px; margin-top: 24px; }
  .pop-stage { min-height: 480px; height: 68svh; max-height: 620px; order: -1; margin-bottom: -18px; }

  .section-head-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .chart-frame { min-height: 560px; border-radius: 22px; box-shadow: 5px 7px 0 #e0b27c; }
  .chart-frame iframe, .chart-empty { height: 560px; }
  .chart-mascot { width: 132px; right: -13px; bottom: -26px; }

  .community-card { min-height: 690px; border-radius: 24px; box-shadow: 5px 7px 0 #d7a471; display: flex; align-items: flex-end; }
  .community-image { object-position: 62% center; }
  .community-card::after { background: linear-gradient(0deg, rgba(255,249,241,.99) 0%, rgba(255,249,241,.95) 38%, rgba(255,249,241,.18) 70%, rgba(255,249,241,0) 100%); }
  .community-copy { width: 100%; padding: 36px 24px 30px; }
  .community-copy h2 { font-size: clamp(45px, 13vw, 63px); }

  .footer { padding: 38px 0 44px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-right { justify-items: start; }
}

@media (max-width: 420px) {
  .brand { width: 148px; }
  .hero h1 { font-size: clamp(54px, 18.5vw, 76px); }
  .hero-actions .button { flex: 1 1 0; }
  .ca-box { align-items: stretch; flex-direction: column; gap: 8px; }
  .copy-button { width: 100%; }
  .pop-stage { min-height: 430px; }
  .chart-frame, .chart-frame iframe, .chart-empty { min-height: 520px; height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
