/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Palette */
  --bg:            #080809;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text-primary:  rgba(255, 255, 255, 0.95);
  --text-body:     rgba(255, 255, 255, 0.70);
  --text-muted:    rgba(255, 255, 255, 0.42);

  --accent-red:    #ff4545;
  --accent-red-bg: rgba(255, 69, 69, 0.12);
  --accent-red-border: rgba(255, 69, 69, 0.30);

  --cta-bg:        rgba(255, 255, 255, 0.95);
  --cta-text:      #080809;
  --cta-hover:     #ffffff;
  --cta-shadow:    0 8px 32px rgba(0, 0, 0, 0.45);

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  0.875rem;
  --gap-md:  1.5rem;
  --gap-lg:  2.25rem;
  --gap-xl:  3.5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Background layers ──────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 69, 69, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(80, 80, 120, 0.08) 0%, transparent 70%);
  z-index: 0;
}

/* ─── Layout ─────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--gap-lg), 8vw, 6rem) var(--gap-md) var(--gap-lg);
  gap: var(--gap-xl);
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: min(540px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--gap-sm), 3vw, var(--gap-md));
  text-align: center;

  /* Entrance animation */
  opacity: 0;
  transform: translateY(20px);
  animation: card-in 0.8s var(--ease-out) 0.1s forwards;
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Status badge ───────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--accent-red-border);
  border-radius: 100px;
  background-color: var(--accent-red-bg);
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  flex-shrink: 0;
  animation: pulse 2s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ─── Message ────────────────────────────────────────────── */
.message {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--gap-xs);
}

.headline {
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.lead {
  margin: 0;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-body);
  max-width: 42ch;
}

/* ─── CTA Button ─────────────────────────────────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--gap-xs);
  padding: 0.75rem 1.5rem;
  background-color: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--cta-shadow);
  transition:
    background-color 180ms ease,
    transform 180ms var(--ease-out),
    box-shadow 180ms ease;
}

.cta-button:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: var(--cta-shadow);
}

.cta-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.cta-button__arrow {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--ease-out);
  flex-shrink: 0;
}

.cta-button:hover .cta-button__arrow {
  transform: translateX(3px);
}

/* ─── Hint ───────────────────────────────────────────────── */
.hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hint__link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

.hint__link:hover {
  color: var(--text-primary);
}

.hint__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Delayed fade-up — hidden until JS reveals it after 10s */
.hint--delayed {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  pointer-events: none;
}

.hint--delayed.hint--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  opacity: 0;
  animation: fade-in 0.6s ease 0.7s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.footer__text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer__link:hover {
  color: var(--text-body);
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card, .footer { opacity: 1; transform: none; }
}

/* ─── Mobile tweaks ──────────────────────────────────────── */
@media (max-width: 480px) {
  .lead { font-size: 0.95rem; }
  .cta-button { width: 100%; justify-content: center; }
}
