:root {
  --ink: #14181f;
  --ink-soft: #4a5160;
  --line: #dfe3ea;
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --brand: #0f5ea8;
  --brand-dark: #0a4179;
  --ok: #1d7a4c;
  --warn: #9a6200;
  --plan: #5b5f6b;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--brand); }

header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

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

/* En el celular el menú es fijo: con 7 enlaces ocupaba 3 renglones de pantalla. Un renglón que se desliza. */
@media (max-width: 720px) {
  header.site .wrap { gap: 0 20px; padding-top: 8px; }
  header.site nav {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { white-space: nowrap; padding: 12px 0; }
}

/* ---------- status chip ---------- */

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.chip.beta { color: var(--warn); background: #fff7e8; }
.chip.ok { color: var(--ok); background: #eef8f2; }
.chip.dev { color: var(--brand); background: #eef4fb; }
.chip.plan { color: var(--plan); background: #f2f3f5; }

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

.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
  max-width: 20ch;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 26px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--brand);
}

.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { color: var(--brand); background: transparent; }
.btn.ghost:hover { background: var(--paper-soft); }

/* ---------- sections ---------- */

section { padding: 56px 0; border-bottom: 1px solid var(--line); }

section h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

section p.sub { color: var(--ink-soft); max-width: 62ch; margin: 0 0 30px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
}

.card h3 { margin: 10px 0 8px; font-size: 17px; letter-spacing: -0.01em; }

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- capability table ---------- */

.table-scroll { overflow-x: auto; }

table.caps {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

table.caps th, table.caps td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.caps th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

table.caps tr:last-child td { border-bottom: 0; }

/* ---------- screenshots ---------- */

figure.shot { margin: 0; }

figure.shot img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

figure.shot figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 9px;
}

/* ---------- notes ---------- */

.note {
  border-left: 3px solid var(--brand);
  background: var(--paper-soft);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.note strong { color: var(--ink); }

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

footer.site {
  padding: 34px 0 48px;
  color: var(--ink-soft);
  font-size: 14px;
}

footer.site a { color: var(--ink-soft); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf4;
    --ink-soft: #a3acbd;
    --line: #2a3140;
    --paper: #11151c;
    --paper-soft: #171d26;
    --brand: #5aa6e8;
    --brand-dark: #7bbcf2;
    --ok: #57c48b;
    --warn: #dda63f;
    --plan: #98a0b0;
  }

  .chip.beta { background: #2a2113; }
  .chip.ok { background: #12291e; }
  .chip.dev { background: #142230; }
  .chip.plan { background: #1c2029; }
  .btn.primary { color: #08121c; }
}
