/* Monstro landing page. Brand tokens match the app (CLAUDE.md section 6). */
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #07121e;
  --shallow: #081a2b;
  --deep: #040c15;
  --panel: #0e2236;
  --panel2: #12304a;
  --line: rgba(138, 166, 189, 0.18);
  --text: #e8f3fb;
  --muted: #8aa6bd;
  --green: #3ee6c4;
  --green2: #19b894;
  --belly: #d6fbf2;
  --warn: #ffb347;
  --ink: #062019;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: var(--green); }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
strong { font-weight: 650; color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--green2));
  color: var(--ink); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; border: 0;
  box-shadow: 0 10px 30px -10px rgba(62, 230, 196, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(62, 230, 196, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(62, 230, 196, 0.08); color: var(--green); box-shadow: inset 0 0 0 1.5px rgba(62, 230, 196, 0.5); }
.btn-ghost:hover { background: rgba(62, 230, 196, 0.16); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-small { padding: 10px 20px; font-size: 0.92rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100% - var(--wrap)) / 2));
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.stuck { background: rgba(7, 18, 30, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.55rem; letter-spacing: -0.03em; }
.brand img { width: 66px; height: auto; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 450; transition: color 0.15s; }
.nav nav a:hover { color: var(--green); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: max(100svh, 720px);
  display: flex; flex-direction: column;
  background:
    radial-gradient(60% 55% at 72% 58%, rgba(62, 230, 196, 0.16), transparent 70%),
    linear-gradient(180deg, #050e18 0%, #0a2136 62%, #0d2a42 100%);
  touch-action: pan-y;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sea-back { z-index: 1; }
.hero-whale {
  position: absolute; z-index: 2; left: 0; top: 0;
  width: clamp(270px, 46vw, 640px); height: auto;
  will-change: transform; pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(62, 230, 196, 0.22));
  opacity: 0;
}
.hero-whale.ready { opacity: 1; transition: opacity 0.6s ease; }
#sea-front { z-index: 3; }
.hero-copy { position: relative; z-index: 4; padding-top: clamp(112px, 15vh, 170px); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 {
  font-size: clamp(2.7rem, 5.9vw, 5.1rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  max-width: 8.4em;
  background: linear-gradient(180deg, #ffffff 30%, #bff5e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #c3d6e4; max-width: 29em; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-sea { flex: 1; min-height: 330px; }
.hero-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%);
  margin: 0; font-size: 0.85rem; color: rgba(214, 251, 242, 0.5); pointer-events: none; white-space: nowrap;
}

/* The page gets darker as you scroll: you are diving. */
main { background: linear-gradient(180deg, var(--shallow) 0, var(--shallow) 900px, var(--bg) 45%, var(--deep) 100%); }
.band { padding-block: clamp(72px, 10vw, 136px); }
.intro { max-width: 760px; }
.intro p, .split-copy > p { color: #c3d6e4; font-size: 1.08rem; }
.aside { color: var(--muted); font-size: 0.95rem; border-left: 2px solid var(--green2); padding-left: 16px; }

/* Pillars: an open grid divided by hairlines, not boxed cards */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 44px; border-top: 1px solid var(--line); }
.pillars article { padding: 34px 28px 10px 0; }
.pillars article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.pillars svg { width: 38px; height: 38px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.pillars h3 { margin-bottom: 10px; }
.pillars p { color: var(--muted); font-size: 0.97rem; line-height: 1.6; }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-flip { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
.ticks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: #c3d6e4; font-size: 1rem; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Terminal illustration */
.terminal { margin: 0; background: linear-gradient(180deg, var(--panel), #0a1b2c); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 22px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(62, 230, 196, 0.05); }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 0.98rem; margin-bottom: 8px; }
.tag { font-size: 0.74rem; font-weight: 500; color: var(--warn); background: rgba(255, 179, 71, 0.1); padding: 4px 10px; border-radius: 999px; }
.chart { width: 100%; height: auto; }
.coach { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.coach img { width: 62px; height: auto; flex: none; margin-top: 8px; }
.coach p { position: relative; margin: 0; background: var(--panel2); border-radius: 4px 16px 16px 16px; padding: 13px 17px; font-size: 0.92rem; line-height: 1.5; color: var(--text); }

/* Phone */
.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #1b415f, #0a1c2d 60%); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95), inset 0 0 0 1.5px rgba(138, 166, 189, 0.28); }
.phone-screen { height: 100%; border-radius: 36px; padding: 54px 20px 18px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(110% 60% at 50% 0%, #14506a 0%, #0b2438 55%, #07121e 100%); }
.phone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 14px; }
.phone-grid i, .phone-dock i { display: block; aspect-ratio: 1; border-radius: 26%; background: rgba(232, 243, 251, 0.09); }
.app-icon { position: relative; display: block; }
.app-icon img { width: 100%; height: auto; border-radius: 26%; box-shadow: 0 0 0 2px var(--green), 0 0 34px rgba(62, 230, 196, 0.75); animation: pulse 3.2s ease-in-out infinite; }
.app-icon b { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); font-size: 0.62rem; font-weight: 500; }
.phone-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px; border-radius: 24px; background: rgba(232, 243, 251, 0.07); }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px var(--green), 0 0 12px rgba(62, 230, 196, 0.35); } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: #c3d6e4; font-size: 1rem; line-height: 1.55; min-height: 36px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--green); box-shadow: inset 0 0 0 1.5px rgba(62, 230, 196, 0.55); }
#install .aside { margin-bottom: 30px; }

/* Token */
.token { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(28px, 5vw, 64px); background: radial-gradient(70% 90% at 0% 0%, rgba(62, 230, 196, 0.17), transparent 60%), linear-gradient(180deg, var(--panel), #0a1b2c); border: 1px solid rgba(62, 230, 196, 0.22); }
.token-head { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); margin-bottom: 44px; }
.token-head p { color: #c3d6e4; }
.coin { width: clamp(110px, 15vw, 180px); height: auto; flex: none; filter: drop-shadow(0 20px 40px rgba(62, 230, 196, 0.4)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-5deg); } }
.draft { display: inline-block; margin: 6px 0 0; font-size: 0.82rem; font-weight: 500; color: var(--warn); background: rgba(255, 179, 71, 0.1); padding: 5px 13px; border-radius: 999px; }
.token-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.facts { margin: 0; }
.facts div, .receipt dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .receipt dt { color: var(--muted); font-size: 0.95rem; }
.facts dd, .receipt dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.alloc h3 { font-size: 0.95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin: 14px 0 18px; }
.alloc-bar { display: flex; gap: 4px; height: 44px; }
.alloc-bar span { flex: var(--w); background: var(--c); border-radius: 6px; }
.alloc-bar span:first-child { border-radius: 14px 6px 6px 14px; }
.alloc-bar span:last-child { border-radius: 6px 14px 14px 6px; }
.alloc-key { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 0.93rem; color: #c3d6e4; }
.alloc-key li { position: relative; padding-left: 22px; }
.alloc-key li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.alloc-key b { color: #fff; font-weight: 650; margin-right: 4px; }
.warn { margin: 40px 0 0; max-width: none; font-size: 0.93rem; color: #ffd9a3; background: rgba(255, 179, 71, 0.08); border: 1px solid rgba(255, 179, 71, 0.25); border-radius: 14px; padding: 14px 18px; }

/* Fees */
.receipt { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px 16px; }
.receipt-title { font-weight: 650; font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.receipt dl { margin: 0; }
.receipt dl div:first-child dd { color: var(--green); }
.receipt dl div:last-child { border-bottom: 0; }
.receipt .planned dd { color: var(--warn); font-weight: 500; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 6px; }
details[open] summary::after { transform: rotate(-135deg); }
summary:hover { color: var(--green); }
details p { color: #c3d6e4; padding: 0 40px 24px 0; margin: 0; }

/* Closing + footer */
.closing { text-align: center; padding-block: clamp(80px, 11vw, 150px) clamp(90px, 12vw, 160px); }
.closing img { width: clamp(150px, 20vw, 240px); height: auto; margin: 0 auto 30px; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 20px 46px rgba(62, 230, 196, 0.3)); }
.closing h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; }
.closing p { margin: 0 auto 34px; color: #c3d6e4; font-size: 1.1rem; }
.foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-block: 44px 56px; border-top: 1px solid var(--line); background: var(--deep); box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax); }
.foot p { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }
.foot .legal { margin: 0; max-width: none; line-height: 1.6; }
.foot .brand { font-size: 1.3rem; }
.foot .brand img { width: 52px; }
.foot-tg { display: inline-flex; width: 42px; height: 42px; margin-top: 16px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.foot-tg:hover { color: var(--green); border-color: currentColor; }
.foot-tg:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero h1 { max-width: none; }
  .hero-copy { padding-top: 112px; }
  .hero-whale { width: min(80vw, 440px); }
  .lede { max-width: 33em; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars article:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .split, .split-flip, .faq, .token-body, .foot { grid-template-columns: 1fr; }
  .split-flip .phone { order: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 1.3rem; }
  .brand img { width: 52px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article, .pillars article + article { padding: 28px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .pillars article:first-child { border-top: 0; }
  .token-head { flex-direction: column; align-items: flex-start; }
  .alloc-key { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .receipt { padding: 22px 20px 10px; }
  .facts div, .receipt dl div { font-size: 0.93rem; }
  details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin, .closing img, .app-icon img { animation: none; }
  .btn { transition: none; }
  .hero-hint { display: none; }
}
.alloc .aside { margin-top: 18px; }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; word-break: break-all; }
.live-tag { display: inline-block; margin: 6px 0 0; font-size: 0.82rem; font-weight: 600; color: #3ee6c4; background: rgba(62, 230, 196, 0.1); padding: 5px 13px; border-radius: 999px; }
.receipt .holder dd { color: #3ee6c4; }
.facts dd .addr { display: block; font-size: 0.74em; font-weight: 500; }
.facts-link { display: inline-block; margin-top: 6px; font-size: 0.9rem; font-weight: 600; color: #3ee6c4; }
.facts-note { display: block; margin-top: 4px; font-size: 0.86rem; font-weight: 400; color: var(--muted); }
