:root {
  --bg-0: #07090c;
  --bg-1: #0c1118;
  --ink: #e9e6df;
  --ink-dim: #9a958a;
  --gold: #c9a96a;
  --gold-soft: #d9c08b;
  --line: rgba(201, 169, 106, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.35) 100%);
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 42px;
  animation: fadeDown 1.2s ease 0.2s both;
}

.brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 500;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 1px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.02);
}

.login-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, 0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.login-btn:hover { color: var(--gold-soft); border-color: var(--gold); }
.login-btn:hover::before { transform: translateX(100%); }
.login-btn svg { transition: transform 0.4s ease; }
.login-btn:hover svg { transform: translate(3px, -3px); }

.center {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  width: min(92vw, 980px);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate(-50%, calc(-50% - 6px)); }
  50%      { transform: translate(-50%, calc(-50% + 6px)); }
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.title .line {
  display: block;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  animation: revealUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title .line:nth-child(1) { animation-delay: 0.4s; }
.title .line:nth-child(2) { animation-delay: 0.9s; }

.title .accent { color: var(--gold-soft); font-style: normal; }
.title .accent em { font-style: italic; color: var(--ink-dim); font-weight: 300; padding: 0 0.15em; }

.underline {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto 24px;
  animation: drawLine 1.4s ease 1.6s forwards;
}

@keyframes drawLine {
  to { width: 220px; }
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeIn 1.4s ease 2s forwards;
}

.footer {
  position: fixed;
  bottom: 24px; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  z-index: 5;
  animation: fadeIn 1.4s ease 2.4s forwards;
}

@keyframes revealUp {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .topbar { padding: 20px 22px; }
  .login-btn { padding: 9px 16px; font-size: 11px; }
  .brand-mark { font-size: 14px; }
  .center { animation-duration: 6s; }
}

@media (prefers-reduced-motion: reduce) {
  .center, .title .line, .underline, .tagline, .footer, .topbar { animation: none; }
  .title .line { opacity: 1; filter: none; transform: none; }
  .underline { width: 220px; }
  .tagline, .footer { opacity: 1; }
}
