:root {
  --bg:           #0d0f11;
  --surface:      #13161a;
  --border:       #1f2429;
  --border-hi:    #2e363f;
  --text-primary: #e8ecf0;
  --text-muted:   #5a6472;
  --text-dim:     #38424d;
  --accent:       #4f8ef7;
  --accent-soft:  rgba(79, 142, 247, 0.10);
  --accent-glow:  rgba(79, 142, 247, 0.30);
  --mono: "DM Mono", monospace;
  --sans: "Sora", sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Thread canvas ─── */
#thread-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

/* ─── Page ─── */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── Header ─── */
header {
  padding: 24px 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  animation: fade-up 0.5s 0.05s cubic-bezier(0.22,1,0.36,1) forwards;
}

.logo-mark { width: 26px; height: 26px; }

.logo-wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

/* ─── Main ─── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 60px;
  gap: 24px;
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  background: var(--surface);
  opacity: 0;
  animation: fade-up 0.5s 0.1s cubic-bezier(0.22,1,0.36,1) forwards;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ─── Title ─── */
.title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 620px;
  opacity: 0;
  animation: fade-up 0.5s 0.18s cubic-bezier(0.22,1,0.36,1) forwards;
}

.title em {
  font-style: normal;
  background: linear-gradient(135deg, #4f8ef7 0%, #a8c8fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Subtitle ─── */
.sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
  animation: fade-up 0.5s 0.26s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ─── Link ─── */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.15s;
  opacity: 0;
  animation: fade-up 0.5s 0.34s cubic-bezier(0.22,1,0.36,1) forwards;
}

.link:hover { color: var(--accent); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer ─── */
footer {
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(13,15,17,0.7);
  opacity: 0;
  animation: fade-up 0.5s 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover { color: var(--text-muted); }

@media (max-width: 480px) {
  header  { padding: 20px; }
  footer  { padding: 16px 20px; }
  .title  { font-size: 36px; }
}