/* ==========================================================================
   Meowecoin concept site: styles
   Palette based on the Meowecoin gold coin (#D4B235) + pop-art cat accents
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0f0d08;
  --bg-2: #16130b;
  --surface: #1c180e;
  --surface-2: #241f12;
  --line: rgba(212, 178, 53, 0.18);
  --line-strong: rgba(212, 178, 53, 0.4);
  --text: #f4ecd6;
  --muted: #b9ad8c;
  --gold: #d4b235;
  --gold-2: #f0d36a;
  --gold-3: #a8861c;
  --ginger: #e8963a;
  --teal: #2ba59a;
  --purple: #8b5cf6;
  --red: #e2483a;
  --pink: #e77fa8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-color: rgba(240, 211, 106, 0.4); text-underline-offset: 3px; }
a:hover { color: #fff; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(212, 178, 53, 0.1); border: 1px solid var(--line); padding: 0.05em 0.4em; border-radius: 6px; color: var(--gold-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #1a1406; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.85em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1406; box-shadow: 0 6px 0 var(--gold-3), 0 10px 30px rgba(212, 178, 53, .25); }
.btn-primary:hover { color: #1a1406; transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold-3), 0 14px 34px rgba(212, 178, 53, .35); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--gold-3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn em { font-style: normal; color: var(--muted); font-weight: 600; }
.btn-sm { padding: 0.5em 1em; font-size: .85rem; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1em; }
.cta-row.center { justify-content: center; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); background: rgba(212, 178, 53, .1); border: 1px solid var(--line-strong); padding: .35em .9em; border-radius: 999px; margin-bottom: 1.2em; }
.badge-concept { display: inline-block; vertical-align: middle; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #1a1406; background: var(--pink); padding: .3em .8em; border-radius: 999px; transform: rotate(-2deg); margin-left: .3em; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(15, 13, 8, .78); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(212,178,53,.35), 0 0 18px rgba(212,178,53,.35); }
.nav-menu { display: flex; gap: 2px; }
.nav-menu a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .92rem; padding: .45em .7em; border-radius: 999px; }
.nav-menu a:hover { color: var(--text); background: rgba(212, 178, 53, .1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--gold-2); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .8rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8em; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.4rem; font-weight: 900; color: #1a1406; background: linear-gradient(135deg, var(--gold-2), var(--ginger)); margin-bottom: 16px; }
.card-problem { position: relative; overflow: hidden; }
.card-problem .num { position: absolute; right: 14px; top: 2px; font-size: 5rem; font-weight: 900; color: rgba(226, 72, 58, .14); line-height: 1; }
.card-problem h3 { color: #ffd2c8; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent);
  background:
    radial-gradient(600px 400px at 78% 40%, rgba(212,178,53,.28), transparent 70%),
    radial-gradient(500px 360px at 10% 10%, rgba(139,92,246,.14), transparent 70%),
    radial-gradient(500px 360px at 30% 100%, rgba(43,165,154,.12), transparent 70%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg .floater { position: absolute; bottom: -60px; opacity: 0; animation: floatUp linear infinite; filter: drop-shadow(0 0 6px rgba(212,178,53,.25)); user-select: none; }
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--o, .18); }
  90% { opacity: var(--o, .18); }
  100% { transform: translateY(calc(-100vh - 120px)) rotate(var(--r, 40deg)); opacity: 0; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 900; }
.grad { background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--ginger)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-p2fk { color: var(--gold-2); font-family: var(--mono); font-size: .7em; vertical-align: .08em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #e6dcc0; max-width: 40ch; }
.micro { color: var(--muted); font-size: .9rem; }
.hero-art { display: grid; place-items: center; }
.coin-orbit { position: relative; width: min(380px, 80vw); aspect-ratio: 1; }
.coin-orbit::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; border: 2px dashed rgba(212,178,53,.35); animation: spin 40s linear infinite; }
.coin-orbit::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(212,178,53,.45), transparent 65%); filter: blur(30px); z-index: -1; }
.coin { width: 100%; height: 100%; border-radius: 50%; animation: bob 6s ease-in-out infinite; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.orbit-chip { position: absolute; font-weight: 900; font-size: .85rem; padding: .4em .8em; border-radius: 999px; color: #1a1406; box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: bob 5s ease-in-out infinite; }
.chip-sol { background: linear-gradient(90deg, #9b7bff, #2ee6b6); top: 6%; left: -6%; }
.chip-doge { background: var(--gold-2); bottom: 10%; right: -8%; animation-delay: -2s; }
.chip-fire { background: #ffb38a; bottom: 2%; left: 4%; animation-delay: -3.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. Solution ---------- */
.solution-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: center; margin-bottom: 40px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: s; }
.flow li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.flow h3 { margin: 0 0 .2em; font-size: 1.02rem; }
.flow p { margin: 0; color: var(--muted); font-size: .95rem; }
.step { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #1a1406; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.mascot { margin: 0; position: relative; }
.mascot img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); transform: rotate(3deg); }
.diagram { margin: 0; background: radial-gradient(800px 300px at 50% 0%, rgba(212,178,53,.08), transparent), var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 3vw, 30px); }
.diagram svg { width: 100%; height: auto; font-family: var(--font); }
.diagram-tall { display: none; max-width: 420px; margin: 0 auto; }
.diagram figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 12px; }
.diagram .lane rect { fill: rgba(255,255,255,.015); stroke: rgba(212,178,53,.16); stroke-dasharray: 4 6; }
.diagram .lane-t { fill: var(--gold); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-anchor: middle; }
.diagram .box rect { fill: #221d10; stroke: rgba(212,178,53,.55); stroke-width: 1.5; }
.diagram .box rect.hl { fill: #3a2f0e; stroke: var(--gold-2); stroke-width: 2.5; }
.diagram .box rect.community { fill: #14221f; stroke: rgba(43, 165, 154, .8); }
.diagram .box rect.engine { fill: #2c2614; stroke: var(--gold); stroke-width: 2; }
.diagram .box.side rect { fill: #17140c; stroke: rgba(231,127,168,.55); stroke-dasharray: 5 4; }
.node-net { margin-bottom: 28px; }
#nodes .callout { margin-top: 22px; }
#nodes .fineprint { margin-top: 0; }
.diagram .n { fill: var(--gold-2); font-size: 22px; font-weight: 900; text-anchor: middle; }
.diagram .t { fill: var(--text); font-size: 15px; font-weight: 800; text-anchor: middle; }
.diagram .t.sm { font-size: 13px; }
.diagram .s { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.diagram .flowline path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.diagram .flowline.dashed path { stroke: var(--pink); stroke-width: 1.8; stroke-dasharray: 3 5; animation-duration: 2s; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* ---------- 5. P2FK ---------- */
.p2fk-grid .card h3 { color: var(--gold-2); }
.callout { margin-top: 28px; display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(212,178,53,.18), rgba(232,150,58,.08)); border: 1px solid var(--line-strong); }
.callout p { margin: 0; }
.callout-icon { font-size: 2rem; }

/* ---------- 5b. Proof ---------- */
.proof { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.proof-img { margin: 0; }
.proof-img img { width: 100%; border-radius: var(--radius-sm); border: 3px solid var(--gold); }
.proof-img figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.proof-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 18px; }
.proof-meta div { min-width: 0; }
.proof-meta .full { grid-column: 1 / -1; }
.proof-meta dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.proof-meta dd { margin: 2px 0 0; font-weight: 700; }
.txid { display: block; word-break: break-all; font-size: .8rem; padding: .5em .7em; }
.proof-quote { margin: 0; padding: 16px 18px; border-left: 4px solid var(--gold); background: rgba(212,178,53,.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #e6dcc0; font-size: .95rem; }
.proof-quote cite { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; font-style: normal; }

/* ---------- 6. Tokenomics ---------- */
.tok-k { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 1.5rem; font-weight: 900; color: var(--gold-2); margin-bottom: 14px; }
.fineprint { color: var(--muted); font-size: .85rem; margin-top: 22px; max-width: 820px; }

/* ---------- 7. Showcase (pop-art) ---------- */
.show-card { --accent: var(--gold); background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 3px solid #000; box-shadow: 6px 6px 0 var(--accent); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.show-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--accent); }
.show-card img { aspect-ratio: 1; object-fit: cover; width: 100%; border-bottom: 3px solid #000; }
.show-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.show-body h3 { margin: 0; }
.show-body p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.show-body .btn { align-self: flex-start; }
.clowder { margin-top: 64px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clowder-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.clowder img { width: 150px; height: 150px; border-radius: 14px; border: 3px solid #000; object-fit: cover; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- 7b. Airdrops ---------- */
.air-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.air-card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--text); }
.air-card img, .air-quote { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.air-quote { display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 900; font-size: 1.5rem; color: var(--gold-2); background: radial-gradient(circle at 30% 30%, #3a2f0e, #120f07); }
.air-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.air-body h3 { margin: 0; }
.air-body p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.air-body code { font-size: .74rem; align-self: flex-start; word-break: break-all; }

/* ---------- 8. Roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.roadmap::before { content: ""; position: absolute; top: 22px; left: 4%; right: 4%; height: 3px; background: linear-gradient(90deg, var(--gold), rgba(212,178,53,.15)); }
.phase { position: relative; padding: 56px 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.phase::before { content: ""; position: absolute; top: 12px; left: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--gold-3); }
.phase.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 40px rgba(212,178,53,.15); }
.phase.now::before { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 0 16px var(--gold); }
.phase-n { font-family: var(--mono); font-size: .78rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.phase h3 { margin: .3em 0 .4em; }
.phase p { color: var(--muted); margin: 0; font-size: .95rem; }
.phase em { color: var(--gold-2); font-style: normal; font-weight: 700; }

/* ---------- 9. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0b0906; padding: 44px 0 30px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 50%; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand span { color: var(--muted); font-size: .9rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--gold-2); text-decoration: none; font-size: 1.1rem; font-weight: 900; }
.socials a:hover { background: rgba(212,178,53,.12); color: #fff; }
.disclaimer { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .85rem; }
.disclaimer .copy { margin: 0; opacity: .8; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 18px; background: rgba(15,13,8,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8em .6em; border-radius: 10px; font-size: 1rem; }
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .roadmap::before { display: none; }
  .solution-grid { grid-template-columns: 1fr; }
  .mascot { max-width: 260px; margin: 0 auto; }
  .proof { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .coin-orbit { width: min(240px, 62vw); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .diagram-wide { display: none; }
  .diagram-tall { display: block; }
}
@media (max-width: 560px) {
  .grid-4, .roadmap, .flow { grid-template-columns: 1fr; }
  .proof-meta { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .callout { flex-direction: column; align-items: flex-start; }
  .clowder img { width: 110px; height: 110px; }
  .show-card { box-shadow: 5px 5px 0 var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.air-card img.contain { object-fit: contain; background: #000; padding: 8px; }
