/* The home's opening: a 3D place you travel through by scrolling, pinned to the screen for the length of the
   journey. The rest of the home page (the app, the features, the downloads) follows it as ordinary sections.
   Everything here is scoped to .world, so the site's own styles are untouched. The place is night in both themes. */
.world { position: relative; height: 620vh; background: #0b0810; color: #f6f3f0; isolation: isolate;
  --w-ink: #f6f3f0; --w-ink-2: #ded8e2; --w-ink-3: #a79fae; --w-glow: #ff6a3d; --w-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace; }
.world-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.world #world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* a soft shade under the words, so they read against anything the camera passes */
.world-pin::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 6, 12, 0.82) 0%, rgba(8, 6, 12, 0.42) 30%, transparent 58%), linear-gradient(90deg, rgba(8, 6, 12, 0.5), transparent 52%); }
.world .w-veil { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; gap: 14px; justify-items: center; background: #0b0810; transition: opacity 1.1s ease 0.15s, visibility 0s linear 1.3s; }
.world .w-veil.w-gone { opacity: 0; visibility: hidden; }
.world .w-veil-mark { width: 54px; height: 2px; background: linear-gradient(90deg, #ffb11f, #ff4a68, #e0169a); border-radius: 2px; animation: w-veil 1.2s ease-in-out infinite alternate; transform-origin: left; }
.world .w-veil-t { font: 500 11px var(--w-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--w-ink-3); }
@keyframes w-veil { from { transform: scaleX(0.25); opacity: 0.5; } to { transform: scaleX(1); opacity: 1; } }

/* the words: each block belongs to a stretch of the journey. They sit on dark glass, so they are readable
   whatever is behind them. */
.world .w-cap { position: absolute; z-index: 3; left: clamp(16px, 5vw, 84px); bottom: clamp(84px, 13vh, 140px); width: min(620px, calc(100% - 32px)); padding: 28px 32px 30px; border-radius: 26px;
  background: rgba(13, 10, 18, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translateY(18px); will-change: opacity, transform; pointer-events: none; }
.world .w-cap.w-on { pointer-events: auto; }
.world .w-cap.w-hero { padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; width: min(760px, calc(100% - 32px)); }
.world .w-cap.w-right { left: auto; right: clamp(16px, 5vw, 84px); }
.world .w-cap.w-end { left: 50%; bottom: clamp(76px, 10vh, 110px); width: min(640px, calc(100% - 32px)); margin-left: calc(min(640px, 100% - 32px) / -2); padding: 22px 28px 26px; text-align: center; }
.world .w-eyebrow { margin: 0 0 14px; font: 600 12px var(--w-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #ffb38a; }
.world .w-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 12px; vertical-align: middle; border-radius: 2px; background: linear-gradient(90deg, #ffb11f, #ff4a68); }
.world .w-cap h1, .world .w-cap h2 { margin: 0; font-weight: 650; letter-spacing: -0.03em; line-height: 1.02; color: #ffffff; text-wrap: balance; }
.world .w-cap h1 { font-size: clamp(48px, 8.4vw, 118px); text-shadow: 0 4px 44px rgba(0, 0, 0, 0.7); }
.world .w-cap h2 { font-size: clamp(32px, 4.2vw, 60px); }
.world .w-cap.w-end h2 { font-size: clamp(28px, 3.2vw, 44px); }
.world .w-lead { margin: 16px 0 0; max-width: 36em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; font-weight: 450; color: var(--w-ink-2); }
.world .w-cap.w-hero .w-lead { font-size: clamp(17px, 1.5vw, 21px); color: #f1ecf3; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85); }
.world .w-cap.w-end .w-lead { margin: 10px auto 0; }
.world .w-points { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: clamp(14.5px, 1.1vw, 16.5px); line-height: 1.5; color: var(--w-ink-2); }
.world .w-points li { position: relative; padding-left: 22px; }
.world .w-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #ffb11f, #ff4a68 60%, #e0169a); }
.world .w-points b { color: #fff; font-weight: 600; }
.world .w-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.world .w-cap.w-end .w-cta { justify-content: center; margin-top: 18px; }
.world .wbtn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font: 650 15.5px/1 inherit; font-family: inherit; color: #14090a; background: #ffffff; text-decoration: none;
  box-shadow: 0 10px 40px -10px rgba(255, 106, 61, 0.75); transition: transform 0.2s, box-shadow 0.2s; }
.world .wbtn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255, 106, 61, 0.95); }
.world .wbtn.ghost { color: #ffffff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.world .wbtn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.world .w-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 2px; transition: border-color 0.2s; }
.world .w-more:hover { border-color: #ff7a3d; }
.world .w-ver { white-space: nowrap; color: var(--w-ink-3); }

/* the bottom edge: where you are in the journey, and a way past it */
.world .w-hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; padding: 0 clamp(16px, 3.2vw, 44px);
  font: 600 11.5px var(--w-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--w-ink-3); }
.world .w-scroll-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--w-ink-2); transition: opacity 0.4s; }
.world .w-scroll-hint i { width: 2px; height: 26px; border-radius: 2px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: w-hint 1.8s ease-in-out infinite; }
.world .w-scroll-hint.w-off { opacity: 0; }
@keyframes w-hint { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.world .w-rail { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); position: relative; overflow: hidden; }
.world .w-rail b { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #ffb11f, #ff4a68, #e0169a); transform: scaleX(0); transform-origin: left; }
.world .w-count { font-variant-numeric: tabular-nums; }
.world .w-count span { color: #fff; }
.world .w-skip { color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); letter-spacing: 0.1em; transition: background 0.2s; }
.world .w-skip:hover { background: rgba(255, 255, 255, 0.2); }

/* the app as it looks today, under the tour */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(128, 128, 140, 0.25), 0 24px 60px -30px rgba(0, 0, 0, 0.55); }
.shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; opacity: 0.85; }
.shot figcaption b { font-weight: 650; }

@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .world .w-cap, .world .w-cap.w-right { left: 12px; right: 12px; width: auto; bottom: 74px; padding: 20px 20px 22px; border-radius: 22px; }
  .world .w-cap.w-hero { left: 16px; right: 16px; padding: 0; }
  .world .w-cap.w-end { left: 12px; right: 12px; width: auto; margin-left: 0; bottom: 70px; }
  .world .wbtn { height: 46px; padding: 0 20px; font-size: 15px; }
  .world .w-hud-bottom { height: 56px; gap: 12px; }
  .world .w-scroll-hint span { display: none; }
}
/* phones: the panel is compact, so the place stays in view above it */
@media (max-width: 700px) {
  .world .w-cap h1 { font-size: clamp(40px, 13.5vw, 60px); }
  .world .w-cap h2 { font-size: clamp(23px, 7vw, 32px); line-height: 1.08; }
  .world .w-cap.w-end h2 { font-size: clamp(22px, 6.4vw, 28px); }
  .world .w-eyebrow { margin-bottom: 8px; font-size: 11px; }
  .world .w-lead, .world .w-cap.w-hero .w-lead { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .world .w-points { margin-top: 10px; gap: 5px; font-size: 14px; line-height: 1.4; }
  .world .w-cta { margin-top: 16px; gap: 8px; }
  .world .w-more { margin-top: 12px; }
  .world .w-cap, .world .w-cap.w-right { padding: 16px 18px 18px; }
  .world .w-cap.w-end { padding: 16px 18px 18px; }
}
/* small phones: the headline and its three points are enough */
@media (max-width: 700px) and (max-height: 720px) { .world .w-cap:not(.w-hero):not(.w-end) .w-lead { display: none; } }
/* short screens (a phone on its side, a short window): only the headline and the buttons */
@media (max-height: 560px) {
  .world .w-cap { bottom: 60px; }
  .world .w-cap h1 { font-size: clamp(34px, 11vh, 64px); }
  .world .w-cap h2 { font-size: clamp(22px, 7vh, 40px); }
  .world .w-cap:not(.w-hero) .w-points, .world .w-cap:not(.w-hero) .w-lead { display: none; }
  .world .w-cap.w-end { padding: 12px 18px 14px; }
  .world .w-cta { margin-top: 14px; }
  .world .w-wbtn, .world .wbtn { height: 42px; }
  .world.w-banner { min-height: 0; }
}
/* very wide screens: the words grow with the picture */
@media (min-width: 1800px) {
  .world .w-cap { width: min(720px, calc(100% - 32px)); }
  .world .w-cap.w-hero { width: min(900px, calc(100% - 32px)); }
  .world .w-lead { font-size: 20px; }
  .world .w-points { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .world .w-scroll-hint i, .world .w-veil-mark { animation: none; } }

/* no 3D here (WebGL is off or failed, or scripts are off): the same words as an ordinary dark section */
.no3d .world { height: auto; background: radial-gradient(120% 80% at 70% 0%, #3a1626 0%, #161022 45%, #0b0810 100%); }
.no3d .world-pin { position: static; height: auto; padding: 96px 0 72px; display: grid; gap: 40px; }
.no3d .world-pin::after, .no3d .world #world, .no3d .world .w-hud-bottom, .no3d .world .w-veil { display: none; }
.no3d .world .w-cap, .no3d .world .w-cap.w-right, .no3d .world .w-cap.w-end { position: static; opacity: 1 !important; transform: none !important; margin: 0 auto; width: min(680px, calc(100% - 32px)); pointer-events: auto; }

/* ---- the inner pages: the page's own hero on a banner of the same place ---- */
.world.w-banner { height: auto; min-height: clamp(440px, 64vh, 660px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* the site's inks, as they are at night, so everything in the hero reads on the dark scene */
  --ink: #f8f5f2; --ink-2: #e2dce6; --ink-3: #b3abba; --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.16); --line-3: rgba(255, 255, 255, 0.26);
  --surface: rgba(22, 17, 28, 0.72); --surface-2: rgba(32, 26, 40, 0.72); --bg: #0b0810; --bg-2: #120e18; --ink-rgb: 248 245 242; --bg-rgb: 11 8 16; --glass-rgb: 22 17 28; --on-ink: #14090a; color: var(--ink); }
.world.w-banner > #world { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.world.w-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 6, 12, 0.9) 0%, rgba(8, 6, 12, 0.5) 42%, rgba(8, 6, 12, 0.18) 100%), linear-gradient(90deg, rgba(8, 6, 12, 0.62), transparent 62%); }
.world.w-banner > section { position: relative; z-index: 2; padding-bottom: 52px; }
.world.w-banner .display, .world.w-banner h1 { color: #ffffff; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.world.w-banner .lead { color: var(--ink-2); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7); }
.world.w-banner .kicker, .world.w-banner .eyebrow { color: #ffb38a; }
.world.w-banner .btn-ghost { color: #ffffff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.world.w-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.no3d .world.w-banner { background: radial-gradient(120% 90% at 70% 0%, #3a1626 0%, #161022 50%, #0b0810 100%); }
.no3d .world.w-banner > #world { display: none; }
@media (max-width: 700px) { .world.w-banner { min-height: 0; } .world.w-banner > section { padding-bottom: 36px; } }
