/*
 * Design system — PUBLIC MARKETING SURFACE.
 *
 * One file per surface, deliberately. The app has its own (web/src/app/styles.css)
 * so the two can diverge on purpose rather than by accident, and restyling
 * either one is a single file rather than sixty.
 */

:root {
  color-scheme: light dark;

  --sky-900: #0b1b2b;
  --sky-700: #143a5a;
  --sky-500: #1f7a8c;
  --sky-300: #57b8c9;
  --leaf-500: #4a8c3f;
  --leaf-300: #8ec96f;

  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --fg: var(--sky-900);
  --fg-muted: #5b6b7a;
  --line: #e2e0d9;
  --accent: var(--sky-500);
  --accent-fg: #ffffff;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 34rem;
  --radius: 10px;
  --step: clamp(1.5rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1420;
    --bg-raised: #101f30;
    --fg: #eef4f8;
    --fg-muted: #9db0c2;
    --line: #1e3348;
    --accent: var(--sky-300);
    --accent-fg: #06121e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A single hairline horizon behind the hero — cheap, no image, no request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}

.wordmark svg { display: block; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--step) calc(var(--step) * 1.5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf-500);
}

h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 680;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--fg-muted);
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 570;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.button:hover { transform: translateY(-1px); }

.button--primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.button--ghost {
  border-color: var(--line);
  background: var(--bg-raised);
  color: var(--fg);
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

footer.site {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

footer.site a { color: inherit; }

.env-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f5a524;
  color: #241a05;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.env-badge[data-visible="true"] { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
