/* Dawn, continued from the lumodawn-iam login theme: light ground, brand lime and violet light, frosted
   surfaces. Tokens match that theme's :root.
   Motion budget: every effect animates only transform or opacity, and no layer carries a CSS filter or
   mask. Scroll effects are scroll-driven animations (run with the browser's scrolling, off the main
   thread); main.js drives the same variables only where those are unsupported. Looping visuals pause
   off screen (main.js) and stop painting once a banner is buried. prefers-reduced-motion turns it all off. */
:root{color-scheme:light;--violet:#5332b7;--violet-dark:#3d2391;--lime:#d8f85c;--ink:#1d1830;--muted:#6b6680;--soft:#5f5a73;--line:#e8e5f0;--tint:#f5f3fc;--white:#fff;--ground:#fbfaff;--ease:cubic-bezier(.22,.8,.24,1);--body:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font:15px/1.7 var(--body);background:var(--ground);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid #9071e3;outline-offset:3px;border-radius:10px}
svg{display:block;flex-shrink:0}
h1,h2,h3,p{margin:0}

/* Header: its frosted backing fades in over the first 120px of scroll (opacity only). */
.top{position:fixed;inset:0 0 auto;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:14px max(24px,calc((100% - 1072px)/2))}
.top::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(251,250,255,.84);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 var(--line)}
.brand{display:flex;align-items:center;gap:10px}
.wordmark{font-size:17px;font-weight:700;letter-spacing:-.2px}
.mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--violet);box-shadow:0 8px 20px -8px rgba(83,50,183,.6)}
.nav-link{padding:8px 14px;border-radius:10px;color:var(--soft);font-size:14px;min-height:40px;display:flex;align-items:center;transition:color .2s,background-color .2s}
.nav-link:hover{color:var(--violet);background:rgba(83,50,183,.07)}

/* Hero: a sun rising behind a misty horizon; scrolling away lifts the words and lets the sun set. */
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:max(600px,100svh);display:flex;align-items:center;justify-content:center;padding:110px 24px 170px;text-align:center;view-timeline:--hero block}
.hero-copy{display:flex;flex-direction:column;align-items:center}
.sky{position:absolute;inset:0;z-index:-1;pointer-events:none}
.sky::before{content:"";position:absolute;top:-25%;right:-15%;width:min(760px,80vw);aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(140,104,240,.16),rgba(140,104,240,0));animation:drift 20s ease-in-out infinite alternate}
.sun{--sun:min(860px,140vw);position:absolute;left:50%;bottom:calc(var(--sun) * -.42);width:var(--sun);height:var(--sun);margin-left:calc(var(--sun) / -2);border-radius:50%;background:radial-gradient(closest-side,rgba(216,248,92,.95),rgba(216,248,92,.6) 30%,rgba(196,232,110,.35) 46%,rgba(140,104,240,.26) 64%,rgba(140,104,240,.08) 84%,rgba(140,104,240,0));translate:var(--px,0) var(--py,0);transition:translate .8s var(--ease);will-change:transform;animation:rise 2.2s var(--ease) both,breathe 8s 2.2s ease-in-out infinite alternate}
.horizon{position:absolute;inset:auto 0 0;height:26%;background:linear-gradient(rgba(251,250,255,0),var(--ground) 80%)}
@keyframes rise{from{transform:translateY(24%) scale(.88);opacity:0}}
@keyframes breathe{to{transform:scale(1.05)}}
@keyframes drift{to{transform:translate(-6vw,5vw)}}

h1{font-size:clamp(40px,8vw,84px);line-height:1.2;letter-spacing:-2px;font-weight:800}
h1 .line{display:block;animation:enter 1s var(--ease) both}
h1 .line:nth-child(1){animation-delay:.25s}
h1 .line:nth-child(2){animation-delay:.4s}
.rotator{display:inline-block;height:1.2em;width:2em;overflow:hidden;vertical-align:bottom}
.words{display:block;animation:words 10s cubic-bezier(.7,0,.3,1) 2.2s infinite}
.words span{display:block;height:1.2em;background:linear-gradient(90deg,#5f3dd0,#8c68f0);-webkit-background-clip:text;background-clip:text;color:transparent}
@keyframes words{0%,20%{transform:translateY(0)}25%,45%{transform:translateY(-1.2em)}50%,70%{transform:translateY(-2.4em)}75%,95%{transform:translateY(-3.6em)}100%{transform:translateY(-4.8em)}}
@keyframes enter{from{opacity:0;transform:translateY(24px)}}

.button{min-height:52px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 26px;margin-top:44px;font-weight:600;font-size:15px;animation:enter 1s .65s var(--ease) both;transition:transform .25s var(--ease)}
.button.primary{background:linear-gradient(180deg,#5f3dd0,#4a2aa9);color:var(--white);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 12px 28px -12px rgba(83,50,183,.9)}
.button.primary:hover{transform:translateY(-2px)}
.button svg{animation:nudge 2.4s 2.4s var(--ease) infinite}
@keyframes nudge{0%,60%,100%{transform:none}30%{transform:translateY(3px)}}

/* Products: full-width banners stuck under the header. Each next banner slides over the last, which
   sinks back and dims as it is covered (--cover 0 → 1). Each banner wears its product's colours. */
.showcase{max-width:1168px;margin:0 auto;padding:40px 24px 0;scroll-margin-top:24px}
h2{font-size:clamp(28px,4vw,40px);line-height:1.3;letter-spacing:-1px;font-weight:800;text-align:center}
.banners{margin-top:48px;timeline-scope:--next-2,--next-3}
.banner{--accent:var(--violet);--chip:var(--tint);position:sticky;top:84px;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:40px;height:calc(100svh - 120px);min-height:520px;max-height:760px;margin-bottom:22vh;padding:56px 64px;border-radius:36px;border:1px solid rgba(29,24,48,.06);box-shadow:0 1px 2px rgba(29,24,48,.04),0 40px 90px -40px rgba(29,24,48,.35);transform-origin:50% 0;transform:scale(calc(1 - var(--cover,0) * .08))}
.banner:last-child{margin-bottom:0}
.banner>*{min-width:0}
.banner::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--mx,70%) var(--my,40%),rgba(255,255,255,.75),rgba(255,255,255,0) 70%)}
.banner::after{content:"";position:absolute;inset:0;background:var(--ink);opacity:calc(var(--cover,0) * .3);pointer-events:none}
.banner-id{display:flex;align-items:center;gap:14px}
.logo{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;box-shadow:0 10px 24px -12px rgba(29,24,48,.45)}
.banner h3{margin-top:28px;font-size:clamp(44px,6.4vw,84px);line-height:1.05;letter-spacing:-2px;font-weight:800}
.pitch{margin-top:18px;max-width:420px;font-size:clamp(17px,1.7vw,21px);line-height:1.6;color:var(--soft)}
.meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:30px;font-size:14px;color:var(--muted)}
.chip{padding:4px 12px;border-radius:999px;background:var(--chip);color:var(--accent);font-weight:700;font-size:13px}
.banner-visual{position:relative;height:min(70%,420px);display:flex;align-items:flex-end;justify-content:center;gap:14px;contain:layout paint}

/* Repertia: its own blue (Mantine blue.8); columns of a ledger keep growing. */
.repertia{--accent:#1971c2;--chip:#dbeafb;background:linear-gradient(135deg,#e7f1fc,#f8fbff 55%,#dce9fa)}
.repertia-mark{background:linear-gradient(180deg,#228be6,#1864ab);color:var(--white)}
.ledger span{flex:1;max-width:52px;border-radius:14px 14px 6px 6px;background:linear-gradient(to top,#1864ab,#4dabf7);transform-origin:bottom;animation:grow 3.6s ease-in-out infinite}
.ledger span:nth-child(1){height:34%}
.ledger span:nth-child(2){height:58%;animation-delay:.12s}
.ledger span:nth-child(3){height:44%;animation-delay:.24s}
.ledger span:nth-child(4){height:72%;animation-delay:.36s}
.ledger span:nth-child(5){height:56%;animation-delay:.48s}
.ledger span:nth-child(6){height:84%;animation-delay:.6s}
.ledger span:nth-child(7){height:100%;animation-delay:.72s;background:linear-gradient(to top,#b4d82a,#d8f85c);box-shadow:0 14px 30px -12px rgba(150,190,20,.8)}
@keyframes grow{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}

/* Sonveris: the mint of its logo; a waveform split into voice and accompaniment. */
.sonveris{--accent:#1f8a5f;--chip:#d4f1e3;background:linear-gradient(135deg,#e9f4ee,#f8fdfa 55%,#dcf1e6)}
.wave{align-items:center;gap:7px}
.wave span{width:8px;height:78%;border-radius:4px;background:#7fddb3;animation:eq 1.2s ease-in-out infinite alternate}
.wave span:nth-child(n+17){background:#3cc88f}
.wave span:nth-child(2n){animation-duration:.9s;animation-delay:-.3s}
.wave span:nth-child(3n){animation-duration:1.5s;animation-delay:-.7s}
.wave span:nth-child(5n){animation-duration:1.1s;animation-delay:-1s}
.wave span:nth-child(7n){animation-duration:.8s}
@keyframes eq{from{transform:scaleY(.16)}to{transform:scaleY(1)}}

/* Nous: 我 (blue) and 你 (pink) keep finding each other; the overlap is 我们. */
.nous{--accent:#6c4ce0;--chip:#ebe5ff;background:linear-gradient(135deg,#f0ecff,#fdf9ff 55%,#ffeef3)}
.nous-mark{background:var(--white)}
.us{align-items:center;gap:0}
.us span{width:min(210px,40vw);aspect-ratio:1;margin:0 -24px;border-radius:50%;mix-blend-mode:multiply}
.me{background:#3d7bff;animation:me 3.6s ease-in-out infinite alternate}
.you{background:#ff6f91;animation:you 3.6s ease-in-out infinite alternate}
@keyframes me{from{transform:translateX(-14%)}to{transform:translateX(21%)}}
@keyframes you{from{transform:translateX(14%)}to{transform:translateX(-21%)}}

/* Off screen (main.js marks .idle): looping visuals pause. */
.idle .banner-visual span,.hero.idle .sun,.hero.idle .sky::before,.hero.idle .words{animation-play-state:paused}

/* Finale: the page ends at dawn. One glow rises from the very bottom edge of the page behind the last
   line and the footer, so it is never cut; it rises with the scroll and its light breathes (opacity). */
body{position:relative;isolation:isolate}
.dawn{position:absolute;inset:auto 0 0;z-index:-1;height:min(760px,110vw);overflow:hidden;pointer-events:none}
.dawn::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 62% 78% at 50% 100%,rgba(216,248,92,.85),rgba(216,248,92,.42) 32%,rgba(170,140,245,.24) 58%,rgba(140,104,240,.08) 78%,rgba(140,104,240,0));animation:glow 7s ease-in-out infinite alternate}
@keyframes glow{to{opacity:.7}}
.finale{padding:140px 24px 170px;text-align:center}
.finale h2{font-size:clamp(30px,5vw,56px);line-height:1.3;letter-spacing:-1.5px}
.page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;width:min(1072px,calc(100% - 48px));margin:0 auto;padding:22px 0 30px;border-top:1px solid rgba(83,50,183,.14);color:var(--soft);font-size:13px}
.page-footer .mark{width:28px;height:28px;border-radius:8px}
.page-footer .wordmark{font-size:15px}
.page-footer p{flex:1;text-align:center}
.icp{transition:color .2s}
.icp:hover{color:var(--violet)}

/* Scroll-driven motion, all on one easing. */
@supports (animation-timeline:view()){
 .top::before{opacity:0;animation:fade-in linear both;animation-timeline:scroll();animation-range:0 120px}
 .hero-copy{animation:lift var(--ease) both;animation-timeline:--hero;animation-range:exit 5% exit 85%}
 .sky{animation:set linear both;animation-timeline:--hero;animation-range:exit 0% exit 100%}
 .dawn{animation:dawn var(--ease) both;animation-timeline:view();animation-range:entry 0% entry 100%}
 .reveal,.banner-copy,.banner-visual{animation:reveal var(--ease) both;animation-timeline:view();animation-range:entry 10% entry 90%}
 .banner-visual{animation-range:entry 25% entry 100%}
 /* Wired by position, so reordering the banners in index.html needs no change here. */
 .banner:nth-child(2){view-timeline:--next-2 block}
 .banner:nth-child(3){view-timeline:--next-3 block}
 .banner:nth-child(-n+2){animation:sink linear both;animation-range:entry 0% entry 100%}
 .banner:nth-child(-n+2)::after{opacity:0;animation:shade linear both;animation-range:entry 0% entry 100%}
 .banner:nth-child(1),.banner:nth-child(1)::after{animation-timeline:--next-2}
 .banner:nth-child(2),.banner:nth-child(2)::after{animation-timeline:--next-3}
 /* A buried banner's visual stops painting. */
 .banner:nth-child(1) .banner-visual{animation:reveal var(--ease) both,bury linear both;animation-timeline:view(),--next-2;animation-range:entry 25% entry 100%,entry 0% entry 100%}
 .banner:nth-child(2) .banner-visual{animation:reveal var(--ease) both,bury linear both;animation-timeline:view(),--next-3;animation-range:entry 25% entry 100%,entry 0% entry 100%}
}
@keyframes fade-in{to{opacity:1}}
@keyframes dawn{from{opacity:0;transform:translateY(30%)}}
@keyframes lift{to{opacity:0;transform:translateY(-80px) scale(.96)}}
@keyframes set{to{opacity:.35;transform:translateY(140px)}}
@keyframes reveal{from{opacity:0;transform:translateY(48px) scale(.97)}}
@keyframes sink{to{transform:scale(.92)}}
@keyframes shade{to{opacity:.3}}
@keyframes bury{0%,99%{visibility:visible}100%{visibility:hidden}}

@media(max-width:900px){
 .banner{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:16px;padding:40px 36px;align-items:start}
 .banner h3{margin-top:20px}
 .banner-visual{height:100%;max-height:300px;align-self:end}
}
@media(max-width:600px){
 .top{padding:12px 16px}
 .hero{padding:96px 16px 150px}
 .sun{bottom:calc(var(--sun) * -.3)}
 h1{letter-spacing:-1px}
 .showcase{padding:24px 12px 0}
 .banner{top:72px;height:calc(100svh - 96px);min-height:540px;padding:28px 24px;border-radius:28px;margin-bottom:16vh}
 .logo{width:48px;height:48px;border-radius:14px}
 .meta{margin-top:20px}
 .wave{gap:4px}
 .wave span{width:5px}
 .us span{width:42vw;margin:0 -11vw}
 .finale{padding:110px 16px 130px}
 .page-footer{flex-direction:column;width:calc(100% - 32px);padding-bottom:28px}
 .page-footer p{flex:none}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation:none!important;transition:none!important}
 .top::before{opacity:1}
}
