/* Peepsule landing page: the signed-out home at "/" (views/landing.php), carried over from the previous platform's landing page.
   Always dark (brand navy + cyan/violet glass). Every class is .psh-* so nothing leaks into the rest of the theme. */
html, body { margin: 0; background: #050d1c; }
#psHome { --c1: #00C2FF; --c2: #3D9BFF; --c3: #8A6BFF; --ink: #eaf2ff; --mute: rgba(226,236,255,.72); --line: rgba(160,190,255,.16); --glass: rgba(255,255,255,.055);
  position: relative; overflow-x: clip; min-height: 100vh; color: var(--ink); background: #050d1c; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
#psHome *, #psHome *::before, #psHome *::after { box-sizing: border-box; }
/* :where() keeps the margin reset at zero specificity so the .psh-* classes below can override it */
#psHome a { text-decoration: none; }
.psh-app, .psh-logo, .psh-foot a { color: var(--ink); }
.psh-foot a { color: inherit; }
:where(#psHome) :where(h1, h2, h3, p) { margin: 0; }
#psHome :focus-visible { outline: 3px solid var(--c1); outline-offset: 3px; border-radius: 12px; }
.psh-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.psh-grad { background: linear-gradient(90deg, var(--c1), var(--c2) 45%, var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ambient backdrop */
.psh-bg { position: absolute; inset: 0 0 auto 0; height: 980px; pointer-events: none; overflow: hidden;
  background: radial-gradient(800px 520px at 82% 6%, rgba(138,107,255,.42), transparent 62%), radial-gradient(760px 560px at 6% 26%, rgba(0,194,255,.30), transparent 62%), linear-gradient(180deg, #06142c 0%, #050d1c 100%); }
.psh-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.2px); background-size: 46px 46px; opacity: .10; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }

/* nav */
.psh-nav { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: rgba(5,13,28,.62); border-bottom: 1px solid var(--line); }
.psh-nav .psh-wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.psh-logo { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; }
.psh-logo img { display: block; height: 26px; width: auto; }
.psh-links { display: flex; gap: 6px; margin-left: auto; }
.psh-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--mute); transition: color .15s, background .15s; }
.psh-links a:hover { color: #fff; background: var(--glass); }
.psh-nav-cta { display: flex; gap: 10px; }

/* buttons */
.psh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; white-space: nowrap; }
.psh-btn:hover { transform: translateY(-2px); }
.psh-btn-primary { color: #fff !important; background: linear-gradient(90deg, var(--c1), var(--c2) 50%, var(--c3)); box-shadow: 0 8px 28px rgba(0,194,255,.35); }
.psh-btn-primary:hover { box-shadow: 0 12px 34px rgba(0,194,255,.5); }
.psh-btn-ghost { color: #fff; background: var(--glass); border-color: rgba(160,190,255,.3); }
.psh-btn-ghost:hover { background: rgba(255,255,255,.11); }
.psh-btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.psh-nav .psh-btn { padding: 9px 20px; }

/* hero */
.psh-hero { position: relative; padding: 84px 0 96px; }
.psh-hero .psh-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.psh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--mute); }
.psh-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 0 4px rgba(46,230,166,.2); }
.psh-hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.psh-hero .psh-lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--mute); }
.psh-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.psh-mini { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--mute); }
.psh-mini span::before { content: "\2713"; margin-right: 8px; color: var(--c1); font-weight: 800; }

/* hero art: pure CSS/SVG so it needs no image files */
.psh-art { position: relative; aspect-ratio: 1 / .92; }
.psh-card { position: absolute; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04)); border: 1px solid rgba(190,215,255,.24); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.psh-world { inset: 0 0 24% 18%; overflow: hidden; background: linear-gradient(180deg, #1a2f78 0%, #2b3fb5 46%, #0a1a46 100%); animation: psh-float 9s ease-in-out infinite; }
.psh-world::before { content: ""; position: absolute; left: -30%; right: -30%; bottom: -8%; height: 56%; background-image: linear-gradient(rgba(0,194,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(0,194,255,.7) 1px, transparent 1px); background-size: 44px 44px; transform: perspective(240px) rotateX(58deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent); mask-image: linear-gradient(0deg, #000 30%, transparent); }
.psh-world .psh-orb { left: 68%; top: 18%; width: 30%; margin-left: -15%; }
.psh-orb { position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 1; margin-left: -17%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #9be9ff, #3D9BFF 45%, #6a4bff); box-shadow: 0 0 60px rgba(0,194,255,.7); }
.psh-orb::before, .psh-orb::after { content: ""; position: absolute; top: 34%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset -3px -3px 0 #0b1a3d; }
.psh-orb::before { left: 24%; } .psh-orb::after { right: 24%; }
.psh-feed { left: 0; top: 14%; width: 52%; padding: 18px; animation: psh-float 8s ease-in-out -2s infinite; }
.psh-row { display: flex; align-items: center; gap: 10px; }
.psh-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c3)); }
.psh-ln { height: 8px; border-radius: 6px; background: rgba(255,255,255,.26); } .psh-ln.s { background: rgba(255,255,255,.14); }
.psh-img { margin-top: 12px; height: 78px; border-radius: 14px; background: linear-gradient(120deg, rgba(0,194,255,.55), rgba(138,107,255,.6)); }
.psh-chat { right: 0; bottom: 4%; width: 54%; padding: 14px 16px; display: grid; gap: 9px; animation: psh-float 7s ease-in-out -4s infinite; }
.psh-bub { max-width: 82%; padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; }
.psh-bub.me { justify-self: end; border-radius: 16px 16px 5px 16px; background: linear-gradient(90deg, var(--c1), var(--c3)); color: #fff; }
.psh-chip { position: absolute; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--c1), var(--c3)); box-shadow: 0 10px 26px rgba(0,194,255,.4); }
.psh-chip.a { left: 4%; bottom: 20%; } .psh-chip.b { right: 6%; top: 4%; background: rgba(5,13,28,.7); border: 1px solid rgba(160,190,255,.35); box-shadow: none; }
@keyframes psh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* sections */
.psh-sec { position: relative; padding: 92px 0; }
.psh-eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c1); }
.psh-h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; max-width: 18em; }
.psh-sub { margin-top: 16px; max-width: 40em; color: var(--mute); font-size: 1.08rem; }
.psh-head-c { text-align: center; } .psh-head-c .psh-h2, .psh-head-c .psh-sub { margin-inline: auto; }

.psh-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.psh-feat { position: relative; padding: 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); transition: transform .2s, border-color .2s, background .2s; overflow: hidden; }
.psh-feat::before { content: ""; position: absolute; inset: -1px -1px auto auto; width: 150px; height: 150px; background: radial-gradient(circle at 100% 0, rgba(0,194,255,.22), transparent 70%); opacity: 0; transition: opacity .25s; }
.psh-feat:hover { transform: translateY(-4px); border-color: rgba(0,194,255,.5); background: rgba(255,255,255,.08); }
.psh-feat:hover::before { opacity: 1; }
.psh-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c3)); box-shadow: 0 10px 24px -8px rgba(0,194,255,.6); }
.psh-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.psh-feat h3 { margin-top: 20px; font-size: 1.22rem; letter-spacing: -.01em; }
.psh-feat p { margin-top: 8px; color: var(--mute); font-size: .97rem; }
.psh-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.psh-tags span { padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: rgba(255,255,255,.08); color: var(--mute); }

/* 3D spotlight */
.psh-3d { padding: 0; }
.psh-3d-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 64px; border-radius: 34px; border: 1px solid rgba(160,190,255,.22);
  background: radial-gradient(600px 400px at 90% 10%, rgba(138,107,255,.55), transparent 65%), radial-gradient(520px 380px at 0% 100%, rgba(0,194,255,.4), transparent 62%), linear-gradient(135deg, #001428, #0a2a6e 55%, #0b4a9c); }
.psh-3d-list { margin: 24px 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; }
.psh-3d-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--mute); }
.psh-3d-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c3)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); }
.psh-3d-list b { color: #fff; }
.psh-3d-art { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #16286a, #2a3cb4 50%, #0a1a46); border: 1px solid rgba(190,215,255,.28); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }
.psh-3d-art::before { content: ""; position: absolute; left: -40%; right: -40%; bottom: -10%; height: 62%; background-image: linear-gradient(rgba(0,194,255,.75) 1px, transparent 1px), linear-gradient(90deg, rgba(0,194,255,.75) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(300px) rotateX(60deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(0deg, #000 35%, transparent); mask-image: linear-gradient(0deg, #000 35%, transparent); }
.psh-3d-art .psh-orb { top: 18%; width: 24%; margin-left: -12%; animation: psh-float 6s ease-in-out infinite; }
.psh-3d-art .psh-chip.a { left: 8%; bottom: 14%; } .psh-3d-art .psh-chip.b { right: 8%; top: 10%; }

/* app directory */
.psh-apps { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.psh-app { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font-weight: 650; font-size: .95rem; transition: transform .15s, border-color .15s, background .15s; }
.psh-app:hover { transform: translateY(-2px); border-color: rgba(0,194,255,.5); background: rgba(255,255,255,.09); }
.psh-app .psh-ico { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; flex: none; } .psh-app .psh-ico svg { width: 20px; height: 20px; }
.psh-app small { display: block; font-weight: 500; color: var(--mute); font-size: .78rem; line-height: 1.3; }

/* trust */
.psh-trust { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.psh-tr { padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.psh-tr h3 { font-size: 1.05rem; margin-top: 14px; } .psh-tr p { margin-top: 6px; font-size: .92rem; color: var(--mute); }
.psh-tr .psh-ico { width: 42px; height: 42px; border-radius: 13px; } .psh-tr .psh-ico svg { width: 22px; height: 22px; }

/* closing CTA + footer */
.psh-end { padding: 40px 0 96px; }
.psh-end-box { text-align: center; padding: 76px 24px; border-radius: 34px; border: 1px solid rgba(160,190,255,.22); background: radial-gradient(620px 360px at 50% 0, rgba(0,194,255,.35), transparent 65%), radial-gradient(560px 360px at 100% 100%, rgba(138,107,255,.42), transparent 62%), #071733; }
.psh-end-box .psh-h2 { margin-inline: auto; } .psh-end-box .psh-sub { margin-inline: auto; } .psh-end-box .psh-cta { justify-content: center; }
.psh-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--mute); font-size: .9rem; }
.psh-foot .psh-wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.psh-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; } .psh-foot nav a:hover { color: #fff; }

/* scroll reveal (JS adds .psh-in; without JS everything is visible) */
.psh-js .psh-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.psh-js .psh-rv.psh-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .psh-hero { padding: 48px 0 64px; } .psh-hero .psh-wrap { grid-template-columns: 1fr; gap: 44px; } .psh-art { max-width: 560px; margin-inline: auto; width: 100%; }
  .psh-grid { grid-template-columns: repeat(2, 1fr); } .psh-trust { grid-template-columns: repeat(2, 1fr); }
  .psh-3d-box { grid-template-columns: 1fr; padding: 40px 28px; } .psh-links { display: none; } .psh-nav-cta { margin-left: auto; }
}
@media (max-width: 620px) {
  .psh-wrap { width: calc(100% - 32px); } .psh-sec { padding: 64px 0; }
  .psh-grid, .psh-trust { grid-template-columns: 1fr; } .psh-nav .psh-wrap { gap: 12px; } .psh-nav .psh-btn-ghost { display: none; }
  .psh-logo img { height: 22px; } .psh-cta .psh-btn { flex: 1 1 100%; } .psh-end-box { padding: 52px 20px; } .psh-foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #psHome *, #psHome *::before, #psHome *::after { animation: none !important; transition: none !important; }
  .psh-js .psh-rv { opacity: 1; transform: none; }
}
