/* ===== Theme tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f9f7;
  --text: #16191c;
  --text-muted: #5b6269;
  --accent: #1a8f5c;
  --accent-dark: #146e48;
  --accent-soft: #e6f5ee;
  --yellow: #c98a12;
  --yellow-soft: #fbf0d9;
  --ink: #12161d;
  --border: #e6e8e6;
  --card-bg: #ffffff;
  --radius: 8px;
  --max-width: 1000px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Public Sans", var(--font);
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141a;
    --bg-alt: #181b21;
    --text: #edf0ee;
    --text-muted: #9aa3a0;
    --accent: #33c17c;
    --accent-dark: #2aa869;
    --accent-soft: #16281f;
    --yellow: #e0ac3c;
    --yellow-soft: #2c2413;
    --border: #262b27;
    --card-bg: #181b21;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Nav ===== */
.site-nav {
  padding: 22px 0;
  background: var(--ink);
}
.site-nav .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.site-nav .links a {
  margin-left: 28px;
  color: #9aa3ad;
  font-size: 0.92rem;
}
.site-nav .links a:hover { color: #fff; text-decoration: none; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 84px;
  background: var(--ink);
}
.hero .kicker {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-left: 18px;
}
.hero .kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  line-height: 1.05;
  color: #fff;
}
.hero .role {
  color: #e4e7eb;
  font-weight: 500;
  font-size: 1.34rem;
  line-height: 1.55;
  max-width: 740px;
  margin-bottom: 20px;
}
.hero p {
  color: #9aa3ad;
  max-width: 660px;
  font-size: 1.06rem;
  line-height: 1.6;
}
.hero .hl-g, .hero .hl-y { font-weight: 700; }
.hero .hl-g { color: var(--accent); }
.hero .hl-y { color: var(--yellow); }

/* ===== Featured case study tile ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 18px;
}
.feature-tile {
  display: block;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 90px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #fff;
}
.feature-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.28);
  text-decoration: none;
}
.tile-banner {
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  background: rgba(255,255,255,0.03);
}
.tile-banner .tb-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5fd39a;
}
.tile-banner .tb-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9aa1ad;
}
.feature-body { padding: 32px 34px 34px; }
.feature-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.feature-top h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #fff;
}
.feature-top p {
  color: #9aa3ad;
  font-size: 0.98rem;
  max-width: 62ch;
  margin: 0;
}
.feature-icon {
  width: 38px;
  height: 38px;
  color: #5fd39a;
  flex-shrink: 0;
}

.feature-stats-line {
  margin: 22px 0 26px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #7d858f;
}

.feature-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 12px 24px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.feature-tile:hover .feature-cta-btn { background: #33c17c; }

/* ===== Case study cards (legacy grid, kept for future entries) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 32px 0 88px;
}
.card {
  background: var(--card-bg);
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  text-decoration: none;
}
.card.placeholder {
  border-top-color: var(--border);
  opacity: 0.55;
}
.card-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 4px;
}
.card .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.card h3 {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
}
.footer-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-contact {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact .sep { color: var(--border); }
