:root {
  --bg: #05060a;
  --text: #e6edf3;
  --muted: #8b95a7;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Background: slow-moving blurred auroras */
.aurora { position: fixed; inset: -20%; z-index: 0; filter: blur(80px) saturate(150%); opacity: .75; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.b1 { width: 55vmax; height: 55vmax; top: 0; left: -5%;
      background: radial-gradient(circle, var(--cyan), transparent 62%);
      animation: d1 24s ease-in-out infinite alternate; }
.b2 { width: 50vmax; height: 50vmax; top: 15%; right: -10%;
      background: radial-gradient(circle, var(--violet), transparent 62%);
      animation: d2 28s ease-in-out infinite alternate; }
.b3 { width: 45vmax; height: 45vmax; bottom: -10%; left: 25%; opacity: .55;
      background: radial-gradient(circle, var(--pink), transparent 62%);
      animation: d3 32s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(18vw, 12vh) scale(1.1); } }
@keyframes d2 { to { transform: translate(-16vw, 10vh) scale(.9); } }
@keyframes d3 { to { transform: translate(-10vw, -14vh) scale(1.15); } }

main { position: relative; z-index: 3; flex: 1; display: grid; place-items: center; padding: 48px 16px 32px; }
.card { width: 100%; max-width: 780px; text-align: center; }

/* ---------- Logo: a hexagon and the elliptic curve y² = x³ − 2x + 2 ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 14px; }
.mark { width: 104px; height: 104px; overflow: visible;
        filter: drop-shadow(0 0 18px rgba(139, 92, 246, .35)); transition: transform .5s ease; }
.logo:hover .mark { transform: scale(1.05); }
.mark .frame { opacity: 0; animation: fade .6s ease-out forwards; }
.mark .curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.wordmark { font-family: var(--mono); font-size: 15px; letter-spacing: .32em; padding-left: .32em; }
.wordmark b { font-weight: 600; color: var(--text); }
.wordmark span { color: var(--cyan); }

h1 { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em;
     font-size: clamp(28px, 6.4vw, 60px); line-height: 1.15; margin: 30px 0 20px;
     min-height: 1.15em; text-wrap: balance; font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0;
     background: linear-gradient(90deg, #ffffff 0%, var(--cyan) 55%, var(--violet) 100%);
     -webkit-background-clip: text; background-clip: text; color: transparent; }

.fx-word { white-space: nowrap; }
.fx-hidden { opacity: .5; }
.fx-shown { opacity: 1; transition: opacity .25s ease-out; }

.sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); line-height: 1.6; }

.status { margin-top: 32px; font-family: var(--mono); font-size: 13px; color: var(--cyan);
          display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
          border: 1px solid rgba(34, 211, 238, .25); border-radius: 999px;
          background: rgba(5, 6, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
       box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--cyan);
          vertical-align: -.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }

footer { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
         padding: 0 16px 22px; font-family: var(--mono); font-size: 11px; color: rgba(139, 149, 167, .55); }
.canada { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.canada svg { width: 36px; height: 18px; border-radius: 2px; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .35)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark .frame { opacity: 1; }
  .mark .curve { stroke-dashoffset: 0; }
}
