/* appsocom.space itself: a cinematic night sky, the hero picture, then what Spaces is.
   Ink & Paper dark; the stars come from sky.js (live.appsocom.com's particles.js). */
:root { --sky-star: 248,250,252; --sky-accent: 125,143,255; --violet: #8B5CF6; --cyan: #22D3EE; }
body.landing { overflow-x: hidden; overflow-x: clip;
  background-color: #05070f;
  /* Painted once and scrolled with the page: a fixed, animated or blurred glow repaints every frame. */
  background-image: radial-gradient(60vmax 60vmax at 10% 4%, rgba(43,68,224,.36), transparent 70%), radial-gradient(55vmax 55vmax at 95% 14%, rgba(139,92,246,.28), transparent 70%), radial-gradient(45vmax 45vmax at 40% 40%, rgba(34,211,238,.10), transparent 70%), radial-gradient(120% 100% at 50% -10%, #17204a 0%, #090d1c 50%, #05070f 100%);
  background-repeat: no-repeat; background-size: 100% 1800px; }
html:has(> body.landing) { overflow-x: hidden; overflow-x: clip; }
body.landing .top { position: relative; z-index: 2; }
body.landing .space-name { letter-spacing: -.01em; }
.land-nav { display: flex; gap: 18px; }
.sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.sky.on { opacity: .95; }
body.landing main, body.landing footer { position: relative; z-index: 1; }

/* Hero */
.land-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); padding: 24px 0 56px; }
.land-hero h1 { font-size: clamp(40px, 6.4vw, 82px); letter-spacing: -.035em; line-height: .98; margin-bottom: 20px; }
.land-hero .lead { margin: 0 0 28px; font-size: clamp(16px, 1.5vw, 19px); }
.glow-text { background: linear-gradient(100deg, #7D8FFF 0%, #B9A6FF 40%, #7DE3F4 80%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(125,143,255,.25); }
.land-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.btn.ghost { background: rgba(255,255,255,.04); }
.btn.shine { position: relative; overflow: hidden; box-shadow: 0 10px 40px -10px rgba(43,68,224,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.shine::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); animation: shine 4.5s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Entrance: rise in, one after another */
.js .rise { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* The hero picture: a class in a browser window */
.scene { position: relative; perspective: 1400px; justify-self: center; width: 100%; max-width: 560px; --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px; }
.planet { position: absolute; left: 50%; bottom: -34%; width: 150%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 0%, rgba(125,143,255,.55) 0%, rgba(43,68,224,.18) 22%, transparent 46%); pointer-events: none; }
.planet::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border-top: 1.5px solid rgba(185,166,255,.55); mask: linear-gradient(#000 0 8%, transparent 26%); -webkit-mask: linear-gradient(#000 0 8%, transparent 26%); }
.device { position: relative; border-radius: 18px; background: linear-gradient(180deg, rgba(28,39,64,.92), rgba(15,22,38,.94)); border: 1px solid rgba(125,143,255,.28); box-shadow: 0 40px 120px -30px rgba(43,68,224,.65), 0 0 0 1px rgba(255,255,255,.03) inset; transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-14deg + var(--ry))) translate3d(var(--px), var(--py), 0); transform-style: preserve-3d; transition: transform .25s ease-out; animation: float 7s ease-in-out infinite; overflow: hidden; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.device-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.18); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A4563; } .dots i:first-child { background: #F87171; } .dots i:nth-child(2) { background: #FBBF24; } .dots i:nth-child(3) { background: #34D399; }
.url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 8px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-body { padding: 14px; }
.call-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font: 700 15px/1.2 "Bricolage Grotesque", sans-serif; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 "Geist", sans-serif; color: #FECACA; background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.35); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #F87171; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.06); }
.tile.t1 { background: radial-gradient(circle at 30% 20%, #3B5BFF, #1B2A6B 70%); }
.tile.t2 { background: radial-gradient(circle at 70% 30%, #0EA5A4, #0B3340 70%); }
.tile.t3 { background: radial-gradient(circle at 40% 30%, #C026D3, #3B0F4A 70%); }
.tile.t4 { background: radial-gradient(circle at 60% 20%, #F59E0B, #4A2A06 70%); }
.tile.t5 { background: radial-gradient(circle at 30% 30%, #10B981, #073B2C 70%); }
.tile.ai { background: radial-gradient(circle at 50% 40%, #1E1B4B, #0B0F24 75%); }
.face { width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 clamp(11px, 1.4vw, 16px)/1 "Bricolage Grotesque", sans-serif; color: #fff; background: rgba(255,255,255,.16); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.label { position: absolute; left: 6px; bottom: 6px; font-size: 10px; line-height: 1; padding: 4px 6px; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; white-space: nowrap; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
.tile.speaking { box-shadow: 0 0 0 2px #7D8FFF, 0 0 24px rgba(125,143,255,.6); animation: speak 2.4s ease-in-out infinite; }
@keyframes speak { 50% { box-shadow: 0 0 0 2px #B9A6FF, 0 0 34px rgba(185,166,255,.75); } }
.orb { width: 44%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, #7D8FFF, #B9A6FF, #7DE3F4, #7D8FFF); filter: blur(1px); animation: spin 6s linear infinite, pulse 2.8s ease-in-out infinite; box-shadow: 0 0 30px rgba(125,143,255,.7); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { scale: 1.12; } }
.controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.controls i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.controls i.end { width: 44px; border-radius: 999px; background: #DC2626; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 9px 12px; border-radius: 12px; background: rgba(21,30,51,.82); border: 1px solid rgba(125,143,255,.25); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); white-space: nowrap; animation: float 8s ease-in-out infinite; }
.chip b { color: var(--accent); margin-left: 4px; }
.chip-wait { left: -6%; bottom: -6%; animation-delay: -2s; }
.chip-rec { right: -3%; top: -5%; animation-delay: -5s; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #FBBF24; box-shadow: 0 0 10px #FBBF24; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #F87171; animation: blink 1.2s ease-in-out infinite; }

/* Find your space */
.land-find { background: rgba(21,30,51,.66); border: 1px solid rgba(125,143,255,.22); border-radius: 20px; padding: 22px; margin: 0 0 72px; }
.land-find h2 { font-size: 20px; }
.find-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.find-field { flex: 1 1 260px; display: flex; align-items: center; gap: 6px; background: rgba(7,11,22,.7); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-width: 0; }
.find-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 12px 0; }
.find-field input:focus-visible { outline: none; }
.find-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A line in big type */
.land-statement { margin: 0 auto 96px; max-width: 900px; text-align: center; }
.land-statement p { margin: 0; font: 650 clamp(24px, 3.6vw, 42px)/1.18 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }

.land-section { margin: 0 0 96px; }
.land-section > h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; margin-bottom: 22px; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.land-card { position: relative; background: linear-gradient(180deg, rgba(28,39,64,.7), rgba(21,30,51,.5)); border: 1px solid rgba(125,143,255,.16); border-radius: 18px; padding: 22px; transition: border-color .3s ease, transform .3s ease, opacity .9s ease; }
.land-card:hover { border-color: rgba(125,143,255,.5); transform: translateY(-3px); }
.land-card p { margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; color: #C7CEFF; background: radial-gradient(circle at 30% 20%, rgba(125,143,255,.45), rgba(43,68,224,.12)); box-shadow: 0 0 24px rgba(125,143,255,.25); }
.land-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.land-steps li { display: grid; gap: 6px; padding: 22px; border-radius: 18px; border: 1px solid rgba(125,143,255,.16); background: rgba(21,30,51,.45); }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 750 16px/1 "Bricolage Grotesque", sans-serif; color: #fff; background: linear-gradient(135deg, #2B44E0, #8B5CF6); box-shadow: 0 0 22px rgba(125,143,255,.5); margin-bottom: 6px; }
.land-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.plan { position: relative; display: flex; flex-direction: column; background: rgba(21,30,51,.6); border: 1px solid rgba(125,143,255,.18); border-radius: 20px; padding: 24px; }
.plan-pro { border-color: rgba(125,143,255,.55); box-shadow: 0 30px 80px -30px rgba(43,68,224,.7); background: linear-gradient(180deg, rgba(43,68,224,.18), rgba(21,30,51,.6)); }
.plan-tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C7CEFF; background: rgba(125,143,255,.16); border: 1px solid rgba(125,143,255,.4); padding: 4px 8px; border-radius: 999px; }
.plan-price { margin: 0 0 14px; font-size: 18px; }
.plan-price b { font: 750 40px/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; flex: 1; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan-btn { justify-content: center; }
.land-final { text-align: center; margin: 0 auto 40px; padding: 64px 20px; max-width: 820px; border-radius: 28px; background: radial-gradient(80% 120% at 50% 0%, rgba(43,68,224,.35), rgba(21,30,51,.2) 70%); border: 1px solid rgba(125,143,255,.25); }
.land-final h2 { font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -.03em; }
.land-final .lead { margin: 0 auto 24px; }
.land-foot { position: relative; z-index: 1; }
.land-foot a { margin: 0 4px; }

@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 16px; }
  .scene { max-width: 520px; margin: 0 auto 24px; }
  .device { transform: rotateX(6deg) rotateY(-6deg); }
}
@media (max-width: 560px) {
  .land-nav { gap: 12px; } .land-nav a:first-child { display: none; }
  .chip { font-size: 11px; padding: 7px 9px; }
  .chip-wait { left: 0; bottom: -10%; } .chip-rec { right: 0; top: -7%; }
  .label { font-size: 8.5px; }
  .land-statement, .land-section { margin-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .device, .chip, .orb, .tile.speaking, .btn.shine::after, .live-pill i, .rec-dot { animation: none !important; }
  .js .rise { animation: none; opacity: 1; transform: none; filter: none; }
}
