/* The anonymous MERIDIAN landing.
 *
 * This page's job is to say almost nothing. It ships no product screenshots, no feature copy,
 * no pricing, and no navigation — the sign-in control is the only way forward, and everything
 * MERIDIAN actually does lives behind it (/welcome). Keep this file small and self-contained:
 * the 95 KB marketing stylesheet it replaced pulled a whole design system onto a page that
 * renders eight elements, and every class it carried was a hint about the product.
 *
 * CSP is style-src 'self' — no inline styles anywhere, here or in the HTML.
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("/home/assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/home/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/home/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #e9eff8;
  --dim: #7b8fb0;
  --faint: #46587a;
  --line: #16233c;
  --brand: #f2a93b;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 50% 42%, rgba(63, 208, 201, 0.07), transparent 34rem),
    radial-gradient(circle at 50% 108%, rgba(242, 169, 59, 0.06), transparent 30rem),
    linear-gradient(180deg, #05080e 0%, #060a12 46%, #04070c 100%);
}

/* The meridian itself: one vertical hairline through the centre of the page, brightest at the
   mark and falling away top and bottom. It is the only ornament, and it is the whole idea. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(63, 208, 201, 0.05) 18%,
    rgba(63, 208, 201, 0.28) 46%,
    rgba(242, 169, 59, 0.20) 56%,
    rgba(63, 208, 201, 0.05) 84%,
    transparent 100%);
}

/* A faint graticule, masked away at the edges so the page reads as a field rather than a grid. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 35, 60, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 35, 60, 0.45) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, 0.85), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, 0.85), transparent 72%);
}

.veil {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.veil-mark {
  width: 46px;
  height: 46px;
  opacity: 0.9;
  margin-bottom: 2.25rem;
  animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.veil-name {
  /* Tracking has to scale WITH the type, not sit at a fixed 0.34em: eight letters plus eight
     fixed tracks overflowed a 390px phone, and the overflow shoved the whole centred column
     off the hairline. One custom property so the size, the tracking and the trailing-space
     correction below can never drift apart. */
  --track: clamp(0.14em, 2.4vw, 0.34em);
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.6rem, 7.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: var(--track);
  /* Tracking is applied to the RIGHT of every glyph, the LAST one included, so the box is a
     full track wider than the ink and centring the box leaves the letters half a track left of
     the hairline. Cancel the whole trailing track: that puts the box centre half a track right,
     which is exactly where it has to be for the INK to land on centre. Measure the glyphs with
     a Range, not getBoundingClientRect — the box is the thing that is deliberately off. */
  margin-right: calc(-1 * var(--track));
  line-height: 1;
  color: var(--ink);
}

.veil-rule {
  width: min(340px, 62vw);
  height: 1px;
  margin: 2rem 0 1.75rem;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 22%, #2b3f63 50%, var(--line) 78%, transparent);
}

.veil-lines {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.62;
  color: var(--dim);
}
.veil-lines b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.veil-go {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.75rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid #24344f;
  border-radius: 999px;
  background: rgba(13, 22, 38, 0.75);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.veil-go i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(242, 169, 59, 0.8);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
.veil-go:hover,
.veil-go:focus-visible {
  border-color: #3d5480;
  background: rgba(16, 28, 49, 0.9);
  transform: translateY(-1px);
}
.veil-go:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.veil-note {
  margin: 1.6rem 0 0;
  font-family: var(--mono);
  /* 0.68rem (10.88px) sat just under this repo's established 11px type floor (see
     tests/test_type_floor.py / scripts/shell_surfaces_qa.mjs's own MIN_TEXT_PX comment) —
     public_home/ is outside that test's CSS_FILES scope, so nothing had ever caught it. */
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.veil-foot {
  padding: 0 1.5rem 2rem;
  text-align: center;
  font-family: var(--mono);
  /* Same 11px floor as .veil-note above — 0.64rem (10.24px) was the smaller of the two misses. */
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #33445f;
}

@media (prefers-reduced-motion: reduce) {
  .veil-mark,
  .veil-go i { animation: none; }
  .veil-mark { opacity: 0.85; }
  .veil-go i { opacity: 0.9; }
  .veil-go { transition: none; }
}
