:root {
  --ink: #15110b;
  --paper: #fff3d2;
  --cream: #fff8e8;
  --gold: #f7b733;
  --gold-dark: #c77700;
  --blue: #36b7ff;
  --red: #ff5151;
  --green: #3ecf8e;
  --purple: #8f7bff;
  --stone: #262a34;
  --muted: #756b5a;
  --line: rgba(21, 17, 11, .16);
  --shadow: rgba(21, 17, 11, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(54, 183, 255, .25), transparent 24rem),
    radial-gradient(circle at 90% 12%, rgba(255, 81, 81, .20), transparent 24rem),
    radial-gradient(circle at 60% 75%, rgba(62, 207, 142, .18), transparent 28rem),
    linear-gradient(135deg, #fffaf0, #ffdf95);
}

a {
  color: inherit;
}

.hero {
  min-height: 760px;
  padding: 28px clamp(18px, 5vw, 76px) 86px;
  background:
    linear-gradient(90deg, rgba(21, 17, 11, .075) 1px, transparent 1px),
    linear-gradient(rgba(21, 17, 11, .075) 1px, transparent 1px);
  background-size: 34px 34px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--blue), var(--red), var(--gold), var(--blue));
  opacity: .16;
  filter: blur(4px);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(12px);
}

.nav a {
  text-decoration: none;
  font-weight: 800;
}

.brand {
  margin-right: auto;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: .05em;
}

.page-hero {
  min-height: 520px;
  padding: 28px clamp(18px, 5vw, 76px) 72px;
  background:
    radial-gradient(circle at 16% 8%, rgba(54, 183, 255, .22), transparent 24rem),
    radial-gradient(circle at 86% 20%, rgba(255, 81, 81, .18), transparent 22rem),
    linear-gradient(135deg, #fffaf0, #ffdf95);
  overflow: hidden;
}

.page-heading {
  max-width: 1060px;
  margin: 90px auto 0;
}

.hero-grid,
.section,
.download-panel,
.cta {
  max-width: 1220px;
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  margin-top: 96px;
}

.eyebrow {
  color: var(--gold-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  line-height: .94;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  letter-spacing: -.05em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  letter-spacing: -.04em;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover,
.download-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.primary {
  background: var(--gold);
}

.pulse {
  position: relative;
  isolation: isolate;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 22px;
  background: rgba(247, 183, 51, .35);
  animation: pulseGlow 1.7s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(.96);
    opacity: .42;
  }
  50% {
    transform: scale(1.05);
    opacity: .86;
  }
}

.button.ghost {
  background: transparent;
}

.hero-stats,
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-stats span,
.trust-row span {
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}

.trust-row {
  margin-top: 28px;
}

.trust-row span {
  font-weight: 900;
  text-align: center;
}

.hero-stats strong,
.hero-stats small {
  display: block;
}

.hero-stats strong {
  font-size: 1.15rem;
}

.hero-stats small {
  color: var(--muted);
}

.plugin-card {
  padding: 22px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 18px 18px 0 var(--shadow);
  transform: rotate(1.4deg);
}

.updates-hero {
  min-height: 620px;
}

.updates-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
}

.release-card {
  padding: 30px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(54, 183, 255, .24), transparent 14rem),
    rgba(255, 255, 255, .72);
  box-shadow: 18px 18px 0 var(--shadow);
}

.release-card strong {
  display: block;
  margin: 10px 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: .9;
}

.release-card p {
  color: var(--muted);
  line-height: 1.6;
}

.release-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.release-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.release-pills span,
.release-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--paper);
  font-size: .86rem;
  font-weight: 900;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.card-top small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(62, 207, 142, .18);
}

.score-preview {
  padding: 24px;
  border-radius: 22px;
  color: #f8f8f8;
  background: linear-gradient(160deg, #11151f, #242a38);
  font-family: Consolas, monospace;
}

.score-preview strong {
  color: var(--gold);
}

.score-preview p {
  margin: 9px 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.mini-grid span {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--paper);
  font-weight: 900;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: -44px;
  padding: 34px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: #11151f;
  color: #fff;
  box-shadow: 14px 14px 0 var(--shadow);
  position: relative;
  z-index: 3;
}

.download-panel p {
  max-width: 760px;
  color: #d8dce8;
  line-height: 1.6;
}

.download-panel code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.download-button {
  min-width: 260px;
  min-height: 76px;
  flex-direction: column;
  align-items: flex-start;
  background: var(--gold);
}

.download-button small {
  margin-top: 4px;
  color: rgba(21, 17, 11, .70);
}

.release-download {
  margin-top: -84px;
}

.standalone-download {
  margin-top: -64px;
}

.section {
  padding: 94px clamp(18px, 5vw, 76px);
}

.cards,
.benefit-grid,
.file-grid,
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.benefit-grid article {
  border-color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 243, 210, .88));
  box-shadow: 8px 8px 0 rgba(21, 17, 11, .12);
}

.benefit-grid strong {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.release-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-top: 28px;
  padding: 26px;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 10px 10px 0 rgba(21, 17, 11, .10);
}

.featured-release {
  border-color: var(--ink);
}

.release-meta span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.release-meta small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.release-content h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.release-content p {
  color: var(--muted);
  line-height: 1.62;
}

.change-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.change-columns div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 243, 210, .72);
}

.change-columns h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.change-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-dark);
  font-weight: 900;
  text-decoration: none;
}

.guide-list,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.faq-card {
  border-color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 243, 210, .86));
  box-shadow: 8px 8px 0 rgba(21, 17, 11, .10);
}

.faq-card h3,
.guide-list h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.faq-card p,
.guide-list p {
  color: var(--muted);
  line-height: 1.6;
}

article,
pre,
.feature-list,
.timeline,
.shop-card,
.item-card {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(10px);
}

article {
  padding: 24px;
}

article h3 {
  margin: 12px 0 8px;
  font-size: 1.22rem;
}

article p,
.split p,
.custom-room p,
.note,
.download-panel p {
  line-height: 1.62;
}

article p,
.split p,
.custom-room p,
.note {
  color: var(--muted);
}

.icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 7px 7px 0 rgba(21, 17, 11, .12);
}

.icon.blue { background: var(--blue); }
.icon.red { background: var(--red); }
.icon.gold { background: var(--gold); }
.icon.green { background: var(--green); }
.icon.dark { background: var(--stone); }
.icon.purple { background: var(--purple); }

.split,
.custom-room {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.item-grid,
.shop-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.item-card,
.shop-card {
  min-height: 170px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 10px 10px 0 rgba(21, 17, 11, .14);
}

.item-card strong,
.shop-card strong {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
}

.item-card small,
.shop-card small {
  font-weight: 800;
  opacity: .9;
}

.shop-card span {
  width: max-content;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.item-card.fire,
.shop-card.fireball {
  background: linear-gradient(145deg, #f0432d, #f7b733);
}

.item-card.sling,
.shop-card.sling {
  background: linear-gradient(145deg, #159957, #56ab2f);
}

.item-card.bridge,
.shop-card.bridge {
  background: linear-gradient(145deg, #4275ff, #49b6ff);
}

.item-card.pearl {
  background: linear-gradient(145deg, #6f4cff, #e06cff);
}

.shop-card.armor {
  background: linear-gradient(145deg, #333846, #9fa7bb);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.feature-list div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 243, 210, .78);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature-list span {
  color: var(--muted);
  line-height: 1.5;
}

.shop-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 18px;
}

.mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 20px;
}

.mode-strip span {
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 900;
}

.config-block pre {
  margin: 0;
}

pre,
code {
  color: #f7f7f7;
  background: var(--stone);
}

pre {
  padding: 30px;
  overflow: auto;
  font-size: 1.08rem;
}

.note code {
  padding: 2px 6px;
  border-radius: 8px;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 12px;
  margin-top: 34px;
}

.command-grid code {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 900;
}

.command-grid span {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.install-steps div {
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 8px 8px 0 rgba(21, 17, 11, .10);
}

.install-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.install-steps strong {
  display: block;
  font-size: 1.12rem;
}

.install-steps p {
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  margin-top: 34px;
}

.timeline div {
  padding: 18px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.timeline strong {
  display: block;
  font-size: 1.1rem;
}

.timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 82px;
  padding: 42px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(54, 183, 255, .25), transparent 18rem),
    #fff7dc;
  box-shadow: 14px 14px 0 var(--shadow);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 5vw, 76px);
  color: #fff;
  background: var(--ink);
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

footer a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.review-toast {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  width: min(392px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(79, 224, 255, .34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(79, 224, 255, .22), transparent 36%),
    linear-gradient(145deg, rgba(5, 15, 27, .96), rgba(8, 26, 41, .94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #f7fbff;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.review-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.review-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(80, 230, 255, .78), rgba(255, 198, 76, .44), rgba(255, 255, 255, .08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.review-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.review-toast-close:hover,
.review-toast-close:focus-visible {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: scale(1.04);
}

.review-toast-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(80, 230, 255, .13);
  color: #76eaff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-toast strong {
  display: block;
  max-width: calc(100% - 34px);
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.review-toast p {
  margin: 0 0 16px;
  color: rgba(236, 247, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}

.review-toast a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #40dcff, #ffd15c);
  color: #04111d;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(64, 220, 255, .22);
  transition: transform .2s ease, filter .2s ease;
}

.review-toast a:hover,
.review-toast a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .custom-room,
  .download-panel,
  .release-entry,
  .cards,
  .benefit-grid,
  .file-grid,
  .mode-grid,
  .shop-layout,
  .install-steps,
  .guide-list,
  .faq-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .download-panel,
  .cta {
    align-items: stretch;
  }

  .change-columns {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  .nav {
    gap: 12px;
  }

  .nav a:not(.brand) {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
  }
}

@media (max-width: 720px) {
  .nav {
    gap: 12px;
    justify-content: center;
  }

  .brand {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .nav a:not(.brand) {
    flex: 1 1 calc(50% - 12px);
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    margin-top: 54px;
  }

  .page-heading {
    margin-top: 54px;
  }

  .hero-stats,
  .trust-row,
  .item-grid,
  .feature-list,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .plugin-card {
    transform: none;
  }

  .release-card {
    box-shadow: 10px 10px 0 var(--shadow);
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(2.45rem, 16vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .section {
    padding: 68px 14px;
  }

  .download-panel,
  .cta,
  .plugin-card,
  .release-card,
  .release-entry {
    border-radius: 22px;
    padding: 22px;
    box-shadow: 8px 8px 0 var(--shadow);
  }

  .button,
  .download-button {
    width: 100%;
  }

  .review-toast {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 16px;
    border-radius: 20px;
  }

  .mini-grid,
  .mode-strip {
    gap: 8px;
  }
}
