/* Top bar: brand chip, tubelight pill nav, languages, sign-in (from the demo header). Replaces the old .nav. */
.tp { position: fixed; z-index: 50; inset: 14px 16px auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.tp > * { pointer-events: auto; }
.tp-brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line);
  background: var(--o-nav); backdrop-filter: blur(14px); color: var(--o-ink); font-weight: 700; text-decoration: none; }
.tp-brand img { border-radius: 8px; }
.tp-brand small { font: 600 10px ui-monospace, monospace; color: var(--o-faint); text-transform: uppercase; letter-spacing: .1em; }
.tp-pill { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line);
  background: var(--o-nav); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 40px -20px #000; }
.tp-pill a { position: relative; z-index: 1; padding: 8px 14px; border-radius: var(--o-r-pill); color: var(--o-ink-2); font: 600 13px/1 var(--o-sans); white-space: nowrap; text-decoration: none; transition: color .3s; }
.tp-pill a:hover, .tp-pill a.on { color: var(--o-ink); }
.tp-lamp { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: var(--o-r-pill); background: var(--o-tint); opacity: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0)); transition: transform .5s cubic-bezier(.22, 1.2, .36, 1), width .5s cubic-bezier(.22, 1.2, .36, 1), opacity .3s; }
.tp-lamp.on { opacity: 1; }
.tp-lamp::before { display: none;  content: ""; position: absolute; top: -6px; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 0 0 4px 4px;
  background: var(--o-lilac); box-shadow: 0 0 12px 2px var(--o-violet), 0 6px 18px 6px var(--o-tint); }
.tp-r { display: flex; align-items: center; gap: 8px; }
.tp .tp-langs { padding: 3px; gap: 2px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line); background: var(--o-nav); backdrop-filter: blur(14px); }
.tp .tp-langs a { min-width: 0; min-height: 0; padding: 6px 9px; border-radius: var(--o-r-pill); color: var(--o-ink-2); font: 700 11px ui-monospace, monospace; }
.tp .tp-langs a:hover, .tp .tp-langs a[aria-current=page] { background: var(--o-tint); color: var(--o-ink); }
@media (max-width: 960px) { .tp-pill { display: none; } }
@media (max-width: 560px) { .tp-langs { display: none; } }

/* Scroll cue: a mouse outline with a wheel dot at the bottom of the first screen; hidden once the page moves. */
.scroll-cue { position: fixed; z-index: 30; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--o-ink-2); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 7px; transition: opacity .4s, border-color .3s; animation: cue-ring 2.4s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--o-cyan); }
.scroll-cue i { width: 3px; height: 8px; border-radius: 2px; background: var(--o-cyan); box-shadow: 0 0 8px var(--o-glow); animation: cue-wheel 1.8s var(--o-ease) infinite; }
.scroll-cue.gone { opacity: 0; pointer-events: none; animation: none; }
@keyframes cue-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes cue-ring { 0%, 100% { opacity: .55; box-shadow: 0 0 0 0 transparent; } 50% { opacity: 1; box-shadow: 0 0 18px 2px var(--o-glow); } }
/* reduced motion: the dot stays put, but the cue still breathes (opacity only) so it never looks like a still picture */
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: cue-breathe 2.4s ease-in-out infinite; } .scroll-cue { animation: none; } }
@keyframes cue-breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Module list as a timeline: a glass panel, a rail and one dot per module that fills as the page scrolls past it. */
.index { right: clamp(12px, 2vw, 28px); gap: 14px; padding: 20px 22px 20px 42px; text-align: left; counter-reset: mod; border-radius: 22px;
  border: 1px solid var(--o-line); background: var(--o-nav); backdrop-filter: blur(14px); box-shadow: 0 20px 60px -30px #000; }
.index::before, .index::after { content: ""; position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: var(--o-line); }
.index::after { bottom: auto; height: calc(var(--p, 0) * (100% - 60px)); background: linear-gradient(var(--o-lilac), var(--o-violet)); box-shadow: 0 0 12px var(--o-violet); transition: height .5s var(--o-ease); }
.index li { position: relative; counter-increment: mod; }
.index li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); box-sizing: border-box; border-radius: 50%;
  background: var(--o-space); border: 2px solid var(--o-line); transition: border-color .3s, box-shadow .3s, background .3s; }
.index li.done::before { border-color: var(--o-violet); background: var(--o-violet); }
.index li.on::before { border-color: var(--o-lilac); background: var(--o-lilac); box-shadow: 0 0 0 5px var(--o-tint), 0 0 16px var(--o-violet); }
.index button { display: flex; gap: 12px; align-items: baseline; padding: 0; font: 500 13px/1.2 var(--o-sans); color: var(--o-faint); text-align: left; transition: color .3s; }
.index button::before { content: counter(mod, decimal-leading-zero); font: 700 11px ui-monospace, monospace; letter-spacing: .04em; }
.index li.done button { color: var(--o-ink-2); }
.index li.on button { color: var(--o-ink); }

/* Module picture: a soft rounded frame with a glow instead of the cut-corner HUD; no scanlines, a plain cross-fade on change. */
.holo-inner { clip-path: none; border-radius: 22px; padding: 1px; overflow: hidden;
  background: linear-gradient(140deg, var(--o-lilac), var(--o-line) 35%, var(--o-line) 65%, var(--o-violet));
  box-shadow: 0 30px 80px -30px var(--o-violet), 0 0 0 1px rgba(255, 255, 255, .03); }
.holo-inner img { clip-path: none; border-radius: 21px; }
.holo-scan { display: none; }
.holo.flick .holo-inner img { animation: holo-in .5s var(--o-ease) both; }
@keyframes holo-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .holo.flick .holo-inner img { animation: none; } }

/* Brand chip: name in the main ink, "beta" as a small lilac tag, all in Geist. */
.tp-brand { color: var(--o-ink); font: 700 17px/1 var(--o-sans); letter-spacing: -.01em; }
.tp-brand small { padding: 4px 8px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line); background: var(--o-tint);
  color: var(--o-lilac); font: 600 10px/1 var(--o-sans); letter-spacing: .12em; }

/* Module counter: a large number in the lilac-to-violet gradient, "/ 11" quiet beside it. */
.landing .who .who-count { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font: 500 clamp(16px, 1.6vw, 20px)/1 var(--o-sans); color: var(--o-faint); font-variant-numeric: tabular-nums; }
.landing .who .who-count b { font: 700 clamp(56px, 7.4vw, 104px)/.9 var(--o-display); letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--o-ink) 10%, var(--o-lilac) 45%, var(--o-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Product name: white, in Cinzel (Greek/Roman inscription capitals). */
.landing .tp-brand { color: #fff; font: 700 18px/1 "Cinzel", "Geist", serif; letter-spacing: .08em; text-transform: uppercase; }

/* Flow kinds: cards with a cursor spotlight; the chain is a row of stage nodes that a light runs through (from the demo concept). */
.fx-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 44px; }
.fx-flows .wide { grid-column: 1 / -1; }
.fx-card { position: relative; padding: 24px; border-radius: 22px; border: 1px solid var(--o-line); background: var(--o-panel); backdrop-filter: blur(10px);
  transition: transform .32s cubic-bezier(.22, 1.2, .36, 1), box-shadow .32s, border-color .32s; }
.fx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .32s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--o-tint), transparent 60%); }
.fx-card:hover { transform: translateY(-4px); border-color: var(--o-lilac); box-shadow: 0 18px 50px -24px var(--o-violet); }
.fx-card:hover::after { opacity: 1; }
.fx-card h3 { margin: 0; font: 700 22px/1.2 var(--o-display); letter-spacing: -.01em; }
.fx-fd { margin: 6px 0 16px; color: var(--o-ink-2); font-size: 14px; }
.fx-chain { position: relative; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; margin: 0; font: 500 12px/1 ui-monospace, "SF Mono", monospace; color: var(--o-ink-2); }
/* breadcrumbs: stages in a row, a short dash between them; one glowing lamp glides from crumb to crumb */
.fx-chain .n { position: relative; z-index: 1; padding: 7px 18px 7px 10px; white-space: nowrap; transition: color .5s; }
.fx-chain .n::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 1px; background: var(--o-faint); }
.fx-chain .n:last-of-type::after { display: none; }
.fx-chain .n:last-of-type { padding-right: 10px; }
.fx-chain .n.fork { color: var(--o-lilac); }
.fx-chain .n.on { color: var(--o-ink); }
.fx-chain .lamp { position: absolute; z-index: 0; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); border-radius: var(--o-r-pill); opacity: 0;
  background: var(--o-tint); box-shadow: 0 0 0 1px var(--o-lilac), 0 0 18px -2px var(--o-violet); transform: translate(var(--x, 0), var(--y, 0));
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), width .7s cubic-bezier(.22, 1, .36, 1), height .7s cubic-bezier(.22, 1, .36, 1), opacity .4s; }
.fx-chain .lamp.on { opacity: 1; }
.fx-card.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .7s var(--o-ease), transform .7s var(--o-ease), filter .7s var(--o-ease); }
.fx-card.reveal.in { opacity: 1; transform: none; filter: none; }
@media (max-width: 560px) { .fx-flows { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-chain .lamp { transition: none; } .fx-card.reveal { opacity: 1; transform: none; filter: none; } }

/* Plans (style of concept C «Signal»): three columns split by hairlines, a big price, the recommended column tinted with a badge. Each column lists every feature; carried-over ones are dimmer. */
.pl-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--o-line); }
.pl-plan { position: relative; display: flex; flex-direction: column; padding: 28px 28px 24px; border-left: 1px solid var(--o-line); }
.pl-plan:first-child { border-left: 0; padding-left: 0; }
.pl-plan.rec { background: linear-gradient(180deg, var(--o-tint), transparent 70%); }
.pl-badge { position: absolute; top: -12px; right: 24px; padding: 3px 11px; border-radius: var(--o-r-pill); background: var(--o-ink); color: var(--o-space); font: 600 12px var(--o-sans); }
.pl-plan h3 { margin: 0; font: 600 22px var(--o-sans); }
.pl-price { margin: 8px 0 18px; font: 800 56px/1 var(--o-display); letter-spacing: -.04em; }
.pl-price small { margin-left: 4px; font: 300 15px var(--o-sans); color: var(--o-faint); letter-spacing: 0; }
.pl-plan ul { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; align-content: start; color: var(--o-ink); font-size: 14.5px; line-height: 1.35; }
.pl-plan li { position: relative; padding-left: 22px; }
.pl-plan li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 5px; height: 9px; border: solid var(--o-lilac); border-width: 0 1.5px 1.5px 0; transform: rotate(40deg); }
.pl-plan li.old { color: var(--o-ink-2); }
.pl-plan li.old::before { border-color: var(--o-faint); }
.pl-soon { margin-left: 4px; padding: 1px 7px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line); font: 600 10px var(--o-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--o-faint); }
.pl-btn { align-self: flex-start; display: inline-block; padding: 10px 18px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line); color: var(--o-ink); font: 600 14px var(--o-sans); text-decoration: none; transition: border-color .3s, background .3s; }
.pl-btn:hover { border-color: var(--o-lilac); background: var(--o-tint); }
.landing .pl-btn.main { background: var(--o-ink); color: var(--o-space); border-color: transparent; }
.landing .pl-btn.main:hover { background: #fff; }
@media (max-width: 900px) { .pl-row { grid-template-columns: 1fr; } .pl-plan, .pl-plan:first-child { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--o-line); } .pl-badge { right: 0; } }

/* Mac vs server: two blocks side by side; the Mac block is lit, the server block is quiet. */
.sp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.sp-card { position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--o-line); background: var(--o-panel); }
.sp-card.mac { border-color: var(--o-lilac); background: linear-gradient(180deg, var(--o-tint), var(--o-panel) 60%); box-shadow: 0 24px 70px -40px var(--o-violet); }
.sp-tag { display: inline-block; margin: 0 0 12px; padding: 4px 11px; border-radius: var(--o-r-pill); border: 1px solid var(--o-line); font: 600 11px var(--o-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--o-ink-2); }
.sp-card.mac .sp-tag { background: var(--o-lilac); border-color: transparent; color: var(--o-space); }
.sp-card h3 { margin: 0 0 16px; font: 700 22px/1.2 var(--o-display); letter-spacing: -.01em; }
.sp-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 15px; line-height: 1.4; color: var(--o-ink); }
.sp-card li { position: relative; padding-left: 22px; }
.sp-card li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 5px; height: 9px; border: solid var(--o-lilac); border-width: 0 1.5px 1.5px 0; transform: rotate(40deg); }
.sp-card.srv li::before { border-color: var(--o-faint); }
.sp-link { margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed var(--o-line); color: var(--o-ink-2); font-size: 15px; text-align: center; }
@media (max-width: 800px) { .sp-grid { grid-template-columns: 1fr; } }

/* Final call: the original tree picture lives in .final-bg, a layer at the bottom of the page that comes BEFORE the particle canvas in the DOM, so the lights
   drift over it while the text of the page (main, z-index 1) stays on top. It fades in from fully transparent in the upper half to full strength at the very bottom. */
body.landing { position: relative; }
.final-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 520px; z-index: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 50% 100%, rgba(139, 92, 246, .22), transparent), linear-gradient(rgba(8, 6, 13, .35), rgba(8, 6, 13, .6)), url(/site/img/tree.jpg) center / cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 8%, rgba(0, 0, 0, .5) 50%, #000 95%); mask-image: linear-gradient(180deg, transparent 0, transparent 8%, rgba(0, 0, 0, .5) 50%, #000 95%); }
.landing .lp-final { position: relative; padding: 130px 0 96px; background: none; }
.landing .lp-final .lp-wrap { position: relative; z-index: 1; }
.tp .beam span { white-space: nowrap; }
@media (max-width: 560px) { .tp { inset: 10px 12px auto; gap: 8px; } .tp-brand { gap: 6px; padding-right: 8px; } .tp-brand small { display: none; } .landing .tp .beam span { padding: 10px 14px; } }
@media (max-width: 560px) { .lp-faq summary { min-height: 44px; display: flex; align-items: center; } }
