/* Lunar Flock — lunarflock.com. Every rule lives here: the CSP allows no inline <style>, no style="". */

/* Self-hosted variable fonts (latin subset), so font-src can stay 'self'. */
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #110c30; --ink: #2b1f74; --lav: #ddd4ff;
  --mint: #4ff0c3; --pink: #f7a8ea; --beak: #ffe27a;
  --text: #f5f2ff; --muted: #bdb4e6; --card: rgba(255, 255, 255, .055); --line: rgba(221, 212, 255, .16);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 400 17px/1.6 "Nunito", system-ui, sans-serif; overflow-x: hidden;
  background:
    radial-gradient(60% 45% at 88% 0%, rgba(122, 92, 255, .34), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(247, 168, 234, .16), transparent 70%),
    linear-gradient(180deg, #150f3d 0%, var(--night) 55%, #0c0824 100%);
  background-attachment: fixed;
}
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 132px 84px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 64px 158px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 178px 196px, #e8e1ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 214px 44px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 96px 222px, #fff 50%, transparent 51%);
  background-size: 240px 240px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.35rem "Fredoka", sans-serif; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; font: 600 1rem "Fredoka", sans-serif; text-decoration: none; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--mint); color: #0f2233; box-shadow: 0 8px 26px rgba(79, 240, 195, .25); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 36px 0 76px; }
.eyebrow { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--lav); font: 600 .85rem "Fredoka", sans-serif; letter-spacing: .3px; }
h1 { font: 700 clamp(2.5rem, 5.4vw, 4.3rem)/1.04 "Fredoka", sans-serif; letter-spacing: -.5px; margin: 18px 0; }
h1 .accent { color: var(--mint); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.note { display: flex; gap: 10px; color: var(--lav); font-size: .95rem; margin: 0; }
.note::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .55em; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.orbit { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.moon {
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fffdf6 0%, #ece5ff 45%, #c7b8ff 80%, #a893ff 100%);
  box-shadow: 0 0 60px 10px rgba(183, 166, 255, .35), 0 0 150px 40px rgba(122, 92, 255, .22);
}
.moon i { position: absolute; border-radius: 50%; background: rgba(160, 140, 240, .32); box-shadow: inset 3px 3px 7px rgba(90, 70, 190, .35); }
.moon i:nth-child(1) { width: 18%; height: 18%; left: 22%; top: 30%; }
.moon i:nth-child(2) { width: 26%; height: 26%; left: 52%; top: 54%; }
.moon i:nth-child(3) { width: 11%; height: 11%; left: 60%; top: 22%; }
.moon i:nth-child(4) { width: 9%; height: 9%; left: 30%; top: 68%; }
.pen { position: absolute; margin: 0; border-radius: 50%; overflow: hidden; background: var(--lav); border: 4px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(221, 212, 255, .55), 0 16px 40px rgba(0, 0, 0, .45); animation: float 7s ease-in-out infinite; }
.pen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p1 { width: 38%; left: 0; top: 2%; }
.p2 { width: 27%; right: 3%; top: 0; animation-delay: -3s; }
.p3 { width: 25%; right: 0; top: 50%; animation-delay: -1.5s; }
.p4 { width: 25%; left: 3%; bottom: 2%; animation-delay: -4.5s; }
.p5 { width: 21%; left: 45%; bottom: -1%; animation-delay: -2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* sections */
section { padding: 72px 0; }
h2 { font: 700 clamp(1.9rem, 3.6vw, 2.7rem)/1.1 "Fredoka", sans-serif; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 36px; font-size: 1.08rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font: 600 1.35rem "Fredoka", sans-serif; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.facts { padding-top: 0; }
.stat { display: block; font: 700 clamp(1.7rem, 3.2vw, 2.4rem)/1.1 "Fredoka", sans-serif; color: var(--beak); margin-bottom: 8px; }
.stat.mint { color: var(--mint); }
.stat.pink { color: var(--pink); }
.source { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.source a { color: var(--lav); }

.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; background: rgba(79, 240, 195, .12); color: var(--mint); font: 700 1rem "Fredoka", sans-serif; }
.fine { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }

.founding { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(135deg, rgba(247, 168, 234, .12), rgba(122, 92, 255, .14)); }
.founding img { display: block; width: 180px; height: 180px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 0 0 0 3px rgba(221, 212, 255, .55); }
.founding h2 { margin-bottom: 10px; }
.founding p { margin: 0; color: var(--muted); max-width: 38em; font-size: 1.08rem; }
.badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--beak); color: #3a2a00; font: 600 .8rem "Fredoka", sans-serif; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 600 1.15rem "Fredoka", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

.follow { text-align: center; }
.follow .sub { margin-inline: auto; }
.follow .cta { justify-content: center; margin-bottom: 0; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .grid3 { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } section { padding: 56px 0; } }
@media (max-width: 680px) {
  .founding { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .founding img { width: 128px; height: 128px; }
}
@media (max-width: 520px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .pen { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }
