/* MUSELOOP — visual language borrowed from ai.meta.com/muse:
   white canvas, Optimistic-style geometric sans (Montserrat fallback), 40px/500 headings,
   pill CTAs in Meta blue, alternating #f6f6f6 and #dbecff bands, generous whitespace. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --ink: #0a1317;
  --ink-2: #465a65;
  --bg: #ffffff;
  --band: #f6f6f6;
  --band-blue: #dbecff;
  --blue: #0457cb;
  --blue-hover: #0348a8;
  --sky: #4ba9fe;
  --cream: #f3e6cf;
  --radius: 24px;
  --font: "Optimistic VF", Montserrat, Helvetica, Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 24px; letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: #eef2f5; padding: 2px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink-2); margin: 0 0 12px; }
.h1 { font-size: 56px; line-height: 1.08; font-weight: 500; margin: 0 0 20px; letter-spacing: -1px; }
.h2 { font-size: 40px; line-height: 48px; font-weight: 500; margin: 0 0 16px; }
.h3 { font-size: 32px; line-height: 38px; font-weight: 500; margin: 0 0 12px; }
.lede { font-size: 20px; line-height: 30px; color: var(--ink-2); margin: 0 0 28px; }
p { margin: 0 0 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; padding: 14px 30px; font: inherit; font-weight: 600; cursor: pointer; border: 0; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #cfd8de; padding: 10px 20px; }
.btn-secondary:hover { background: #f6f6f6; }
.btn-ghost { background: transparent; color: var(--ink); padding: 8px 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* nav: floating pill */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px)); height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; z-index: 50;
  background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 100px;
  box-shadow: 0 8px 30px rgba(10,19,23,.10), 0 1px 0 rgba(255,255,255,.6) inset;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 2px; color: var(--ink); font-size: 14px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a.link { color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 100px; }
.nav-links a.link:hover { background: rgba(10,19,23,.06); text-decoration: none; }
.nav .btn-primary { padding: 11px 22px; }
@media (max-width: 720px) { .nav-links a.link { display: none; } .nav { height: 56px; top: 12px; } }

/* hero: full-screen background image (mascot sits on the right of the artwork, copy goes left) */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.hero-full { background: #dbecff; }
/* animated background: video with the still as poster; overlay keeps the copy readable */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media img { display: none; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(222,238,255,.92) 0%, rgba(222,238,255,.72) 34%, rgba(222,238,255,.15) 52%, rgba(222,238,255,0) 62%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 120px 24px 96px; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } .hero-media img { display: block; } }
.hero-copy { max-width: 560px; }
@media (min-width: 901px) { .hero-copy .h1 { font-size: 52px; } }
.hero-copy .h1 { min-height: 3.2em; }
.hero-copy .rotator { color: var(--blue); display: inline-block; min-width: 6ch; }
.hero-note { font-size: 13px; color: var(--ink-2); margin-top: 20px; }
.give { margin-top: 8px; }
.give-label { font-weight: 600; margin: 0 0 8px; }
.give-alt { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.copyrow-hero { background: rgba(255,255,255,.85); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(10,19,23,.08); padding: 10px 10px 10px 16px; margin: 0; }
.copyrow-hero code { font-size: 15px; }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: var(--ink-2); font-size: 22px; text-decoration: none; opacity: .7; }
@media (max-width: 900px) {
  /* narrow: show the mascot in the top half, copy below it */
  /* narrow: the video stays full-bleed behind everything; mascot framed in the upper half, copy card at the bottom */
  .hero { align-items: end; min-height: 100svh; }
  .hero-media { inset: 0; background: #dbecff; }
  /* portrait reframe has the mascot centred (x≈72%, y≈50%); scale it 2x and lift it so the mascot sits in the top ~18% */
  .hero-media video { height: 200%; top: -76%; object-fit: cover; object-position: 70% 50%; }
  .hero-media img { object-fit: cover; object-position: 64% 30%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(222,238,255,0) 0%, rgba(222,238,255,0) 40%, rgba(222,238,255,.55) 60%, rgba(222,238,255,.85) 100%); }
  .hero-inner { padding-top: 32svh; padding-bottom: 40px; }
  .hero-copy .h1 { font-size: 34px; margin-bottom: 14px; }
  .hero-copy { padding: 18px; }
  .hero-copy .lede { font-size: 17px; line-height: 26px; margin-bottom: 18px; }
  .hero-note { display: none; }
  .scroll-hint { display: none; }
  .h1 { font-size: 36px; }
  .hero-copy .h1 { min-height: 0; }
  .hero-copy { background: rgba(255,255,255,.7); backdrop-filter: blur(8px); border-radius: 24px; padding: 20px; }
  .copyrow-hero { flex-direction: column; align-items: stretch; padding: 12px; }
  .copyrow-hero code { font-size: 13px; }
  .copyrow-hero .btn { justify-content: center; }
}
@media (min-aspect-ratio: 21/9) { .hero-full { background-size: cover; } }

/* secondary page hero + cta band */
.page-hero { padding: 130px 0 80px; background: linear-gradient(180deg, #dbecff 0%, #ffffff 70%); }
.page-hero .h2 { font-size: 48px; line-height: 1.1; }
.page-hero .keygen { margin-top: 24px; }
section.cta { background: linear-gradient(180deg, #ffffff, #eaf4ff); }

/* sections */
section { padding: 96px 0; }
section.band { background: var(--band); }
section.band-blue { background: var(--band-blue); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: initial; } }
/* mascot figures: no card, organic blob mask, soft shadow so they sit on the page like a sticker */
.figure { display: grid; place-items: center; }
.figure img, .figure video {
  width: min(100%, 420px); height: auto; aspect-ratio: 1; object-fit: cover; display: block; background: #dbecff;
  border-radius: 46% 54% 52% 48% / 55% 47% 53% 45%;
  box-shadow: 0 30px 60px -20px rgba(4,87,203,.22);
}
.split.reverse .figure img, .split.reverse .figure video { border-radius: 54% 46% 48% 52% / 47% 55% 45% 53%; }
@media (prefers-reduced-motion: reduce) { .fig-video { pointer-events: none; } }

/* how it works: chat mockup + steps */
#how { background: #fefefe; } /* matches the chat graphic's own backdrop so its edges disappear */
.how { align-items: center; }
.how-art img { max-width: 420px; width: 100%; height: auto; margin: 0 auto; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--band-blue); color: var(--blue); font-weight: 700; }
.steps h4 { margin: 6px 0 6px; font-size: 20px; font-weight: 600; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .how-art { order: 2; } }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid rgba(10,19,23,.06); }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--band-blue); color: var(--blue); font-weight: 700; margin-bottom: 16px; }
.card h4 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.card p { color: var(--ink-2); margin: 0; }

/* key generator */
.keygen { background: #fff; border-radius: 28px; padding: 36px; box-shadow: 0 20px 60px rgba(10,19,23,.08); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field small { color: var(--ink-2); }
.field input { font: inherit; padding: 14px 16px; border: 1px solid #cfd8de; border-radius: 14px; background: #fff; }
.field input:focus { outline: 2px solid var(--sky); border-color: transparent; }
.result { display: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e6ebef; }
.result.show { display: block; }
.copyrow { display: flex; gap: 10px; align-items: center; background: var(--band); border-radius: 14px; padding: 12px 14px; margin: 8px 0 16px; }
.copyrow code { flex: 1; background: none; word-break: break-all; font-size: 13px; }
.alert { background: #fff7e6; border: 1px solid #ffe2a8; color: #6b4a00; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.error { color: #b00020; font-size: 14px; margin-top: 8px; }

/* fees */
.fee-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; margin-top: 8px; }
@media (max-width: 900px) { .fee-grid { grid-template-columns: 1fr; } }
.fee-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fee-tiles .tile-example { grid-column: 1 / -1; }
@media (max-width: 520px) { .fee-tiles { grid-template-columns: 1fr; } }
.tile { border-radius: 24px; padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.tile-you { background: var(--blue); color: #fff; box-shadow: 0 20px 40px -18px rgba(4,87,203,.55); }
.tile-you .tile-label, .tile-you .tile-sub { color: rgba(255,255,255,.85); }
.tile-you .tile-vol { background: rgba(255,255,255,.16); color: #fff; }
.tile-treasury { background: #fff7e3; }
.tile-treasury .tile-vol { background: #f8e7bd; color: #6b4a00; }
.tile-example { background: #fff; }
.tile-example .tile-sub { font-size: 16px; line-height: 24px; color: var(--ink); }
.tile-example strong { color: var(--blue); font-weight: 700; }
.tile-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.tile-num { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -2px; margin: 4px 0 2px; }
.tile-num span { font-size: 28px; font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.tile-sub { font-size: 14px; line-height: 20px; color: var(--ink-2); margin: 0; flex: 1; }
.tile-vol { align-self: flex-start; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 6px 12px; border-radius: 100px; background: var(--band-blue); color: var(--blue); margin: 8px 0 0; }
@media (max-width: 1100px) and (min-width: 521px) { .tile-num { font-size: 52px; } }

.fee-breakdown { background: #fff; border-radius: 24px; padding: 24px; }
.stack { display: flex; height: 18px; border-radius: 100px; overflow: hidden; gap: 3px; margin: 14px 0 18px; }
.stack i { display: block; height: 100%; }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.breakdown li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 12px; font-size: 15px; }
.breakdown li:nth-child(-n+2) { background: #f4f8fd; font-weight: 600; }
.breakdown li i { width: 12px; height: 12px; border-radius: 4px; }
.breakdown li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown li span { color: var(--ink); }
.breakdown li.total { grid-template-columns: 1fr auto; border-top: 1px solid #e6ebef; margin-top: 8px; padding-top: 14px; border-radius: 0; font-weight: 700; }
.fee-note { font-size: 13px; color: var(--ink-2); margin: 16px 0 0; }
.s-you { background: var(--blue); } .s-treasury { background: #f3c86b; } .s-lp { background: var(--sky); }
.s-bankr { background: #8aa0ad; } .s-buyback { background: #b9c7d0; } .s-doppler { background: #dfe6ea; }

/* faq */
details { border-bottom: 1px solid #e6ebef; padding: 18px 0; }
details summary { cursor: pointer; font-size: 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; font-size: 24px; color: var(--ink-2); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin-top: 12px; }

/* footer */
footer { padding: 48px 0 64px; color: var(--ink-2); font-size: 14px; border-top: 1px solid #eef2f5; }
footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
