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

:root {
  --bg:       #1e1e2e;
  --surface:  #181825;
  --crust:    #11111b;
  --text:     #cdd6f4;
  --subtext:  #a6adc8;
  --muted:    #585b70;
  --teal:     #94e2d5;
  --teal-dim: #1a3532;
  --green:    #a6e3a1;
  --blue:     #89b4fa;
  --mauve:    #cba6f7;
  --border:   #313244;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 226, 213, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 226, 213, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── GLOW BLOB ── */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(148, 226, 213, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px 80px;
}

/* ── NAV ── */
nav {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.nav-mark {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-login {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.15s;
}

.nav-login:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-arrow {
  display: inline-block;
  transition: transform 0.15s;
}

.nav-login:hover .nav-arrow {
  transform: translateX(4px);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--subtext);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

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

/* ── HERO ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

h1 em {
  font-style: normal;
  color: var(--teal);
}

/* ── FOOTER ── */
footer {
  margin-top: 80px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
}

footer span { color: var(--teal); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  h1 { font-size: 3.2rem; }
}
