@font-face { font-family: "InterV"; src: url("vendor/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #07080A; --text: #EEE9E0; --muted: #9A948A; --faint: #5E5A54; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --accent: #C8A96A; --accent-2: #E3CB94; --accent-3: #F3E2B6; --err: #F2887C; --ok: #5ED3A5;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.5 "InterV", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- background: signal lines drifting through a dark room ---- */
.sp-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease .2s; }
body.ready .flow { opacity: 1; }
.flow .cable { fill: none; stroke-width: 1.2; stroke-linecap: round; opacity: .16; }
.flow .pulse { fill: none; stroke-width: 2.2; stroke-linecap: round; opacity: .85; filter: drop-shadow(0 0 6px currentColor);
  stroke-dasharray: 70 2600; animation: travel var(--d, 9s) linear infinite; animation-delay: var(--dl, 0s); }
.flow .node { fill: #101216; stroke: rgba(255,255,255,.07); }
.flow .led { opacity: .7; animation: blink 3.2s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes travel { from { stroke-dashoffset: 2670; } to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.glow.g1 { width: 900px; height: 620px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(200,169,106,.20), transparent); }
.glow.g2 { width: 700px; height: 500px; left: -220px; bottom: -260px; background: radial-gradient(closest-side, rgba(83,199,217,.07), transparent); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 360px; left: 50%; top: 50%; transform: translate(-50%, -52%);
  background: radial-gradient(closest-side, rgba(7,8,10,.92), rgba(7,8,10,.6) 55%, transparent); pointer-events: none; }
.hero { position: relative; }
.vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.65)); }

/* ---- hero ---- */
.sp { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 20px 96px; gap: 46px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark { position: relative; width: 76px; height: 76px; border-radius: 23px; display: grid; place-items: center; overflow: hidden;
  background: conic-gradient(from 210deg, #8C6D3A, var(--accent-2), var(--accent-3), var(--accent-2), #8C6D3A);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 22px 70px -18px rgba(200,169,106,.75), 0 2px 0 rgba(255,255,255,.25) inset;
  transform: scale(.82); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s ease; }
.mark span { width: 24px; height: 24px; transform: rotate(45deg); background: #0A0B0D; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.mark .shine { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  transform: translateX(-70%); }
body.ready .mark { transform: none; opacity: 1; }
body.ready .mark .shine { animation: shine 2.6s ease 0.6s 1 forwards; }
@keyframes shine { to { transform: translateX(70%); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo { width: clamp(300px, 44vw, 580px); height: auto; filter: drop-shadow(0 18px 50px rgba(224,198,146,.16));
  opacity: 0; transform: translateY(10px) scale(.985); transition: opacity 1.1s ease .15s, transform 1.2s cubic-bezier(.2,.8,.2,1) .15s; }
body.ready .logo { opacity: 1; transform: none; }
.word { margin: 26px 0 0; font-size: clamp(52px, 8vw, 92px); line-height: 1; font-weight: 300; letter-spacing: -.035em;
  background: linear-gradient(180deg, #FBF7EF 10%, #CFC4B2 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(10px); transition: opacity 1s ease .25s, transform 1s cubic-bezier(.2,.8,.2,1) .25s, letter-spacing 1.6s ease .25s; }
body.ready .word { opacity: 1; transform: none; letter-spacing: -.02em; }
.tagline { margin: 16px 0 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .01em;
  opacity: 0; transition: opacity 1s ease .6s; }
body.ready .tagline { opacity: 1; }

.byline { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--faint); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; opacity: 0; transition: opacity 1s ease .9s; }
body.ready .byline { opacity: 1; }
.byline b { color: #D9D2C6; font-weight: 600; letter-spacing: .06em; }
.byline img { height: 28px; max-width: 160px; object-fit: contain; }

/* ---- opening (desktop app) ---- */
.opening { display: grid; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; animation: rise .8s ease both; }
.opening .bar { width: 220px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.opening .bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: sweep 1.2s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.opening p { margin: 0; }

/* ---- doors ---- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; }
.door { position: relative; display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.door:nth-child(2) { animation-delay: .12s; }
.door::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: linear-gradient(160deg, rgba(227,203,148,.55), rgba(227,203,148,0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.door:hover { transform: translateY(-4px); box-shadow: 0 40px 90px -40px rgba(0,0,0,.95), 0 0 60px -30px rgba(200,169,106,.45); }
.door:hover::before, .door.active::before { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.door-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-2);
  background: linear-gradient(180deg, rgba(200,169,106,.2), rgba(200,169,106,.07)); border: 1px solid rgba(200,169,106,.25); }
.door-ic svg { width: 22px; height: 22px; stroke-width: 1.6; }
.door h2 { margin: 20px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.door p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ticks { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; font-size: 13.5px; color: #CFC8BC; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(200,169,106,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3CB94' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.door-act { margin-top: auto; display: grid; gap: 10px; }
.door-act .note { font-size: 12.5px; color: var(--faint); text-align: center; }
.door-act .welcome { font-size: 14px; color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 13px;
  border: 1px solid var(--line2); background: rgba(255,255,255,.04); text-decoration: none; cursor: pointer; font-weight: 550; font-size: 15px;
  transition: filter .15s, background .15s, transform .1s, border-color .15s; }
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.btn.primary { color: #16120A; border-color: transparent; background: linear-gradient(180deg, var(--accent-3), var(--accent-2) 45%, var(--accent));
  box-shadow: 0 10px 30px -12px rgba(200,169,106,.8), 0 1px 0 rgba(255,255,255,.5) inset; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.link { height: 32px; border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.btn.link:hover { color: var(--text); background: none; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

/* ---- sign-in ---- */
.signin { display: grid; gap: 14px; margin-top: 20px; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.signin label { display: grid; gap: 7px; font-size: 12px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.signin input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0,0,0,.35);
  font-size: 15px; letter-spacing: 0; text-transform: none; outline: none; transition: border-color .15s, box-shadow .15s; }
.signin input:focus { border-color: rgba(227,203,148,.65); box-shadow: 0 0 0 4px rgba(200,169,106,.12); }
.signin .err { min-height: 0; color: var(--err); font-size: 13.5px; }
.signin .err:empty { display: none; }
.door.active .ticks, .door.active #web-act { display: none; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.sp-foot { position: fixed; z-index: 1; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }
.sp-foot .dot { opacity: .6; }

body.leaving .sp, body.leaving .sp-foot { opacity: 0; transform: scale(.985); transition: opacity .5s ease, transform .6s ease; }

@media (max-width: 840px) {
  .doors { grid-template-columns: minmax(0, 440px); }
  .sp { justify-content: flex-start; padding-top: 56px; gap: 36px; }
  .sp-foot { position: static; padding: 0 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow .pulse { display: none; }
}

.doors.single { grid-template-columns: minmax(0, 440px); }
