/* Nib — landing page. Pure CSS, no build step, no third-party requests. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #17171f;
  --muted: #5c5c6e;
  --line: rgba(20, 20, 40, .10);
  --accent: #5b4be6;
  --accent-press: #4a3bd0;
  --teal: #0f9e95;
  --err: #e5484d;
  --hero-1: #161334;
  --hero-2: #241c4f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 8px 30px rgba(20, 20, 40, .07);
  --shadow-card: 0 20px 60px rgba(10, 8, 35, .35);
  --maxw: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--hero-1); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd {
  font-family: var(--mono);
  font-size: .88em;
}
code {
  background: rgba(91, 75, 230, .08);
  color: #3f33b0;
  padding: .1em .4em;
  border-radius: 6px;
}
kbd {
  background: #2a2540;
  color: #ece9ff;
  border-radius: 6px;
  padding: .12em .45em;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  white-space: nowrap;
}

/* ---------- hero / nav ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(91, 75, 230, .45), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(15, 158, 149, .22), transparent 55%),
    linear-gradient(160deg, var(--hero-1), #211b48 70%);
  color: #eef0fb;
  padding-bottom: 88px;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .2px;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; color: #c9c2ff; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #c9cbe6; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 7px 15px;
  border-radius: 999px;
}
.nav-cta:hover { background: rgba(255, 255, 255, .10); }

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  font-weight: 700;
  color: #a99cff;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: #fff;
}
.lede {
  font-size: 1.18rem;
  color: #cfd1e8;
  margin: 0 0 28px;
  max-width: 36ch;
}
.lede strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 15.5px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: #1c1830; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.btn-primary:hover { background: #f1efff; }
.btn-ghost { color: #e7e7fb; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.hero-note { font-size: 13.5px; color: #9a9bc0; margin: 0; }

/* ---------- hero demo card ---------- */
.hero-demo { display: flex; justify-content: center; }
.demo-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 26px;
  width: 100%;
  max-width: 380px;
  position: relative;
}
.demo-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.demo-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e2e1ea;
}
.demo-bar span:first-child { background: #ff5f57; }
.demo-bar span:nth-child(2) { background: #febc2e; }
.demo-bar span:nth-child(3) { background: #28c840; }
.demo-text { font-size: 1.12rem; margin: 0 0 6px; }
.lint {
  text-decoration: underline wavy var(--err);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.demo-pop {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  background: #fcfcfe;
  box-shadow: var(--shadow);
}
.demo-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(91, 75, 230, .10);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 9px;
}
.demo-msg { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.demo-buttons { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
}
.chip-fix { background: var(--accent); color: #fff; }
.chip-ai { background: #f0eefb; color: #4a3bd0; border: 1px solid rgba(91, 75, 230, .2); }

/* ---------- sections ---------- */
.pitch {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 16px;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.5;
  color: #2a2a38;
}
.pitch strong { color: var(--ink); }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-alt { background: #f3f1ec; max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.01em;
  margin: 0 0 32px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* steps */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 16px;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.step-n {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--accent), #7a3df0);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin: 2px 0 5px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* models table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.models { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 540px; }
.models th, .models td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.models thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #faf9fd; }
.models tbody tr:last-child td { border-bottom: none; }
.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eceaf7;
  color: #4a3bd0;
}
.pill-premium { background: linear-gradient(150deg, var(--accent), #7a3df0); color: #fff; }
.muted-note { max-width: 700px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* privacy */
.privacy { max-width: 740px; margin: 0 auto; text-align: center; font-size: 1.15rem; color: #2a2a38; }
.privacy code { font-size: .82em; }

/* compatibility */
.compat { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 12px; }
.compat li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15.5px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.ok { color: var(--teal); font-weight: 800; }
.partial { color: #c98a00; font-weight: 800; }

/* ---------- footer ---------- */
.footer { background: var(--hero-1); color: #c9cbe6; margin-top: 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 52px 24px; text-align: center; }
.brand-footer { justify-content: center; margin-bottom: 12px; }
.footer-tag { margin: 0 0 20px; color: #9a9bc0; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.footer-links a { color: #cfd1e8; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-fine { margin: 0; font-size: 13px; color: #7e7fa6; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 26px; }
  .hero-demo { order: 2; }
  .lede { max-width: none; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .pitch { font-size: 1.15rem; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
