:root {
  --sky-top: #e6f7ff;
  --sky-bottom: #c7e8ff;
  --ink: #0a3366;
  --ink-soft: rgba(10, 51, 102, .7);
  --card: rgba(255, 255, 255, .75);
  --card-border: rgba(26, 120, 242, .12);
  --accent: #1a78f2;
  --glass: rgba(255, 255, 255, .6);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #081733;
    --sky-bottom: #052954;
    --ink: #d9f0ff;
    --ink-soft: rgba(217, 240, 255, .7);
    --card: rgba(255, 255, 255, .07);
    --card-border: rgba(92, 209, 250, .15);
    --accent: #5cd1fa;
    --glass: rgba(115, 191, 255, .16);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(var(--sky-top), var(--sky-bottom)) fixed;
  line-height: 1.5;
}

main { max-width: 960px; margin: 0 auto; padding: 48px 16px 24px; }

.hero { text-align: center; }
.mascot { width: 168px; height: auto; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(26, 120, 242, .25)); }
.glass { fill: var(--glass); }
.wave.back { fill: #5cd1fa; opacity: .55; animation: slide 5s linear infinite reverse; }
.wave.front { animation: slide 3.6s linear infinite; }
.bubble { fill: #fff; opacity: .5; animation: rise 4s linear infinite; }
.b2 { animation-delay: 1.3s; } .b3 { animation-delay: 2.6s; }

h1 { font-size: clamp(48px, 10vw, 76px); margin: 12px 0 0; letter-spacing: -.02em; font-weight: 900; }
.tagline { font-size: 20px; color: var(--ink-soft); margin: 8px 0 20px; font-weight: 600; }
.badge { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-border); font-weight: 700; font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.features article { background: var(--card); border: 1px solid var(--card-border); border-radius: 24px; padding: 20px; backdrop-filter: blur(8px); }
.features h2 { font-size: 18px; margin: 8px 0 4px; }
.features p { margin: 0; color: var(--ink-soft); }
.icon { font-size: 28px; }

.doc { max-width: 720px; }
.doc h1 { font-size: 40px; }
.doc h2 { margin-top: 32px; font-size: 22px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc a, footer a { color: var(--accent); font-weight: 700; }

footer { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 24px 16px 48px; color: var(--ink-soft); font-size: 14px; }

@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes slide { to { transform: translateX(200px); } }
@keyframes rise { from { transform: translateY(0); opacity: .6; } to { transform: translateY(-140px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mascot, .wave, .bubble { animation: none; }
}
