
:root{
  --bg1:#050a14;
  --bg2:#160a2a;
  --glass: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.14);
  --shadow: 0 50px 140px rgba(0,0,0,.55);
  --paper: rgba(255,255,255,.94);
  --ink: #0b1220;
  --muted: rgba(11,18,32,.72);
  --p1:#22c55e;
  --p2:#0ea5e9;
  --p3:#a855f7;
  --radius: 28px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:white;
  overflow:hidden;
  background: radial-gradient(1200px 700px at 15% 20%, rgba(34,197,94,.18), transparent 60%),
              radial-gradient(1100px 620px at 85% 78%, rgba(14,165,233,.18), transparent 60%),
              linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg1));
}

/* animated background canvas */
#bgFX{position:fixed; inset:0; z-index:0;}

/* ticker */
.ticker{
  position:fixed; top:0; left:0; right:0; height:34px;
  background: rgba(0,0,0,.70);
  border-bottom:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  z-index:40;
}
.tickerTrack{
  display:inline-block;
  padding-left:100%;
  white-space:nowrap;
  line-height:34px;
  font-size:13px;
  letter-spacing:.35px;
  color: rgba(255,255,255,.92);
  animation: marquee 20s linear infinite;
}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* topbar */
.topbar{
  position:fixed; top:34px; left:0; right:0; height:112px;
  display:grid;
  grid-template-columns: 92px 1fr 420px;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.14));
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.10);
  z-index:30;
}
.logo{
  width:60px; height:60px; border-radius:18px;
  object-fit:cover; background:white;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.center{display:flex; flex-direction:column; gap:10px}
.brand{display:flex; flex-direction:column; align-items:center; line-height:1.05}
.brandTitle{font-weight:1000; letter-spacing:.2px; font-size:18px}
.brandSub{font-size:12px; color: rgba(255,255,255,.72)}
.menu{
  display:flex; justify-content:center; gap:8px;
  overflow:auto; scrollbar-width:none;
  padding:0 6px;
}
.menu::-webkit-scrollbar{display:none}
.navItem{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-weight:900;
  font-size:13px;
}
.navItem:hover{transform:translateY(-1px); background:rgba(255,255,255,.12)}
.navItem.active{
  background: linear-gradient(135deg, rgba(34,197,94,.38), rgba(14,165,233,.38), rgba(168,85,247,.22));
  border-color: rgba(255,255,255,.24);
}

.right{display:flex; gap:10px; justify-content:flex-end; align-items:center}
.btn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  padding:11px 14px;
  border-radius:16px;
  cursor:pointer;
  font-weight:950;
}
.btn:hover{filter:brightness(1.08)}
.btn.primary{
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-color: rgba(255,255,255,.10);
}
.btn.ghost{background: rgba(0,0,0,.22)}

/* stage */
.stage{
  position:fixed;
  top:146px; left:0; right:0; bottom:0;
  padding:18px;
  display:grid;
  place-items:center;
  z-index:10;
}
#pages{
  width:min(1280px, 96vw);
  height:min(860px, 80vh);
  position:relative;
}
.hint{
  margin-top:10px;
  font-size:12px;
  color: rgba(255,255,255,.70);
  text-align:center;
}

/* pages */
.page{
  position:absolute; inset:0;
  opacity:0; pointer-events:none;
  transform: translateY(12px) scale(.992);
  transition: opacity .28s ease, transform .62s cubic-bezier(.18,.9,.2,1);
  --bg: none;
}
.page.active{opacity:1; pointer-events:auto; transform: translateY(0) scale(1)}
.pageBg{
  position:absolute; inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  filter: saturate(1.04) contrast(1.04);
}
.pageBg::after{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--radius);
  background: radial-gradient(1000px 620px at 20% 18%, rgba(0,0,0,.18), rgba(0,0,0,.78));
}
.frame{
  position:absolute; inset:0;
  padding:22px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
}
.paper{
  width:min(1060px, 92%);
  height: calc(100% - 40px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
  border: 1px solid rgba(11,18,32,.10);
  position:relative;
  overflow:hidden;
}
.paper::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(900px 520px at 10% 10%, rgba(34,197,94,.10), transparent 55%),
              radial-gradient(900px 520px at 90% 20%, rgba(14,165,233,.12), transparent 55%),
              radial-gradient(900px 520px at 60% 90%, rgba(168,85,247,.10), transparent 55%);
  pointer-events:none;
}
.paperInner{
  position:absolute; inset:0;
  padding:28px 30px;
  color: var(--ink);
  overflow:auto;
}
.paperInner::-webkit-scrollbar{width:10px}
.paperInner::-webkit-scrollbar-thumb{background: rgba(11,18,32,.18); border-radius:10px}
.paperInner::-webkit-scrollbar-track{background: transparent}

.heroRow{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:18px;
  align-items:start;
}
.sideBadge{
  width:100%;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  border: 1px solid rgba(11,18,32,.08);
  background:white;
}
h1{margin:0 0 10px; font-size:38px; letter-spacing:.2px}
.lead{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.62;
  color: rgba(11,18,32,.88);
}
.bullets{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(11,18,32,.82);
}
.bullets li{margin:6px 0}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.chip{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.04);
  color: rgba(11,18,32,.78);
  font-weight:800;
  font-size:12px;
}
.ctaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

/* carousel */
.carousel{
  margin-top:16px;
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap:10px;
  align-items:center;
}
.carViewport{
  overflow:hidden;
  border-radius: 22px;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
}
.carTrack{display:flex; transition: transform .5s cubic-bezier(.2,.9,.2,1)}
.slide{
  min-width:100%;
  height: 460px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
.carBtn{
  height:44px; width:44px;
  border-radius:16px;
  border:1px solid rgba(11,18,32,.12);
  background: rgba(11,18,32,.05);
  cursor:pointer;
  font-size:26px;
  font-weight:900;
  color: rgba(11,18,32,.72);
}
.carDots{display:flex; gap:8px; justify-content:center; margin-top:10px}
.dot{width:9px; height:9px; border-radius:999px; background: rgba(11,18,32,.22)}
.dot.active{background: rgba(14,165,233,.85)}

/* responsive */
@media (max-width: 1100px){
  .topbar{grid-template-columns: 76px 1fr 360px}
  .heroRow{grid-template-columns:1fr 300px}
}
@media (max-width: 860px){
  body{overflow:hidden}
  .topbar{grid-template-columns: 72px 1fr; grid-template-rows:auto auto; height:auto}
  .right{justify-content:center; padding-bottom:10px}
  .menu{justify-content:flex-start}
  .stage{top: (34px + 150px)}
  #pages{height:min(900px, 78vh)}
  .heroRow{grid-template-columns:1fr}
  .sideBadge{max-width:520px}
}
