:root {
  --bg: #07100d;
  --bg-raised: #0d1a15;
  --line: rgba(52, 211, 153, 0.14);
  --text: #e8f3ee;
  --muted: #8fa89d;
  --emerald: #34d399;
  --emerald-deep: #059669;
  --gutter: clamp(20px, 5vw, 56px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Brick-course backdrop, fading out from the top-centre glow. */
.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(52, 211, 153, 0.16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 132px 88px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 66px 44px / 132px 88px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 20%, transparent 78%);
}

.bar,
main,
footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.mark {
  width: 26px;
  height: 26px;
  fill: var(--emerald);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--muted);
  font-size: 13px;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 10vh, 120px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 10vw, 112px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 span {
  color: var(--emerald);
  text-shadow: 0 0 48px rgba(52, 211, 153, 0.35);
}

.lede {
  max-width: 34ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #04130d;
}

.btn.primary:hover {
  background: #5ee0b0;
}

.btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .status i {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
