:root {
  --bg: #152014;
  --ink: #f4f1de;
  --primary: #81b29a;
  --secondary: #f2cc8f;
  --accent: #e07a5f;
  --panel: #213124;
  --panel-2: #2a3d2c;
  --line: rgba(244, 241, 222, 0.14);
  --shadow: 0 18px 0 rgba(0, 0, 0, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 10%, rgba(129, 178, 154, 0.15), transparent 0 28%),
              radial-gradient(circle at 80% 20%, rgba(224, 122, 95, 0.12), transparent 0 22%),
              linear-gradient(180deg, #152014 0%, #172417 100%);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(transparent 0 96%, rgba(244,241,222,0.18) 96% 100%),
    linear-gradient(90deg, transparent 0 96%, rgba(244,241,222,0.12) 96% 100%);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black, transparent 110%);
}

.site-header {
  width: min(calc(100% - 28px), var(--max));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--line);
  background: rgba(33, 49, 36, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 30;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-pill img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--ink);
  padding: 4px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  opacity: 0.9;
  font-weight: 700;
}

.nav-cta,
.btn,
.copy-btn {
  border: 2px solid #000;
  box-shadow: 0 6px 0 #000;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.2s ease;
}

.nav-cta:active,
.btn:active,
.copy-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #000;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--secondary);
  color: #241a08;
  font-weight: 800;
}

.hero {
  width: min(calc(100% - 28px), var(--max));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.receipt-board {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(242, 204, 143, 0.08), transparent 30%),
    rgba(33, 49, 36, 0.88);
  border: 2px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(129, 178, 154, 0.16);
  border: 1px solid rgba(129, 178, 154, 0.35);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  line-height: 0.96;
}

h1 {
  margin-top: 16px;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
}

.h1-main, .h1-sub { display: block; }
.h1-main { color: var(--ink); }
.h1-sub {
  color: var(--accent);
  transform: rotate(-2deg);
  text-shadow: 3px 3px 0 #000;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 18px 0 22px;
  color: rgba(244, 241, 222, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 800;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: var(--ink);
  color: #1c251a;
}

.contract-card {
  max-width: 640px;
  padding: 16px;
  background: #101810;
  border: 2px dashed rgba(242, 204, 143, 0.45);
  border-radius: 18px;
}

.contract-top,
.contract-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contract-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  font-weight: 800;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(244,241,222,0.8);
}

.live-dot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(224, 122, 95, 0.15);
}

.contract-line {
  margin-top: 10px;
  align-items: stretch;
}

.contract-line code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px;
  background: rgba(244, 241, 222, 0.06);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.copy-btn {
  padding: 0 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #132016;
  font-weight: 900;
}

.copy-feedback {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: rgba(244,241,222,0.75);
}

.hero-art {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.sticker-cluster {
  position: relative;
  width: 100%;
  height: 100%;
}

.sticker {
  position: absolute;
  border: 3px solid #000;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: 0 12px 0 #000;
}

.sticker-main {
  inset: 8% 10% 24% 6%;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7e7, #f4f1de);
}

.sticker-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-card {
  width: 180px;
  padding: 14px;
  color: #1f2414;
}

.note-card strong {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-size: 1.18rem;
  line-height: 1;
  margin-bottom: 6px;
}

.note-card p {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.note-icon {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 8px;
}

.tilt-a { transform: rotate(-4deg); }
.tilt-b { transform: rotate(6deg); top: 2%; right: 4%; background: var(--secondary); }
.tilt-c { transform: rotate(-8deg); left: 1%; bottom: 14%; background: var(--primary); }
.tilt-d { transform: rotate(8deg); right: 8%; bottom: 4%; background: var(--accent); color: white; }

.section {
  width: min(calc(100% - 28px), var(--max));
  margin: 26px auto 0;
  padding: 30px;
  border-radius: 34px;
  border: 2px solid var(--line);
  background: rgba(33, 49, 36, 0.78);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.ticker-strip {
  overflow: hidden;
  border-block: 2px solid var(--line);
  margin-top: 22px;
  background: rgba(242, 204, 143, 0.1);
}

.ticker-track {
  display: flex;
  gap: 24px;
  padding: 13px 0;
  white-space: nowrap;
  width: max-content;
  animation: tickerMove 22s linear infinite;
  font-family: 'Baloo 2', cursive;
  font-size: 1.35rem;
  color: var(--secondary);
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

.ledger-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 18px;
}

.paper-card {
  padding: 22px;
  background: #f5efd8;
  color: #25301f;
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 0 10px 0 #000;
  position: relative;
}

.paper-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.paper-card p, .paper-card li {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 700;
}

.paper-card.alt { background: #f8d8a8; }
.scribble-card { background: #d4eadf; }

.torn::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 18px;
  background: linear-gradient(-45deg, transparent 33%, #000 33% 37%, transparent 37% 43%, #000 43% 47%, transparent 47% 53%, #000 53% 57%, transparent 57%);
  opacity: 0.18;
}

.check-scribbles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-scribbles li::before {
  content: "✓";
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 900;
}

.stats-shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-bubble {
  padding: 22px;
  border-radius: 24px;
  border: 3px solid #000;
  box-shadow: 0 10px 0 #000;
  background: var(--ink);
  color: #182015;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-bubble.big { background: var(--secondary); }
.stat-bubble.accent { background: var(--accent); color: #fff8ef; }
.stat-bubble.secondary { background: var(--primary); }
.stat-bubble.wide { grid-column: span 2; }
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  opacity: 0.75;
}

.stat-bubble strong {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
}

.steps-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card,
.milestone {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(244,241,222,0.04), rgba(244,241,222,0.01));
}

.step-no {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: 'Baloo 2', cursive;
  font-size: 2.2rem;
  line-height: 1;
}

.step-card h3,
.milestone h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.step-card p,
.milestone p,
.faq-list p {
  margin: 0;
  line-height: 1.6;
  font-weight: 700;
  color: rgba(244,241,222,0.9);
}

.roadmap-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid #000;
  box-shadow: 0 0 0 6px rgba(242, 204, 143, 0.14);
  margin-bottom: 14px;
}

.revealed-on-scroll {
  opacity: 0;
  transform: translateY(30px) rotate(-1deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(21, 32, 20, 0.5);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Baloo 2', cursive;
  font-size: 1.45rem;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { padding-top: 10px; }

.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 26px auto 36px;
  text-align: center;
  opacity: 0.84;
}

.footer-note { color: var(--secondary); }

@media (max-width: 1024px) {
  .hero,
  .ledger-grid,
  .stats-shell,
  .steps-rail,
  .roadmap-path {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-art { min-height: 440px; }
  .site-header {
    grid-template-columns: 1fr;
    border-radius: 26px;
    text-align: center;
  }
  .brand-pill, .site-nav, .nav-cta { justify-self: center; }
  .stat-bubble.wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .receipt-board,
  .section { padding: 22px 18px; }

  .ledger-grid,
  .stats-shell,
  .steps-rail,
  .roadmap-path {
    grid-template-columns: 1fr;
  }

  .stat-bubble.wide { grid-column: span 1; }
  .site-nav { gap: 12px; }
  .nav-cta { width: 100%; }
  .contract-top,
  .contract-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-btn { min-height: 48px; }
  .hero-art { min-height: 360px; }
  .note-card { width: 150px; }
  .sticker-main { inset: 10% 4% 24% 2%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .revealed-on-scroll, .floating { animation: none !important; transition: none !important; }
}