:root {
  /* Warm palette — echoing NuPhy keycaps + transparent case */
  --bg: #faf7ee;          /* cream page bg, like keycap white */
  --bg-alt: #f0ecdf;      /* warmer cream for alternating sections */
  --bg-sage: #e6ece1;     /* sage mint, like keyboard gray keys */
  --bg-surface: #fcf9ee;  /* keycap cream — a hair brighter/warmer than bg */
  --bg-deep: #2a2a28;     /* warm charcoal — footer + dark callouts */

  --text: #2a2a28;
  --text-muted: #6b6a63;
  --text-faint: #9d9890;
  --text-on-dark: #faf7ee;
  --text-on-dark-muted: rgba(250, 247, 238, 0.66);

  --border: #e0dbcc;
  --border-strong: #c9c3b2;

  /* Keycap accents — used sparingly, one at a time */
  --c-red: #d94638;
  --c-blue: #2d4bc6;
  --c-yellow: #eac33a;
  --c-green: #4a9f5a;

  --accent: var(--c-blue);
  --accent-hover: #1f3aa8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --container: 1200px;
  --container-narrow: 780px;
  --pad-x: 24px;
  --section-y: clamp(80px, 10vw, 140px);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.009em;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}
.container.narrow { max-width: var(--container-narrow); }

/* =========================================================
 *  NAV — cream sticky, subtle border on scroll
 * ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 247, 238, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

/* Wordmark: nuphy.ai — period rendered as red knob */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.logo .logo-nuphy { font-weight: 600; }
.logo .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  margin: 0 3px;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.logo .logo-ai { font-weight: 500; opacity: 0.78; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 450;
}
.nav-links a:hover { color: var(--text); }

/* small keycap — like a modifier key */
.lang-toggle {
  border: 1px solid #cfc7b4;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-surface) 100%);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.05),
    0 2px 0 0 #c4bca8,
    0 3px 0 0 #a69e8a,
    0 5px 8px rgba(42, 42, 40, 0.1);
}
.lang-toggle:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9ec 100%);
  transform: translateY(1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.05),
    0 1px 0 0 #c4bca8,
    0 2px 0 0 #a69e8a,
    0 3px 6px rgba(42, 42, 40, 0.12);
}
.lang-toggle:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 0 0 0 #c4bca8,
    0 1px 0 0 #a69e8a,
    0 1px 2px rgba(42, 42, 40, 0.12);
}

/* =========================================================
 *  HERO — warm cream, typography-led, with a single red knob mark
 * ========================================================= */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: 180px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle paper texture via overlapping radial warmth */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(234, 195, 58, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(45, 75, 198, 0.04), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero .container { text-align: center; position: relative; }

/* Decorative red knob — translucent red plastic rotary encoder.
   Split into two layers so the cylinder body stays rigid while only
   the top face rotates on hover (like a real encoder shaft):
     .hero-knob      → outer cylinder body (side walls, drop shadow)
     .hero-knob-face → inner translucent top face (rotates)
   Design rule: every shadow is a deeper RED, never black or brown.
   Reference: NuPhy 8-BIT Odyssey knob — a jelly-like plastic encoder. */
.hero-knob {
  position: absolute;
  top: -28px;
  right: 3%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  /* Base red for the cylinder body (shows at the exposed rim) */
  background: linear-gradient(180deg, #b23427 0%, #7a2116 100%);
  box-shadow:
    /* Cylindrical side wall — stays static like a real cylinder */
    0 2px 0 0 #c4382a,
    0 4px 0 0 #b43428,
    0 6px 0 0 #a43025,
    0 8px 0 0 #942c22,
    0 10px 0 0 #84281e,
    0 12px 0 0 #74231a,
    0 14px 0 0 #651f16,
    /* Drop shadow — soft warm red */
    0 16px 20px rgba(200, 75, 45, 0.15),
    0 26px 40px rgba(200, 75, 45, 0.06);
}

/* Rotating top face — carries all the translucent plastic look + cross */
.hero-knob-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  background:
    /* Diagonal highlight (top-left light source) */
    linear-gradient(135deg,
      rgba(255, 220, 205, 0.3) 0%,
      rgba(255, 180, 160, 0.1) 32%,
      transparent 55%),
    /* Rim vignette */
    radial-gradient(circle at 50% 50%,
      transparent 0%,
      transparent 78%,
      rgba(150, 40, 28, 0.2) 100%),
    /* Vivid translucent red base */
    linear-gradient(180deg, #e84535 0%, #d83c2b 50%, #c63627 100%);
  box-shadow:
    /* Inner glow — light scattering through translucent material */
    inset 0 0 24px rgba(255, 140, 115, 0.32),
    /* Matte highlight on the lit quadrant */
    inset 4px 4px 12px rgba(255, 200, 180, 0.22),
    /* Far-side internal shade */
    inset -4px -4px 14px rgba(138, 42, 28, 0.28),
    /* Edge rim */
    inset 0 0 0 1.5px rgba(125, 38, 24, 0.3);
}
/* Hover: only the top face rotates — the cylinder body below stays put */
.hero-knob:hover .hero-knob-face,
.hero-knob:active .hero-knob-face {
  transform: rotate(90deg);
}

/* Carved cross grooves — interior is DEEP RED, rotates with the face */
.hero-knob-face::before,
.hero-knob-face::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
}
/* horizontal groove */
.hero-knob-face::before {
  width: 44%;
  height: 12%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg,
    rgba(148, 44, 30, 0.45) 0%,
    rgba(112, 30, 20, 0.58) 52%,
    rgba(148, 44, 30, 0.45) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 185, 165, 0.5),
    inset 0 -1.5px 0 rgba(92, 22, 14, 0.55);
}
/* vertical groove */
.hero-knob-face::after {
  width: 12%;
  height: 44%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg,
    rgba(148, 44, 30, 0.45) 0%,
    rgba(112, 30, 20, 0.58) 52%,
    rgba(148, 44, 30, 0.45) 100%);
  box-shadow:
    inset 1.5px 0 0 rgba(255, 185, 165, 0.5),
    inset -1.5px 0 0 rgba(92, 22, 14, 0.55);
}

@media (max-width: 720px) {
  .hero-knob {
    width: 60px;
    height: 60px;
    top: -20px;
    right: 5%;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 32px;
  background: transparent;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
}

h1.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 auto 26px;
  max-width: 1000px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
 *  KEYCAP BUTTONS — physical 3D feel, dome + side walls
 * ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: -0.003em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  will-change: transform;
  position: relative;
}

/* Primary = the blue ENTER keycap */
.btn-primary {
  background: linear-gradient(180deg, #3d5ad6 0%, var(--c-blue) 55%, #2844b0 100%);
  color: #ffffff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 2px 0 0 #1f3aa8,
    0 4px 0 0 #172c8f,
    0 6px 0 0 #112377,
    0 10px 22px rgba(45, 75, 198, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #4b67dc 0%, #3357d6 55%, #2e4bc0 100%);
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 1px 0 0 #1f3aa8,
    0 3px 0 0 #172c8f,
    0 5px 0 0 #112377,
    0 8px 18px rgba(45, 75, 198, 0.4);
}
.btn-primary:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 0 0 0 #1f3aa8,
    0 1px 0 0 #172c8f,
    0 1px 0 0 #112377,
    0 2px 6px rgba(45, 75, 198, 0.3);
}

/* Ghost = a regular cream keycap */
.btn-ghost {
  background: linear-gradient(180deg, #ffffff 0%, #fdfaee 55%, #f4eedc 100%);
  color: var(--text);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(42, 42, 40, 0.04),
    0 2px 0 0 #d5cdb7,
    0 4px 0 0 #b8b19c,
    0 6px 0 0 #9a9480,
    0 10px 20px rgba(42, 42, 40, 0.1);
}
.btn-ghost:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fffbf0 55%, #f7f2e0 100%);
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(42, 42, 40, 0.04),
    0 1px 0 0 #d5cdb7,
    0 3px 0 0 #b8b19c,
    0 5px 0 0 #9a9480,
    0 8px 16px rgba(42, 42, 40, 0.12);
}
.btn-ghost:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(42, 42, 40, 0.05),
    0 0 0 0 #d5cdb7,
    0 1px 0 0 #b8b19c,
    0 1px 0 0 #9a9480,
    0 2px 5px rgba(42, 42, 40, 0.12);
}

/* Spacebar — wide yellow keycap, wide aspect ratio */
.btn-spacebar {
  background: linear-gradient(180deg, #f7d856 0%, var(--c-yellow) 55%, #d6a81f 100%);
  color: #2a2a28;
  padding: 20px 72px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow:
    inset 0 2.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.15),
    0 3px 0 0 #b8920e,
    0 5px 0 0 #957708,
    0 8px 0 0 #745c03,
    0 14px 28px rgba(234, 195, 58, 0.4);
}
.btn-spacebar:hover {
  background: linear-gradient(180deg, #fbde62 0%, #f3cb40 55%, #dcae25 100%);
  transform: translateY(1px);
  box-shadow:
    inset 0 2.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.15),
    0 2px 0 0 #b8920e,
    0 4px 0 0 #957708,
    0 7px 0 0 #745c03,
    0 11px 22px rgba(234, 195, 58, 0.45);
}
.btn-spacebar:active {
  transform: translateY(7px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 0 0 0 #b8920e,
    0 1px 0 0 #957708,
    0 1px 0 0 #745c03,
    0 3px 8px rgba(234, 195, 58, 0.3);
}

/* =========================================================
 *  SECTIONS
 * ========================================================= */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-sage { background: var(--bg-sage); }

/* Pre-footer CTA — anchored by the yellow spacebar */
.section-cta {
  background: var(--bg);
  text-align: center;
  padding: calc(var(--section-y) * 0.9) 0;
}
.section-cta .cta-row { margin-top: 40px; justify-content: center; }

.section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 580;
  letter-spacing: -0.024em;
  line-height: 1.12;
  margin: 0 0 22px;
  text-align: center;
  color: var(--text);
}

.section-lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 20px;
}

/* =========================================================
 *  PILLARS — tactile cards with colored keycap numerals
 * ========================================================= */
.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Pillars rendered as giant 3D keycaps */
.pillar {
  background: linear-gradient(180deg, #fffef5 0%, var(--bg-surface) 55%, #f4eedc 100%);
  border: 1px solid rgba(42, 42, 40, 0.05);
  border-radius: 24px;
  padding: 40px 32px 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 0 rgba(0, 0, 0, 0.03),
    0 2px 0 0 #dcd4bf,
    0 4px 0 0 #c2baa5,
    0 6px 0 0 #a69e89,
    0 14px 30px -8px rgba(42, 42, 40, 0.12);
}
/* Hover: the big keycap presses down — side walls collapse */
.pillar:hover {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 0 rgba(0, 0, 0, 0.03),
    0 1px 0 0 #dcd4bf,
    0 2px 0 0 #c2baa5,
    0 4px 0 0 #a69e89,
    0 10px 22px -8px rgba(42, 42, 40, 0.1);
}
/* Active: fully pressed */
.pillar:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 0 rgba(0, 0, 0, 0.04),
    0 0 0 0 #dcd4bf,
    0 1px 0 0 #c2baa5,
    0 2px 0 0 #a69e89,
    0 6px 14px -4px rgba(42, 42, 40, 0.1);
}

/* Middle pillar = sage-gray modifier keycap */
.pillar:nth-child(2) {
  background: linear-gradient(180deg, #f2f5ee 0%, var(--bg-sage) 55%, #d5dccf 100%);
  border-color: rgba(42, 42, 40, 0.06);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05),
    0 2px 0 0 #bcc6b5,
    0 4px 0 0 #a2ad9c,
    0 6px 0 0 #879182,
    0 14px 30px -8px rgba(42, 42, 40, 0.14);
}
.pillar:nth-child(2):hover {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05),
    0 1px 0 0 #bcc6b5,
    0 2px 0 0 #a2ad9c,
    0 4px 0 0 #879182,
    0 10px 22px -8px rgba(42, 42, 40, 0.12);
}
.pillar:nth-child(2):active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.06),
    0 0 0 0 #bcc6b5,
    0 1px 0 0 #a2ad9c,
    0 2px 0 0 #879182,
    0 6px 14px -4px rgba(42, 42, 40, 0.12);
}

/* tiny colored keycap numerals, sitting on top of the pillar keys */
.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pillar:nth-child(1) .pillar-num {
  background: linear-gradient(180deg, #e35e4f 0%, var(--c-red) 55%, #b83527 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 0 0 #9b2d1f,
    0 3px 0 0 #7a2216,
    0 6px 10px rgba(193, 57, 41, 0.3);
}
.pillar:nth-child(1) .pillar-num:hover {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 0 0 #9b2d1f,
    0 2px 0 0 #7a2216,
    0 4px 7px rgba(193, 57, 41, 0.32);
}
.pillar:nth-child(1) .pillar-num:active {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.18),
    0 0 0 0 #9b2d1f,
    0 0 0 0 #7a2216,
    0 1px 3px rgba(193, 57, 41, 0.25);
}

.pillar:nth-child(2) .pillar-num {
  background: linear-gradient(180deg, #3d5ad6 0%, var(--c-blue) 55%, #2844b0 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 0 0 #1f3aa8,
    0 3px 0 0 #172c8f,
    0 6px 10px rgba(45, 75, 198, 0.3);
}
.pillar:nth-child(2) .pillar-num:hover {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 0 0 #1f3aa8,
    0 2px 0 0 #172c8f,
    0 4px 7px rgba(45, 75, 198, 0.32);
}
.pillar:nth-child(2) .pillar-num:active {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.18),
    0 0 0 0 #1f3aa8,
    0 0 0 0 #172c8f,
    0 1px 3px rgba(45, 75, 198, 0.25);
}

.pillar:nth-child(3) .pillar-num {
  background: linear-gradient(180deg, #5eb26e 0%, var(--c-green) 55%, #3a7f4a 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 0 0 #356f40,
    0 3px 0 0 #285430,
    0 6px 10px rgba(74, 159, 90, 0.3);
}
.pillar:nth-child(3) .pillar-num:hover {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 0 0 #356f40,
    0 2px 0 0 #285430,
    0 4px 7px rgba(74, 159, 90, 0.32);
}
.pillar:nth-child(3) .pillar-num:active {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.18),
    0 0 0 0 #356f40,
    0 0 0 0 #285430,
    0 1px 3px rgba(74, 159, 90, 0.25);
}

/* Transform (direction-of-press) shared across all numeral colors */
.pillar-num:hover { transform: translateY(1px); }
.pillar-num:active { transform: translateY(3px); }

.pillar h3 {
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}

.pillar p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
}

/* =========================================================
 *  DOC PAGES — same cream aesthetic, readable typography
 * ========================================================= */
.doc-hero {
  padding: 140px 0 48px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.doc-hero h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 580;
  letter-spacing: -0.024em;
  margin: 0 0 10px;
  color: var(--text);
}
.doc-hero .updated {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.doc {
  padding: 56px 0 var(--section-y);
  background: var(--bg);
  color: var(--text);
}

.doc h2 {
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -0.018em;
  margin: 52px 0 14px;
  color: var(--text);
}
.doc h2:first-child { margin-top: 0; }

.doc h3 {
  font-size: 17px;
  font-weight: 580;
  margin: 28px 0 10px;
  color: var(--text);
}

.doc p, .doc li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
}
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 580; }
.doc a { color: var(--accent); }
.doc a:hover { color: var(--accent-hover); }

/* contact dl card */
.contact-card {
  margin: 24px 0;
  padding: 28px 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-card dt {
  font-weight: 580;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-card dd {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--text);
}
.contact-card dd:last-child { margin-bottom: 0; }
.contact-card a { color: var(--accent); }
.contact-card a:hover { color: var(--accent-hover); }

/* =========================================================
 *  FOOTER — warm charcoal, centered, anchor the page
 * ========================================================= */
.footer {
  background: var(--bg-deep);
  color: var(--text-on-dark-muted);
  padding: 64px 0 44px;
  font-size: 13px;
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer .logo { color: var(--text-on-dark); }
.footer .logo .logo-ai { opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-on-dark-muted);
  font-weight: 450;
}
.footer-links a:hover { color: var(--text-on-dark); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.7;
  color: rgba(250, 247, 238, 0.48);
  font-size: 12.5px;
}
.footer-meta a { color: var(--text-on-dark-muted); }
.footer-meta a:hover { color: var(--text-on-dark); }

.footer-divider {
  width: 100%;
  max-width: 280px;
  height: 1px;
  background: rgba(250, 247, 238, 0.12);
  margin: 2px auto;
}

/* =========================================================
 *  RESPONSIVE
 * ========================================================= */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 28px 24px; }
  .hero { padding: 140px 0 90px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-links { gap: 18px; }
  h1.hero-title { letter-spacing: -0.025em; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }
  .footer-links { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
