:root {
    color-scheme: dark;
    --bg: #08090e;
    --surface: #10121a;
    --text: #f4f3fb;
    --muted: #999bab;
    --line: rgba(225, 221, 255, .12);
    --violet: #ad98ff;
    --lilac: #d4b4ff;
    --cyan: #8be3ec;
    --green: #83e0b1;
    --danger: #ff858d;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(ellipse at 72% 14%, rgba(92, 72, 155, .16), transparent 36rem),
        radial-gradient(ellipse at 13% 78%, rgba(46, 131, 141, .08), transparent 33rem),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: #7965d9; }

.topbar {
    position: relative;
    z-index: 2;
    min-height: 76px;
    padding: 0 clamp(20px, 6vw, 96px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(225, 221, 255, .075);
    background: rgba(9, 10, 16, .77);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: .11em; }
.brand-mark {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(198, 175, 255, .32);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(156, 132, 255, .23), rgba(105, 214, 231, .09));
    box-shadow: 0 0 24px rgba(147, 122, 255, .13);
}
.brand-mark span { width: 3px; border-radius: 4px; background: linear-gradient(180deg, var(--cyan), var(--lilac)); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .66; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .78; }
.brand-name { font-size: 11px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 23px; }
.top-actions form { margin: 0; }
.nav-link, .quiet-button { color: #aaaabc; font-size: 11px; transition: color .2s ease; }
.nav-link:hover, .quiet-button:hover { color: #fff; }
.quiet-button { padding: 8px 0; border: 0; background: transparent; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(225, 221, 255, .1); border-radius: 999px; color: #c4c3d1; font-size: 10px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(131, 224, 177, .65); }
.nav-link:focus-visible, .quiet-button:focus-visible, .enter-link:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; border-radius: 3px; }

.page { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 43px 0 88px; }
.page-auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.auth-card {
    width: min(440px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21, 22, 33, .96), rgba(12, 14, 21, .95));
    box-shadow: 0 24px 80px #0007;
}
.eyebrow { color: #b5a6ff; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(48px, 6.6vw, 82px); line-height: .92; letter-spacing: -.075em; font-weight: 740; }
h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.05em; }
h3 { margin: 0 0 10px; font-size: 16px; }
.muted { color: var(--muted); }
.auth-card > .muted { margin: 0 0 26px; font-size: 14px; }
.auth-footnote { margin: 22px 0 0; color: #777d8e; font-size: 11px; line-height: 1.6; }

.form-stack { display: grid; gap: 10px; }
.form-stack label { margin-top: 8px; color: #c5cddd; font-size: 12px; font-weight: 650; }
.form-stack input, .form-stack textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: #0b0d13;
    color: var(--text);
    padding: 12px 13px;
    transition: border-color .18s, box-shadow .18s;
}
.form-stack input:focus, .form-stack textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px #ad98ff24; }
.form-stack textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-stack input::placeholder, .form-stack textarea::placeholder { color: #687080; }
.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, #927af2, #b18cf2);
    color: white;
    padding: 13px 15px;
    font-size: 13px;
    font-weight: 750;
    transition: filter .18s, transform .18s;
}
.primary-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.auth-card .primary-button { margin-top: 12px; }
.notices { display: grid; gap: 8px; margin: 0 0 18px; }
.notice { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.notice-error { color: #ffd2d4; border-color: #68343b; background: #2a171d; }
.notice-success { color: #c4f3d4; border-color: #28513a; background: #12251a; }

.room-hero { min-height: 505px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 30px; margin-bottom: 57px; }
.room-copy { position: relative; z-index: 1; padding: 32px 0 20px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: #aaa6c4; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.kicker-line { width: 22px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 9px rgba(173, 152, 255, .55); }
.kicker-divider { color: #56566b; }
.room-copy h1 { position: relative; }
.room-copy h1 span { color: transparent; background: linear-gradient(102deg, #f4f1ff 0%, #c4b0ff 46%, #8be3ec 100%); background-clip: text; -webkit-background-clip: text; }
.room-copy h1 i { color: var(--cyan); font-style: normal; text-shadow: 0 0 25px rgba(139, 227, 236, .55); }
.hero-description { max-width: 350px; margin: 22px 0 25px; color: #9b9bab; font-size: 13px; line-height: 1.8; }
.enter-link { width: fit-content; display: inline-flex; align-items: center; gap: 24px; padding: 10px 0 9px; border-bottom: 1px solid rgba(188, 168, 255, .5); color: #e9e3ff; font-size: 11px; font-weight: 650; transition: gap .22s, color .22s; }
.enter-link:hover { gap: 33px; color: #fff; }
.enter-arrow { color: var(--cyan); font-size: 17px; line-height: 10px; }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 50px; color: #737587; font: 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.footnote-rule { width: 34px; height: 1px; background: rgba(201, 193, 255, .25); }

.room-visual {
    position: relative;
    min-height: 438px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(219, 214, 255, .12);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 50% 49%, rgba(120, 98, 206, .13), transparent 48%),
        linear-gradient(145deg, rgba(20, 21, 33, .94), rgba(10, 12, 19, .96));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.room-visual::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .42; background: radial-gradient(circle at 23% 23%, rgba(163, 145, 255, .1) 0 1px, transparent 1.5px), radial-gradient(circle at 74% 67%, rgba(139, 227, 236, .12) 0 1px, transparent 1.5px); background-size: 43px 43px, 61px 61px; mask-image: linear-gradient(120deg, #000, transparent 90%); }
.room-visual::after { position: absolute; inset: 12px; z-index: -1; border: 1px solid rgba(229, 225, 255, .035); border-radius: 15px; content: ""; pointer-events: none; }
.visual-label { position: absolute; z-index: 1; display: flex; justify-content: space-between; gap: 12px; color: #777b8e; font: 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.visual-label-top { top: 25px; right: 27px; left: 27px; }
.visual-label-bottom { right: 27px; bottom: 24px; left: 27px; align-items: center; }
.visual-label-bottom > span:first-child { color: #c9b9ff; }
.visual-bottom-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(191, 175, 255, .4), transparent); }
.room-light { position: absolute; top: 13%; left: 27%; z-index: -1; width: 48%; height: 67%; border-radius: 50%; background: radial-gradient(ellipse, rgba(160, 129, 255, .21), rgba(89, 168, 190, .08) 39%, transparent 71%); filter: blur(23px); animation: light-breathe 6s ease-in-out infinite alternate; }
.room-scene { position: absolute; inset: 4% 1% 2%; width: 98%; height: 94%; overflow: visible; animation: scene-float 7s ease-in-out infinite; }

.menu-section { scroll-margin-top: 30px; padding-top: 3px; }
.menu-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.section-kicker { color: #8c8d9e; font: 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.section-kicker span { color: var(--lilac); }
.menu-heading-copy h2 { margin: 10px 0 7px; font-size: clamp(23px, 3vw, 31px); }
.menu-heading-copy h2 span { color: var(--violet); }
.menu-heading-copy p { margin: 0; color: #858798; font-size: 11px; line-height: 1.65; }
.module-count { display: flex; align-items: center; gap: 10px; padding: 0 2px 4px 0; color: #777a8b; font: 8px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; }
.module-count strong { color: #eee9ff; font: 500 25px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.05em; }

.module-stage {
    position: relative;
    min-height: 196px;
    overflow: hidden;
    padding: 20px 25px 17px;
    border: 1px solid rgba(211, 201, 255, .14);
    border-radius: 17px;
    background:
        radial-gradient(ellipse at 13% 120%, rgba(92, 194, 202, .09), transparent 38%),
        radial-gradient(ellipse at 100% -20%, rgba(152, 120, 239, .11), transparent 40%),
        linear-gradient(115deg, rgba(19, 20, 30, .96), rgba(13, 15, 23, .97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.module-stage:hover { transform: translateY(-2px); border-color: rgba(200, 185, 255, .28); box-shadow: 0 20px 50px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .05); }
.stage-watermark { position: absolute; right: 15px; bottom: -62px; color: rgba(213, 207, 255, .025); font-size: 210px; font-weight: 800; line-height: 1; letter-spacing: -.1em; pointer-events: none; }
.stage-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #75798b; font: 8px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.stage-topline > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: #a5a5b5; }
.stage-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 17px; min-height: 112px; }
.stage-plus { position: relative; width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(188, 168, 255, .28); border-radius: 13px; background: linear-gradient(145deg, rgba(156, 132, 255, .16), rgba(96, 188, 202, .07)); box-shadow: 0 0 28px rgba(148, 126, 255, .1); transition: transform .3s, box-shadow .3s; }
.module-stage:hover .stage-plus { transform: rotate(90deg); box-shadow: 0 0 34px rgba(148, 126, 255, .22); }
.stage-plus span { position: absolute; width: 13px; height: 1px; border-radius: 1px; background: linear-gradient(90deg, var(--lilac), var(--cyan)); }
.stage-plus span + span { transform: rotate(90deg); }
.stage-copy { max-width: 420px; }
.stage-title { margin-bottom: 5px; color: #eeeefa; font-size: 15px; font-weight: 680; letter-spacing: -.02em; }
.stage-copy p { margin: 0; color: #898c9b; font-size: 11px; line-height: 1.6; }
.stage-index { margin-left: auto; padding-left: 18px; border-left: 1px solid rgba(213, 207, 255, .13); color: #85889a; font: 8px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.stage-index strong { color: #d5c7ff; font-size: 18px; font-weight: 500; }
.stage-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 11px; color: #666a7b; font: 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .17em; }
.stage-footer-line { width: 30px; height: 1px; background: rgba(205, 196, 255, .17); }

@keyframes scene-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes light-breathe { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.07); } }

@media (max-width: 850px) {
    .room-hero { min-height: 0; grid-template-columns: 1fr; gap: 13px; margin-bottom: 45px; }
    .room-copy { padding: 36px 0 0; }
    .room-visual { min-height: min(68vw, 430px); }
    .room-scene { inset: 2% 4% 0; width: 92%; height: 96%; }
}
@media (max-width: 560px) {
    .topbar { min-height: 65px; padding: 0 17px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 9px; letter-spacing: .07em; }
    .brand-mark { width: 28px; height: 28px; }
    .top-actions { gap: 11px; }
    .nav-link, .quiet-button { font-size: 9px; }
    .menu-nav, .user-chip { display: none; }
    .page { width: calc(100% - 34px); padding: 22px 0 58px; }
    .auth-card { padding: 25px 21px; }
    .room-copy { padding-top: 30px; }
    .hero-kicker { gap: 7px; margin-bottom: 21px; font-size: 7px; letter-spacing: .11em; }
    h1 { font-size: clamp(43px, 13vw, 65px); }
    .hero-description { max-width: 315px; margin: 18px 0 20px; font-size: 12px; }
    .hero-footnote { margin-top: 34px; font-size: 7px; }
    .room-visual { min-height: 72vw; border-radius: 16px; }
    .visual-label { font-size: 6px; }
    .visual-label-top { top: 18px; right: 18px; left: 18px; }
    .visual-label-bottom { right: 18px; bottom: 17px; left: 18px; }
    .menu-heading-row { align-items: flex-end; gap: 10px; }
    .menu-heading-copy h2 { font-size: 23px; }
    .menu-heading-copy p { max-width: 255px; font-size: 10px; }
    .module-count { gap: 6px; font-size: 7px; }
    .module-count strong { font-size: 21px; }
    .module-stage { min-height: 185px; padding: 17px 17px 15px; border-radius: 14px; }
    .stage-topline { font-size: 6px; }
    .stage-main { min-height: 112px; gap: 12px; }
    .stage-plus { width: 37px; height: 37px; border-radius: 11px; }
    .stage-title { font-size: 13px; }
    .stage-copy p { font-size: 10px; }
    .stage-index { padding-left: 11px; font-size: 7px; }
    .stage-index strong { font-size: 16px; }
    .stage-footer { gap: 7px; font-size: 6px; letter-spacing: .11em; }
    .stage-footer-line { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
