/* Secret Moon VPN — home page only: one night, from dusk to dawn. Palette and type come from the app. */

.page-home { background: #0F1238; }
.page-home .sky { display: none; }
.page-home .top { position: absolute; inset: 0 0 auto; }
.page-home .foot { margin-top: -1px; background: #120F3F; padding-top: 2.5rem; }
.page-home .foot-clouds { display: none; }
.page-home .foot p { color: var(--lilac); }
.n-h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; margin-bottom: .5em; text-wrap: balance; }
.n-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--lavender); max-width: 34rem; }

/* dusk: the hero */
.n-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 4.6rem; background: url("/assets/img/n-stars.svg") 0 0 / 640px, linear-gradient(180deg, #1B1457 0%, #2C1F7C 55%, #4B35A8 82%, #5F45C2 100%); }
.n-hero-dawn { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.6s ease; background: radial-gradient(70% 55% at 50% 30%, rgba(255, 243, 214, .3), transparent 70%), linear-gradient(180deg, #3D2DA6 0%, #5A45CF 55%, #7C55CF 80%, #C877D2 93%, #FF9CC8 100%); }
.n-hero[data-mood="connecting"] .n-hero-dawn { opacity: .45; }
.n-hero[data-mood="protected"] .n-hero-dawn { opacity: 1; }
.n-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-bottom: max(5.5rem, 8.2vw); }
.n-stage { position: relative; width: min(82vw, 42vh, 620px); margin-bottom: calc(min(82vw, 42vh, 620px) * -.035); z-index: 2; }
.n-moon { position: relative; aspect-ratio: 720 / 624; animation: float 7s ease-in-out infinite; }
.n-face { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease, filter .9s ease; }
.n-hero[data-mood="resting"] .n-face-sleep { opacity: 1; filter: saturate(.75) brightness(.86); }
.n-hero[data-mood="connecting"] .n-face-wink { opacity: 1; }
.n-hero[data-mood="protected"] .n-face-happy { opacity: 1; filter: drop-shadow(0 0 34px rgba(255, 243, 214, .55)); }
.n-halo { position: absolute; left: 50%; top: 42%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; box-shadow: 0 0 0 2px rgba(255, 243, 214, .75), 0 0 60px 12px rgba(255, 243, 214, .4); }
.n-hero[data-mood="protected"] .n-halo { animation: halo 1.5s cubic-bezier(.2, .7, .2, 1) 1; }
@keyframes halo { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); } }
.n-status { position: absolute; z-index: 3; right: -2%; top: 8%; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem .4rem .8rem; border-radius: 999px 999px 999px 6px; font: 700 .95rem var(--text); color: var(--ink); background: var(--milk); box-shadow: 0 10px 26px rgba(8, 10, 34, .35); white-space: nowrap; }
.n-status::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; background: #E0327F; transition: background .4s ease; }
.n-hero[data-mood="connecting"] .n-status::before { background: #E08A00; }
.n-hero[data-mood="protected"] .n-status::before { background: #3FA300; }
.n-title { margin: 0; text-align: center; font-size: min(10.4vw, 14vh, 10rem); line-height: .94; letter-spacing: -.025em; color: var(--milk); }
.n-title-line { display: block; }
.n-hero-foot { display: grid; grid-template-columns: minmax(0, 36rem) auto; gap: 1.2rem 3.5rem; align-items: start; justify-content: center; margin-top: clamp(1.2rem, 3vh, 2.2rem); width: 100%; }
.n-kicker { font: 600 1.15rem var(--display); word-spacing: .1em; color: var(--honey); margin: 0 0 .25rem; }
.n-note { font-size: 1.06rem; line-height: 1.55; color: var(--mist); margin: 0; min-height: 4.65em; text-wrap: pretty; }
.n-actions { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: .6rem 1.2rem; }
.n-wake { min-height: 56px; padding: .8rem 1.9rem; border: 0; border-radius: 999px; background: var(--honey); color: var(--ink); font: 600 1.2rem var(--display); cursor: pointer; box-shadow: 0 12px 30px rgba(255, 226, 122, .3); transition: background .2s ease, transform .15s ease; }
.n-wake:hover:not(:disabled) { background: var(--cream); transform: translateY(-1px); }
.n-wake:active:not(:disabled) { transform: translateY(1px); }
.n-wake:disabled { background: var(--amber); cursor: progress; }
.page-home .pill-soon { min-height: 0; padding: 0; background: none; box-shadow: none; color: var(--cream); font-weight: 700; }
.n-hint { grid-column: 1 / -1; margin: 0; font-size: 1.3rem; color: var(--lavender); }
.n-ridge { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: max(92px, 10.6vw); object-fit: cover; object-position: center bottom; pointer-events: none; }
.n-hero-inner { z-index: 2; }

/* midnight */
.n-night { background: url("/assets/img/n-stars.svg") 120px 60px / 640px, linear-gradient(180deg, #0F1238 0%, #0A0D2C 42%, #15134A 74%, #2C1F76 100%); }

/* the moon keeps watch while the three moods scroll past */
.n-moods { padding: clamp(4rem, 9vw, 8rem) 0 clamp(2rem, 4vw, 4rem); }
.n-moods-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.n-mood-list { list-style: none; margin: 0; padding: 0; }
.n-mood { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; transition: opacity .35s ease; }
.js .n-mood:not(.is-active) { opacity: .5; }
.n-mood h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: .8rem 0 .4rem; }
.n-mood p { font-size: 1.15rem; color: var(--lavender); max-width: 30rem; margin: 0; }
.n-mood-img { display: none; width: min(78%, 300px); margin-bottom: .6rem; }
.n-dim { filter: saturate(.75) brightness(.86); }
.n-aside { color: var(--lavender); max-width: 32rem; }
.n-aside .hand { display: block; color: var(--honey); font-size: 1.6rem; }
.n-moods-sticky { position: sticky; top: 14vh; aspect-ratio: 720 / 624; width: 100%; max-height: 72vh; }
.n-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-face="sleep"] .n-big-sleep { opacity: 1; transform: none; filter: saturate(.75) brightness(.86); }
[data-face="wink"] .n-big-wink { opacity: 1; transform: none; }
[data-face="happy"] .n-big-happy { opacity: 1; transform: none; }
.no-js .n-moods-stage { display: none; }
.no-js .n-moods-grid { grid-template-columns: 1fr; }
.no-js .n-mood-img { display: block; }
.no-js .n-mood { min-height: 0; margin-bottom: 2.5rem; }

/* one wall, seven windows */
.n-places { padding: clamp(3rem, 7vw, 6rem) 0; }
.n-places-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.n-places-head .n-h2 { margin: 0; }
.n-places-head .n-lead { margin: 0; }
.windows.n-wall { width: min(100% - 2.5rem, 1500px); margin: 0 auto; gap: clamp(.5rem, 1.2vw, 1.25rem); padding: clamp(1.2rem, 2.5vw, 2.4rem) clamp(1rem, 2.5vw, 2.4rem) 0; border-radius: 26px 26px 0 0; background: #181550; box-shadow: inset 0 2px 0 rgba(201, 195, 255, .14); }
.n-wall .window { background: none; box-shadow: none; padding: 0 0 1.3rem; border-radius: 0; }
.n-wall .window-sky { aspect-ratio: 1 / 1.75; border-radius: 999px 999px 4px 4px; box-shadow: 0 0 0 clamp(4px, .5vw, 7px) #0A0D2C, 0 10px 0 clamp(4px, .5vw, 7px) #0A0D2C; margin-bottom: 1.5rem; }
.n-wall .window-orb { top: 22%; }
.n-wall .window.is-dawn .window-orb, .n-wall .window.is-dusk .window-orb { top: 66%; }
.n-wall .window-city { font-size: clamp(1rem, 1.35vw, 1.3rem); }
.n-wall .window-country { color: var(--lilac); }
.n-wall .window-time { color: var(--honey); }
.n-places-note { margin-top: 1rem; }

/* what is never written down reads louder than what is */
.n-promise { padding: clamp(4rem, 9vw, 8rem) 0; }
.n-promise-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 6rem); align-items: start; }
.n-promise-title { margin: 0; align-self: end; }
.n-shield { width: min(100%, 300px); justify-self: center; grid-row: 1; grid-column: 2; }
.n-never h3, .n-kept h3 { font-size: 1.2rem; margin: 0 0 .9rem; }
.n-never h3 { color: var(--lime); }
.n-kept h3 { color: var(--amber); }
.n-never ul, .n-kept ul { list-style: none; margin: 0; padding: 0; }
.n-never li { font: 600 clamp(1.45rem, 2.8vw, 2.5rem)/1.16 var(--display); color: var(--milk); padding: .55em 0; border-top: 1px solid rgba(201, 195, 255, .2); }
.n-kept li { color: var(--lavender); padding: .55rem 0; border-top: 1px solid rgba(201, 195, 255, .2); }
.n-kept p { margin: 1.1rem 0 0; font-weight: 700; }

/* three stars, one line */
.n-routine { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 8rem); }
.n-steps { --gap: clamp(1.5rem, 4vw, 4rem); --drop: 3.8rem; list-style: none; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.n-steps li { position: relative; padding-top: calc(var(--drop) + 4.5rem); }
.n-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 1.7rem; left: 1.7rem; width: calc(100% + var(--gap)); height: var(--drop); background: url("/assets/img/n-constellation.svg") 0 0 / 100% 100% no-repeat; }
.n-steps li:first-child::after { transform: scaleY(-1); }
.n-step-star { position: absolute; z-index: 1; left: 0; top: var(--drop); display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--honey); color: var(--ink); font: 600 1.5rem var(--display); box-shadow: 0 0 34px rgba(255, 226, 122, .55); margin-bottom: .9rem; }
.n-steps li:nth-child(2) .n-step-star { top: 0; }
.n-steps h3 { font-size: clamp(1.4rem, 2.1vw, 1.9rem); margin-bottom: .35rem; }
.n-steps p { color: var(--lavender); margin: 0; max-width: 24rem; }

/* dawn */
.n-dawn { margin-top: -1px; position: relative; overflow: hidden; isolation: isolate; min-height: 92svh; display: flex; flex-direction: column; align-items: center; padding: clamp(5rem, 16vh, 11rem) 0 clamp(11rem, 30vh, 19rem); text-align: center; background: linear-gradient(180deg, #2C1F76 0%, #553CA8 24%, #9A52B2 47%, #EC80AE 64%, #FFC38A 82%, #FFE2A0 100%); }
.n-dawn-copy { position: relative; z-index: 3; }
.n-dawn-line { font-size: clamp(3.4rem, 10vw, 9.5rem); line-height: .98; color: var(--milk); margin: 0 0 .25em; text-wrap: balance; text-shadow: 0 2px 26px rgba(70, 30, 130, .35); }
.n-dawn-sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 700; color: #241458; margin: 0 0 .4rem; }
.page-home .n-dawn .pill-soon { display: none; }
.page-home .n-dawn .pill-honey { background: var(--ink); color: var(--milk); box-shadow: none; }
.n-dawn-moon { position: absolute; z-index: 1; left: 50%; bottom: clamp(30px, 8vh, 90px); width: clamp(170px, 22vw, 320px); margin-left: clamp(90px, 20vw, 340px); opacity: .92; }
.n-dawn-ridge { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; width: 100%; height: max(110px, 11.9vw); object-fit: cover; object-position: center bottom; }

/* tablets and phones: no sticky stage, each mood carries its own moon */
@media (max-width: 900px) {
  .n-hero-foot { grid-template-columns: 1fr; }
  .n-moods-grid, .n-places-head, .n-promise-grid { grid-template-columns: 1fr; }
  .n-moods-stage { display: none; }
  .n-mood-img { display: block; }
  .n-mood, .js .n-mood:not(.is-active) { min-height: 0; opacity: 1; margin-bottom: 3rem; }
  .n-shield { grid-column: 1; grid-row: auto; width: 200px; order: -1; justify-self: start; }
  .n-steps { grid-template-columns: 1fr; }
  .n-steps li:not(:last-child)::after { display: none; }
  .n-steps li { padding-top: 0; }
  .n-step-star, .n-steps li:nth-child(2) .n-step-star { position: static; }
  .windows.n-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .n-hero { min-height: 0; padding-top: 4.8rem; }
  .n-stage { width: min(78vw, 330px); margin-bottom: -1.2rem; }
  .n-status { right: -5%; top: 2%; font-size: .85rem; }
  .n-title { font-size: 14vw; }
  .n-hero-inner { padding-bottom: 8.5rem; }
  .n-note { min-height: 7.8em; }
  .n-actions { grid-template-columns: 1fr; }
  .n-wake { width: 100%; }
  .n-hint { font-size: 1.2rem; }
  .windows.n-wall { display: block; padding: .4rem 1rem; border-radius: 22px; }
  .n-wall .window { display: grid; grid-template-columns: 62px 30px 1fr; grid-template-areas: "sky flag city" "sky flag country" "sky flag time"; column-gap: .75rem; align-items: center; justify-items: start; text-align: left; padding: .9rem 0; border-bottom: 1px solid rgba(201, 195, 255, .14); }
  .n-wall .window:last-child { border-bottom: 0; }
  .n-wall .window-sky { grid-area: sky; width: 58px; margin: 0 0 0 4px; box-shadow: 0 0 0 4px #0A0D2C; }
  .n-wall .window-flag { grid-area: flag; margin: 0; }
  .n-wall .window-city { grid-area: city; font-size: 1.15rem; }
  .n-wall .window-country { grid-area: country; }
  .n-wall .window-time { grid-area: time; margin: .1rem 0 0; }
  .n-dawn { min-height: 0; padding-top: 5rem; padding-bottom: 15rem; }
  .n-dawn-moon { width: 170px; margin-left: 10px; bottom: 44px; }
}
