/* ============================================================
   Deft AI — marketing site styles
   Dependency-free. Design tokens up top; components below.
   ============================================================ */

:root {
  /* palette */
  --ink:        #0b1220;
  --ink-soft:   #1e293b;
  --muted:      #5b6b82;
  --muted-2:    #8393a7;
  --line:       #e6e9f0;
  --line-soft:  #eef1f6;
  --bg:         #ffffff;
  --bg-alt:     #f7f9fc;
  --bg-ink:     #0b1220;
  --accent:     #4f46e5;   /* indigo */
  --accent-2:   #06b6d4;   /* cyan   */
  --accent-ink: #3730a3;
  --ok:         #0d9488;
  --warn:       #b45309;

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 8px 40px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 650; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--muted-2); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 550; font-size: .96rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(6,182,212,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(79,70,229,.10), transparent 55%);
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 54ch; margin-bottom: 30px; }
.hero .btn-row { margin-top: 6px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted-2); }

/* pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(13,148,136,.14); }

/* ---------- generic grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ec; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
  color: var(--accent); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }

/* ---------- alt section ---------- */
.alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- comparison table ---------- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-size: .95rem; background: var(--bg-alt); }
.compare thead th:nth-child(3) { color: var(--accent); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child, .compare th:first-child { font-weight: 650; color: var(--muted); width: 26%; }
.compare .them { color: var(--muted); }
.compare .us { color: var(--ink); font-weight: 550; }
.compare .us::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* ---------- workflow / phases ---------- */
.flow { counter-reset: step; display: grid; gap: 0; }
.phase {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft); position: relative;
}
.phase:last-child { border-bottom: none; }
.phase .num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.phase .num::before { content: counter(step); }
.phase h3 { margin-bottom: .3em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.tag-ai    { background: rgba(79,70,229,.12);  color: var(--accent-ink); }
.tag-human { background: rgba(13,148,136,.13); color: #0f766e; }

/* callout */
.callout {
  background: linear-gradient(135deg, rgba(79,70,229,.06), rgba(6,182,212,.06));
  border: 1px solid #e2e5f3; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 24px 26px; margin: 12px 0;
}
.callout h3 { margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

/* step flow diagram */
.pipeline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 4px; }
.pipeline .node {
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: .92rem;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap;
}
.pipeline .node.ai { border-color: #d7d5f5; }
.pipeline .node.human { border-color: #bfe6e0; }
.pipeline .arrow { color: var(--muted-2); font-weight: 700; }

/* code / commands */
.cmd-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cmd-table td { padding: 15px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table td:first-child { width: 190px; }
code, .code { font-family: var(--mono); font-size: .9em; }
td code, p code { background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 7px; color: var(--accent-ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-ink); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b7c2d4; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 42px 0; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); }

/* ---------- misc ---------- */
.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kicker-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.kicker-list .chk { color: var(--ok); font-weight: 800; flex: none; }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.stat .n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .cta-band { padding: 40px 24px; }
  .compare td:first-child, .compare th:first-child { width: 34%; }
  .split { grid-template-columns: 1fr !important; }
}

/* two-column split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
