:root {
  --bg: #080711;
  --bg-soft: #121024;
  --panel: rgba(24, 20, 42, 0.82);
  --panel-bright: rgba(44, 33, 74, 0.92);
  --text: #fff8ff;
  --muted: #cfc6e8;
  --purple: #a855f7;
  --violet: #7c3aed;
  --lime: #a3e635;
  --gold: #facc15;
  --pink: #fb7185;
  --mud: #8b5a2b;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.32), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(163, 230, 53, 0.12), transparent 28%),
    radial-gradient(circle at bottom, rgba(124, 58, 237, 0.28), transparent 40%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: "Creepster", cursive;
  font-size: 30px;
  color: #111;
  background: linear-gradient(135deg, var(--lime), var(--gold));
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(163, 230, 53, 0.45);
  transform: rotate(-7deg);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  transition: 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.8);
  transform: translateY(-2px);
}

.section-card {
  position: relative;
  margin: 20px 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)), var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), transparent 45%, rgba(163, 230, 53, 0.1));
  opacity: 0.75;
}

.section-card > * {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Space Mono", monospace;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-family: "Creepster", cursive;
  font-size: clamp(4.3rem, 10vw, 8.4rem);
  line-height: 0.84;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.7);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 560px;
  font-size: 1.25rem;
}

.hero-actions, .badge-row, .idea-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn, .idea-chip {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: 180ms ease;
}

.btn-primary {
  color: #130817;
  background: linear-gradient(135deg, var(--lime), var(--gold));
  box-shadow: 0 0 26px rgba(163, 230, 53, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
}

.btn:hover, .idea-chip:hover {
  transform: translateY(-3px) scale(1.03);
}

.hero-art {
  position: relative;
  min-height: 540px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,0.18), transparent 12%),
    linear-gradient(180deg, rgba(34, 25, 63, 0.78), rgba(9, 8, 17, 0.9));
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-art::before {
  content: "✦ ✧ ✦ ✧ ✦";
  position: absolute;
  top: 45px;
  right: 36px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 14px;
}

.moon {
  position: absolute;
  top: 52px;
  left: 54px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, white, #d9ccff 55%, #7c3aed);
  box-shadow: 0 0 42px rgba(255,255,255,0.4);
}

.mountain {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 190px solid transparent;
  border-right: 190px solid transparent;
  border-bottom: 260px solid rgba(53, 42, 85, 0.95);
}

.mountain-one { left: -40px; }
.mountain-two { right: -70px; border-bottom-color: rgba(42, 34, 68, 0.95); }

.hero-girl {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: 180px;
  height: 260px;
  transform: translateX(-50%);
  animation: floaty 4s ease-in-out infinite;
}

.girl-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 94px;
  height: 94px;
  border-radius: 50% 50% 44% 44%;
  background: #f1d8c9;
  transform: translateX(-50%);
  box-shadow: inset 0 -12px 0 rgba(0,0,0,0.18);
}

.girl-head::before, .girl-head::after {
  content: "";
  position: absolute;
  top: 42px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #161019;
}

.girl-head::before { left: 26px; }
.girl-head::after { right: 26px; }

.girl-braid {
  position: absolute;
  top: 74px;
  width: 36px;
  height: 122px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, #111 0 16px, #27202f 16px 32px);
}

.braid-left { left: 20px; transform: rotate(18deg); }
.braid-right { right: 20px; transform: rotate(-18deg); }

.girl-body {
  position: absolute;
  top: 92px;
  left: 50%;
  width: 126px;
  height: 160px;
  border-radius: 38px 38px 24px 24px;
  background: linear-gradient(135deg, #1b1625, #4c1d95);
  transform: translateX(-50%);
  border: 4px solid rgba(255,255,255,0.12);
}

.mud-splash {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: var(--mud);
  box-shadow: 0 0 0 10px rgba(139,90,43,0.18), 30px 7px 0 -8px var(--mud), -28px -10px 0 -6px var(--mud);
}

.splash-one { width: 58px; height: 28px; left: 8px; }
.splash-two { width: 74px; height: 34px; right: 0; }

.monster-card {
  position: absolute;
  width: 132px;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(12px);
  animation: wobble 5s ease-in-out infinite;
}

.card-one { right: 38px; top: 122px; transform: rotate(8deg); }
.card-two { left: 52px; bottom: 88px; transform: rotate(-8deg); animation-delay: 1s; }

.card-face, .big-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.4));
}

.quick-note {
  text-align: center;
}

.quick-note p {
  max-width: 840px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flip-card {
  min-height: 278px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 278px;
  transform-style: preserve-3d;
  transition: transform 650ms ease;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  backface-visibility: hidden;
}

.flip-front {
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(255,255,255,0.06));
}

.flip-back {
  background: linear-gradient(135deg, rgba(163,230,53,0.22), rgba(250,204,21,0.14));
  transform: rotateY(180deg);
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.badge-row span, .idea-chip {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.mission-panel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  position: relative;
  padding: 22px 22px 22px 62px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}

.timeline-dot {
  position: absolute;
  left: 22px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(163, 230, 53, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.photo-tile {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 28px;
  color: var(--text);
  font-weight: 900;
  border: 2px dashed rgba(255,255,255,0.24);
  background:
    radial-gradient(circle at 30% 20%, rgba(163,230,53,0.18), transparent 40%),
    linear-gradient(135deg, rgba(124,58,237,0.34), rgba(255,255,255,0.05));
}

.idea-grid {
  margin-top: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 50px;
  color: var(--muted);
}

.site-footer a {
  color: var(--lime);
  font-weight: 900;
  text-decoration: none;
}

@keyframes floaty {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes wobble {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (max-width: 920px) {
  .hero, .split-section {
    grid-template-columns: 1fr;
  }

  .card-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .section-card {
    border-radius: 24px;
  }

  .card-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 440px;
  }

  .monster-card {
    width: 112px;
    min-height: 148px;
  }

  .card-one { right: 16px; }
  .card-two { left: 18px; }

  .site-footer {
    flex-direction: column;
  }
}
