:root {
  --bg: #F5E8D8;
  --bg-2: #EAD7C2;
  --surface: #FFF8EE;
  --text: #33251C;
  --muted: #786456;
  --orange: #C87735;
  --brown: #92532D;
  --border: #D9C5B0;
  --shadow: 0 12px 32px rgba(51, 37, 28, 0.08);
  --font: "Segoe UI", "Avenir Next", "Trebuchet MS", "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  --radius: 28px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  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: 12px;
  top: -48px;
  z-index: 200;
  background: var(--brown);
  color: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  font-size: 1.2rem;
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(calc(100% - 24px), 1080px);
  margin: 14px auto 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 12px;
}

.nav-toggle-bar::before {
  top: 15px;
}

.nav-toggle-bar::after {
  top: 27px;
}

.nav.is-open .nav-toggle-bar {
  background: transparent;
}

.nav.is-open .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-nav {
  background: var(--orange);
  color: #fff8ee;
  box-shadow: 0 8px 18px rgba(200, 119, 53, 0.22);
}

.btn-primary:hover,
.btn-nav:hover {
  background: var(--brown);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-2);
}

.btn-nav {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn-copy {
  min-height: 44px;
  background: var(--brown);
  color: #fff8ee;
}

.btn-copy:disabled {
  background: var(--bg-2);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  padding: 36px 0 72px;
  min-height: calc(100vh - 110px);
}

.hero-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3d2b0;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip-soft {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.hero-title span {
  display: inline-block;
  animation: rise 0.8s ease both;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-title span:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-title .accent {
  color: var(--orange);
}

.hero-sub,
.hero-joke,
.hero-actions {
  animation: rise 0.8s ease both;
}

.hero-sub {
  margin: 22px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  animation-delay: 0.22s;
}

.hero-joke {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  animation-delay: 0.3s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation-delay: 0.38s;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 28px;
}

.hero-art img {
  width: min(100%, 620px);
  animation: float 4.8s ease-in-out infinite;
}

.hero-note {
  position: absolute;
  top: 8%;
  right: 4%;
  margin: 0;
  color: var(--brown);
  font-family: var(--hand);
  font-size: 1.25rem;
  transform: rotate(-8deg);
  animation: rise 1s ease both;
  animation-delay: 0.55s;
}

.story {
  background: var(--bg-2);
  padding: clamp(72px, 12vw, 128px) 0;
}

.story-body {
  max-width: 740px;
}

.story-body p {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: var(--muted);
}

.story-tech {
  max-width: 34ch;
}

.story-turn {
  margin: 42px 0 !important;
  color: var(--text) !important;
  font-size: clamp(2.4rem, 7vw, 4.6rem) !important;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.story-end {
  margin-top: 36px !important;
  color: var(--brown) !important;
  font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hat {
  padding: clamp(72px, 12vw, 128px) 0;
}

.hat-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hat-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hat-visual img {
  width: 100%;
  border-radius: 28px;
}

.hat-copy .lead {
  margin-top: 0;
}

.hat-list {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.hat-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 14px;
  height: 2px;
  background: var(--orange);
}

.hat-punch {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--orange);
}

.ca {
  padding: 0 0 clamp(72px, 10vw, 110px);
}

.ca-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.ca-card.is-pending {
  border-style: dashed;
}

.ca-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-value {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-all;
}

.ca-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ca-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3d2b0;
  color: var(--brown);
  font-size: 0.88rem;
  font-weight: 800;
}

.chart,
.buy {
  padding: clamp(72px, 12vw, 120px) 0;
}

.chart {
  background: var(--bg-2);
}

.chart-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
}

.chart-placeholder img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.chart-placeholder p {
  margin: 0;
  max-width: 36ch;
}

.chart-placeholder p:first-of-type {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.chart-frame {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-shell.is-live .chart-placeholder {
  display: none;
}

.chart-shell.is-live .chart-frame {
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  min-height: 180px;
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.steps p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.buy-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.community {
  padding: 0 0 clamp(80px, 10vw, 120px);
}

.community-card {
  padding: 18px 18px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.community-banner {
  width: 100%;
  margin-bottom: 36px;
  border-radius: 24px;
  background: var(--bg);
}

.community-card .lead {
  max-width: 28ch;
  margin: 0 auto 28px;
}

.community-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-brand p,
.footer-brand span {
  display: block;
  margin: 0;
}

.footer-brand span,
.footer-links {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  min-width: min(90vw, 280px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
    text-align: center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-art {
    order: 1;
    padding-top: 8px;
  }

  .hero-chip,
  .hero-actions {
    justify-content: center;
  }

  .hero-note {
    right: 8%;
    top: 2%;
  }

  .hat-grid,
  .steps,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .steps {
    display: grid;
  }

  .footer-row {
    display: grid;
  }

  .hat-visual {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .nav {
    border-radius: 24px;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

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

  .chart-shell {
    aspect-ratio: 1 / 1;
  }

  .steps li {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .wrap,
  .hero {
    width: min(calc(100% - 28px), var(--wrap));
  }

  .hero-title {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-art img {
    width: min(100%, 420px);
  }

  .ca-card {
    padding: 28px 18px;
  }
}

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

  .hero-title span,
  .hero-sub,
  .hero-joke,
  .hero-actions,
  .hero-note,
  .hero-art img,
  .reveal,
  .btn,
  .toast {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
