:root {
  --page-start: #ddf4ff;
  --page-end: #f9fdff;
  --mist: #f4fbff;
  --brand: #31a8ff;
  --brand-dark: #1479d6;
  --ink: #173a62;
  --ink-soft: #365d82;
  --ink-mute: #7895ae;
  --cloud: #feffff;
  --border: #c8eaff;
  --shadow: 0 18px 40px rgba(23, 58, 98, 0.12);
  --radius: 999px;
  --font-display: "Fredoka", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Fredoka", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 18% -10%, #8bd5ff55, transparent 60%),
    radial-gradient(900px 600px at 92% 8%, #ffe79a44, transparent 55%),
    linear-gradient(165deg, var(--page-start), var(--page-end) 55%, var(--mist));
  overflow-x: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

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

.cloud {
  position: absolute;
  display: block;
  width: 180px;
  height: 60px;
  background: color-mix(in srgb, var(--cloud) 82%, transparent);
  border-radius: 999px;
  filter: blur(0.2px);
  animation: drift 28s linear infinite;
}

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

.cloud::before {
  width: 70px;
  height: 70px;
  top: -34px;
  left: 28px;
}

.cloud::after {
  width: 96px;
  height: 96px;
  top: -46px;
  left: 72px;
}

.c1 {
  top: 14%;
  left: -8%;
  opacity: 0.55;
  animation-duration: 36s;
}

.c2 {
  top: 28%;
  right: -10%;
  width: 220px;
  opacity: 0.4;
  animation-duration: 42s;
  animation-direction: reverse;
}

.c3 {
  bottom: 18%;
  left: 12%;
  width: 160px;
  opacity: 0.35;
  animation-duration: 48s;
}

.orb {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7d7, #ffd166 55%, #31a8ff00 72%);
  filter: blur(0.5px);
  animation: pulse 6s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 14vh, 8rem) 0 3rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 0 8px 0 #c8eaff66;
  animation: rise 0.9s ease both;
}

.slogan {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 600;
  color: var(--brand-dark);
  animation: rise 1s ease both;
  animation-delay: 0.08s;
}

.lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  animation: rise 1.05s ease both;
  animation-delay: 0.14s;
}

.cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: rise 1.1s ease both;
  animation-delay: 0.2s;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(180deg, #8bd5ff, var(--brand) 45%, var(--brand-dark));
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(20, 121, 214, 0.28);
}

.btn.ghost {
  background: color-mix(in srgb, var(--cloud) 88%, transparent);
  color: var(--ink);
  border-color: var(--border);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: #fff;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem 1.75rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.sep {
  opacity: 0.5;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(28vw);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .orb,
  .brand,
  .slogan,
  .lead,
  .cta {
    animation: none;
  }
}
