/* HappyPie Player Pro website: deep glowing navy, sky blue, white (matches the app art). */
:root {
  --bg: #04081c;
  --bg-2: #0a1433;
  --card: #0d1a40;
  --card-edge: #1d3270;
  --text: #ffffff;
  --muted: #a9b8d9;
  --sky: #66b8ff;
  --sky-light: #9fd4ff;
  --crust: #e9a03b;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, #1f5bd6 0%, rgba(31, 91, 214, 0.25) 35%, transparent 70%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--sky); }
a:hover { color: var(--sky-light); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: 40px; }
.brand span { color: var(--sky-light); font-weight: 400; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 30px 0 60px; }
.pie-stage { position: relative; width: 300px; height: 300px; margin: 0 auto 10px; }
.pie-stage img { position: relative; width: 100%; height: 100%; z-index: 1; }
.ring {
  position: absolute; left: -45px; right: -45px; top: 115px; height: 120px;
  border: 5px solid var(--sky); border-radius: 50%;
  transform: rotate(-14deg);
  box-shadow: 0 0 18px var(--sky), inset 0 0 14px rgba(102, 184, 255, 0.6);
  opacity: 0.9;
}
.ring.front { z-index: 2; clip-path: inset(50% 0 0 0); }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.1; margin: 10px 0 6px; text-shadow: 0 0 22px rgba(80, 170, 255, 0.55); }
.hero h1 span { color: var(--sky-light); font-weight: 400; }
.hero p.lead { color: var(--muted); font-size: 21px; max-width: 680px; margin: 0 auto 28px; }

.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 18px;
  border: 2px solid var(--sky);
}
.btn.main { background: var(--sky); color: #04122e; }
.btn.main:hover { background: var(--sky-light); color: #04122e; }
.btn.ghost { color: var(--sky); }
.btn.ghost:hover { background: rgba(102, 184, 255, 0.12); }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Sections */
section { padding: 50px 0; }
h2 { font-size: 34px; margin: 0 0 8px; text-align: center; }
.sub { color: var(--muted); text-align: center; margin: 0 auto 32px; max-width: 700px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { font-size: 30px; margin-bottom: 6px; }

.devices { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.device {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 999px;
  padding: 10px 22px; font-weight: 600;
}
.device.soon { color: var(--muted); font-weight: 400; }

.notice {
  background: linear-gradient(180deg, rgba(233, 160, 59, 0.12), rgba(233, 160, 59, 0.04));
  border: 1px solid rgba(233, 160, 59, 0.5); border-radius: var(--radius);
  padding: 24px; max-width: 820px; margin: 0 auto;
}
.notice h3 { margin: 0 0 6px; color: var(--crust); }
.notice p { margin: 0; color: #e8dcc8; }

/* Plain pages (terms, privacy, support) */
.page { max-width: 820px; margin: 0 auto; padding: 20px 0 60px; }
.page h1 { font-size: 40px; margin: 10px 0 4px; }
.page .updated { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.page h2 { text-align: left; font-size: 24px; margin: 30px 0 6px; }
.page p, .page li { color: #d6def0; }
.page ul { padding-left: 22px; }

/* Footer */
footer { border-top: 1px solid var(--card-edge); padding: 26px 0 40px; margin-top: 30px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 18px; }
footer a:hover { color: var(--text); }

.brand { white-space: nowrap; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { flex-direction: column; gap: 10px; }
  .nav { gap: 18px; justify-content: center; }
  .pie-stage { width: 220px; height: 220px; }
  .ring { left: -30px; right: -30px; top: 84px; height: 90px; }
  h2 { font-size: 28px; }
}
