/* BRR Management — sleek, high-tech, dark with bold color.
   Layout: two pinned scroll scenes (A at the top, B mid-page as the "separation"), product sections between. */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(16, 22, 40, 0.72);
  --line: rgba(120, 220, 255, 0.16);
  --text: #e8f1ff;
  --muted: #9aa8c4;
  --cyan: #19e3ff;
  --magenta: #ff2fb3;
  --violet: #8b5cff;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 50%, var(--magenta) 100%);
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 92px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; }
p { margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #c6d3ea; max-width: 60ch; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 600 15px/1 var(--body); color: #04060c; background: var(--grad); text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 40px -10px rgba(25,227,255,.6); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 14px 50px -8px rgba(255,47,179,.65); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 30px -6px rgba(25,227,255,.5); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); padding-top: calc(14px + env(safe-area-inset-top, 0px)); transition: background .3s, backdrop-filter .3s; }
.nav.is-solid { background: rgba(5, 7, 13, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo svg { height: 34px; width: auto; }
.logo span { font: 600 11px/1.1 var(--mono); letter-spacing: .32em; color: var(--muted); }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #04060c; padding: 10px 18px; font-size: 14px; }
@media (max-width: 880px) { .nav__links a:not(.btn) { display: none; } }

/* Scroll scenes */
.scene { position: relative; height: 420vh; background: #000; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__canvas, .scene__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__poster { object-fit: cover; transition: opacity .6s; }
.scene.is-ready .scene__poster { opacity: 0; }
.scene__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,10,.86) 0%, rgba(3,5,10,.55) 38%, rgba(3,5,10,0) 62%), linear-gradient(0deg, rgba(5,7,13,.9) 0%, rgba(5,7,13,0) 30%); pointer-events: none; }
.scene__copy { position: absolute; left: var(--gutter); right: 16px; bottom: 16vh; max-width: 680px; }
.scene__step { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.scene__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.scene__step h1, .scene__step h2 { margin: 16px 0 18px; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.scene__step .lead { margin-bottom: 28px; }
.scene__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6vh; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.scene__bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.scene__hint { position: absolute; right: var(--gutter); bottom: calc(6vh + 14px); font: 600 11px/1 var(--mono); letter-spacing: .3em; color: var(--muted); }
.scene.is-static { height: auto; }
.scene.is-static .scene__sticky { position: relative; height: 100vh; }
.scene.is-static .scene__step { position: relative; opacity: 1; transform: none; }
.scene--b .scene__shade { background: radial-gradient(ellipse at 30% 60%, rgba(3,5,10,.75) 0%, rgba(3,5,10,.25) 50%, rgba(3,5,10,0) 75%), linear-gradient(0deg, rgba(5,7,13,.85) 0%, rgba(5,7,13,0) 30%); }

/* Section rhythm */
.block { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.block--alt { background: var(--bg-2); }
.block__head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 820px; }
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Ecosystem cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; isolation: isolate; transition: transform .3s, border-color .3s; min-width: 0; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(25,227,255,.14), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(25,227,255,.45); }
.card:hover::before { opacity: 1; }
.card__tag { font: 600 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--magenta); }
.card p { color: var(--muted); font-size: 15.5px; }
.card__go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--cyan); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-top: 56px; }
.stat { background: var(--bg); padding: 30px 24px; }
.stat b { display: block; font: 700 clamp(40px, 5vw, 58px)/1 var(--display); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* Feature (image + copy) */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature--flip .feature__art { order: 2; }
.feature__art { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(25,227,255,.35); }
.feature__art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature__art img { transform: scale(1.04); }
.feature__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(25,227,255,.12), transparent 40%, rgba(255,47,179,.12)); pointer-events: none; }
.feature__copy { display: grid; gap: 18px; min-width: 0; }
.feature__copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__art { order: 0; } }

.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: #c6d3ea; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 14px rgba(25,227,255,.6); }

/* Price chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10,15,28,.8); font-size: 14px; color: #c6d3ea; white-space: nowrap; }
.chip b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Course marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: slide 46s linear infinite; }
.marquee__track span { font: 600 clamp(20px, 2.4vw, 30px)/1 var(--display); color: rgba(232,241,255,.85); white-space: nowrap; }
.marquee__track span:nth-child(3n+2) { color: var(--cyan); }
.marquee__track span:nth-child(3n) { color: var(--magenta); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Books shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 8px; }
.book { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s; min-width: 0; }
.book:hover { border-color: rgba(255,47,179,.6); transform: translateY(-3px); }
.book b { font: 600 16px/1.35 var(--display); }
.book small { color: var(--muted); font-size: 13px; }
.book span { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--magenta); }

/* Partner / contact */
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(40px, 7vw, 90px) clamp(22px, 6vw, 80px); background: radial-gradient(900px 400px at 10% 0%, rgba(25,227,255,.22), transparent 60%), radial-gradient(800px 420px at 100% 100%, rgba(255,47,179,.24), transparent 60%), var(--bg-2); border: 1px solid var(--line); display: grid; gap: 22px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 10px; }
.contact div { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(5,7,13,.6); }
.contact small { display: block; font: 600 11px/1 var(--mono); letter-spacing: .24em; color: var(--muted); margin-bottom: 10px; }
.contact a, .contact p { color: var(--text); font-size: 18px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* Footer */
.foot { padding: 50px 0 calc(50px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .book, .btn, .feature__art img { transition: none; }
}
