:root {
  --sky-top: #736bd1;
  --sky-mid: #8d72cf;
  --sky-bottom: #c17bd1;
  --night: #37366f;
  --night-2: #4d478f;
  --panel: rgba(73, 66, 137, 0.88);
  --panel-light: rgba(123, 109, 190, 0.68);
  --pink: #f2a4db;
  --pink-2: #ffc2e8;
  --lavender: #d5c2ff;
  --cream: #fff4cf;
  --white: #fffafd;
  --ink: #342f68;
  --outline: rgba(46, 43, 102, 0.9);
  --shadow: 0 14px 0 rgba(49, 43, 103, 0.22);
  --pixel: "Silkscreen", ui-monospace, "Cascadia Mono", monospace;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: var(--body);
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-bottom) 100%);
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(49,45,101,.08), rgba(51,43,96,.22));
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  image-rendering: pixelated;
}

.stars-a {
  opacity: .82;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.8px),
    radial-gradient(circle, #ffe6a8 0 1px, transparent 1.8px);
  background-size: 88px 88px, 133px 133px;
  background-position: 7px 13px, 40px 20px;
  animation: driftStars 35s linear infinite;
}

.stars-b {
  opacity: .55;
  background-image:
    linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0);
  background-size: 2px 7px, 7px 2px, 3px 3px;
  background-repeat: repeat;
  background-position: 15px 30px, 80px 50px, 120px 12px;
  animation: twinkle 4.5s steps(2, end) infinite;
}

.moon {
  position: absolute;
  top: 10vh;
  right: 8vw;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--cream);
  filter: drop-shadow(0 0 22px rgba(255,242,194,.35));
}

.moon::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  top: -9px;
  right: -14px;
  background: #786ed0;
}

.shooting-star {
  position: absolute;
  width: 95px;
  height: 3px;
  transform: rotate(-26deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), #fff);
  box-shadow: 38px 0 12px rgba(255,255,255,.35);
  opacity: 0;
}

.shooting-star::after {
  content: "✦";
  position: absolute;
  right: -9px;
  top: -10px;
  font-size: 18px;
  color: var(--cream);
}

.shooting-star-1 { top: 19%; left: -15%; animation: shoot 8s ease-in-out infinite 1s; }
.shooting-star-2 { top: 42%; left: -25%; animation: shoot 11s ease-in-out infinite 5s; }

.cloud {
  position: absolute;
  width: 280px;
  height: 72px;
  background: rgba(238, 161, 226, .66);
  border-radius: 999px;
  filter: drop-shadow(0 9px 0 rgba(92,72,156,.20));
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 18px;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 120px; height: 120px; left: 46px; }
.cloud::after { width: 150px; height: 150px; right: 40px; }

.cloud-1 { bottom: 1vh; left: -40px; transform: scale(1.25); opacity: .8; }
.cloud-2 { bottom: 7vh; right: -95px; transform: scale(.95); opacity: .66; }
.cloud-3 { top: 46vh; left: 54%; transform: scale(.62); opacity: .35; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  width: min(1220px, calc(100% - 32px));
  margin: 18px auto 0;
  min-height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 14px;
  z-index: 50;
  background: rgba(57, 52, 116, .78);
  border: 3px solid rgba(255,255,255,.36);
  box-shadow: 0 7px 0 rgba(45, 39, 98, .38);
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  font: 700 20px var(--pixel);
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 3px 3px 0 rgba(51,45,102,.5);
}

.brand-star { color: var(--cream); }

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font: 700 12px var(--pixel);
  letter-spacing: .03em;
  opacity: .92;
}

.site-nav a:hover { color: var(--cream); }

.nav-pill {
  padding: 10px 12px;
  background: rgba(242,164,219,.18);
  border: 2px solid var(--pink-2);
  box-shadow: 4px 4px 0 rgba(48,42,98,.35);
}

.nav-toggle {
  display: none;
  color: var(--white);
  background: transparent;
  border: 0;
  font-size: 22px;
}

.hero {
  min-height: 720px;
  padding: 105px 0 115px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 15px;
  font: 700 11px var(--pixel);
  color: var(--cream);
  letter-spacing: .055em;
}

h1, h2, h3 {
  font-family: var(--pixel);
  line-height: 1.15;
}

h1 {
  font-size: clamp(46px, 7vw, 86px);
  margin: 0 0 24px;
  text-shadow: 6px 6px 0 rgba(55,49,112,.35);
}

h1 span { color: var(--pink-2); }

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  margin: 12px 0 12px;
  font-size: 22px;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255,250,253,.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 16px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-decoration: none;
  font: 700 12px var(--pixel);
  border: 3px solid var(--outline);
  box-shadow: 6px 6px 0 rgba(45,40,95,.38);
  transition: transform .12s ease, box-shadow .12s ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 rgba(45,40,95,.38);
}

.button-primary {
  background: var(--pink-2);
  color: var(--ink);
}

.button-secondary {
  background: rgba(255,255,255,.13);
  color: var(--white);
  border-color: rgba(255,255,255,.72);
}

.microcopy {
  font-size: 13px !important;
  opacity: .72;
}

.pixel-frame {
  border: 4px solid rgba(55,49,112,.95);
  outline: 3px solid rgba(255,255,255,.44);
  box-shadow: var(--shadow), 0 0 0 7px rgba(102,87,176,.55);
}

.hero-window {
  transform: rotate(1deg);
  background: rgba(62,55,125,.85);
}

.window-titlebar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  background: var(--pink);
  color: var(--ink);
  font: 700 12px var(--pixel);
  border-bottom: 4px solid rgba(55,49,112,.95);
}

.window-buttons { display: flex; gap: 7px; }
.window-buttons span {
  width: 11px;
  height: 11px;
  background: var(--cream);
  border: 2px solid var(--ink);
}

.terminal {
  min-height: 335px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  font: 400 13px/1.85 var(--pixel);
  color: #efeaff;
  background:
    radial-gradient(circle at 25% 15%, rgba(242,164,219,.15), transparent 28%),
    linear-gradient(155deg, rgba(65,57,131,.97), rgba(40,38,91,.96));
}

.terminal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 120px;
  opacity: .4;
  background:
    radial-gradient(ellipse at 20% 100%, #d78bd5 0 40%, transparent 41%),
    radial-gradient(ellipse at 50% 100%, #d78bd5 0 46%, transparent 47%),
    radial-gradient(ellipse at 85% 100%, #d78bd5 0 38%, transparent 39%);
}

.terminal p { margin: 0 0 8px; }
.prompt { color: var(--pink-2); }
.ok { color: var(--cream); }

.terminal-stars {
  margin-top: 55px;
  text-align: center;
  color: var(--cream);
  animation: twinkle 3s steps(2, end) infinite;
}

.tools-section,
.about-section,
.support-section {
  padding: 90px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 30px;
}

.sparkle-line {
  font: 400 15px var(--pixel);
  color: var(--cream);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  min-height: 390px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: rgba(69,62,134,.82);
  border: 3px solid rgba(255,255,255,.38);
  box-shadow: 8px 8px 0 rgba(48,42,99,.30);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  background: rgba(77,69,149,.92);
}

.tool-card.featured {
  background: linear-gradient(160deg, rgba(86,73,156,.94), rgba(136,92,164,.90));
}

.tool-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--pink-2);
  color: var(--ink);
  border: 3px solid var(--outline);
  font-size: 23px;
  box-shadow: 4px 4px 0 rgba(49,43,103,.38);
}

.tool-meta {
  margin-top: 24px;
  font: 700 9px var(--pixel);
  letter-spacing: .07em;
  color: var(--cream);
}

.tool-card p {
  flex: 1;
  margin: 0 0 18px;
  line-height: 1.65;
  color: rgba(255,250,253,.82);
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tags span {
  padding: 6px 8px;
  font: 700 9px var(--pixel);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.27);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.mini-button {
  padding: 10px 12px;
  text-decoration: none;
  font: 700 10px var(--pixel);
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--outline);
}

.disabled {
  opacity: .66;
  cursor: default;
}

.text-link {
  font: 700 10px var(--pixel);
  text-decoration: none;
  color: var(--pink-2);
}

.about-panel {
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  background: rgba(61,55,124,.88);
}

.about-panel p {
  max-width: 620px;
  line-height: 1.75;
  font-size: 17px;
  color: rgba(255,250,253,.84);
}

.about-list {
  display: grid;
  align-content: center;
  gap: 12px;
}

.about-list div {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(255,255,255,.20);
}

.about-list strong {
  font: 700 12px var(--pixel);
  color: var(--cream);
}

.about-list span { font-weight: 800; }

.support-card {
  padding: 45px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 30px;
  background: linear-gradient(135deg, rgba(109,83,165,.94), rgba(182,109,174,.88));
  border: 4px solid rgba(255,255,255,.38);
  box-shadow: 10px 10px 0 rgba(48,42,99,.31);
}

.support-card p {
  margin: 12px 0 0;
  max-width: 680px;
  line-height: 1.65;
}

.support-moon {
  font-size: 72px;
  color: var(--cream);
  filter: drop-shadow(5px 5px 0 rgba(59,49,116,.25));
}

.site-footer {
  padding: 55px 0 40px;
  font-size: 13px;
}

.footer-stars {
  margin-bottom: 25px;
  text-align: center;
  font: 400 14px var(--pixel);
  color: var(--cream);
}

.footer-row {
  padding-top: 22px;
  border-top: 2px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-links a:hover { color: var(--cream); }

@keyframes shoot {
  0%, 78% { transform: translate(0,0) rotate(-26deg); opacity: 0; }
  80% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate(145vw, -58vh) rotate(-26deg); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: .9; }
}

@keyframes driftStars {
  from { transform: translateY(0); }
  to { transform: translateY(88px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .site-header { position: relative; top: 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(55,50,112,.97);
    border: 3px solid rgba(255,255,255,.35);
  }
  .site-nav.open { display: flex; }
  .hero {
    min-height: auto;
    padding: 85px 0 80px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tool-grid { grid-template-columns: 1fr; }
  .about-panel { grid-template-columns: 1fr; }
  .support-card {
    grid-template-columns: 70px 1fr;
  }
  .support-card .button { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { width: calc(100% - 16px); }
  h1 { font-size: 43px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section-heading { align-items: start; flex-direction: column; }
  .about-panel { padding: 28px 22px; }
  .support-card {
    padding: 28px 22px;
    grid-template-columns: 1fr;
  }
  .support-moon { font-size: 52px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .moon { width: 82px; height: 82px; right: 4vw; }
  .moon::after { width: 68px; height: 68px; }
}
