/* devcloud.com — friendly error chrome */
:root {
  --bg: #0a0e1a;
  --bg-grad: radial-gradient(ellipse at top, #1a1f3a 0%, #0a0e1a 60%);
  --fg: #e8ecff;
  --fg-dim: #8892b8;
  --accent: #6ee7ff;
  --accent-glow: rgba(110, 231, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--bg-grad);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.storm {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 0 2rem;
  filter: drop-shadow(0 8px 32px var(--accent-glow));
  user-select: none;
}

.code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

p.lede {
  font-size: 1.125rem;
  color: var(--fg-dim);
  margin: 0 0 2rem;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--accent);
  color: #06121a;
  border-color: var(--accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #8aeeff;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  opacity: 0.6;
  margin-top: auto;
  padding-top: 2rem;
}

.meta a {
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.meta a:hover {
  color: var(--fg);
}

@media (prefers-reduced-motion: no-preference) {
  .storm {
    animation: drift 12s ease-in-out infinite alternate;
  }
}

@keyframes drift {
  from { transform: translateY(-4px); }
  to   { transform: translateY(4px); }
}
