/* pagina "coming soon" con password: il cielo notturno con la luna di smartIntelligence (fase reale di oggi), testi e colori Promelit */
@font-face { font-family: 'Sora'; font-display: swap; font-weight: 100 800; src: url(/static/fonts/sora-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Inter'; font-display: swap; font-weight: 100 900; src: url(/static/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); }
:root { --primario: #E8553D; --secondario: #F2A65A; --accento: #14B8A6; --ink: #eef2ff; --ink2: #aab4d6; --ink3: #7180ad; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 400 17px/1.6 Inter, system-ui, sans-serif; color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 800px at 75% 40%, #1a1640 0%, #0a0a22 45%, #06061a 100%); }
#cielo { position: fixed; inset: 0; width: 100%; height: 100%; }
.alone { position: fixed; right: -6vw; top: 50%; width: min(76vh, 800px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,190,.24) 0%, rgba(232,85,61,.10) 38%, transparent 66%); animation: respira 7s ease-in-out infinite; }
@keyframes respira { 50% { opacity: .7; transform: translateY(-50%) scale(1.04); } }
.luna { position: fixed; right: 6vw; top: 50%; width: min(52vh, 500px); aspect-ratio: 1; border-radius: 50%; background: url(/static/luna.webp) center/106% no-repeat; transform: translateY(-50%);
  --filtro: brightness(1.12) contrast(1.05); --lum: 1; filter: var(--filtro);
  box-shadow: 0 0 60px rgba(255,226,206,calc(.45 * var(--lum))), 0 0 160px rgba(232,85,61,calc(.22 * var(--lum)));
  animation: sorge 2.6s cubic-bezier(.2,.8,.2,1) both, colore 9s ease-out both, libra 70s ease-in-out 3s infinite alternate; }
.luna.piena { --filtro: brightness(1.18) contrast(1.05) sepia(.08); }
.luna::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,250,235,.10) 0, transparent 45%, rgba(4,6,22,.55) 100%); }
.luna .ombra { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes sorge { from { transform: translateY(-10%) scale(.85); opacity: 0; } to { transform: translateY(-50%) scale(1); opacity: 1; } }
/* appena sorta la luna e' arancio-dorata, poi si sbianca salendo */
@keyframes colore { from { filter: brightness(1) contrast(1.05) sepia(.8) saturate(2.3) hue-rotate(-16deg); } to { filter: var(--filtro); } }
@keyframes libra { 0% { background-position: 50% 50%; } 25% { background-position: 52.5% 49%; } 50% { background-position: 50.5% 52.5%; } 75% { background-position: 47.5% 50.5%; } 100% { background-position: 49.5% 47.5%; } }
.orbita { position: fixed; right: calc(6vw - min(7vh, 72px)); top: 50%; width: calc(min(52vh, 500px) + min(14vh, 144px)); aspect-ratio: 1; transform: translateY(-50%) rotateX(68deg); pointer-events: none; }
.orbita.davanti { clip-path: inset(50% -30px -30px -30px); }
.orbita.davanti .giro { border-color: rgba(255,226,210,.4); }
.orbita .giro { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,210,190,.18); transform: rotateZ(-18deg); animation: orb 18s linear infinite; }
.orbita .giro i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(242,166,90,.85); }
@keyframes orb { to { transform: rotateZ(342deg); } }
.fase-et { position: fixed; right: 6vw; width: min(52vh, 500px); top: calc(50% + min(26vh, 250px) + 28px); text-align: center; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); opacity: 0; animation: su .9s 2.8s forwards; }

main { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 6vw; max-width: min(780px, 58vw); }
.logo { height: 34px; width: auto; display: block; margin-bottom: 44px; opacity: 0; animation: su .9s .2s forwards; }
.wordmark { font: 700 2.2rem/1 Sora, sans-serif; letter-spacing: -.05em; margin-bottom: 48px; }
.pill { display: inline-flex; width: fit-content; align-items: center; gap: .6em; margin: 0 0 22px; font: 600 .78rem/1 Sora, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--secondario); opacity: 0; animation: su .9s .4s forwards; }
.pill::before { content: none; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(242,166,90,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(242,166,90,0); } }
h1 { font: 650 clamp(2.4rem, 5.6vw, 5rem)/1 Sora, sans-serif; letter-spacing: -.045em; margin: 0 0 .45em; text-wrap: balance; opacity: 0; animation: su 1s .6s forwards; }
h1 em { font-style: normal; background: linear-gradient(100deg, #ffd9c7 0%, var(--secondario) 40%, var(--primario) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink2); font-size: clamp(1rem, 1.3vw, 1.15rem); margin: 0 0 40px; max-width: 34em; opacity: 0; animation: su .9s 1s forwards; }
form { display: grid; gap: 10px; justify-items: start; opacity: 0; animation: su .9s 1.3s forwards; }
label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink3); }
.campo { display: flex; width: min(420px, 100%); padding: 6px; border-radius: 99px; background: rgba(255,255,255,.07); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.12), 0 24px 60px -28px rgba(0,0,0,.8); transition: box-shadow .3s; }
.campo input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1rem Inter, sans-serif; padding: 0 18px; color: #fff; outline: 0; }
.campo input::placeholder { color: rgba(238,242,255,.45); }
.campo button { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--primario), var(--secondario)); box-shadow: 0 10px 26px -8px rgba(232,85,61,.8); transition: transform .3s; }
.campo button:hover { transform: scale(1.07); }
.campo:focus-within { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 2px rgba(242,166,90,.55), 0 24px 60px -28px rgba(0,0,0,.8); }
.errore { color: #fca5a5; font-weight: 600; margin: 6px 0 0; }
footer { position: fixed; bottom: 18px; left: 6vw; right: 6vw; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink3); z-index: 3; }
@keyframes su { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  main { max-width: 100%; justify-content: flex-end; padding-bottom: 70px; }
  .luna { right: 50%; top: 24%; width: min(52vw, 280px); transform: translate(50%, -50%); animation: colore 9s ease-out both; }
  .alone, .orbita, .fase-et { display: none; }
  .logo { height: 40px; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
