/* Enkidu Labs design system. Minimalist: warm paper + ink, one teal accent.
   Condensed light display type over Inter. Shared by every page.
   Fonts are self-hosted (fonts/), so there is no render-blocking third-party
   request and the identity holds even if a CDN is unreachable. */

@font-face {
  font-family: 'Yanone Kaffeesatz';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/yanone.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains.woff2') format('woff2');
}

:root {
  /* Ink — the near-black used for headings and emphasis.
     Kept under the old --navy names so existing markup stays valid. */
  --navy: #1C1B18;
  --navy-700: #3A3833;
  --navy-400: #B7B1A3;
  --navy-100: #E5E1D5;
  --navy-50: #EDEAE1;

  /* Teal — the single accent */
  --teal: #0F8F84;
  --teal-700: #0C6B63;
  --teal-800: #0A544E;
  --teal-100: #DCEAE6;
  --teal-50: #E9F1EF;

  /* Optional warm gold, reserved for the rare small marker. Sparse by design. */
  --gold: #C68A2E;

  /* Neutrals, warm greige so nothing reads as cold clinical white */
  --ink: #1C1B18;
  --body: #3C3A34;
  --muted: #6E6A60;
  --border: #DED9CC;
  --hairline: #E6E2D7;

  /* Surfaces */
  --bg: #F0EEE6;      /* the paper */
  --bg-soft: #E9E7DD; /* a touch darker, for alternate sections */
  --bg-tint: #E4E0D4;
  --surface: #F7F6F1; /* cards, a touch lighter than the paper */

  /* Shadows — barely there. Minimalism leans on borders, not depth. */
  --sh-xs: 0 1px 0 rgba(28,27,24,.04);
  --sh-sm: 0 1px 2px rgba(28,27,24,.04);
  --sh-md: 0 4px 16px rgba(28,27,24,.05);
  --sh-lg: 0 10px 30px rgba(28,27,24,.07);
  --sh-teal: none;

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 100px;

  /* Rhythm */
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: 'Yanone Kaffeesatz', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Headings: tall, condensed, light. The whole personality lives here. */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: .003em;
}

/* .serif kept as the class name; now drives the light display face */
.serif { font-family: var(--font-head); font-weight: 300; letter-spacing: .004em; }
.serif em, .display em, .head-x h2 em, .stat .num em, h1 em, h2 em, h3 em {
  font-style: normal; color: var(--teal); font-weight: 400;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Section eyebrow: short teal rule + uppercase label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--teal); }

/* Pill badge (static — no pulsing, calm by design) */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-50); color: var(--teal-800);
  border: 1px solid var(--teal-100);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r); cursor: pointer;
  border: 1px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-primary:active { background: var(--teal-800); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
.btn-on-dark { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-on-dark:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand .wordmark { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 21px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; transition: opacity .2s var(--ease); }
.brand .wordmark .tdot { color: var(--teal); }
.brand .sub { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: 4px; color: var(--teal-700); }
.brand:hover .wordmark { opacity: .7; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 14.5px; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1.5px; background: var(--teal); transition: width .25s var(--ease); }
.nav-links a.link:hover, .nav-links a.link[aria-current="page"] { color: var(--ink); }
.nav-links a.link:hover::after, .nav-links a.link[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 12vh, 132px) 0 clamp(52px, 9vh, 96px); }
.hero-center { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-lead { max-width: 940px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); margin: 22px 0 24px; }
.hero-center h1 { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 600px; line-height: 1.6; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-lead .lead { max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }

/* Editorial display heading (homepage) */
.meta { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.meta-row { display: flex; align-items: center; gap: 13px; margin-top: 34px; flex-wrap: wrap; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.display { font-family: var(--font-head); font-weight: 300; font-size: clamp(52px, 9.5vw, 108px); line-height: .98; letter-spacing: .002em; color: var(--ink); text-wrap: balance; }
.display em { font-style: normal; font-weight: 400; color: var(--teal); }

/* Legacy two-column hero styles kept for any page that still uses them */
.hero-x { position: relative; overflow: hidden; padding: clamp(56px, 10vh, 120px) 0; }
.hero-x-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); }
.hero-x-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-x-copy .display { margin: 20px 0 24px; }
.hero-x-copy .lead { margin: 0; }
.hero-x-visual, .vlabel, .panel-tag { display: none; }

/* Section header */
.head-x { max-width: 760px; margin-bottom: 48px; }
.head-x .meta { display: block; margin-bottom: 16px; }
.head-x h2 { font-family: var(--font-head); font-weight: 300; font-size: clamp(34px, 6vw, 62px); line-height: 1.0; letter-spacing: .003em; }
.head-x p { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 560px; }
.head-x.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 10vh, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.soft { background: var(--bg-soft); }
/* .dark kept but softened — a bordered panel, never a loud block */
.dark { background: var(--bg-soft); color: var(--body); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.dark h1, .dark h2, .dark h3 { color: var(--ink); }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; box-shadow: none;
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: var(--navy-400); }
.card.featured { border-color: var(--teal); }
.card.featured:hover { border-color: var(--teal-700); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100);
}
.icon-tile.navy { background: var(--navy-50); color: var(--ink); border-color: var(--border); }
.icon-tile svg { width: 23px; height: 23px; }
.tag { font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; }
.tag-soon { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); }
.tag-live { background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--border); }
.tag-demo { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.card h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; letter-spacing: .012em; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.62; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--teal-700); transition: gap .2s var(--ease); }
.card:hover .card-link { gap: 11px; }
.card.dashed { border-style: dashed; border-color: var(--border); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.card.dashed:hover { border-color: var(--teal); }

/* ---------- Feature rows ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon-tile { flex-shrink: 0; }
.feature h4 { font-size: 19px; font-weight: 500; margin-bottom: 6px; letter-spacing: .012em; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Founder card (now a quiet bordered panel) ---------- */
.founder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 46px); display: flex; gap: 28px; align-items: center; }
.founder .avatar { width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0; background: var(--teal); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 32px; }
.founder h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 400; margin-bottom: 10px; color: var(--ink); }
.founder p { color: var(--body); font-size: 16px; max-width: 560px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.stat .num { font-family: var(--font-head); font-weight: 300; font-size: 52px; color: var(--ink); line-height: 1; }
.stat .num em { color: var(--teal); font-style: normal; }
.stat .lbl { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--navy-400); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 54px 0 40px; background: var(--bg); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer .name { font-family: var(--font-head); font-weight: 500; font-size: 24px; color: var(--ink); letter-spacing: .01em; }
.footer p { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 300px; }
.footer-col h5 { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--teal-700); }
.footer-base { border-top: 1px solid var(--hairline); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit .info { width: 16px; height: 16px; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; cursor: help; border: 1px solid var(--border); }

/* ---------- Motion: gentle fade, nothing showy ---------- */
[data-stagger] > * { opacity: 0; transform: translateY(10px); animation: rise .6s var(--ease) forwards; }
[data-stagger] > *:nth-child(1) { animation-delay: .04s; }
[data-stagger] > *:nth-child(2) { animation-delay: .1s; }
[data-stagger] > *:nth-child(3) { animation-delay: .16s; }
[data-stagger] > *:nth-child(4) { animation-delay: .22s; }
[data-stagger] > *:nth-child(5) { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .display { font-size: clamp(46px, 13.5vw, 68px); }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 18px var(--pad) 26px;
    border-bottom: 1px solid var(--hairline); box-shadow: var(--sh-md);
    transform: translateY(-140%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a.link { padding: 12px 4px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
  .founder { flex-direction: column; text-align: center; }
  .founder p { margin: 0 auto; }
  .footer-base { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
