@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --sky: #8acbff;
  --sky-2: #d9f0ff;
  --peach: #f4a38e;
  --peach-2: #ffd2c7;
  --pink: #d98585;
  --cream: #f8eee5;
  --paper: #fffaf5;
  --ink: #191513;
  --brown: #9a5d32;
  --green: #6c8a46;
  --line: rgba(25, 21, 19, .15);
  --shadow: 0 18px 50px rgba(54, 37, 31, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.9), transparent 25%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--cream) 24%, #ffe9e3 55%, var(--paper) 100%);
  overflow-x: hidden;
}

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

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.floaters { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.floater { position: absolute; font-weight: 900; opacity: .18; animation: drift 11s ease-in-out infinite alternate; }
.f1{left:6%;top:16%;font-size:42px}.f2{right:10%;top:23%;font-size:64px;animation-delay:-3s}.f3{left:16%;bottom:24%;font-size:34px;animation-delay:-5s}.f4{right:19%;bottom:18%;font-size:49px;animation-delay:-7s}.f5{left:50%;top:8%;font-size:32px;animation-delay:-2s}.f6{right:4%;top:60%;font-size:28px;animation-delay:-6s}
@keyframes drift { to { transform: translate3d(15px,-25px,0) rotate(12deg) scale(1.15); } }

.topbar {
  position: fixed; z-index: 50; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 28px));
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 1px solid rgba(25,21,19,.1); border-radius: 18px;
  background: rgba(255,250,245,.72); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(55,42,34,.08);
}
.brand { display:flex; gap:9px; align-items:center; text-decoration:none; font-weight:900; letter-spacing:-.03em; }
.brand-mark { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:var(--ink); color:white; font-family:'DM Mono',monospace; }
.topbar nav { display:flex; gap:20px; }
.topbar nav a { font-size:14px; text-decoration:none; font-weight:800; opacity:.62; transition:.2s ease; }
.topbar nav a:hover { opacity:1; transform:translateY(-1px); }

.section-shell { width:min(1160px, calc(100% - 34px)); margin:0 auto; position:relative; z-index:2; }

.hero { min-height: 100svh; display:grid; place-items:center; padding:130px 0 80px; text-align:center; }
.hero-copy { max-width: 930px; z-index:4; }
.eyebrow, .mini-label { font-family:'DM Mono', monospace; font-weight:500; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.65); border:1px solid var(--line); padding:8px 12px; border-radius:999px; }
.dot { width:8px;height:8px;border-radius:50%; background:var(--peach); box-shadow:0 0 0 5px rgba(244,163,142,.18); animation:pulse 1.6s infinite; }
@keyframes pulse { 50% { transform:scale(1.22); box-shadow:0 0 0 9px rgba(244,163,142,.08);} }

h1 { margin:16px 0 6px; font-size:clamp(72px, 13vw, 180px); line-height:.78; letter-spacing:-.085em; font-weight:900; text-transform:lowercase; text-shadow:0 4px 0 rgba(255,255,255,.7); }
.hero-kicker { margin:28px auto 0; max-width:650px; font-size:clamp(18px, 2.4vw, 28px); line-height:1.05; font-weight:800; letter-spacing:-.035em; }
.hero-buttons { display:flex; justify-content:center; gap:12px; margin-top:28px; flex-wrap:wrap; }
.meme-btn { min-width:126px; padding:14px 22px; border:2px solid var(--ink); border-radius:16px; text-decoration:none; font-weight:900; text-transform:lowercase; box-shadow:4px 5px 0 var(--ink); transition:transform .18s ease, box-shadow .18s ease; }
.meme-btn:hover { transform:translate(3px,3px) rotate(-1deg); box-shadow:1px 2px 0 var(--ink); }
.meme-btn.peach{background:var(--peach)}.meme-btn.cream{background:var(--cream)}.meme-btn.dark{background:var(--ink);color:white;box-shadow:4px 5px 0 var(--peach)}
.meme-btn.dark:hover{box-shadow:1px 2px 0 var(--peach)}
.meme-btn.big { display:inline-block; min-width:190px; padding:16px 26px; }

.ca-box { width:min(760px, 100%); margin:18px auto 0; display:flex; gap:14px; align-items:center; justify-content:space-between; text-align:left; padding:13px 14px 13px 18px; background:rgba(255,250,245,.78); border:1px solid var(--line); border-radius:17px; cursor:pointer; backdrop-filter:blur(12px); }
.ca-box > div { min-width:0; }
.ca-label { display:block; font-family:'DM Mono',monospace; font-size:10px; text-transform:uppercase; opacity:.55; margin-bottom:4px; }
.ca-box strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:'DM Mono',monospace; font-size:13px; }
.ca-box button { flex:0 0 auto; border:0; background:var(--ink);color:#fff;padding:9px 13px;border-radius:10px;font:700 12px 'DM Mono',monospace;cursor:pointer; }

.hero-art { width:min(830px, 96%); margin:48px auto 0; }
.photo-stage { position:relative; padding:12px; background:rgba(255,255,255,.76); border:2px solid var(--ink); border-radius:34px; box-shadow:14px 16px 0 rgba(25,21,19,.9), 0 40px 90px rgba(98,65,47,.18); transform:rotate(-.8deg); overflow:hidden; }
.photo-stage img { display:block; width:100%; border-radius:24px; aspect-ratio:1/1; object-fit:cover; }
.photo-tag { position:absolute; top:24px; z-index:3; padding:8px 11px; border:2px solid var(--ink); background:var(--paper); border-radius:12px; font:800 11px 'DM Mono',monospace; box-shadow:3px 3px 0 var(--ink); }
.tag-left { left:24px; transform:rotate(-5deg); }.tag-right{right:24px;transform:rotate(4deg);background:var(--peach-2)}
.shine { position:absolute; inset:-50%; background:linear-gradient(120deg, transparent 42%, rgba(255,255,255,.45) 49%, transparent 56%); animation:shine 6s linear infinite; pointer-events:none; }
@keyframes shine { to { transform:translateX(55%); } }
.scroll-cue { position:absolute; bottom:18px; font:500 10px 'DM Mono',monospace; letter-spacing:.14em; opacity:.5; }

.lore-section, .facts-section, .how-section, .chart-section { padding:120px 0; }
.section-title { text-align:center; max-width:800px; margin:0 auto 42px; }
.section-title h2, .facts-head h2, .chart-head h2, .final-card h2 { margin:8px 0 0; font-size:clamp(44px, 7vw, 88px); line-height:.92; letter-spacing:-.06em; }
.lore-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.story-card { min-height:310px; background:rgba(255,250,245,.82); border:1px solid var(--line); border-radius:28px; padding:25px; box-shadow:var(--shadow); transform:rotate(-1deg); transition:.25s ease; }
.story-card:nth-child(2){transform:rotate(1deg);background:#fff0ec}.story-card:nth-child(3){transform:rotate(-.4deg);background:#eef8ff}
.story-card:hover { transform:translateY(-8px) rotate(0); }
.card-number { font:500 12px 'DM Mono',monospace; opacity:.5; }
.story-card h3 { font-size:34px; line-height:.95; margin:80px 0 10px; letter-spacing:-.05em; }
.story-card p { margin:0; font-size:17px; line-height:1.45; opacity:.76; }

.marquee-wrap { overflow:hidden; border-block:2px solid var(--ink); background:var(--peach); transform:rotate(-1deg) scale(1.02); }
.marquee { display:flex; width:max-content; animation:marquee 20s linear infinite; }
.marquee span { display:block; padding:14px 18px; white-space:nowrap; font-size:22px; font-weight:900; }
@keyframes marquee { to { transform:translateX(-50%); } }

.facts-head, .chart-head { display:flex; align-items:end; justify-content:space-between; gap:40px; margin-bottom:36px; }
.facts-head > p, .chart-head > p { max-width:430px; margin:0; font-size:18px; line-height:1.5; opacity:.67; }
.facts-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.fact-card { background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:22px; padding:22px; min-height:150px; display:flex; flex-direction:column; justify-content:space-between; }
.fact-card span, .fact-card small { font:500 11px 'DM Mono',monospace; text-transform:uppercase; opacity:.48; }
.fact-card strong { font-size:27px; letter-spacing:-.035em; }
.trust-panel { margin-top:18px; display:flex; gap:18px; align-items:flex-start; padding:24px; border:2px solid var(--ink); background:var(--peach-2); border-radius:24px; box-shadow:6px 7px 0 var(--ink); }
.trust-icon { flex:0 0 auto; display:grid; place-items:center; width:44px;height:44px;border-radius:14px;background:var(--ink);color:white;font-size:23px;font-weight:900; }
.trust-panel h3 { margin:0 0 6px; font-size:24px; }.trust-panel p{margin:0;line-height:1.5;opacity:.76;}

.steps { display:grid; gap:12px; max-width:900px; margin:0 auto; }
.step { display:grid; grid-template-columns:70px 1fr; gap:20px; align-items:start; background:rgba(255,255,255,.7); border:1px solid var(--line); border-radius:24px; padding:20px; }
.step b { display:grid; place-items:center; width:54px;height:54px;border-radius:16px;background:var(--ink);color:white;font-size:26px;box-shadow:4px 4px 0 var(--peach); }
.step h3 { margin:0 0 5px; font-size:24px; }.step p{margin:0;opacity:.7;line-height:1.45;}

.chart-frame { position:relative; min-height:620px; border:2px solid var(--ink); border-radius:28px; overflow:hidden; background:#181818; box-shadow:12px 14px 0 var(--peach); }
.chart-frame iframe { width:100%; min-height:620px; border:0; display:none; }
.chart-placeholder { min-height:620px; display:grid; place-content:center; text-align:center; color:white; padding:30px; background:radial-gradient(circle at center, #48322f 0, #181818 60%); }
.chart-placeholder span { font:500 11px 'DM Mono',monospace; letter-spacing:.16em; color:var(--peach); }
.chart-placeholder strong { margin:10px 0; font-size:clamp(28px,5vw,60px); letter-spacing:-.05em; }.chart-placeholder small{opacity:.5}
code { font-family:'DM Mono',monospace; font-size:.85em; background:rgba(0,0,0,.06); padding:2px 6px; border-radius:7px; }

.final-section { padding:90px 0 130px; }
.final-card { position:relative; overflow:hidden; text-align:center; padding:70px 24px; border:2px solid var(--ink); border-radius:36px; background:linear-gradient(135deg, #f9b3a3, #f9e8df 45%, #b9ddf7); box-shadow:14px 16px 0 var(--ink); }
.final-card p { max-width:660px; margin:20px auto 26px; font-size:20px; line-height:1.45; font-weight:600; }
.hat-orbit { position:absolute; right:7%; top:12%; font-size:72px; animation:hatBob 3s ease-in-out infinite; filter:drop-shadow(0 8px 0 rgba(25,21,19,.16)); }
@keyframes hatBob { 50%{transform:translateY(-12px) rotate(8deg);} }

footer { width:min(1160px,calc(100% - 34px)); margin:0 auto 30px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; font:500 11px 'DM Mono',monospace; opacity:.55; }
.toast { position:fixed; left:50%; bottom:26px; transform:translate(-50%,20px); opacity:0; z-index:90; background:var(--ink);color:white;padding:10px 14px;border-radius:12px;font:500 12px 'DM Mono',monospace; transition:.25s ease; pointer-events:none; }
.toast.show { opacity:1; transform:translate(-50%,0); }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform:translateY(0); }
.delay-1{transition-delay:.08s}.delay-2{transition-delay:.16s}.delay-3{transition-delay:.24s}

@media (max-width: 820px) {
  .topbar nav { display:none; }
  .hero { padding-top:120px; }
  .hero-art { width:94%; }
  .lore-grid, .facts-grid { grid-template-columns:1fr; }
  .facts-head, .chart-head { align-items:flex-start; flex-direction:column; gap:18px; }
  .story-card { min-height:230px; }.story-card h3{margin-top:50px}
  .hat-orbit{font-size:48px;right:4%;top:5%}
  footer{flex-direction:column}
}

@media (max-width: 520px) {
  .section-shell { width:min(100% - 22px, 1160px); }
  h1 { font-size:clamp(64px, 22vw, 100px); }
  .hero-kicker { font-size:19px; }
  .hero-buttons { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; width:100%; }
  .meme-btn { min-width:0; padding:12px 8px; border-radius:13px; }
  .ca-box { align-items:flex-end; }
  .ca-box strong{max-width:220px}.ca-box button{padding:8px 10px}
  .photo-stage { border-radius:22px; box-shadow:8px 9px 0 var(--ink); }.photo-stage img{border-radius:15px}
  .lore-section,.facts-section,.how-section,.chart-section{padding:90px 0}
  .step{grid-template-columns:55px 1fr;padding:16px;gap:12px}.step b{width:46px;height:46px}
  .chart-frame,.chart-frame iframe,.chart-placeholder{min-height:500px}
}

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