/* Nyrax public site — nyrax.app
   Tokens mirror the app's dark theme (src/theme/colors.ts). The site commits
   to the dark look on purpose: it matches the icon, the splash screen, and the
   product's high-contrast, zero-noise character. */

:root {
  --bg: #0b0a12;
  --card: #17161f;
  --fg: #f0f4ff;
  --muted: #9a97b3;
  --primary: #1d6bf3;
  --primary-fg: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --max: 46rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* ------------------------------------------------------------------ text -- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

main.prose {
  max-width: var(--max);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.5rem;
  scroll-margin-top: 1.5rem;
}

p {
  margin: 0.85rem 0;
}

ol,
ul {
  margin: 0.85rem 0;
  padding-left: 1.35rem;
}

li {
  margin: 0.4rem 0;
}

strong {
  font-weight: 700;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.prose p {
  color: #d7dbea;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  padding: 3.5rem 0 1rem;
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(29, 107, 243, 0.12);
  border: 1px solid rgba(29, 107, 243, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.8rem);
}

.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin-top: 1.25rem;
}

.store-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--card);
}

/* --------------------------------------------------------------- feature -- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.features h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- notice -- */

.notice {
  margin: 4rem 0 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.notice h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- footer -- */

footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.footer-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: var(--max);
}

/* Long tables/code must scroll inside themselves, never the page. */
main :is(table, pre) {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
