/* AgentKrafts website. Palette and type follow the Quegrid design system the
   pitch decks use: violet accent, near-black ink, Geist / Atkinson Hyperlegible
   Next / Geist Mono. */
:root {
  --ink: #121022;
  --ink-2: #5b5870;
  --paper: #fbfbfd;
  --paper-2: #f1f0f7;
  --line: #cfcbe0;
  --accent: #6d3fe0;
  --accent-strong: #5b2fd0;
  --accent-soft: #ece6fc;
  --night: #0f0d17;
  --night-ink: #f4f2fa;
  --night-ink-2: #dcd8ea;
  --night-accent: #a68bff;
  --card: #ffffff;
  --warm: #fff6e5;
  --warm-line: #e8c98a;
  --warm-ink: #7a4e00;

  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 13, 23, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(244, 242, 250, 0.08);
  color: var(--night-ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--night-ink-2);
}
.nav a:hover {
  color: var(--night-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fbfbfd;
}
.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: rgba(244, 242, 250, 0.28);
  color: var(--night-ink);
}
.btn-ghost:hover {
  border-color: var(--night-accent);
}

.nav .btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
  color: #fbfbfd;
}

@media (max-width: 860px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(72px, 12vw, 148px) 0 clamp(64px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(109, 63, 224, 0.35), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero .kicker {
  color: var(--night-accent);
}

.bar {
  width: 80px;
  height: 5px;
  background: var(--night-accent);
  margin: 28px 0 32px;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  max-width: 16ch;
}

.hero .lede {
  margin-top: 28px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--night-ink-2);
  max-width: 38ch;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.tone-2 {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
}

.section-head p {
  font-size: 20px;
  color: var(--ink-2);
}

.grid {
  display: grid;
  gap: 40px 56px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rule-item {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.rule-item .num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-2);
}

.rule-item h3 {
  font-size: 26px;
  line-height: 1.15;
}

.rule-item p {
  color: var(--ink);
}

/* ---------- Statement ---------- */

.statement {
  background: var(--accent);
  color: #fbfbfd;
}

.statement .kicker {
  color: #fbfbfd;
  opacity: 0.85;
}

.statement .big {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(72px, 14vw, 168px);
  line-height: 0.95;
  margin: 20px 0 8px;
}

.statement h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  max-width: 24ch;
}

.statement p {
  margin-top: 20px;
  font-size: 20px;
  max-width: 52ch;
}

.statement .source {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- Product ---------- */

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .product-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.product-intro h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  margin-top: 14px;
}

.product-intro .lede {
  margin-top: 20px;
  font-size: 20px;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tags li {
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--card);
}

.chat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 14px;
  font-size: 16px;
  line-height: 1.45;
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9d55;
  margin-right: 6px;
}

.msg {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 14px;
}

.msg.parent {
  justify-self: end;
  background: var(--accent);
  color: #fbfbfd;
  border-bottom-right-radius: 4px;
}

.msg.agent {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.msg .who {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.card-note {
  background: var(--warm);
  border: 1px solid var(--warm-line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
}

.card-note .who {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm-ink);
  margin-bottom: 2px;
}

.chat-foot {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.subhead {
  font-size: 24px;
  line-height: 1.2;
  margin: clamp(56px, 7vw, 80px) 0 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.card p {
  font-size: 16px;
  color: var(--ink-2);
}

.card .kicker {
  font-size: 12px;
}

.fit {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.fit th {
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
}

.fit td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fit td:first-child {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  width: 34%;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .fit thead {
    display: none;
  }
  .fit tr {
    display: grid;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .fit td {
    border: 0;
    padding: 0;
    width: auto !important;
  }
}

.callout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.callout p:last-child {
  font-size: 20px;
}

@media (max-width: 640px) {
  .callout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* ---------- Rows (reliability) ---------- */

.rows {
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.row h3 {
  font-size: 26px;
  line-height: 1.15;
}

.row p {
  font-size: 19px;
}

@media (max-width: 700px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* ---------- Engagement ---------- */

.phase {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.phase.is-key {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.phase .kicker {
  color: var(--ink-2);
}
.phase.is-key .kicker {
  color: var(--accent);
}

.phase h3 {
  font-size: 28px;
}

/* ---------- Team ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
}

.about h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  margin-top: 14px;
}

.about .body {
  display: grid;
  gap: 20px;
  font-size: 20px;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--night);
  color: var(--night-ink);
}

.contact .kicker {
  color: var(--night-accent);
}

.contact h2 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  max-width: 14ch;
}

.contact .lede {
  margin-top: 24px;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--night-ink-2);
  max-width: 42ch;
}

.contact .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.mail {
  font-family: var(--mono);
  font-size: 18px;
  margin-top: 28px;
  color: var(--night-ink-2);
}
.mail a {
  color: var(--night-ink);
}

.site-footer {
  background: var(--night);
  color: var(--night-ink-2);
  border-top: 1px solid rgba(244, 242, 250, 0.08);
  padding: 28px 0 36px;
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
