:root {
  color-scheme: light;
  --ink: #29243c;
  --muted: #675f7a;
  --cream: #fffaf2;
  --paper: #ffffff;
  --lavender: #8b72d5;
  --lavender-dark: #6247b3;
  --mint: #70d7ad;
  --mint-dark: #23785e;
  --peach: #ffae92;
  --sun: #ffd96a;
  --rose: #f18fa8;
  --line: #e8e0f2;
  --shadow: 0 24px 70px rgb(69 50 105 / 14%);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgb(139 114 213 / 20%), transparent 30rem),
    radial-gradient(circle at 94% 18%, rgb(112 215 173 / 22%), transparent 28rem),
    var(--cream);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(98 71 179 / 12%) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 90; height: 4px; pointer-events: none; transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; background: linear-gradient(90deg, var(--lavender), var(--peach), var(--sun), var(--mint)); }

a { color: var(--lavender-dark); text-decoration-thickness: .12em; text-underline-offset: .18em; }
a:hover { color: var(--mint-dark); }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(98 71 179 / 12%);
  background: rgb(255 250 242 / 88%);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--max));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand-logo { width: 206px; height: 50px; object-fit: contain; object-position: left center; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #eee7ff; color: var(--lavender-dark); }

.nav-toggle {
  display: none;
  min-width: 56px;
  height: 44px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

main { overflow: clip; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.section { padding: 82px 0; scroll-margin-top: 92px; }
.section-tight { padding: 48px 0; scroll-margin-top: 92px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--lavender-dark);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 20px; height: 4px; border-radius: 4px; background: var(--peach); content: ""; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(3.2rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.hero { padding: 76px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(34px, 7vw, 90px); }
.hero h1 span { color: var(--lavender-dark); }
.hero-copy { display: grid; gap: 24px; }
.hero-art { --hero-x: 0deg; --hero-y: 0deg; position: relative; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: initial; cursor: pointer; transform: perspective(1000px) rotateX(var(--hero-x)) rotateY(var(--hero-y)); transition: transform .22s ease; transform-style: preserve-3d; }
.hero-art:focus-visible { outline: 4px solid var(--lavender); outline-offset: 10px; border-radius: 32px; }
.hero-art img { filter: drop-shadow(0 30px 45px rgb(75 57 111 / 18%)); animation: plush-float 5.5s ease-in-out infinite; }
.hero-art::before, .hero-art::after { position: absolute; z-index: -1; width: 32px; height: 32px; border: 3px solid var(--ink); content: ""; transform: rotate(12deg); animation: block-bob 4s ease-in-out infinite; }
.hero-art::before { top: 8%; left: 3%; background: var(--sun); }
.hero-art::after { right: 7%; bottom: 4%; background: var(--mint); animation-delay: -2s; }
.sticker {
  position: absolute;
  right: -8px;
  bottom: 14px;
  max-width: 170px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--sun);
  box-shadow: 6px 7px 0 var(--ink);
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(4deg);
}
.plush-reaction { position: absolute; top: 2%; right: 2%; max-width: 190px; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 16px 16px 4px; background: #fff; box-shadow: 3px 4px 0 var(--lavender); font-size: .78rem; font-weight: 900; line-height: 1.25; opacity: 0; transform: translateY(8px) rotate(2deg); transition: opacity .2s ease, transform .2s ease; }
.hero-art:hover .plush-reaction, .hero-art:focus-visible .plush-reaction, .hero-art.reacting .plush-reaction { opacity: 1; transform: translateY(0) rotate(2deg); }
.hero-art.reacting img { animation: plush-cheer .55s ease, plush-float 5.5s .55s ease-in-out infinite; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 19px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--lavender);
  box-shadow: 4px 5px 0 var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { color: #fff; transform: translate(2px, 2px); box-shadow: 2px 3px 0 var(--ink); }
.button.secondary { background: var(--paper); color: var(--ink); }
.button.mint { background: var(--mint-dark); }
.button.cozy-toggle { background: var(--peach); color: var(--ink); cursor: pointer; }
.button.cozy-toggle[aria-pressed="true"] { background: var(--sun); box-shadow: 4px 5px 0 var(--lavender-dark); }

body.cozy-mode {
  background:
    radial-gradient(circle at 8% 2%, rgb(241 143 168 / 28%), transparent 32rem),
    radial-gradient(circle at 94% 18%, rgb(255 217 106 / 30%), transparent 30rem),
    radial-gradient(circle at 50% 72%, rgb(112 215 173 / 18%), transparent 34rem),
    var(--cream);
}
body.cozy-mode::before { animation: cozy-drift 12s linear infinite; }
body.cozy-mode .status-dot { animation: cozy-pulse 1.8s ease-in-out infinite; }

.server-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.server-badges span { padding: 7px 11px; border: 1px solid #d8ccef; border-radius: 999px; background: rgb(255 255 255 / 72%); color: var(--lavender-dark); font-size: .78rem; font-weight: 900; }

.launch-strip { padding-top: 22px; }
.launch-strip + .hero { padding-top: 48px; }
.status-ribbon {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 14px 40px rgb(76 61 105 / 9%);
}
.status-copy { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgb(255 217 106 / 25%); }
.status-ribbon strong { display: block; }
.status-ribbon small { color: var(--muted); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 10px; }
.countdown-unit { min-width: 74px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: center; }
.countdown-unit strong { display: block; color: var(--lavender-dark); font-size: 1.45rem; line-height: 1; }
.countdown-unit small { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.join-panel { padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; border: 2px solid var(--ink); border-radius: 32px; background: #fff; box-shadow: 7px 8px 0 var(--mint); }
.server-address { margin-top: 12px; color: var(--lavender-dark); font-family: ui-monospace, "Cascadia Code", monospace; font-size: clamp(1.5rem, 4vw, 2.7rem); font-weight: 1000; letter-spacing: -.04em; }
.server-address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.copy-address { margin-top: 12px; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 12px; background: var(--sun); box-shadow: 3px 4px 0 var(--ink); color: var(--ink); font-size: .82rem; font-weight: 900; cursor: pointer; }
.copy-address:hover { transform: translate(1px, 1px); box-shadow: 2px 3px 0 var(--ink); }
.join-details { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { padding: 7px 11px; border-radius: 999px; background: #eee7ff; color: var(--lavender-dark); font-size: .8rem; font-weight: 900; }

.section-heading { display: grid; gap: 16px; margin-bottom: 38px; }
.section-heading.spaced { margin-top: 72px; }
.section-heading.split { grid-template-columns: 1fr .8fr; align-items: end; }
.section-heading.split .lede { justify-self: end; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 14px 38px rgb(62 46 94 / 8%);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { box-shadow: 0 22px 44px rgb(62 46 94 / 13%); transform: translateY(-7px) rotate(.25deg); }
.card::after {
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border-radius: 38% 62% 55% 45%;
  background: var(--card-accent, #eee7ff);
  content: "";
  transform: rotate(22deg);
}
.card:nth-child(2n) { --card-accent: #dff8ed; }
.card:nth-child(3n) { --card-accent: #ffe7dd; }
.card-icon { display: grid; width: 50px; height: 50px; margin-bottom: 22px; place-items: center; border-radius: 16px; background: #eee7ff; font-size: 1.55rem; }
.card:hover .card-icon { animation: icon-wiggle .48s ease; }
.card h3 { margin-bottom: 11px; }
.card p { color: var(--muted); }
.card a { position: relative; z-index: 1; display: inline-block; margin-top: 17px; font-weight: 900; }

.feature-showcase { position: relative; }
.feature-showcase::before { position: absolute; inset: 7% 0 auto; z-index: -1; height: 66%; background: linear-gradient(90deg, rgb(139 114 213 / 9%), rgb(112 215 173 / 10%), rgb(255 174 146 / 8%)); content: ""; transform: skewY(-2deg); }
.feature-filters { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.feature-filter { padding: 9px 14px; border: 1px solid #d9d0e8; border-radius: 999px; background: #fff; color: var(--muted); font-size: .84rem; font-weight: 900; cursor: pointer; transition: background .16s ease, color .16s ease, transform .16s ease; }
.feature-filter:hover { color: var(--lavender-dark); transform: translateY(-2px); }
.feature-filter.active, .feature-filter[aria-pressed="true"] { border-color: var(--lavender-dark); background: var(--lavender-dark); color: #fff; }
.feature-result { margin-bottom: 24px; color: var(--muted); font-size: .88rem; font-weight: 800; }
.feature-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-tile { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; min-height: 205px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgb(255 255 255 / 94%); box-shadow: 0 14px 34px rgb(62 46 94 / 7%); transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: opacity .2s ease, transform .16s ease, box-shadow .16s ease; transform-style: preserve-3d; }
.feature-tile::after { position: absolute; right: -20px; bottom: -24px; width: 70px; height: 70px; border-radius: 18px 18px 6px; background: #eee7ff; content: ""; transform: rotate(14deg); opacity: .72; }
.feature-tile:nth-child(3n)::after { background: #dff8ed; }
.feature-tile:nth-child(4n)::after { background: #ffe7dd; }
.feature-tile:hover { box-shadow: 0 22px 42px rgb(62 46 94 / 13%); }
.feature-tile.filter-pop { animation: filter-pop .34s ease both; }
.feature-tile[hidden] { display: none; }
.feature-code { display: inline-grid; min-width: 38px; height: 30px; margin-bottom: 17px; padding: 0 8px; place-items: center; border: 2px solid var(--ink); border-radius: 9px; background: var(--sun); box-shadow: 2px 3px 0 var(--ink); font-family: ui-monospace, monospace; font-size: .76rem; font-weight: 1000; }
.feature-tile h3 { position: relative; z-index: 1; margin-bottom: 9px; font-size: 1.08rem; letter-spacing: -.025em; }
.feature-tile p { position: relative; z-index: 1; color: var(--muted); font-size: .9rem; line-height: 1.48; }

.plush-lab {
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 46px;
  border: 2px solid var(--ink);
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 8px 10px 0 var(--lavender);
  color: #fff;
}
.plush-lab .eyebrow { color: var(--mint); }
.plush-lab .lede { color: #d9d3e5; }
.pal-picker { display: grid; gap: 16px; }
.pal-display { min-height: 220px; padding: 28px; display: grid; align-content: center; border-radius: 26px; background: #fffaf2; color: var(--ink); }
.pal-display.swap { animation: pal-pop .42s ease; }
.pal-face { font-size: 4rem; line-height: 1; }
.pal-display h3 { margin: 16px 0 8px; font-size: 1.8rem; }
.pal-display p { color: var(--muted); }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { padding: 22px; border-top: 4px solid var(--mint); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.trust-item:hover { box-shadow: 0 14px 30px rgb(62 46 94 / 10%); transform: translateY(-5px); }
.trust-item strong { display: block; margin-bottom: 5px; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.callout { padding: clamp(28px, 5vw, 56px); border-radius: 36px; background: linear-gradient(135deg, #eae2ff, #dff8ed 62%, #fff0d0); }
.callout-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; }
.callout h2 { max-width: 740px; }

.page-hero { padding: 72px 0 42px; }
.page-hero .shell { display: grid; gap: 20px; }
.page-hero h1 { max-width: 950px; font-size: clamp(3rem, 7vw, 5.8rem); }

.content-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 54px; }
.toc { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.prose { max-width: 820px; }
.prose section { padding: 0 0 54px; scroll-margin-top: 110px; }
.prose h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.prose h3 { margin: 28px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 1.4rem; }
.prose li + li { margin-top: 8px; }
.prose .rule-list { padding: 0; display: grid; gap: 12px; list-style: none; }
.rule { padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.rule-number { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: #eee7ff; color: var(--lavender-dark); font-weight: 1000; }
.notice { margin: 22px 0; padding: 20px 22px; border-left: 5px solid var(--lavender); border-radius: 0 16px 16px 0; background: #f1ecff; }
.notice.warning { border-color: var(--peach); background: #fff0e9; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.metric-value { display: block; color: var(--lavender-dark); font-size: 2.2rem; font-weight: 1000; letter-spacing: -.05em; }
.metric-label { color: var(--muted); }
.progress { height: 18px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.progress > span { display: block; width: var(--progress); height: 100%; background: linear-gradient(90deg, var(--lavender), var(--mint)); }

.site-footer { margin-top: 74px; padding: 48px 0; border-top: 1px solid var(--line); background: rgb(255 255 255 / 62%); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-grid h2 { margin-bottom: 12px; font-size: 1.4rem; }
.footer-grid p { max-width: 420px; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 4px; }
.footer-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.footer-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.copy-toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(340px, calc(100% - 40px)); padding: 13px 17px; border: 2px solid var(--ink); border-radius: 15px; background: var(--ink); box-shadow: 5px 6px 0 var(--mint); color: #fff; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease; }
.copy-toast.show { opacity: 1; transform: translateY(0); }
.clipboard-helper { position: fixed; left: -9999px; opacity: 0; pointer-events: none; }

.motion-ready .reveal { opacity: 1; transform: translateY(24px); transition: transform .65s cubic-bezier(.2,.75,.25,1); }
.motion-ready .reveal.visible { transform: translateY(0); }

@keyframes plush-float {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-12px) rotate(.7deg); }
}

@keyframes plush-cheer {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-20px) rotate(-3deg) scale(1.03); }
  65% { transform: translateY(-7px) rotate(3deg) scale(1.01); }
}

@keyframes cozy-drift {
  to { background-position: 24px 24px; }
}

@keyframes cozy-pulse {
  50% { box-shadow: 0 0 0 10px rgb(255 217 106 / 12%); transform: scale(1.15); }
}

@keyframes icon-wiggle {
  30% { transform: rotate(-8deg) scale(1.08); }
  65% { transform: rotate(6deg) scale(1.05); }
}

@keyframes filter-pop {
  from { opacity: .25; transform: translateY(10px) scale(.97); }
}

@keyframes block-bob {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-10px) rotate(20deg); }
}

@keyframes pal-pop {
  0% { transform: scale(.97) rotate(-.4deg); }
  60% { transform: scale(1.02) rotate(.3deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    padding: 12px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px 14px; }
  .hero-grid, .plush-lab, .content-layout { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 680px; margin: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wall { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading.split { grid-template-columns: 1fr; }
  .section-heading.split .lede { justify-self: start; }
  .toc { position: static; }
}

@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .hero { padding-top: 50px; }
  .card-grid, .feature-wall, .metric-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .status-ribbon, .callout-grid, .join-panel { display: grid; grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .sticker { right: 0; bottom: -14px; max-width: 145px; font-size: .82rem; }
  .button-row .button { width: 100%; }
  .rule { grid-template-columns: 34px 1fr; padding: 16px; }
  .brand-logo { width: 174px; height: 44px; }
  .feature-filters { flex-wrap: nowrap; margin-right: -16px; padding: 2px 16px 9px 0; overflow-x: auto; scrollbar-width: thin; }
  .feature-filter { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
