@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Nunito:wght@400;500;600;700&display=swap');


/* =========================================================
   MITSU'S GOONDEMONIUM
   Moonlit / Gothic / Dreamy Theme
   ========================================================= */


/* =========================================================
   THEME COLORS
   ========================================================= */

:root {
  --bg-darkest: #0d1020;
  --bg-deep: #121521;
  --bg-panel: #171a27;
  --bg-panel-light: #1c2030;

  --navy: #2a315a;
  --navy-soft: #34394d;

  --periwinkle-dark: #5f79a8;
  --periwinkle: #7084b7;
  --periwinkle-light: #8fa0d8;

  --lavender-dark: #756a9d;
  --lavender: #8a78b8;
  --lavender-soft: #a58cc8;

  --moonlight: #f0f1f7;
  --text-main: #e6e8f2;
  --text-soft: #b7bacd;
  --text-muted: #858aa3;

  --icy-blue: #9fd6f0;

  --border: rgba(143, 160, 216, 0.48);
  --border-soft: rgba(165, 140, 200, 0.28);

  --panel-bg: rgba(20, 23, 37, 0.88);
  --panel-bg-soft: rgba(28, 32, 48, 0.72);

  --shadow:
    0 18px 50px rgba(0, 0, 0, 0.38);

  --soft-glow:
    0 0 18px rgba(112, 132, 183, 0.18);

  --strong-glow:
    0 0 28px rgba(143, 160, 216, 0.25);
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(112, 132, 183, 0.12),
      transparent 35%
    ),
    radial-gradient(
      circle at 15% 45%,
      rgba(138, 120, 184, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(95, 121, 168, 0.08),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #111426 0%,
      var(--bg-darkest) 45%,
      #090c17 100%
    );

  color: var(--text-main);

  font-family: "Nunito", Arial, sans-serif;

  overflow-x: hidden;

  line-height: 1.65;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
  background: var(--lavender);
  color: white;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
  background:
    linear-gradient(
      var(--periwinkle),
      var(--lavender)
    );

  border-radius: 20px;
  border: 2px solid var(--bg-darkest);
}


/* =========================================================
   BACKGROUND DECOR
   ========================================================= */

.background-decor {
  position: fixed;
  inset: 0;

  z-index: -1;

  overflow: hidden;

  pointer-events: none;
}


/* Stars */

.star {
  position: absolute;

  color: var(--periwinkle-light);

  opacity: 0.4;

  text-shadow:
    0 0 8px rgba(159, 214, 240, 0.4);

  animation: twinkle 4s ease-in-out infinite;
}

.star-one {
  top: 8%;
  left: 8%;
  font-size: 1.2rem;
}

.star-two {
  top: 18%;
  right: 12%;
  font-size: 1.8rem;
  animation-delay: 1s;
}

.star-three {
  top: 52%;
  left: 6%;
  font-size: 2rem;
  animation-delay: 2s;
}

.star-four {
  top: 72%;
  right: 7%;
  font-size: 1.4rem;
  animation-delay: 3s;
}


@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.9);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.12);
  }
}


/* =========================================================
   CLOUDS
   ========================================================= */

.cloud {
  position: absolute;

  width: 340px;
  height: 110px;

  border-radius: 999px;

  background:
    radial-gradient(
      circle at 25% 50%,
      rgba(112, 132, 183, 0.16) 0 28%,
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 25%,
      rgba(138, 120, 184, 0.16) 0 35%,
      transparent 37%
    ),
    radial-gradient(
      circle at 75% 55%,
      rgba(95, 121, 168, 0.14) 0 30%,
      transparent 32%
    );

  filter: blur(4px);

  opacity: 0.45;
}

.cloud-left {
  top: 340px;
  left: -120px;
}

.cloud-right {
  top: 740px;
  right: -100px;

  transform: scaleX(-1);
}


/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.page-wrapper {
  width: min(1150px, calc(100% - 40px));

  margin: 0 auto;

  padding: 70px 0 50px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 390px;

  display: grid;

  grid-template-columns:
    1fr 1.6fr 1fr;

  align-items: center;

  margin-bottom: 40px;

  padding: 50px 35px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      rgba(18, 21, 33, 0.94),
      rgba(28, 32, 48, 0.82)
    );

  box-shadow:
    var(--shadow),
    inset 0 0 35px rgba(112, 132, 183, 0.05);

  backdrop-filter: blur(14px);
}


.hero::before {
  content: "";

  position: absolute;

  width: 330px;
  height: 330px;

  top: -170px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(143, 160, 216, 0.2),
      transparent 70%
    );

  pointer-events: none;
}


.hero::after {
  content: "";

  position: absolute;

  inset: 10px;

  border:
    1px solid
    rgba(165, 140, 200, 0.17);

  border-radius: 21px;

  pointer-events: none;
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-content {
  text-align: center;

  position: relative;

  z-index: 2;
}


.eyebrow,
.section-kicker {
  margin: 0 0 6px;

  font-size: 0.74rem;

  font-weight: 700;

  letter-spacing: 0.24em;

  text-transform: uppercase;

  color: var(--periwinkle-light);
}


.hero h1 {
  margin: 0;

  font-family: "Cinzel", serif;

  font-size:
    clamp(
      2.2rem,
      5vw,
      4.1rem
    );

  line-height: 1.08;

  font-weight: 700;

  letter-spacing: -0.03em;

  color: var(--moonlight);

  text-shadow:
    0 0 10px rgba(143, 160, 216, 0.25),
    0 0 30px rgba(138, 120, 184, 0.12);
}


.hero-description {
  max-width: 520px;

  margin:
    22px auto
    0;

  color: var(--text-soft);

  font-size: 1rem;
}


.hero-stars {
  margin-top: 22px;

  display: flex;

  justify-content: center;

  gap: 17px;

  color: var(--lavender-soft);

  font-size: 1.1rem;
}


/* =========================================================
   HERO CHARACTER ART
   ========================================================= */

.hero-decoration {
  height: 100%;

  display: flex;

  align-items: flex-end;

  position: relative;

  z-index: 1;
}

.hero-decoration-left {
  justify-content: flex-start;
}

.hero-decoration-right {
  justify-content: flex-end;
}

.hero-character {
  max-width: 100%;
  max-height: 330px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 12px 25px rgba(0, 0, 0, 0.45)
    );
}


/* =========================================================
   MOONBUN NOOK TAB
   ========================================================= */

.discord-tab-wrapper {
  margin-bottom: 32px;
}

.quick-link {
  width: 100%;

  display: grid;

  grid-template-columns:
    115px 1fr auto;

  align-items: center;

  gap: 20px;

  min-height: 105px;

  padding:
    12px 20px
    12px 12px;

  overflow: hidden;

  text-decoration: none;

  border:
    1px solid
    rgba(143, 160, 216, 0.34);

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(28, 32, 48, 0.92),
      rgba(18, 21, 33, 0.9)
    );

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}


.quick-link:hover {
  transform: translateY(-4px);

  border-color:
    rgba(143, 160, 216, 0.7);

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.35),
    var(--soft-glow);
}


.quick-link-image-wrapper {
  width: 115px;
  height: 80px;

  overflow: hidden;

  border-radius: 15px;

  border:
    1px solid
    rgba(143, 160, 216, 0.25);

  background:
    var(--bg-deep);
}


.quick-link-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


.quick-link-text {
  display: flex;

  flex-direction: column;

  min-width: 0;
}


.quick-link-text strong {
  font-family: "Cinzel", serif;

  color: var(--moonlight);

  font-size: 1.05rem;
}


.quick-link-text small {
  margin-top: 5px;

  color: var(--text-muted);

  font-size: 0.8rem;
}


.quick-link-arrow {
  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  color: var(--icy-blue);

  background:
    rgba(112, 132, 183, 0.17);

  border:
    1px solid
    rgba(143, 160, 216, 0.3);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.quick-link:hover .quick-link-arrow {
  transform: translateX(3px);

  background:
    rgba(112, 132, 183, 0.3);
}


/* =========================================================
   MAIN SECTIONS
   ========================================================= */

.section-card {
  position: relative;

  margin-bottom: 32px;

  padding: 38px;

  border:
    1px solid
    var(--border-soft);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(23, 26, 39, 0.92),
      rgba(18, 21, 33, 0.88)
    );

  box-shadow:
    var(--shadow);

  overflow: hidden;

  backdrop-filter: blur(13px);
}


.section-card::before {
  content: "";

  position: absolute;

  inset: 8px;

  border:
    1px solid
    rgba(112, 132, 183, 0.1);

  border-radius: 18px;

  pointer-events: none;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 18px;

  margin-bottom: 28px;

  text-align: center;
}


.section-heading h2 {
  margin: 0;

  color: var(--moonlight);

  font-family: "Cinzel", serif;

  font-size:
    clamp(
      1.55rem,
      4vw,
      2.35rem
    );
}


.section-icon {
  color: var(--lavender-soft);

  text-shadow:
    0 0 10px
    rgba(165, 140, 200, 0.35);
}


/* =========================================================
   PLATFORM GRID
   ========================================================= */

.platform-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;
}


/* =========================================================
   PLATFORM CARDS
   ========================================================= */

.platform-card {
  overflow: hidden;

  border:
    1px solid
    rgba(112, 132, 183, 0.26);

  border-radius: 20px;

  background:
    var(--panel-bg-soft);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.platform-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(143, 160, 216, 0.6);

  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.34),
    var(--soft-glow);
}


.platform-image-wrapper {
  position: relative;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      var(--bg-deep),
      var(--navy)
    );
}


.platform-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


.platform-image-wrapper::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      transparent 50%,
      rgba(13, 16, 32, 0.75)
    );

  pointer-events: none;
}


.platform-content {
  padding: 21px;
}


.platform-label {
  display: inline-block;

  margin-bottom: 7px;

  color: var(--periwinkle-light);

  font-size: 0.69rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.16em;
}


.platform-card h3 {
  margin:
    0 0
    10px;

  font-family: "Cinzel", serif;

  color: var(--moonlight);

  font-size: 1.2rem;
}


.platform-card p {
  margin:
    0 0
    18px;

  color: var(--text-soft);

  font-size: 0.88rem;
}


/* =========================================================
   BUTTON LINKS
   ========================================================= */

.button-link {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding:
    9px 15px;

  border-radius: 999px;

  border:
    1px solid
    rgba(143, 160, 216, 0.38);

  background:
    linear-gradient(
      135deg,
      rgba(95, 121, 168, 0.21),
      rgba(138, 120, 184, 0.2)
    );

  color: var(--moonlight);

  text-decoration: none;

  font-weight: 700;

  font-size: 0.78rem;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}


.button-link:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      rgba(112, 132, 183, 0.34),
      rgba(165, 140, 200, 0.28)
    );

  border-color:
    var(--periwinkle-light);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
  display: flex;

  align-items: center;

  gap: 24px;

  max-width: 850px;

  margin-left: auto;
  margin-right: auto;
}


.about-icon {
  width: 78px;
  height: 78px;

  flex-shrink: 0;

  display: grid;

  place-items: center;

  border-radius: 50%;

  color: var(--icy-blue);

  font-size: 2rem;

  background:
    radial-gradient(
      circle,
      rgba(112, 132, 183, 0.24),
      rgba(28, 32, 48, 0.3)
    );

  border:
    1px solid
    rgba(143, 160, 216, 0.35);

  box-shadow:
    var(--soft-glow);
}


.about-content h2 {
  margin:
    2px 0
    9px;

  font-family: "Cinzel", serif;

  color: var(--moonlight);
}


.about-content p:last-child {
  margin: 0;

  color: var(--text-soft);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding:
    30px 20px
    12px;

  text-align: center;

  color: var(--text-muted);

  font-size: 0.78rem;
}


.footer-stars {
  margin-bottom: 8px;

  color: var(--lavender-soft);

  letter-spacing: 0.25em;
}


.site-footer p {
  margin: 0;

  font-family: "Cinzel", serif;

  letter-spacing: 0.08em;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
  color: var(--periwinkle-light);
}

a:hover {
  color: var(--icy-blue);
}

a:focus-visible {
  outline:
    2px solid
    var(--icy-blue);

  outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .hero {
    grid-template-columns:
      0.8fr 2fr 0.8fr;

    min-height: 340px;

    padding:
      40px 20px;
  }

  .hero-character {
    max-height: 250px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .page-wrapper {
    width:
      min(
        100% - 22px,
        1150px
      );

    padding-top: 22px;
  }


  /* Hero */

  .hero {
    min-height: auto;

    grid-template-columns: 1fr;

    padding:
      44px 18px
      32px;
  }


  .hero-content {
    order: 1;
  }


  .hero-decoration-left,
  .hero-decoration-right {
    position: absolute;

    bottom: -6px;

    opacity: 0.3;

    pointer-events: none;
  }


  .hero-decoration-left {
    left: -35px;
  }


  .hero-decoration-right {
    right: -35px;
  }


  .hero-character {
    max-height: 155px;
  }


  .hero h1 {
    font-size: 2.2rem;
  }


  .hero-description {
    max-width: 95%;

    font-size: 0.9rem;
  }


  /* Moonbun Nook Tab */

  .quick-link {
    grid-template-columns:
      82px 1fr auto;

    gap: 13px;

    min-height: 90px;

    padding:
      10px 14px
      10px 10px;
  }


  .quick-link-image-wrapper {
    width: 82px;
    height: 67px;
  }


  .quick-link-text strong {
    font-size: 0.9rem;
  }


  .quick-link-text small {
    font-size: 0.7rem;
  }


  .quick-link-arrow {
    width: 34px;
    height: 34px;
  }


  /* Sections */

  .section-card {
    padding:
      28px 16px;

    border-radius: 20px;
  }


  .section-heading {
    gap: 10px;
  }


  /* Platform Cards */

  .platform-grid {
    grid-template-columns: 1fr;
  }


  /* About */

  .about-section {
    flex-direction: column;

    text-align: center;
  }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 390px) {

  .hero h1 {
    font-size: 1.9rem;
  }


  .section-heading h2 {
    font-size: 1.45rem;
  }


  .quick-link {
    grid-template-columns:
      68px 1fr auto;

    gap: 10px;
  }


  .quick-link-image-wrapper {
    width: 68px;
    height: 58px;
  }


  .quick-link-arrow {
    width: 30px;
    height: 30px;
  }

}