/* Hello Bike — static status / error pages
   Warm professional, minimal. Brand tokens from public site. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand-primary: #0d153b;
  --brand-secondary: #c2884f;
  --brand-secondary-hover: #d69958;
  --accent: #27bec9;
  --bg-deep: #0d153b;
  --bg-warm: #f7f1e8;
  --bg-wash: #eef4f5;
  --text: #2f3340;
  --text-muted: #5a6070;
  --text-soft: #7a8190;
  --surface: rgb(255 255 255 / 72%);
  --ring: #c2884f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 12% -10%, rgb(39 190 201 / 18%), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgb(194 136 79 / 22%), transparent 50%),
    linear-gradient(165deg, var(--bg-wash) 0%, var(--bg-warm) 48%, #fbf8f3 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.status-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(13 21 59 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(13 21 59 / 3%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.status-shell {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  text-align: center;
}

.brand {
  display: inline-block;
  font-family: 'Barlow Condensed', Inter, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--brand-primary);
  margin-bottom: 2.25rem;
  transition: color 200ms var(--ease);
}

.brand:hover {
  color: var(--brand-secondary);
}

.brand:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: 2px;
}

.status-mark {
  position: relative;
  margin: 0 auto 1.5rem;
  width: min(12rem, 55vw);
  height: min(12rem, 55vw);
  display: grid;
  place-items: center;
}

.status-mark__code {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Barlow Condensed', Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(5.5rem, 22vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgb(13 21 59 / 8%);
  user-select: none;
  pointer-events: none;
}

.status-mark__art {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--brand-primary);
  opacity: 0.88;
}

.status-mark__art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.status-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.status-title {
  margin: 0 0 0.85rem;
  font-family: 'Barlow Condensed', Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}

.status-copy {
  margin: 0 auto 1.85rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  appearance: none;
  transition:
    background 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease);
}

.status-btn--primary {
  background: var(--brand-secondary);
  color: #fff;
}

.status-btn--primary:hover {
  background: var(--brand-secondary-hover);
  transform: translateY(-1px);
}

.status-btn--ghost {
  background: transparent;
  color: var(--brand-primary);
  border-color: rgb(13 21 59 / 18%);
}

.status-btn--ghost:hover {
  border-color: var(--brand-primary);
  background: rgb(13 21 59 / 4%);
}

.status-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.status-hint {
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.status-hint a {
  color: var(--brand-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(194 136 79 / 55%);
  transition: text-decoration-color 180ms var(--ease);
}

.status-hint a:hover {
  text-decoration-color: var(--brand-secondary);
}

.status-hint a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Motion */
.status-shell > * {
  animation: status-rise 520ms var(--ease) both;
}

.status-shell > :nth-child(1) { animation-delay: 40ms; }
.status-shell > :nth-child(2) { animation-delay: 100ms; }
.status-shell > :nth-child(3) { animation-delay: 160ms; }
.status-shell > :nth-child(4) { animation-delay: 210ms; }
.status-shell > :nth-child(5) { animation-delay: 260ms; }
.status-shell > :nth-child(6) { animation-delay: 310ms; }

.status-mark__art {
  animation: status-float 5.5s ease-in-out infinite;
}

@keyframes status-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-shell > *,
  .status-mark__art {
    animation: none !important;
  }

  .status-btn--primary:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .status-actions {
    flex-direction: column;
    width: 100%;
  }

  .status-btn {
    width: 100%;
  }
}
