/*
 * The public site.
 *
 * Dark only, and the same palette as the studio, because the first thing the
 * front page has to establish is what the tool looks like. A light marketing
 * site in front of a dark application is two products.
 */

:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #101219;
  --line: #242833;
  --ink: #e6eaf3;
  --muted: #98a1b4;
  --faint: #626b7d;
  --accent: #7c5cff;
  --cyan: #22d3ee;
}

* { box-sizing: border-box; }

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

body.is-bare { overflow: hidden; }

main {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 22px 96px;
}

a { color: var(--cyan); text-decoration-color: #22d3ee55; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* nav */

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 44px;
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.nav__dot {
  width: 13px; height: 13px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
}
.nav__spacer { flex: 1; }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background 140ms, border-color 140ms, transform 140ms;
}
.btn:hover { background: #171a23; border-color: #333949; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5b45d6);
  border-color: transparent;
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #8f72ff, #6a53e6); }
.btn--sm { height: 32px; padding: 0 13px; font-size: 14px; }

/* hero */

.hero { padding-bottom: 12px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #7c5cff44;
  background: #7c5cff14;
  color: #b6a6ff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 20px 0 0;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 20px 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* the worked example */

.example {
  margin: 64px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.example__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.example__head strong { color: var(--ink); font-weight: 500; }
.example__grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .example__grid { grid-template-columns: 1fr; } }
.example__side { padding: 20px; }
.example__side + .example__side { border-left: 1px solid var(--line); }
@media (max-width: 720px) { .example__side + .example__side { border-left: none; border-top: 1px solid var(--line); } }
.example__label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}
.props { display: grid; gap: 7px; margin: 0; }
.props div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #161922;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.props dt { color: var(--muted); }
.props dd { margin: 0; color: var(--cyan); }
.quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: #161922;
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  font-size: 15px;
}
.after { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* sections */

section.block { margin-top: 80px; }
h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  font-weight: 700;
}
.block__lede { color: var(--muted); max-width: 620px; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.card h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.stack { display: grid; gap: 10px; }
.stack__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  align-items: baseline;
}
@media (max-width: 620px) { .stack__row { grid-template-columns: 1fr; gap: 4px; } }
.stack__row b { font-weight: 600; }
.stack__row span { color: var(--muted); font-size: 14px; }

.honest {
  border: 1px dashed #333949;
  border-radius: 12px;
  padding: 20px 22px;
  background: #0d0f15;
}
.honest ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.honest li { margin-bottom: 6px; }

footer.site {
  margin-top: 88px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
