:root {
  --sky-50: #f1fbff;
  --sky-100: #d9f3ff;
  --sky-200: #b8e7fb;
  --sky-300: #83cfef;
  --blue-700: #135b82;
  --blue-900: #08324c;
  --ink: #123047;
  --muted: #56758a;
  --white: #ffffff;
  --yellow: #ffd84a;
  --orange: #f28b25;
  --card-border: rgba(19, 91, 130, 0.15);
  --shadow: 0 24px 70px rgba(23, 104, 149, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 216, 74, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(131, 207, 239, 0.6), transparent 28rem),
    linear-gradient(180deg, var(--sky-50) 0%, var(--sky-100) 58%, #effbff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(19, 91, 130, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 91, 130, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 44px;
  min-height: 48vh;
  padding: 28px 0 22px;
}

.site-name {
  width: fit-content;
  margin: 0 0 18px;
  color: var(--blue-700);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--blue-900);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(4rem, 9vw, 8.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
}

.intro {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
}

.duck-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.duck-stage::before {
  position: absolute;
  width: min(96%, 470px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(184, 231, 251, 0.48)),
    radial-gradient(circle at 50% 78%, rgba(255, 216, 74, 0.22), transparent 42%);
  box-shadow: var(--shadow);
}

.duck-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 22px 54px rgba(43, 137, 184, 0.18);
  transform-origin: 50% 80%;
  animation: floatDuck 5.2s ease-in-out infinite;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 0;
}

.fact-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(131, 207, 239, 0.22), rgba(255, 216, 74, 0.08));
  box-shadow: 0 16px 42px rgba(43, 137, 184, 0.13);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.fact-card::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 128px;
  height: 128px;
  content: "";
  border-radius: 999px;
  background: rgba(131, 207, 239, 0.22);
}

.fact-card:hover {
  border-color: rgba(19, 91, 130, 0.28);
  box-shadow: 0 22px 54px rgba(43, 137, 184, 0.2);
  transform: translateY(-5px);
}

.fact-number {
  display: block;
  margin-bottom: 42px;
  color: var(--orange);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.fact-card h2 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.fact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.fact-card.is-visible {
  animation: cardIn 560ms ease both;
}

@keyframes floatDuck {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1.4deg);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    text-align: center;
  }

  .site-name {
    margin-right: auto;
    margin-left: auto;
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .duck-stage {
    min-height: 360px;
  }

  .duck-portrait {
    width: min(92%, 380px);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 430px);
    padding-bottom: 34px;
  }

  .hero {
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.2rem);
  }

  .intro {
    font-size: 1.03rem;
  }

  .duck-stage {
    min-height: 310px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fact-card {
    min-height: 190px;
    padding: 24px;
  }

  .fact-number {
    margin-bottom: 34px;
  }
}
