:root {
  --cream: #fff9ee;
  --paper: #fffefb;
  --ink: #312a3c;
  --muted: #71677b;
  --pink: #ff78a5;
  --pink-soft: #ffd7e6;
  --yellow: #ffd45c;
  --coral: #ff7166;
  --blue: #6ea8ff;
  --blue-soft: #dceaff;
  --mint: #79d8b0;
  --shadow: 0 18px 0 rgba(49, 42, 60, 0.08);
  --border: 3px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 13%, rgba(255, 212, 92, 0.23) 0 8%, transparent 8.2%),
    radial-gradient(circle at 93% 34%, rgba(110, 168, 255, 0.2) 0 10%, transparent 10.2%),
    var(--cream);
  font-family: "Nunito", sans-serif;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  z-index: -1;
}

a {
  color: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.25rem "Fredoka", sans-serif;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-paw {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px 18px 13px 17px;
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-5deg);
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding: 60px 24px 90px;
}

.eyebrow,
.section-kicker,
.card-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero h1 {
  max-width: 650px;
  margin: 24px 0 20px;
  font: 700 clamp(3.4rem, 7vw, 6.6rem)/0.92 "Fredoka", sans-serif;
  letter-spacing: -0.055em;
}

.rainbow-word {
  display: inline-block;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--coral), #e9a800, var(--mint), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.cat-stage {
  position: relative;
  width: min(100%, 470px);
  justify-self: center;
}

.cat-photo-wrap {
  position: relative;
  z-index: 2;
  padding: 13px;
  border: var(--border);
  border-radius: 44px 58px 48px 40px;
  background: var(--blue);
  box-shadow: 13px 14px 0 var(--ink);
  transform: rotate(2.4deg);
}

.cat-photo-wrap::before,
.cat-photo-wrap::after {
  content: "";
  position: absolute;
  top: -30px;
  width: 86px;
  height: 92px;
  border: var(--border);
  background: var(--blue);
  z-index: -1;
}

.cat-photo-wrap::before {
  left: 41px;
  border-radius: 12px 90px 8px 70px;
  transform: rotate(-22deg);
}

.cat-photo-wrap::after {
  right: 41px;
  border-radius: 90px 12px 70px 8px;
  transform: rotate(22deg);
}

.cat-photo-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 0.92;
  border: var(--border);
  border-radius: 32px 45px 35px 34px;
  object-fit: cover;
  object-position: 62% 42%;
  filter: saturate(0.9) contrast(1.03);
}

.cat-caption {
  position: absolute;
  right: -18px;
  bottom: 18px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  transform: rotate(-4deg);
}

.sparkle {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.6rem;
  animation: bob 3.3s ease-in-out infinite;
}

.sparkle-one {
  top: -48px;
  right: -28px;
  background: var(--yellow);
}

.sparkle-two {
  left: -47px;
  top: 37%;
  background: var(--pink);
  animation-delay: -1.2s;
}

.sparkle-three {
  right: -48px;
  top: 56%;
  background: var(--mint);
  animation-delay: -2.1s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(5deg); }
}

.marquee {
  width: calc(100vw - 16px);
  margin-left: calc(50% - 50vw + 8px);
  overflow: hidden;
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--coral);
  transform: rotate(-1deg);
}

.marquee-track {
  --marquee-gap: 30px;
  width: max-content;
  display: flex;
  gap: var(--marquee-gap);
  align-items: center;
  padding: 13px 0;
  font: 700 1.08rem "Fredoka", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: scroll-strip 18s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
}

.marquee-track i {
  font-style: normal;
  color: var(--cream);
}

@keyframes scroll-strip {
  to { transform: translateX(calc(-50% - (var(--marquee-gap) / 2))); }
}

.things-section {
  padding: 120px 24px 100px;
}

.section-kicker {
  color: #cf3d78;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: var(--border);
  border-radius: 34px;
  box-shadow: 8px 9px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 11px 15px 0 var(--ink);
}

.server-card { background: var(--pink-soft); }
.email-card { background: var(--blue-soft); }

.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 44px;
  border: 2px solid var(--ink);
  border-radius: 21px 18px 22px 17px;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper);
  font-size: 1.8rem;
  transform: rotate(-4deg);
}

.feature-card h3 {
  margin: 6px 0 10px;
  font: 700 2.1rem "Fredoka", sans-serif;
}

.server-address,
.card-link {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 15px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.server-address {
  cursor: pointer;
  text-align: left;
}

.server-address:hover,
.card-link:hover {
  background: var(--paper);
}

.server-address small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.server-address strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.78rem, 1.2vw, 0.94rem);
}

.copy-icon {
  font-size: 1.5rem;
}

.cat-break {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  margin: 20px 24px 110px;
  padding: 36px clamp(24px, 6vw, 70px);
  border: var(--border);
  border-radius: 42px;
  background: var(--mint);
  box-shadow: 10px 11px 0 var(--ink);
}

.cat-break p {
  margin: 7px 0 0;
  font: 700 clamp(1.8rem, 4vw, 3.5rem)/1.08 "Fredoka", sans-serif;
  letter-spacing: -0.03em;
}

.cat-face {
  position: relative;
  width: 135px;
  height: 116px;
  border: var(--border);
  border-radius: 50% 50% 46% 46%;
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--ink);
}

.ear {
  position: absolute;
  top: -22px;
  width: 58px;
  height: 60px;
  border: var(--border);
  background: var(--paper);
  z-index: -1;
}

.ear.left { left: 4px; border-radius: 8px 48px 4px 45px; transform: rotate(-19deg); }
.ear.right { right: 4px; border-radius: 48px 8px 45px 4px; transform: rotate(19deg); }

.eye {
  position: absolute;
  top: 46px;
  width: 10px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.eye.left { left: 37px; }
.eye.right { right: 37px; }
.nose { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); color: var(--pink); font-size: 1.5rem; }

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-top: 2px solid rgba(49, 42, 60, 0.2);
  color: var(--muted);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }

  .hero-copy {
    text-align: center;
  }

  .cat-stage {
    width: min(88%, 460px);
    margin-top: 35px;
  }

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

  .feature-card {
    min-height: 350px;
  }

  .server-address strong {
    font-size: 0.95rem;
  }
}

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

  .site-header {
    min-height: 78px;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding: 38px 10px 80px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .cat-caption {
    right: -5px;
    font-size: 0.75rem;
  }

  .sparkle {
    width: 47px;
    height: 47px;
  }

  .sparkle-one { right: -6px; }
  .sparkle-two { left: -15px; }
  .sparkle-three { right: -15px; }

  .things-section {
    padding: 100px 8px 80px;
  }

  .feature-card {
    padding: 22px;
    border-radius: 28px;
  }

  .cat-break {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin: 10px 8px 90px;
    border-radius: 32px;
  }

  footer {
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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