/*
VOICE: calmo e chiaro, come l'app: poche parole, bianco su nero.
IDEA: la pagina è la home dell'app; scorrendo, il pianeta grigio torna a colori.
PICTURE: il pianeta 3D vero del gioco, fermo dietro a tutto, con i rifiuti in orbita.
COLOUR and TYPE: nero spazio, bianco, vetro liquido; i quattro colori delle parti (mare, cielo, foreste, città). Font di sistema Apple.
LAYOUT: una colonna di schede di vetro sopra il pianeta; su schermi larghi il pianeta sta a destra.
*/
:root { color-scheme: dark; --bg: #000; --ink: #fff; --label: rgba(235, 235, 245, 0.68); --hair: rgba(255, 255, 255, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif; --jp: "Hiragino Sans", "Noto Sans JP", sans-serif; }
:root[data-theme=light], :root[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }

/* altezza fissa (quella grande dello schermo): su iPhone la barra di Safari che entra ed esce non ridimensiona il pianeta, che altrimenti sfarfalla */
.sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; }
.sky canvas { width: 100%; height: 100%; display: block; }
.sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55)); }

/* vetro, come le schede dell'app */
.card, .glass, .top {
  background: rgba(22, 22, 24, 0.42);
  -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: inset 1.5px 1.5px 0.5px -0.5px rgba(255, 255, 255, 0.55), inset -1px -1px 0.5px -0.5px rgba(255, 255, 255, 0.22), inset 0 0 26px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.top { position: fixed; z-index: 5; top: 12px; left: 50%; transform: translateX(-50%); width: min(980px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 20px; border-radius: 999px; }
.brand { font-family: var(--jp); font-weight: 700; font-size: 20px; letter-spacing: 0.16em; text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--label); font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.big { height: 62px; padding: 0 34px; font-size: 19px; }
.btn.milk { color: #000; background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.8));
  box-shadow: inset 0 1.5px 1px #fff, inset 0 -2px 3px rgba(0, 0, 0, 0.12), inset 0 -12px 20px rgba(190, 210, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5); }
.btn.glass { color: #fff; }

main { position: relative; z-index: 1; }
/* prima schermata: in alto logo e titolo, in fondo il pulsante e la barra della salute */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding: 116px max(6vw, 20px) 36px; max-width: 1240px; margin: 0 auto; }
.logo { width: clamp(64px, 6vw, 84px); height: auto; margin-bottom: 20px; }
.hero .lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.45; max-width: 24em; }
.hero .actions { margin-top: auto; padding-top: 32px; }
.hero .meter { margin-top: 22px; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.03; font-weight: 700; letter-spacing: -0.02em; max-width: 9.5em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.lead { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: #EBEBF5; max-width: 30em; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; font-size: 15px; font-variant-numeric: tabular-nums; }
.meter svg { width: 120px; height: 8px; }
.meter .track { fill: rgba(120, 120, 128, 0.4); }
.meter .fill { fill: #fff; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7)); }
.meter span { font-weight: 600; }
.meter em { font-style: normal; color: var(--label); }

.band { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 10vw, 140px) max(6vw, 20px); }
.kicker { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--label); }
h2 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -0.015em; max-width: 14em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.text { margin: 20px 0 0; max-width: 38em; color: #EBEBF5; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8); }
.card { border-radius: 28px; padding: 22px; }
.card b { display: block; font-size: 19px; }
.card p { margin: 6px 0 0; color: #EBEBF5; font-size: 16px; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 18px; }
.phone { margin: 0; aspect-ratio: 1320 / 2868; max-height: 460px; align-self: center; border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 5px #111, 0 0 0 6px #333, 0 20px 40px rgba(0, 0, 0, 0.6); }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

.areas { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 12px; box-shadow: 0 0 14px currentColor; }
.dot.sea { color: #3a8ee6; background: #3a8ee6; } .dot.air { color: #9fd3ff; background: #9fd3ff; }
.dot.forest { color: #4caf50; background: #4caf50; } .dot.city { color: #f2b544; background: #f2b544; }
.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts div { display: flex; align-items: baseline; gap: 14px; padding: 18px 4px; border-top: 1px solid var(--hair); }
.facts b { font-size: clamp(40px, 5vw, 56px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts span { color: var(--label); font-size: 15px; }

.who { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 760px; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--hair); font-size: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }

.final { min-height: 90svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 96px; }
.final h2 { max-width: none; }
.final .btn { margin-top: 28px; }
.soon { margin: 14px 0 0; color: var(--label); font-size: 14px; }

.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; padding: 28px 20px 40px; font-size: 14px; color: var(--label);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 40%); }
.foot a { text-decoration: none; color: #fff; }
.foot .ig { display: inline-flex; align-items: center; gap: 6px; }
.foot .ig svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .hero { padding-right: 46vw; }
  .band:not(.final) h2, .band .text, .ticks { max-width: min(54%, 760px); }
}
@media (max-width: 899px) {
  .steps, .who { grid-template-columns: minmax(0, 1fr); }
  .steps li { flex-direction: row; align-items: center; }
  .phone { width: 38%; flex: none; max-height: none; border-radius: 22px; box-shadow: 0 0 0 3px #111, 0 0 0 4px #333, 0 14px 30px rgba(0, 0, 0, 0.6); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .brand { margin-right: auto; }
  /* sul telefono: logo piccolo, e pulsante con la barra quasi sul bordo in basso */
  .hero { padding-top: 96px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .logo { width: 58px; margin-bottom: 16px; }
  .hero .actions { padding-top: 24px; }
  .hero .meter { margin-top: 12px; gap: 6px 10px; font-size: 13px; }
  .hero .meter svg { width: 80px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
