/* Space Catz — marketing site */
:root {
  --bg: #0B0B26;
  --bg-2: #120F38;
  --ink: #F6F3FF;
  --muted: #B6B0DD;
  --line: rgba(255, 255, 255, .11);
  --card: rgba(255, 255, 255, .045);
  --orange: #FF9F43;
  --orange-d: #C9620F;
  --violet: #6E5BFF;
  --violet-d: #3B2DA8;
  --teal: #2EC4B6;
  --pink: #FF5FA2;
  --gold: #FFD166;
  --radius: 22px;
  --display: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 160px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 40px, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 80px 220px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 390px 250px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(110, 91, 255, .28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 95, 162, .14), transparent 70%);
  background-size: 420px 280px, 420px 280px, 420px 280px, 420px 280px, 420px 280px, 420px 280px, 100% 1400px, 100% 1400px;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 16px; cursor: pointer;
  font: 600 17px/1.1 var(--display); text-decoration: none; white-space: nowrap;
  color: #2A1240; background: linear-gradient(#FFC36E, #FF9F43);
  box-shadow: 0 5px 0 var(--orange-d), 0 12px 28px rgba(255, 159, 67, .25);
  transition: transform .1s, box-shadow .1s, filter .15s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--orange-d); }
.btn.alt { color: #fff; background: linear-gradient(#8A7BFF, #5B4BE0); box-shadow: 0 5px 0 var(--violet-d), 0 12px 28px rgba(110, 91, 255, .28); }
.btn.alt:active { box-shadow: 0 2px 0 var(--violet-d); }
.btn.ghost { color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; box-shadow: 0 4px 0 var(--orange-d); }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 19px; }
.btn.is-soon { filter: grayscale(.6) brightness(.85); cursor: default; transform: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 38, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 21px var(--display); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font: 500 16px var(--display); padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5CF29A; box-shadow: 0 0 0 0 rgba(92, 242, 154, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(92, 242, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 242, 154, 0); } }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 700; letter-spacing: -.01em; }
.grad { background: linear-gradient(90deg, #FFD166, #FF9F43 45%, #FF5FA2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 20px; max-width: 520px; font-size: 19px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.checks li::before { content: '✓'; color: #5CF29A; font-weight: 700; margin-right: 6px; }
.welcome { margin-top: 18px; display: inline-block; padding: 8px 14px; border-radius: 12px; background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .3); color: var(--gold); font-size: 15px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.scene { width: 100%; height: 100%; overflow: visible; }
.orbiter { transform-origin: 260px 300px; transform-box: view-box; animation: orbit 11s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit-dash { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }
.float-a { animation: floatY 6s ease-in-out infinite; }
.float-b { animation: floatY 7s ease-in-out -2s infinite; }
.bob-1 { animation: floatY 3.2s ease-in-out infinite; }
.bob-2 { animation: floatY 2.8s ease-in-out -1s infinite; }
.bob-3 { animation: floatY 3.6s ease-in-out -2s infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }
.drift { animation: drift 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes drift { to { transform: translate(40px, -24px) rotate(160deg); } }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-title { font-size: clamp(32px, 4.4vw, 50px); text-align: center; }
.section-title.left, .section-sub.left { text-align: left; margin-inline: 0; }
.section-sub { max-width: 640px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step { padding: 26px; }
.step svg { width: 100%; height: 130px; margin-bottom: 14px; }
.step h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.step h3 span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--violet); font-size: 17px; }
.step p { margin-top: 8px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%2306302C' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.share-demo { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: 30px; background: linear-gradient(160deg, rgba(110, 91, 255, .2), rgba(46, 196, 182, .1)); border: 1px solid var(--line); }
.bubble { max-width: 340px; padding: 16px 18px; border-radius: 22px 22px 22px 6px; background: #2A2560; border: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.bubble-tag { font: 600 11px var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.blocks { letter-spacing: 2px; }
.bubble-link { color: #8FB8FF; text-decoration: underline; font-size: 15px; }
.bubble.reply { align-self: flex-end; border-radius: 22px 22px 6px 22px; background: #2E7D74; }

.crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }
.crew-card { flex: 0 1 172px; }
.crew-card { padding: 18px 12px 16px; text-align: center; position: relative; transition: transform .2s; }
.crew-card:hover { transform: translateY(-4px); }
.crew-card svg { width: 110px; height: 138px; transition: transform .25s; }
.crew-card:hover svg { transform: rotate(-6deg) scale(1.04); }
.crew-card h3 { font-size: 20px; margin-top: 8px; }
.crew-card p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.crew-card .purrk { margin-top: 10px; padding: 8px 8px; border-radius: 12px; background: rgba(46, 196, 182, .1); font-size: 13px; line-height: 1.35; color: var(--ink); }
.crew-card .purrk b { display: block; font: 600 14.5px var(--display); color: #9AF5EA; margin-bottom: 2px; }
.crew-card .price { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); font: 600 13px var(--display); color: var(--gold); }
.crew-card.rare { background: linear-gradient(160deg, rgba(110, 91, 255, .22), rgba(255, 95, 162, .14)); border-color: rgba(255, 154, 213, .35); }
.crew-card.rare .price { color: #FF9AD5; }
.fish-ico { display: inline-block; width: 20px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M30 12L39 4v16z' fill='%23F2A93B'/%3E%3Cellipse cx='17' cy='12' rx='15' ry='9.5' fill='%23FFD166'/%3E%3Ccircle cx='7.5' cy='10' r='2' fill='%232A1E3B'/%3E%3C/svg%3E") center / contain no-repeat; }

.wall-teaser { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; padding: 36px 44px; }
.wall-teaser-cats { position: relative; height: 200px; }
.wall-teaser-cats svg { position: absolute; width: 130px; height: 162px; top: 20px; }
.wall-teaser-cats svg:nth-child(1) { left: 0; transform: rotate(-12deg); }
.wall-teaser-cats svg:nth-child(2) { left: 95px; top: 0; z-index: 1; }
.wall-teaser-cats svg:nth-child(3) { left: 190px; transform: rotate(12deg); }
.support { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; padding: 44px; background: linear-gradient(135deg, rgba(110, 91, 255, .22), rgba(255, 95, 162, .12)); border-color: rgba(255, 154, 213, .3); }
.support-art { position: relative; height: 300px; }
.support-art svg { position: absolute; width: 190px; height: 238px; }
.support-art svg:first-child { left: 0; top: 10px; transform: rotate(-10deg); animation: floatY 5s ease-in-out infinite; }
.support-art svg:last-child { right: 0; top: 50px; transform: rotate(9deg); animation: floatY 6s ease-in-out -2s infinite; }

.news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: 40px; }
.news .section-title { font-size: clamp(28px, 3.4vw, 40px); }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.news-form input {
  min-width: 0; height: 54px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); font: 500 17px var(--body);
}
.news-form .btn { height: 54px; }
.news-msg { grid-column: 1 / -1; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.news-msg.ok { color: #5CF29A; }
.news-msg.err { color: #FF8FA3; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { margin-top: 36px; }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 19px var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 18px; color: var(--muted); }

.final { padding: 90px 0 100px; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 159, 67, .18), transparent 70%); }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final-cat svg { width: 130px; height: 162px; animation: floatY 4s ease-in-out infinite; }
.final h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 720px; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; cursor: pointer; }
.footer-links a:hover { color: var(--ink); }
.copy { width: 100%; color: var(--muted); font-size: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 3px; margin-right: 12px; }
.studio { color: var(--muted); font-size: 14px; }
.studio b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.studio-mail { font-size: 14px; color: var(--gold); text-decoration: none; }
.studio-mail:hover { text-decoration: underline; }
.footer .kofi-slot { margin-left: auto; }

/* Ko-fi button slot (the widget styles its own button; .kofi-fallback shows until it loads) */
.kofi-slot { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
.kofi-fallback { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 7px; color: #fff; font: 700 14px var(--display); text-decoration: none; }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); }
.page-head p { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 18px; }
.prose { padding: 40px 0 80px; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--gold); }

.wall { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding: 32px; }
.wall canvas { width: 100%; max-width: 300px; aspect-ratio: 1170 / 2532; border-radius: 28px; border: 6px solid #0A0920; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); background: #000; }
.wall h3 { font-size: 18px; margin: 18px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 2px solid transparent; color: var(--ink); font: 600 14px var(--display);
}
.chip img, .chip .swatch { width: 28px; height: 28px; border-radius: 50%; }
.chip img { object-fit: cover; object-position: top; background: rgba(255, 255, 255, .08); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 209, 102, .12); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding-top: 30px; }
  .hero-inner, .split, .news, .support, .wall, .wall-teaser { grid-template-columns: minmax(0, 1fr); }
  .wall-teaser { padding: 28px; gap: 16px; }
  .wall-teaser-cats { width: 320px; max-width: 100%; margin: 0 auto; }
  .wall-teaser-cats svg { width: 40%; }
  .wall-teaser-cats svg:nth-child(2) { left: 30%; }
  .wall-teaser-cats svg:nth-child(3) { left: 60%; }
  .hero-art { max-width: 420px; order: -1; margin-bottom: -10px; }
  .steps { grid-template-columns: 1fr; }
  .support { padding: 28px; gap: 10px; }
  .support-art { height: 220px; max-width: 320px; width: 100%; margin: 0 auto; }
  .support-art svg { width: 140px; height: 175px; }
  .news { padding: 28px; }
  .wall { padding: 20px; }
  .wall canvas { margin: 0 auto; display: block; }
  .footer .kofi-slot { margin-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn-lg { white-space: normal; flex-wrap: wrap; text-align: center; }
  .section { padding: 56px 0; }
  .cta-row .btn, .cta-row .kofi-slot { width: 100%; }
  .news-form { grid-template-columns: 1fr; }
  .crew { gap: 8px; }
  .crew-card { flex-basis: calc(33.333% - 6px); padding: 12px 4px; }
  .crew-card > p:not(.purrk), .crew-card .purrk span { display: none; }
  .crew-card .purrk { padding: 4px; margin-top: 6px; }
  .crew-card .purrk b { font-size: 12.5px; margin: 0; }
  .crew-card h3 { font-size: 16px; }
  .crew-card .price { font-size: 11.5px; padding: 2px 8px; }
  .crew-card svg { width: 76px; height: 95px; }
  .brand span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
