:root {
  --blue-950: #063b85;
  --blue-800: #0756b7;
  --blue-600: #1688df;
  --blue-100: #dff4ff;
  --yellow: #ffd539;
  --yellow-dark: #edaa06;
  --green: #4ba84b;
  --ink: #08376a;
  --paper: #fffdf4;
  --white: #fff;
  --shadow: 0 22px 60px rgba(0, 46, 105, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 13%, rgba(255, 255, 255, 0.72) 0 5%, transparent 17%),
    radial-gradient(circle at 92% 8%, rgba(76, 183, 244, 0.48), transparent 24%),
    linear-gradient(180deg, #7bd1f7 0%, #e9f9ff 37%, #f8fcff 100%);
  font-family: "Nunito", system-ui, sans-serif;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,.85) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(#000, transparent 82%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}

.header-badge, .eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .02em;
}

.header-badge {
  padding: 10px 14px;
  color: var(--blue-950);
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 34px 0 84px;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  color: var(--blue-950);
  margin-bottom: 14px;
  font-size: 15px;
  text-transform: uppercase;
}
.eyebrow span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(0,60,130,.16);
}

h1, h2, .closing-card strong {
  font-family: "Baloo 2", system-ui, sans-serif;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 6vw, 82px);
  line-height: .93;
  letter-spacing: -.045em;
  text-shadow: 0 4px 0 rgba(7, 86, 183, .22);
}
h1 span {
  color: var(--yellow);
  text-shadow: 0 4px 0 var(--yellow-dark), 0 8px 20px rgba(12,64,128,.18);
}

.hero-copy > p {
  max-width: 590px;
  margin: 26px 0 28px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  font-weight: 700;
  color: #0b4a8c;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-button {
  min-height: 58px;
  padding: 0 22px 0 26px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #114e14;
  background: var(--yellow);
  border: 3px solid #fff5aa;
  border-radius: 18px;
  box-shadow: 0 7px 0 #dc9b00, 0 14px 25px rgba(8,64,125,.2);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 3; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 #dc9b00, 0 18px 30px rgba(8,64,125,.22); }
.primary-button:active { transform: translateY(5px); box-shadow: 0 2px 0 #dc9b00; }
.primary-button:focus-visible { outline: 4px solid white; outline-offset: 4px; }

.reading-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a4f94;
  font-weight: 800;
}

.cover-stage {
  width: min(470px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
}
.cover-glow {
  position: absolute;
  width: 89%;
  height: 89%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,231,89,.96), rgba(255,255,255,.35) 42%, transparent 72%);
  filter: blur(10px);
  animation: pulse 4s ease-in-out infinite;
}
.cover-card {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.96);
  border-radius: 26px;
  transform: rotate(3deg);
  box-shadow: 0 28px 55px rgba(1, 55, 122, .35), 0 8px 0 rgba(4,80,158,.18);
  animation: float 5s ease-in-out infinite;
}
.cover-card img { width: 100%; height: 100%; object-fit: cover; }

.floating-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 7px rgba(5,60,125,.22));
}
.sticker-star { left: 0; top: 13%; font-size: 58px; color: var(--yellow); transform: rotate(-16deg); }
.sticker-ball { right: -1%; bottom: 11%; font-size: 66px; transform: rotate(15deg); }
.sticker-shine { right: 5%; top: 7%; font-size: 50px; color: white; }

.reader-section {
  position: relative;
  padding: 68px max(20px, calc((100% - 1120px) / 2)) 56px;
  background: linear-gradient(180deg, var(--blue-800), var(--blue-950));
  box-shadow: inset 0 14px 34px rgba(3,44,100,.16);
}
.reader-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

.reader-heading {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  color: white;
}
.section-kicker { color: #a9e3ff; font-size: 14px; text-transform: uppercase; }
h2 { margin: 3px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }

.reader-shell {
  position: relative;
  overflow: hidden;
  background: #071c33;
  border: 8px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 8px 0 rgba(0,28,66,.5);
}
.reader-topbar {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: #f4f7fa;
}
.window-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ff6961; }
.dot-yellow { background: #ffca3a; }
.dot-green { background: #55c66a; }
.reader-label { margin-left: 7px; color: #557087; font-size: 12px; font-weight: 800; }
.reader-frame-wrap { position: relative; height: min(73vh, 760px); min-height: 490px; }
.reader-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: white;
  background: radial-gradient(circle at 50% 40%, #174a7d, #071c33 72%);
}
.loading-ball { font-size: 46px; animation: bounce .8s ease infinite alternate; }
#book-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s ease; }
#book-frame.is-loaded { opacity: 1; }

.tips {
  position: relative;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tip {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 17px;
  color: #eaf8ff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
}
.tip-icon {
  flex: 0 0 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--blue-950);
  background: var(--yellow);
  font-size: 25px;
  font-weight: 900;
}
.tip span:last-child { line-height: 1.3; }

.closing-card {
  width: min(760px, calc(100% - 40px));
  margin: 64px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 26px 34px;
  border: 3px dashed #f3bd19;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(0,70,140,.12);
}
.closing-icon { font-size: 52px; }
.closing-card strong { font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
.closing-card p { margin: 3px 0 0; color: #517293; font-weight: 700; }

footer {
  min-height: 115px;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #56728d;
  font-size: 14px;
  font-weight: 700;
}
footer p { margin: 0; }
footer a {
  color: #375b7d;
  text-decoration-color: rgba(55, 91, 125, .35);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
footer a:hover { color: var(--blue-800); text-decoration-color: currentColor; }
.footer-heart { color: #ef5570; margin-inline: 2px; }

.sky { position: absolute; inset: 0 0 auto; height: 780px; overflow: hidden; pointer-events: none; z-index: 1; }
.cloud { position: absolute; width: 170px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.6); filter: blur(1px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 74px; height: 74px; left: 30px; bottom: 0; }
.cloud::after { width: 96px; height: 96px; right: 18px; bottom: 0; }
.cloud-one { top: 112px; left: -68px; transform: scale(.8); }
.cloud-two { top: 180px; right: -64px; transform: scale(1.15); }
.confetti { position: absolute; width: 14px; height: 34px; border-radius: 4px; }
.confetti-one { top: 180px; left: 45%; background: var(--yellow); transform: rotate(23deg); }
.confetti-two { top: 420px; right: 5%; background: var(--green); transform: rotate(-34deg); }
.confetti-three { top: 530px; left: 5%; background: var(--blue-800); transform: rotate(52deg); }
.sparkle { position: absolute; color: white; font-size: 34px; animation: twinkle 2.2s ease-in-out infinite; }
.sparkle-one { top: 145px; right: 32%; }
.sparkle-two { top: 500px; left: 43%; animation-delay: 1s; }
.ball { position: absolute; opacity: .09; font-size: 125px; }
.ball-one { left: 1%; top: 265px; transform: rotate(-18deg); }
.ball-two { right: 3%; top: 390px; transform: rotate(24deg); }

@keyframes float { 50% { transform: rotate(-1deg) translateY(-10px); } }
@keyframes pulse { 50% { transform: scale(1.07); opacity: .8; } }
@keyframes twinkle { 50% { transform: scale(.7) rotate(30deg); opacity: .5; } }
@keyframes bounce { to { transform: translateY(-10px) rotate(10deg); } }

@media (max-width: 840px) {
  .site-header { min-height: 76px; width: min(100% - 28px, 1180px); }
  .header-badge { font-size: 12px; padding: 8px 11px; }
  .hero {
    width: min(100% - 28px, 680px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 26px 0 62px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-copy > p { margin: 20px auto 22px; }
  .hero-actions { justify-content: center; }
  .cover-stage { width: min(420px, 94vw); grid-row: 1; }
  .cover-card { width: 76%; border-width: 6px; border-radius: 22px; }
  .reader-heading { align-items: flex-start; }
  .tips { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body::before { height: 620px; }
  .header-badge { font-size: 0; gap: 0; width: 39px; height: 39px; justify-content: center; }
  .header-badge span { font-size: 18px; }
  .hero { gap: 24px; padding-top: 14px; }
  .cover-stage { width: min(310px, 92vw); }
  .sticker-star { font-size: 41px; left: 1%; }
  .sticker-ball { font-size: 48px; right: 0; }
  .sticker-shine { font-size: 34px; }
  h1 { font-size: clamp(43px, 14vw, 60px); }
  .hero-copy > p { font-size: 17px; line-height: 1.46; }
  .hero-actions { width: 100%; }
  .primary-button { width: 100%; min-height: 56px; }
  .reading-note { width: 100%; justify-content: center; font-size: 14px; }
  .reader-section { padding-top: 48px; }
  .reader-heading { display: block; }
  .reader-shell { margin-inline: -10px; border-width: 5px; border-radius: 17px; }
  .reader-topbar { height: 30px; }
  .reader-frame-wrap { height: 72vh; min-height: 460px; }
  .tips { gap: 10px; }
  .tip { min-height: 69px; padding: 11px; font-size: 14px; }
  .tip-icon { flex-basis: 39px; height: 39px; }
  .closing-card { padding: 22px; text-align: left; }
  .closing-icon { font-size: 42px; }
  footer { text-align: center; }
}

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