/* Public landing page (website/). Dark, like the extension's own surfaces, and
 * built on the same design-system tokens — no raw colour literals here, only
 * var(--…) references. lib/site-style.test.ts fails the suite on a literal.
 *
 * Tokens come from the shared source of truth so the site and the extension can
 * never drift to different values. When served, the deploy carries assets/
 * (and public/fonts) alongside; opened directly as a file, colours still resolve
 * and type falls back to system-ui.
 */

@import '../assets/tokens.css';

* {
  box-sizing: border-box;
}

:root {
  font-family: var(--font-display);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 15% -10%, var(--stage-2), transparent),
    radial-gradient(900px 500px at 100% 0%, var(--stage-wash), transparent),
    var(--stage-0);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-hi);
  background: var(--fill-subtle);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-hi);
}

/* ---- Layout shell ---- */
.hero,
.section,
.footer {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
}
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--text-hi);
}
.nav .wordmark {
  margin-right: auto;
  font-size: 1.15rem;
}

/* ---- Hero ---- */
.hero-body {
  padding-block: 64px 88px;
  max-width: 720px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 1.2rem;
  color: var(--text-2);
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--state-downloading);
  color: var(--stage-0);
  box-shadow: var(--shadow-panel);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  color: var(--text-1);
  border-color: var(--line-2);
  background: var(--fill-subtle);
}
.btn-ghost:hover {
  background: var(--fill-subtle-hover);
  color: var(--text-hi);
}

/* ---- Sections ---- */
.section {
  padding-block: 56px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--text-hi);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 32px;
}

/* ---- Cards ---- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--stage-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text-hi);
}
.card-text {
  margin: 0;
  color: var(--text-2);
}

/* ---- Installer ---- */
.install {
  border-top: 1px solid var(--line-1);
}
.installer {
  background: var(--stage-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-panel);
}
.installer-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.installer-primary .btn-primary {
  font-size: 1.05rem;
  padding: 14px 26px;
}
.installer-version {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.installer-fallbacks {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
}
.installer-fallbacks-label {
  color: var(--text-3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.installer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.installer-choice {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: var(--fill-subtle);
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.95rem;
}
.installer-choice:hover {
  background: var(--fill-subtle-hover);
  color: var(--text-hi);
}
.installer-soon {
  margin: 0;
  color: var(--text-2);
}
.install-note {
  color: var(--text-3);
  font-size: 0.95rem;
  margin-top: 20px;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-block: 40px;
  margin-top: 32px;
  border-top: 1px solid var(--line-1);
}
.footer-note {
  color: var(--text-3);
  font-size: 0.9rem;
}
