/* The front page (app/views/landing.js) and the intro (app/components/intro.js).
   Always on the Galaxy scene, whatever theme someone picked inside the hub. */

/* ---- Intro ----------------------------------------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: #02040a; cursor: pointer;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), filter .5s var(--ease-out); }
.intro.leaving { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }
.intro .intro-scene { animation: introZoom 2.8s var(--ease-out) both; }
.intro-body { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.intro-welcome { margin: 26px 0 0; font-size: 12.5px; letter-spacing: .5em; text-transform: uppercase; color: #b9b5e6; opacity: 0; animation: introRise .6s var(--ease-out) .55s forwards; }
.intro-title { margin: 8px 0 0; font-family: "Sora", var(--font); font-weight: 700; font-size: clamp(44px, 9vw, 96px); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(100deg, #e2dbff 0%, #a493ff 35%, #6f8dff 70%, #5cc8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(124, 92, 255, .35); opacity: 0; animation: introRise .7s var(--ease-out) .75s forwards; }
.intro-tag { margin: 14px 0 0; font-size: clamp(11px, 2.6vw, 14px); letter-spacing: .32em; text-transform: uppercase; color: #a9a5d6; white-space: nowrap; opacity: 0; animation: introRise .6s var(--ease-out) 1.05s forwards; }
.intro-skip { position: absolute; right: 22px; bottom: 26px; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(190, 175, 255, .25); background: rgba(16, 15, 44, .6); color: #f1f0ff; font-size: 13px; backdrop-filter: blur(10px);
  opacity: 0; animation: introFade .3s ease .2s forwards; transition: transform .16s var(--ease-out); }
.intro-skip:active { transform: scale(.97); }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introRise { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introZoom { from { transform: scale(1.12); } to { transform: none; } }

/* ---- Page ------------------------------------------------------------------------- */
.lp { position: relative; height: 100dvh; overflow-y: auto; overflow-x: hidden; color: #f1f0ff; background: #02040a; scroll-behavior: smooth;
  --lp-text-2: #c2bfe6; --lp-text-3: #8f8bbd; --lp-line: rgba(190, 175, 255, .14); --lp-glass: rgba(16, 15, 44, .55); }
.lp-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lp-sky .effects { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-grad { background: linear-gradient(100deg, #c9bcff 0%, #9d86ff 25%, #6f8dff 60%, #5cc8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b7a9ff; }
.lp h1, .lp h2, .lp h3 { font-family: "Sora", var(--font); letter-spacing: -.02em; text-wrap: balance; }
.lp-lead { font-size: 17px; line-height: 1.6; color: var(--lp-text-2); margin: 14px 0 0; text-wrap: pretty; }
.lp .btn-primary { background: linear-gradient(100deg, #7c5cff 0%, #4f7cff 55%, #38bdf8 100%); border-color: transparent; color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.lp .btn { transition: transform .16s var(--ease-out), box-shadow .2s ease, background-color .2s ease; }
.lp .btn:active { transform: scale(.97); }
.lp .btn-ghost { background: transparent; border-color: transparent; color: var(--lp-text-2); }
.lp .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lp .lp-ghost { background: rgba(16, 15, 44, .5); border: 1px solid var(--lp-line); color: #f1f0ff; backdrop-filter: blur(12px); }

.lp-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; height: 66px; padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(2, 4, 10, .78), rgba(2, 4, 10, .35)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(190, 175, 255, .08); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; }
.lp-brand .wordmark { font-family: "Sora", var(--font); font-weight: 600; }
.lp-links { display: flex; gap: 2px; margin-left: 24px; }
.lp-links button { height: 36px; padding: 0 14px; border: 0; background: none; color: var(--lp-text-2); border-radius: 999px; font-size: 14px; transition: color .2s, background-color .2s; }
.lp-links button:hover { color: #fff; background: rgba(255, 255, 255, .05); }

.lp-main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }
.lp-hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; min-height: calc(100dvh - 66px); padding: 40px 0 70px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--lp-line); background: rgba(16, 15, 44, .5); font-size: 13px; color: var(--lp-text-2); backdrop-filter: blur(10px); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; animation: lpPulse 2s ease-in-out infinite; }
.lp-hero h1 { margin: 22px 0 0; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.03; font-weight: 700; letter-spacing: -.035em; }
.lp-hero p { margin: 20px 0 0; max-width: 520px; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; color: var(--lp-text-2); }
.lp-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-buttons .btn-lg { height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; gap: 8px; }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--lp-text-2); }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg, .lp-plan li svg, .lp-checks svg { color: #5cc8ff; }
.lp-hero-shot { position: relative; }
.lp-hero-shot::before { content: ""; position: absolute; inset: -40px; border-radius: 40px; background: radial-gradient(closest-side, rgba(124, 92, 255, .4), transparent); filter: blur(20px); }

.lp-window { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid rgba(190, 175, 255, .22); background: rgba(10, 10, 30, .7);
  box-shadow: 0 40px 120px -30px rgba(60, 50, 200, .65), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.lp-window-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--lp-line); }
.lp-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.lp-window-bar span { margin: 0 auto; padding: 1px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 10.5px; color: var(--lp-text-3); }
.lp-window img { display: block; width: 100%; height: auto; }

.lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; scroll-margin-top: 90px; }
.lp-card, .lp-plan, .lp-faq { border: 1px solid var(--lp-line); background: var(--lp-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 20px; }
.lp-card { padding: 20px; transition: border-color .2s ease, background-color .2s ease; }
.lp-card:hover { border-color: rgba(190, 175, 255, .28); background: rgba(22, 20, 58, .62); }
.lp-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(139, 123, 255, .18); color: #c9beff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lp-kicker { margin-top: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8f8bbd; }
.lp-card h3 { margin: 6px 0 0; font-size: 16.5px; font-weight: 600; }
.lp-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--lp-text-2); }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 120px 0; scroll-margin-top: 70px; }
.lp-split h2, .lp-head h2, .lp-final h2 { margin: 10px 0 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 650; }
.lp-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.lp-checks li { display: flex; gap: 14px; }
.lp-checks b { display: block; font-weight: 600; }
.lp-checks li > span:last-child > span { display: block; margin-top: 2px; color: var(--lp-text-2); font-size: 15px; }
.lp-tick { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #38bdf8); }
.lp-tick svg { color: #fff !important; }

.lp-orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.lp-orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(190, 175, 255, .16); }
.lp-orbit-ring.r1 { inset: 12%; } .lp-orbit-ring.r2 { inset: 30%; box-shadow: 0 0 60px rgba(124, 92, 255, .25); }
.lp-orbit-core { position: absolute; inset: 0; display: grid; place-items: center; }
.lp-orbit-spin { position: absolute; inset: 12%; animation: lpSpin 70s linear infinite; }
.lp-orbit-item { position: absolute; width: 0; height: 0; animation: lpSpin 70s linear infinite reverse; }
.lp-orbit-item > span { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 13px; border-radius: 999px;
  font-size: 13px; background: rgba(16, 15, 44, .82); border: 1px solid rgba(190, 175, 255, .22); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.lp-orbit-item svg { color: #c9beff; }

.lp-section { padding: 70px 0; scroll-margin-top: 70px; }
.lp-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.lp-gallery { max-width: 980px; margin: 0 auto; }
.lp-tabs { display: flex; width: fit-content; margin: 0 auto 18px; }
.lp-shots { position: relative; aspect-ratio: 16 / 10; }
.lp-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.lp-shot.on { opacity: 1; }
.lp-cap { margin: 14px auto 0; max-width: 620px; text-align: center; font-size: 14px; color: var(--lp-text-2); animation: lpFade .4s ease; }

.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-plan { display: flex; flex-direction: column; padding: 24px; }
.lp-plan.featured { background: linear-gradient(180deg, rgba(124, 92, 255, .22), rgba(14, 12, 40, .7)); border-color: rgba(190, 175, 255, .4); box-shadow: 0 30px 80px -30px rgba(124, 92, 255, .7); }
.lp-plan h3 { margin: 0; font-size: 18px; }
.lp-plan .muted { margin: 4px 0 0; color: var(--lp-text-2); font-size: 14px; }
.lp-badge { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(100deg, #7c5cff, #38bdf8); }
.lp-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.lp-price b { font-family: "Sora", var(--font); font-size: 40px; font-weight: 650; letter-spacing: -.02em; }
.lp-price span { color: var(--lp-text-3); font-size: 14px; }
.lp-plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: 14px; color: var(--lp-text-2); }
.lp-plan li { display: flex; gap: 9px; align-items: flex-start; }
.lp-plan .btn { margin-top: auto; height: 44px; border-radius: 999px; }
.lp-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--lp-text-3); }

.lp-narrow { max-width: 760px; margin: 0 auto; }
.lp-faq { margin-top: 10px; padding: 0 20px; }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 550; font-size: 15.5px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { flex-shrink: 0; color: var(--lp-text-3); transition: transform .2s var(--ease-out); }
.lp-faq[open] summary svg { transform: rotate(180deg); }
.lp-faq p { margin: 0 0 18px; color: var(--lp-text-2); line-height: 1.6; }

.lp-final { position: relative; margin: 40px 0 0; padding: 80px 24px; text-align: center; border-radius: 32px; border: 1px solid var(--lp-line); overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(124, 92, 255, .45), rgba(79, 124, 255, .1) 45%, transparent 70%), rgba(10, 10, 30, .45); }
.lp-final .lp-lead { max-width: 460px; margin-left: auto; margin-right: auto; }
.lp-final .btn-lg { margin-top: 28px; height: 50px; padding: 0 26px; border-radius: 999px; gap: 8px; }
.lp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 30px 0 10px; color: var(--lp-text-3); font-size: 13px; }

/* Sections fade up as they come into view. */
.lp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.lp-reveal.in { opacity: 1; transform: none; }

@keyframes lpPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes lpSpin { to { transform: rotate(360deg); } }
@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; gap: 40px; }
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-split { grid-template-columns: 1fr; padding: 80px 0; }
  .lp-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .lp-cards { grid-template-columns: 1fr; }
  .lp-orbit-spin { inset: 22%; }
  .lp-orbit-ring.r1 { inset: 22%; }
  .lp-tabs { width: 100%; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lp { scroll-behavior: auto; }
  .lp-reveal { transform: none; transition: opacity .3s ease; }
  .lp-orbit-spin, .lp-orbit-item, .lp-dot { animation: none; }
}

/* ---- Signing up (the auth dialog in app/views/landing.js) -------------------------- */
.auth-steps { display: flex; align-items: center; gap: 6px; margin: -4px 0 16px; }
.auth-steps span { width: 28px; height: 4px; border-radius: 4px; background: var(--border-strong); }
.auth-steps span.on { background: linear-gradient(90deg, #7c5cff, #38bdf8); }
.auth-steps small { margin-left: 6px; color: var(--text-3); font-size: 12px; }
.auth-hint { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.auth-hint.bad { color: var(--danger); }
.auth-pw { position: relative; }
.auth-pw .input { padding-right: 42px; }
.auth-pw .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.auth-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.auth-meter .bars { display: flex; flex: 1; gap: 4px; }
.auth-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: background-color .3s ease; }
.auth-meter i.s0, .auth-meter i.s1 { background: var(--danger); }
.auth-meter i.s2 { background: var(--warning); }
.auth-meter i.s3, .auth-meter i.s4 { background: var(--success); }
.auth-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.auth-check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.auth-at { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.auth-at span { padding: 0 0 0 12px; color: var(--text-3); }
.auth-at .input { border: 0; background: transparent; box-shadow: none; }
.auth-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.auth-plan { display: flex; flex-direction: column; gap: 4px; padding: 14px; text-align: left; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out); }
.auth-plan:active { transform: scale(.98); }
.auth-plan.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring), 0 14px 40px -20px rgba(124, 92, 255, .8); }
.auth-plan-price { font-family: var(--font-display); font-size: 24px; font-weight: 650; margin-top: 4px; }
.auth-plan-price small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.auth-plan-line { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
@media (max-width: 560px) { .auth-plans { grid-template-columns: 1fr; } }
