/* Shared styling for byfrost.xyz. Palette lifted from the desktop app's
   frontend/src/styles.scss so the site and the app read as one product. */

:root {
  --bg: #090b10;
  --bg-card: #141824;
  --line: #232a3a;
  --text: #eef1f8;
  --text-soft: #a8b0c4;
  --text-muted: #6a7288;
  --accent-a: #38bdf8;
  --accent-b: #8b5cf6;
  --accent-c: #f472b6;
  --bridge: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(56, 189, 248, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
}

main { width: 100%; max-width: 40rem; text-align: center; }

.mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; display: block; }
.mark--small { width: 48px; height: 48px; margin-bottom: 1rem; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--bridge);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1.h1--small { font-size: clamp(1.9rem, 7vw, 2.5rem); }

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--text-soft);
}

.rule {
  width: 100%;
  height: 2px;
  margin: 2.5rem 0;
  border: 0;
  border-radius: 2px;
  background: var(--bridge);
  opacity: 0.5;
}

.lede {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--text-soft);
  text-align: left;
}

.lede p { margin: 0 0 1rem; }
.lede p:last-child { margin-bottom: 0; }
.lede strong { color: var(--text); font-weight: 600; }

.card {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card p { margin: 0 0 0.75rem; color: var(--text-soft); font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }

.version {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-soft);
}

code {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  color: #c4b5fd;
}

a { color: var(--accent-a); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-c); }

footer { margin-top: 3rem; font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  main { animation: rise 0.5s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}
