@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{color-scheme:dark;--bg:#070709;--surface:#101014;--surface-alt:#16161c;--text:#f3ede2;--dim:#a79e8d;--border:#2a2a33;--accent:#d4af37;--accent-2:#9e1b24;--accent-2-bright:#e3354f;--radius:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}
.font-display,h1,h2,h3{font-family:"Playfair Display","Noto Serif Display",Georgia,serif}
a{color:var(--accent)}
button{font:inherit;cursor:pointer;color:inherit;background:none;border:none}
.wrap{max-width:72rem;margin:0 auto;padding-left:1rem;padding-right:1rem}
header.site{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--border);background:rgba(7,7,9,.92);backdrop-filter:blur(8px)}
header.site .bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-top:.75rem;padding-bottom:.75rem}
nav.portal{display:flex;align-items:center;gap:.5rem}
.btn{display:inline-block;border-radius:999px;padding:.5rem 1rem;font-size:.875rem;text-decoration:none;border:1px solid var(--border);color:var(--dim);background:none;transition:border-color .15s,color .15s,opacity .15s}
.btn:hover{border-color:var(--accent);color:var(--text)}
.btn-gold{background:var(--accent);color:#000;font-weight:600;border-color:var(--accent)}
.btn-gold:hover{opacity:.9;color:#000}
.btn-big{padding:.875rem 1.75rem;font-size:1rem;font-weight:600}
.hide-sm{display:none}
@media(min-width:640px){.hide-sm{display:inline-block}}
/* Lockup — genuine glyph images, baseline-corrected as in the live portal */
.lockup{display:inline-flex;flex-direction:column;align-items:stretch}
.lockup-line{font-family:"Playfair Display","Noto Serif Display",Georgia,serif;font-weight:600;line-height:1;letter-spacing:-.01em;white-space:nowrap}
.lockup-sm .lockup-line{font-size:1.25rem}.lockup-md .lockup-line{font-size:1.875rem}
.lockup-lg .lockup-line{font-size:3rem}.lockup-xl .lockup-line{font-size:3.75rem}
.lockup .glyph{display:inline-block;width:auto;height:1.12em;vertical-align:baseline}
.lockup-md .glyph,.lockup-lg .glyph,.lockup-xl .glyph{height:1.18em}
.glyph-halo{transform:translateY(.041em)}.glyph-horns{transform:translateY(.036em)}
.lockup .gold{color:var(--accent)}.lockup .bright{color:var(--accent-2-bright)}
.lockup .amp{display:inline-block;margin:0 .08em;background:linear-gradient(to right,#d4af37,#dd7a4a,#e3354f);-webkit-background-clip:text;background-clip:text;color:transparent}
.subline{display:flex;width:100%;justify-content:space-between;margin-top:.375rem;font-size:.55rem;font-weight:500;color:var(--dim);text-transform:uppercase;font-family:system-ui,sans-serif}
.lockup-md .subline{font-size:.6rem}.lockup-lg .subline{font-size:.7rem}
footer.site{border-top:1px solid var(--border)}
footer.site .bar{display:flex;flex-direction:column;align-items:flex-start;gap:1rem;padding-top:2rem;padding-bottom:2rem}
@media(min-width:640px){footer.site .bar{flex-direction:row;align-items:center;justify-content:space-between}}
footer.site p{font-size:.875rem;line-height:1.6;color:var(--dim);max-width:28rem;margin:0}
.setup-link{margin-top:.75rem;font-size:.75rem;color:rgba(167,158,141,.7);text-decoration:underline;text-underline-offset:4px;display:inline-block}
/* Sections */
.hero{position:relative;overflow:hidden;text-align:center}
.hero .inner{position:relative;padding:3.5rem 1rem 4rem}
@media(min-width:640px){.hero .inner{padding-top:5rem;padding-bottom:6rem}}
.hero .veil{pointer-events:none;position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 0%,#070709 78%)}
canvas.duality{pointer-events:none;position:absolute;inset:0;width:100%;height:100%}
.hero p.lede{margin:2rem auto 0;max-width:36rem;line-height:1.65;color:var(--dim)}
.cta-row{margin-top:2.25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}
@media(min-width:640px){.cta-row{flex-direction:row}.cta-row .btn{text-align:center}}
section.block{border-top:1px solid var(--border)}
section.alt{background:rgba(16,16,20,.4)}
section.block .inner{padding-top:3.5rem;padding-bottom:3.5rem}
h2{font-size:1.875rem;font-weight:600;margin:0}
h3{font-size:1.25rem;font-weight:600;margin:0}
p.dim{color:var(--dim);line-height:1.65}
.grid2{display:grid;gap:1rem;margin-top:2.25rem}
@media(min-width:640px){.grid2{grid-template-columns:1fr 1fr}}
.grid3{display:grid;gap:2rem;margin-top:2rem}
@media(min-width:768px){.grid3{grid-template-columns:repeat(3,1fr)}}
.cards3{display:grid;gap:1rem;margin-top:2.25rem}
@media(min-width:640px){.cards3{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.cards3{grid-template-columns:repeat(3,1fr)}}
.card{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:1.5rem;display:flex;flex-direction:column}
.card h3.gold{color:var(--accent)}
.card p{margin:.5rem 0 0;line-height:1.65;color:var(--dim);flex:1}
.big-stat{font-family:"Playfair Display",Georgia,serif;font-size:2.25rem;font-weight:600;color:var(--accent);margin:0}
.text-link{font-weight:600;color:var(--accent);text-decoration:underline;text-decoration-color:rgba(212,175,55,.4);text-underline-offset:4px}
.text-link:hover{text-decoration-color:var(--accent)}
.signin-link{margin-top:1.25rem;font-size:.875rem;font-weight:600;color:var(--accent);text-decoration:underline;text-decoration-color:rgba(212,175,55,.4);text-underline-offset:4px;align-self:flex-start}
/* Forms */
.form-wrap{position:relative;overflow:hidden}
.form-col{position:relative;max-width:28rem;margin:0 auto;padding:3rem 1rem 4rem}
@media(min-width:640px){.form-col{padding-top:4rem}}
.form-col .lockup-row{display:flex;justify-content:center}
.form-col h1{font-size:1.875rem;font-weight:600;text-align:center;margin:2rem 0 0}
.form-card{margin-top:2rem;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:1.5rem}
label.f{display:block;font-size:.875rem;font-weight:500;margin-top:1.25rem}
label.f:first-child{margin-top:0}
input.f,select.f,textarea.f{margin-top:.375rem;width:100%;border-radius:.5rem;border:1px solid var(--border);background:var(--bg);padding:.625rem .875rem;color:var(--text);outline:none;font:inherit}
input.f:focus,select.f:focus,textarea.f:focus{border-color:var(--accent)}
.pw-wrap{position:relative;margin-top:.375rem}
.pw-wrap input{margin-top:0;padding-right:4rem}
.pw-toggle{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);font-size:.875rem;color:var(--dim)}
.remember{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--dim);cursor:pointer;margin-top:1.25rem}
.remember input{width:1rem;height:1rem;accent-color:#d4af37}
.alert{margin-top:1rem;border-radius:.5rem;border:1px solid #9e1b24;background:rgba(158,27,36,.15);padding:.875rem;font-size:.875rem;line-height:1.6;color:#ffb3ab}
.submit{margin-top:1.5rem;width:100%;border-radius:999px;background:var(--accent);padding:.75rem;font-weight:600;color:#000}
.submit:hover{opacity:.9}.submit:disabled{opacity:.5}
.pair{display:flex;gap:.75rem;margin-top:1rem}
.pair>*{flex:1}
.panel{margin-top:1rem;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:1.25rem}
.note{margin-top:1.5rem;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:1rem;text-align:center;font-size:.875rem;line-height:1.6;color:var(--dim)}
.stub-badge{display:inline-block;border:1px solid var(--accent);color:var(--accent);border-radius:999px;padding:.35rem 1rem;font-size:.75rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
/* Floating AI assistant — same widget as the live portal */
.assistant{position:fixed;right:1rem;bottom:1rem;z-index:40;display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}
@media(min-width:640px){.assistant{right:1.25rem;bottom:1.25rem}}
.assistant-panel{display:none;flex-direction:column;overflow:hidden;width:min(380px,calc(100vw - 2rem));height:min(560px,calc(100dvh - 7.5rem));border-radius:1rem;border:1px solid var(--border);background:var(--surface);box-shadow:0 18px 50px rgba(0,0,0,.55)}
.assistant.open .assistant-panel{display:flex}
.assistant-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--border);padding:.875rem 1rem}
.assistant-panel header p{margin:0}
.assistant-title{font-family:"Playfair Display",Georgia,serif;font-size:1rem;font-weight:600}
.assistant-title span{color:var(--accent)}
.assistant-sub{margin-top:.125rem;font-size:.75rem;line-height:1.5;color:var(--dim)}
.assistant-close{flex-shrink:0;border:1px solid var(--border);border-radius:999px;padding:.25rem .625rem;font-size:.875rem;color:var(--dim)}
.assistant-msgs{flex:1;overflow-y:auto;padding:.875rem;display:flex;flex-direction:column;gap:.75rem}
.msg{display:flex}.msg.user{justify-content:flex-end}.msg.bot{justify-content:flex-start}
.msg .bubble{max-width:88%;border-radius:1rem;padding:.625rem .875rem;font-size:.875rem;line-height:1.6;white-space:pre-wrap}
.msg.user .bubble{max-width:85%;background:var(--accent);color:#000;font-weight:500;border-bottom-right-radius:.375rem}
.msg.bot .bubble{background:var(--bg);border:1px solid var(--border);border-bottom-left-radius:.375rem}
.msg .actions{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.625rem}
.msg .actions a,.msg .actions button{border:1px solid rgba(212,175,55,.6);border-radius:999px;padding:.25rem .625rem;font-size:.75rem;font-weight:600;color:var(--accent);text-decoration:none;background:none}
.msg .actions a:hover,.msg .actions button:hover{background:var(--accent);color:#000}
.quick{display:flex;flex-wrap:wrap;gap:.375rem;padding:0 .875rem .5rem}
.quick button{border:1px solid var(--border);border-radius:999px;padding:.375rem .625rem;font-size:.75rem;color:var(--dim)}
.quick button:hover{border-color:var(--accent);color:var(--text)}
.assistant-form{display:flex;gap:.5rem;border-top:1px solid var(--border);padding:.75rem}
.assistant-form input{min-width:0;flex:1;border-radius:999px;border:1px solid var(--border);background:var(--bg);padding:.625rem .875rem;font-size:.875rem;color:var(--text);outline:none}
.assistant-form input:focus{border-color:var(--accent)}
.assistant-form button{flex-shrink:0;border-radius:999px;background:var(--accent);padding:.625rem 1rem;font-size:.875rem;font-weight:600;color:#000}
.assistant-form button:disabled{opacity:.4}
.assistant-toggle{display:flex;align-items:center;gap:.625rem;border-radius:999px;border:1px solid rgba(212,175,55,.5);background:var(--surface);padding:.625rem 1.25rem .625rem .75rem;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.assistant-toggle:hover{border-color:var(--accent)}
.assistant-toggle .q{display:flex;width:2rem;height:2rem;align-items:center;justify-content:center;border-radius:999px;background:var(--accent);font-size:1rem;font-weight:700;color:#000}
.assistant-toggle .t1{display:block;font-size:.875rem;line-height:1.2;font-weight:600;text-align:left}
.assistant-toggle .t2{display:block;font-size:11px;line-height:1.2;color:var(--dim);text-align:left}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
