/* Senpai Player: the site. Plain CSS, no build step.
   One scale for everything: 4/8 px spacing, four radii, three type steps per level, one easing.
   Tokens first; then layout, components, motion; reduced motion at the end. */

@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("fonts/thmanyahsans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500; font-display: swap; src: url("fonts/thmanyahsans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 700; font-display: swap; src: url("fonts/thmanyahsans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 700; font-display: swap; src: url("fonts/thmanyahserifdisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 900; font-display: swap; src: url("fonts/thmanyahserifdisplay-Black.woff2") format("woff2"); }

:root {
  --bg: #040d12;
  --bg-2: #07181f;
  --panel: #0a212b;
  --panel-2: #0d2a36;
  --line: rgba(79, 216, 245, .13);
  --line-2: rgba(79, 216, 245, .26);
  --cyan: #4fd8f5;
  --cyan-2: #1ba9d0;
  --cyan-3: #0f6f95;
  --ice: #f0fcff;
  --text: #e8f6fa;
  --muted: #8fb1bc;
  --faint: #5e808b;
  --ok: #3ee0a8;
  --bad: #ff6b8a;
  /* four radii, used everywhere */
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --font: "Thmanyah Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Thmanyah Serif Display", "Thmanyah Sans", Georgia, serif;
  --ease: cubic-bezier(.22, .72, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; scrollbar-color: #14414f #040d12; scrollbar-width: thin; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: rgba(79, 216, 245, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: #040d12; } ::-webkit-scrollbar-thumb { background: #14414f; border-radius: 10px; border: 2px solid #040d12; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #04141b; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* film grain and a light that follows the pointer */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.glow-follow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(640px circle at var(--mx, 70%) var(--my, 20%), rgba(79, 216, 245, .085), transparent 60%); }
main, .site-footer { position: relative; z-index: 1; }
.progress { position: fixed; z-index: 60; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--cyan-3), var(--cyan), #b8f3ff); box-shadow: 0 0 12px rgba(79, 216, 245, .7); }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; }
.nav {
  position: relative; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(7, 24, 31, .66); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .005em; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 18px; line-height: 1; }
.brand-name b { color: var(--cyan); font-weight: 700; }
.nav-links { display: flex; gap: 2px; margin-left: auto; margin-right: 6px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ice); background: rgba(79, 216, 245, .08); }
.nav-links a.is-active { color: var(--ice); background: rgba(79, 216, 245, .12); box-shadow: inset 0 0 0 1px rgba(79, 216, 245, .22); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(79, 216, 245, .05); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 10px auto 0; padding: 12px; display: grid; gap: 2px; border-radius: var(--r-xl); background: rgba(7, 24, 31, .96); border: 1px solid var(--line); backdrop-filter: blur(20px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 16px; border-radius: var(--r-md); color: var(--text); font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: rgba(79, 216, 245, .08); }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- buttons: one height for the big ones, one for the small ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; justify-content: center; font-weight: 700; border-radius: 999px; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s; white-space: nowrap; isolation: isolate; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .72; line-height: 1.2; }
.btn span { display: block; line-height: 1.2; text-align: left; }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: linear-gradient(180deg, #6ae4fb 0%, #27b4dc 100%); color: #03141b; box-shadow: 0 12px 32px rgba(27, 169, 208, .34), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(15, 111, 149, .35); }
.btn-primary::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: left .7s var(--ease); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(27, 169, 208, .5), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(15, 111, 149, .35); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost { background: rgba(79, 216, 245, .05); border-color: var(--line-2); color: var(--ice); backdrop-filter: blur(6px); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(79, 216, 245, .12); border-color: rgba(79, 216, 245, .45); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); padding: 148px 0 104px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(880px 540px at 76% 40%, rgba(27, 169, 208, .24), transparent 62%),
    radial-gradient(700px 420px at 6% 0%, rgba(15, 111, 149, .3), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 62% 42%, #000 28%, transparent 78%); mask-image: radial-gradient(ellipse 92% 82% at 62% 42%, #000 28%, transparent 78%);
}
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(79, 216, 245, .1), rgba(79, 216, 245, .04)); color: var(--cyan); font-size: 14px; font-weight: 500; letter-spacing: .02em; margin-bottom: 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(79, 216, 245, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 216, 245, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(79, 216, 245, 0); } }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6.1vw, 84px); line-height: .99; letter-spacing: -.022em; }
.accent { color: var(--cyan); background: linear-gradient(100deg, #a6f3ff 0%, #4fd8f5 42%, #1ba9d0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { margin-top: 28px; max-width: 30em; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.cta-row.center { justify-content: center; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 52px; }
.hero-facts li { display: grid; gap: 2px; padding: 4px 32px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--ice); }
.hero-facts span { color: var(--faint); font-size: 14px; }

.hero-visual { position: relative; aspect-ratio: 1; width: min(540px, 100%); margin-inline: auto; display: grid; place-items: center; }
.iris-stage { position: relative; width: 76%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgba(79, 216, 245, .2), rgba(8, 32, 43, .94) 68%); border: 1px solid var(--line-2); box-shadow: 0 0 140px rgba(27, 169, 208, .3), inset 0 0 70px rgba(79, 216, 245, .1), inset 0 1px 0 rgba(255, 255, 255, .08); }
.iris-stage::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(79, 216, 245, .0) 62%, rgba(79, 216, 245, .85) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: spin 7s linear infinite; }
#hero-lottie { width: 82%; height: 82%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(79, 216, 245, .16); animation: spin 70s linear infinite; }
.orbit-b { inset: 6%; border-style: solid; border-color: rgba(79, 216, 245, .07); animation-duration: 100s; animation-direction: reverse; }
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbit-b::after { background: var(--cyan-2); box-shadow: 0 0 14px var(--cyan-2); top: auto; bottom: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(10, 33, 43, .86); border: 1px solid var(--line-2); backdrop-filter: blur(12px); font-size: 14px; font-weight: 500; color: var(--ice); box-shadow: 0 16px 36px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06); animation: float 7s ease-in-out infinite; white-space: nowrap; }
.chip svg { color: var(--cyan); }
.chip-1 { top: 9%; left: -1%; }
.chip-2 { top: 45%; right: -5%; animation-delay: -2.2s; }
.chip-3 { bottom: 7%; left: 5%; animation-delay: -4.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); display: inline-block; flex: none; }
.led.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.led.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.9s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* a quiet strip under the hero */
.strip { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: rgba(7, 24, 31, .55); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 28px; padding: 22px 28px 22px 0; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.strip-track span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--cyan-2); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - var(--gutter) * 2); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.hero + .strip + .section::before { display: none; }
.band { background: linear-gradient(180deg, rgba(10, 33, 43, 0) 0%, rgba(10, 33, 43, .55) 14%, rgba(10, 33, 43, .55) 86%, rgba(10, 33, 43, 0) 100%); }
.section-head { max-width: 700px; margin-bottom: 64px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.016em; }
.sub { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; line-height: 1.7; }

/* spotlight: a card lights up where the pointer is, and has a hairline edge that glows */
.step, .card { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, #0d2a36, #0a2029); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; overflow: hidden; }
.step::after, .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 0%), rgba(79, 216, 245, .13), transparent 62%); }
.step:hover, .card:hover { transform: translateY(-6px); border-color: rgba(79, 216, 245, .38); box-shadow: 0 26px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(79, 216, 245, .06); }
.step:hover::after, .card:hover::after { opacity: 1; }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps::before { content: ""; position: absolute; z-index: 0; top: 98px; left: 12%; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, rgba(79, 216, 245, .35) 0 6px, transparent 6px 14px); }
.step { z-index: 1; padding: 32px 30px 34px; }
.step-n { position: absolute; top: 20px; right: 26px; font-family: var(--display); font-size: 46px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(79, 216, 245, .22); }
.step-anim { width: 132px; height: 132px; margin: 0 0 20px -10px; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .35)); }
.step h3, .card h3 { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.15; margin-bottom: 10px; }
.step p, .card p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* the vault */
.vault { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 6vw, 84px); }
.vault-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(79, 216, 245, .04); color: var(--text); font-size: 15px; font-weight: 500; transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .3s; }
.pill:hover { transform: translateY(-2px); background: rgba(79, 216, 245, .1); }
.pill.is-on { background: rgba(79, 216, 245, .16); border-color: var(--cyan); color: var(--ice); box-shadow: 0 0 0 4px rgba(79, 216, 245, .08), 0 10px 28px rgba(27, 169, 208, .2); }
.vault-status { margin-top: 26px; min-height: 30px; font-size: 19px; color: var(--ice); font-weight: 500; }
.vault-log { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(4, 13, 18, .6); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.9; color: var(--muted); max-width: 440px; }
.vault-log li { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); animation: logIn .5s var(--ease) forwards; }
.vault-log li::before { content: "›"; color: var(--cyan); }
.vault-log li:nth-child(2) { animation-delay: .35s; } .vault-log li:nth-child(3) { animation-delay: .7s; }
.vault-log li.ok { color: var(--ok); } .vault-log li.ok::before { color: var(--ok); }
.vault-log li.bad { color: var(--bad); } .vault-log li.bad::before { color: var(--bad); }
@keyframes logIn { to { opacity: 1; transform: none; } }
.vault-stage { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.vault-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(79, 216, 245, .13), transparent 66%); box-shadow: 0 0 100px rgba(27, 169, 208, .22), inset 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .5s, border-color .5s; }
.vault-ring::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(79, 216, 245, .2); animation: spin 80s linear infinite; }
.vault-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 200deg, rgba(79, 216, 245, .7), transparent 28%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: spin 9s linear infinite; }
.vault-stage[data-state="unlock"] .vault-ring { border-color: rgba(62, 224, 168, .5); box-shadow: 0 0 120px rgba(62, 224, 168, .26); }
.vault-stage[data-state="denied"] .vault-ring { border-color: rgba(255, 107, 138, .5); box-shadow: 0 0 120px rgba(255, 107, 138, .26); }
#vault-lottie { position: relative; width: 76%; height: 76%; filter: drop-shadow(0 20px 44px rgba(0, 0, 0, .45)); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 30px 26px 32px; }
.card-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); margin-bottom: 22px; color: var(--cyan); background: linear-gradient(180deg, rgba(79, 216, 245, .16), rgba(79, 216, 245, .05)); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(27, 169, 208, .12); }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 36px; padding: 34px 38px; background: linear-gradient(120deg, #0f2f3d, #0a2029); }
.card:not(.card-wide) h3 { min-height: 2.3em; display: flex; align-items: flex-end; }
.card-wide p { max-width: 36em; }
.mini-iris { width: 200px; height: 200px; margin-inline: auto; filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .4)); }
#mini-lottie { width: 100%; height: 100%; }

/* interface window */
.window-wrap { position: relative; perspective: 1600px; }
.window-wrap::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(27, 169, 208, .34), transparent); filter: blur(28px); }
.window { position: relative; border-radius: var(--r-xl); background: #06141a; border: 1px solid var(--line-2); box-shadow: 0 50px 110px rgba(0, 0, 0, .6), 0 0 0 1px rgba(79, 216, 245, .04), inset 0 1px 0 rgba(255, 255, 255, .07); overflow: hidden; transform: rotateX(var(--tilt, 0deg)); transform-origin: 50% 100%; will-change: transform; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; background: linear-gradient(180deg, rgba(13, 42, 54, .9), rgba(10, 33, 43, .7)); border-bottom: 1px solid var(--line); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-title { display: flex; align-items: center; gap: 8px; margin-left: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.win-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(79, 216, 245, .1); border: 1px solid var(--line); color: var(--cyan); font-size: 13px; font-weight: 500; }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr) 316px; }
.win-video { padding: 24px; }
.video-poster { position: relative; aspect-ratio: 16 / 8.4; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: radial-gradient(520px 280px at 18% 100%, rgba(27, 169, 208, .34), transparent 70%), radial-gradient(400px 220px at 90% 0%, rgba(15, 111, 149, .3), transparent 70%), #040d12; border: 1px solid var(--line); }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 13, 18, .6)); }
#window-lottie { position: relative; z-index: 1; width: 32%; aspect-ratio: 1; }
.video-meta { display: grid; gap: 2px; margin: 20px 4px 16px; }
.video-meta b { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; }
.video-meta span { color: var(--faint); font-size: 14px; }
.controls { padding: 18px 20px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.seek { position: relative; height: 6px; border-radius: 3px; background: rgba(79, 216, 245, .15); }
.seek i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--cyan-3), var(--cyan)); box-shadow: 0 0 14px rgba(79, 216, 245, .5); }
.seek u { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(79, 216, 245, .25); }
.ctl-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ctl-btns { display: flex; align-items: center; gap: 20px; }
.ctl-btns b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, #6ae4fb, #27b4dc); color: #03141b; box-shadow: 0 8px 22px rgba(27, 169, 208, .4); }
.ctl-btns em { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--muted); font-style: normal; font-size: 11px; font-weight: 700; }
.win-list { padding: 24px 18px; background: rgba(10, 33, 43, .5); border-left: 1px solid var(--line); }
.win-list h4 { font-family: var(--display); font-size: 21px; margin-bottom: 14px; padding-inline: 8px; }
.win-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); border: 1px solid transparent; transition: background .2s; }
.win-list li + li { margin-top: 4px; }
.win-list li.on { background: var(--panel-2); border-color: rgba(79, 216, 245, .45); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.win-list .th { width: 56px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, rgba(79, 216, 245, .16), rgba(79, 216, 245, .05)); flex: none; position: relative; }
.win-list .th::after { content: ""; position: absolute; left: 22px; top: 12px; border-left: 11px solid var(--muted); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.win-list li.on .th::after { border-left-color: var(--cyan); }
.win-list b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.win-list small { color: var(--faint); font-size: 12px; }

/* academy */
.academy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.rules li { display: grid; gap: 4px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rules li:first-child { border-top: 1px solid var(--line); }
.rules b { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--ice); }
.rules span { color: var(--muted); }

/* faq */
.faq-wrap { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; font-size: 20px; font-weight: 500; line-height: 1.35; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ice); }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cyan); font-size: 20px; line-height: 1; transition: transform .35s var(--ease), background .2s; }
.faq details[open] summary { color: var(--cyan); }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(79, 216, 245, .12); }
.faq p { padding: 0 4px 28px; color: var(--muted); max-width: 40em; }

/* final */
.final { text-align: center; overflow: hidden; isolation: isolate; padding-block: calc(var(--section) * 1.1); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(760px 460px at 50% 34%, rgba(27, 169, 208, .26), transparent 70%); }
.final-inner { display: grid; justify-items: center; }
.final-iris { width: 156px; height: 156px; margin-bottom: 26px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
#final-lottie { width: 100%; height: 100%; }
.final .sub { margin-inline: auto; }
.final .cta-row { margin-top: 36px; }

/* footer */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 56px 0 44px; background: rgba(4, 13, 18, .92); }
.site-footer::before { content: "Senpai Player"; position: absolute; left: 50%; bottom: -.52em; transform: translateX(-50%); white-space: nowrap; pointer-events: none; font-family: var(--display); font-weight: 900; font-size: clamp(80px, 16vw, 240px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(79, 216, 245, .1); }
.foot { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 44px; height: 44px; }
.foot-brand b { display: block; font-size: 18px; line-height: 1.2; }
.foot-brand span { color: var(--faint); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.foot-links a:hover { color: var(--cyan); }
.copy { grid-column: 1 / -1; color: var(--faint); font-size: 14px; padding-top: 24px; border-top: 1px solid var(--line); }

/* reveal on scroll: a little blur too, then sharp */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 128px 0 88px; }
  .hero-visual { width: min(440px, 92%); }
  .steps { grid-template-columns: 1fr; } .steps::before { display: none; }
  .vault { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .academy { grid-template-columns: 1fr; gap: 36px; }
  .win-body { grid-template-columns: 1fr; }
  .win-list { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-template-columns: 1fr; padding: 28px 24px; }
  .mini-iris { width: 160px; height: 160px; }
  .chip { height: 34px; padding: 0 12px; font-size: 13px; }
  .chip-1 { left: 0; top: 6%; } .chip-2 { right: 0; } .chip-3 { left: 2%; }
  .cta-row .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero-facts li { padding: 4px 18px; } .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .win-video { padding: 14px; } .win-list { padding: 16px 12px; }
  .faq summary { font-size: 18px; padding-block: 22px; }
  .section-head { margin-bottom: 44px; }
  .step { padding: 26px 22px 28px; } .step-anim { width: 112px; height: 112px; }
}

/* motion respects the user */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .vault-log li { opacity: 1; transform: none; }
  .window { transform: none; }
}

/* ===== round two: a real footer, a download card, a dock, and a quieter reveal ===== */
.js .reveal { filter: none; transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
a.ink { color: var(--cyan); border-bottom: 1px solid rgba(79, 216, 245, .4); }
.kicker.center { justify-content: center; }
.kicker.center::before { display: none; }

/* a small player card on the hero */
.mini-player { position: absolute; z-index: 3; right: -2%; bottom: 6%; width: 250px; padding: 14px 16px 14px; border-radius: var(--r-lg); background: rgba(10, 33, 43, .86); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 22px 54px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07); animation: float 8s ease-in-out infinite; animation-delay: -3s; }
.mp-top { display: flex; align-items: center; gap: 12px; }
.mp-th { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: #03141b; background: linear-gradient(180deg, #6ae4fb, #27b4dc); }
.mp-top b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ice); }
.mp-top small { display: block; color: var(--muted); font-size: 12px; }
.mp-seek { position: relative; height: 4px; margin-top: 14px; border-radius: 2px; background: rgba(79, 216, 245, .16); }
.mp-seek i { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan-3), var(--cyan)); animation: seekgrow 9s ease-in-out infinite; }
@keyframes seekgrow { 0%, 100% { width: 34%; } 50% { width: 62%; } }
.mp-time { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }

/* why we built it */
.why { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.why-grid { display: grid; gap: 0; }
.why-item { position: relative; padding: 28px 0 28px 70px; border-bottom: 1px solid var(--line); }
.why-item:first-child { border-top: 1px solid var(--line); }
.why-n { position: absolute; left: 0; top: 26px; font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(79, 216, 245, .4); }
.why-item h3 { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.why-item p { color: var(--muted); }

/* the download card */
.dl-card { width: min(780px, 100%); margin-top: 44px; padding: 26px 28px; border-radius: var(--r-xl); text-align: left; background: linear-gradient(180deg, rgba(13, 42, 54, .92), rgba(8, 28, 37, .9)); border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 80px rgba(27, 169, 208, .12); }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.dl-info { display: grid; gap: 8px; min-width: 0; flex: 1 1 280px; }
.dl-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(79, 216, 245, .1); border: 1px solid var(--line-2); color: var(--cyan); font-size: 13px; font-weight: 500; }
.dl-card[data-state="ready"] .dl-badge { color: var(--ok); border-color: rgba(62, 224, 168, .4); background: rgba(62, 224, 168, .08); }
.dl-card[data-state="ready"] .dl-badge .led { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dl-title { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.dl-title span { color: var(--cyan); }
.dl-sub { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 34em; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-sha { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.dl-sha b { color: var(--muted); font-weight: 500; font-family: var(--font); }
[hidden] { display: none !important; }
.dl-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; color: var(--faint); font-size: 14px; }
.dl-facts li { display: inline-flex; align-items: center; gap: 10px; }
.dl-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--cyan-2); }

/* the floating dock */
.dock { position: fixed; z-index: 45; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(7, 24, 31, .8); border: 1px solid var(--line-2); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 20px 56px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .5s; }
.dock.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock img { width: 32px; height: 32px; border-radius: 10px; }
.dock .dt { display: grid; line-height: 1.15; }
.dock .dt b { font-size: 15px; } .dock .dt small { color: var(--faint); font-size: 12px; }

/* the footer: four columns, a wordmark you can read, a bottom bar (the same structure as the other sites) */
.site-footer.ft { position: relative; overflow: hidden; padding: clamp(60px, 7vw, 96px) 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(4, 13, 18, .6), #030a0e); }
.site-footer.ft::before { display: none; }
.ft-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.ft-brand .brand { margin: 0; }
.ft-brand .brand-mark { width: 44px; height: 44px; }
.ft-brand .brand-name { font-size: 24px; }
.ft-brand p { color: var(--muted); margin: 18px 0 22px; line-height: 1.75; max-width: 28ch; }
.ft-col h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.ft-col h2::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--cyan); }
.ft-col ul { display: grid; gap: 2px; }
.ft-col li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 16px; transition: color .2s, transform .25s var(--ease); }
.ft-col li a:hover { color: var(--ice); transform: translateX(4px); }
.ft-contact p { color: var(--muted); margin: 0 0 16px; font-size: 15px; line-height: 1.7; }
.ft-mail { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px 0 8px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(79, 216, 245, .04); color: var(--ice); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.ft-mail:hover { border-color: rgba(79, 216, 245, .6); background: rgba(79, 216, 245, .09); transform: translateY(-2px); }
.ft-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(79, 216, 245, .14); color: var(--cyan); }
.ft-mail bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 15px; }
.ft-word { position: relative; z-index: 0; margin: clamp(36px, 5vw, 72px) 0 clamp(4px, 1vw, 14px); text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 12.4vw, 200px); line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(79, 216, 245, .34) 0%, rgba(79, 216, 245, .1) 55%, rgba(79, 216, 245, 0) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ft-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.ft-made { display: inline-flex; align-items: center; gap: 10px; }
.ft-made img { border-radius: 5px; }

@media (max-width: 1060px) {
  .why { grid-template-columns: 1fr; gap: 40px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ft-brand, .ft-contact { grid-column: 1 / -1; }
  .mini-player { right: 0; width: 220px; }
}
@media (max-width: 640px) {
  .mini-player { width: 200px; padding: 12px; bottom: 2%; }
  .mp-top b { font-size: 13px; }
  .why-item { padding-left: 56px; }
  .dl-card { padding: 22px 20px; } .dl-actions .btn { width: 100%; }
  .dock { width: calc(100% - 32px); justify-content: space-between; bottom: 14px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
