/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sky: #56CCF2;
  --sky-dark: #1a8fc1;
  --orange: #F36C22;
  --dark: #543847;
  --yellow: #F6D82A;
  --green: #74BF2E;
  --sand: #DED895;
  --white: #ffffff;
  --radius: 14px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--sky); color: var(--dark); }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px;
  background: rgba(86,204,242,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--dark);
}
.nav-brand { font-size: 1.4rem; font-weight: 900; color: var(--white);
  text-shadow: 2px 2px 0 var(--dark); }
.nav-links a { margin-left: 20px; color: var(--dark); font-weight: 700;
  text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--orange); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 92vh; padding: 60px 8%;
  background: linear-gradient(165deg, #56CCF2 30%, #87E0FD 65%, #FFE8B0 100%);
  gap: 40px; flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 260px; }
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1;
  color: var(--white); text-shadow: 4px 4px 0 var(--dark);
}
.hero-title span { color: var(--yellow); }
.hero-sub { font-size: 1.25rem; font-weight: 600; color: var(--dark);
  margin: 20px 0 36px; line-height: 1.6; }
.btn-play { display: inline-block; transition: transform .2s; }
.btn-play:hover { transform: scale(1.05); }
.btn-play img { border-radius: 10px; }

/* ── Animated Bird ────────────────────────────────── */
.hero-bird {
  position: relative; flex: 1; min-width: 260px;
  display: flex; justify-content: center; align-items: center; height: 320px;
}
.bird-wrap {
  position: absolute; z-index: 2;
  animation: bird-fly 1.4s ease-in-out infinite alternate;
}
@keyframes bird-fly {
  from { transform: translateY(-18px) rotate(-8deg); }
  to   { transform: translateY(18px)  rotate(8deg);  }
}
.bird-body {
  width: 80px; height: 64px; border-radius: 50% 50% 40% 40%;
  background: var(--yellow); border: 4px solid var(--dark);
  position: relative;
}
.bird-eye {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: white; border: 3px solid var(--dark);
}
.bird-eye::after {
  content: ''; position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--dark);
}
.bird-beak {
  position: absolute; top: 20px; right: -18px;
  width: 22px; height: 14px; background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.bird-wing {
  position: absolute; bottom: 8px; left: 10px;
  width: 36px; height: 18px; border-radius: 50%;
  background: white; border: 3px solid var(--dark);
  transform-origin: top center;
  animation: wing-flap 0.4s ease-in-out infinite alternate;
}
@keyframes wing-flap {
  from { transform: rotate(-20deg); }
  to   { transform: rotate(20deg);  }
}
.pipe {
  position: absolute; width: 64px;
  background: linear-gradient(90deg,#67CA34,#8FE04E 25%,#4CA01A 75%,#3A7A18);
  border: 3px solid var(--dark); border-radius: 6px;
}
.pipe-top { height: 180px; top: 0; right: 60px; }
.pipe-bot { height: 140px; bottom: 0; right: 60px; }

/* ── Features ─────────────────────────────────────── */
.features {
  background: var(--white); padding: 80px 8%; text-align: center;
  border-top: 5px solid var(--dark); border-bottom: 5px solid var(--dark);
}
.features h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 50px;
  color: var(--dark); }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px; max-width: 1000px; margin: 0 auto;
}
.feature-card {
  background: var(--sand); border: 3px solid var(--dark);
  border-radius: var(--radius); padding: 30px 20px;
  box-shadow: 0 6px 0 var(--dark); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feat-icon { font-size: 2.5rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; line-height: 1.6; color: #555; }

/* ── Screenshots ──────────────────────────────────── */
.screenshots {
  padding: 80px 8%; text-align: center;
  background: linear-gradient(180deg, #87E0FD 0%, #56CCF2 100%);
  border-bottom: 5px solid var(--dark);
}
.screenshots h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 50px;
  color: var(--dark); }
.screenshot-row {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
}
.screen-frame {
  width: 200px; height: 360px; border-radius: 24px;
  background: var(--dark); border: 6px solid var(--dark);
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.screen-placeholder {
  font-size: 2rem; text-align: center; color: rgba(255,255,255,0.5);
  line-height: 1.8; padding: 20px;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: var(--dark); color: var(--white);
  padding: 40px 8%; text-align: center;
}
.footer p { font-size: 0.9rem; margin-bottom: 12px; opacity: 0.8; }
.footer-links a { color: var(--yellow); text-decoration: none; font-weight: 600;
  margin: 0 6px; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { opacity: 0.5; }

/* ── Legal pages ──────────────────────────────────── */
.legal-page { max-width: 780px; margin: 60px auto; padding: 0 24px 80px; }
.legal-page h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; color: var(--dark); }
.legal-page .meta { font-size: 0.9rem; color: #777; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; font-weight: 800; margin: 32px 0 10px; color: var(--dark); }
.legal-page p, .legal-page li { font-size: 1rem; line-height: 1.8; color: #444; }
.legal-page ul { padding-left: 24px; margin-top: 8px; }
.legal-page a { color: var(--orange); }
.legal-back { display: inline-block; margin-bottom: 32px; color: var(--orange);
  font-weight: 700; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }

/* ── Google Play badge fallback ───────────────────── */
.btn-play-text {
  display: inline-block; background: var(--dark); color: var(--white);
  padding: 14px 28px; border-radius: 12px; font-size: 1.1rem;
  font-weight: 800; text-decoration: none; letter-spacing: 0.5px;
  border: 3px solid var(--white); transition: transform .2s;
}
.btn-play-text:hover { transform: scale(1.05); }

@media (max-width: 640px) {
  .hero { padding: 40px 6%; flex-direction: column; min-height: auto; }
  .hero-bird { height: 220px; }
  .pipe-top { height: 120px; }
  .pipe-bot { height: 100px; }
}
