/* ============================================================================
   higustave.ai — site styles, aligned with the Gustave platform design system
   (platform/frontend-ui/src/design/tokens.css + components.css, design-lab).
   Warm paper · Lexend + IBM Plex Mono · four service accents · light only.
   ========================================================================== */

:root {
  /* ── Type ── */
  --font-display: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* ── Neutral ramp — paper, never stark white, never black ── */
  --paper:        #F4F1EA;
  --surface:      #FFFFFF;
  --surface-sunk: #FAF8F2;
  --ink:          #1B1813;
  --ink-2:        #4A453B;
  --ink-3:        #6B6457;
  --line:         #E6E1D5;
  --line-2:       #D5CEBE;

  /* ── Service accents — base · ink (AA on paper) · wash ── */
  --red:    #FF3B3B;  --red-ink:    #C81111;  --red-wash:    #FFE7E5;  /* Admin  */
  --teal:   #00C2B0;  --teal-ink:   #0A6E62;  --teal-wash:   #D9F2EE;  /* Chat   */
  --indigo: #5466FF;  --indigo-ink: #3438C8;  --indigo-wash: #E4E6FF;  /* Tools  */
  --orange: #FF7A00;  --orange-ink: #B45309;  --orange-wash: #FFE8D2;  /* Recall */

  /* Four-token accent contract. Default = Admin (the platform brand red). */
  --accent:        var(--red);
  --accent-strong: var(--red-ink);
  --accent-muted:  var(--accent-strong);
  --accent-tint:   var(--red-wash);

  /* ── Semantic ── */
  --ok:   #0F9D58; --ok-wash:   #DBF4E5;
  --warn: #C56A00; --warn-wash: #FBEACF;
  --bad:  #E0102E; --bad-wash:  #FBE0E2;
  --info: #2D6BE0; --info-wash: #E1EAFB;

  /* ── Space / form ── */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-xs: 3px; --r-sm: 5px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --bd:   1px solid var(--line);
  --bd-2: 1.5px solid var(--ink);
  --lift-soft: 0 1px 2px rgba(27,24,19,.06), 0 8px 24px -12px rgba(27,24,19,.18);
  --lift-hard: 0 2px 4px rgba(27,24,19,.07), 0 16px 36px -14px rgba(27,24,19,.26);
  --control-h: 34px;

  --max-width: 1120px;
  --section-pad: 96px;
}

/* Per-service theme — swaps the accent contract on any container. */
.svc-admin  { --accent: var(--red);    --accent-strong: var(--red-ink);    --accent-tint: var(--red-wash); }
.svc-chat   { --accent: var(--teal);   --accent-strong: var(--teal-ink);   --accent-tint: var(--teal-wash); }
.svc-mcp    { --accent: var(--indigo); --accent-strong: var(--indigo-ink); --accent-tint: var(--indigo-wash); }
.svc-vector { --accent: var(--orange); --accent-strong: var(--orange-ink); --accent-tint: var(--orange-wash); }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
img { display: block; max-width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--s6); }
section { padding: var(--section-pad) 0; }

/* ===== BRAND PRIMITIVES ===== */
/* 4-square spectrum mark */
.mark { display: inline-flex; align-items: center; gap: 4px; }
.mark i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.mark i:nth-child(1) { background: var(--red); }
.mark i:nth-child(2) { background: var(--teal); }
.mark i:nth-child(3) { background: var(--indigo); }
.mark i:nth-child(4) { background: var(--orange); }

/* Wordmark — "Gustave" in ink + service in its accent ink + closing dot */
.wm { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.wm .svc { color: var(--accent-strong); }
.wm .dot { color: var(--accent-strong); }

/* Oversized faint spectrum mark — landing atmosphere */
.atmos { position: absolute; right: -40px; bottom: 48px; display: flex; gap: 18px; opacity: .06; pointer-events: none; }
.atmos span { width: 92px; height: 92px; border-radius: 22px; display: block; }
.atmos span:nth-child(1) { background: var(--red); }
.atmos span:nth-child(2) { background: var(--teal); }
.atmos span:nth-child(3) { background: var(--indigo); }
.atmos span:nth-child(4) { background: var(--orange); }

/* Eyebrow / mono label */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* Buttons */
.btn {
  height: 46px; padding: 0 24px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
}
.btn .sq { width: 9px; height: 9px; border-radius: 2px; background: #fff; opacity: .9; display: inline-block; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: var(--lift-soft); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface-sunk); border-color: var(--ink-3); transform: translateY(-1px); }
.btn-sm { height: var(--control-h); padding: 0 16px; font-size: 13px; border-radius: var(--r-sm); }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-accent { background: var(--accent-tint); color: var(--accent-strong); }
.t-ok { background: var(--ok-wash); color: var(--ok); }
.t-warn { background: var(--warn-wash); color: var(--warn); }
.t-info { background: var(--info-wash); color: var(--info); }
.t-neutral { background: var(--surface-sunk); color: var(--ink-3); }

/* Card */
.card {
  position: relative; background: var(--surface); border: var(--bd); border-radius: var(--r-md);
  padding: var(--s5); box-shadow: var(--lift-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--lift-hard); border-color: var(--line-2); }
.card .bar { position: absolute; left: 0; top: var(--s5); bottom: var(--s5); width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }

/* Icons */
.icn { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
.ibox { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; }
.ibox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Section header */
.section-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.02; letter-spacing: -.03em; color: var(--ink); margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--accent-strong); }
.section-subtitle { font-size: 16px; color: var(--ink-2); max-width: 58ch; line-height: 1.6; }
.section-header.center { text-align: center; margin-bottom: var(--s8); }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== NAV ===== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
nav { background: rgba(244, 241, 234, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: var(--bd); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--s6); display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-brand .wm { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 600; color: var(--ink-2); transition: color .12s ease; }
.nav-links a:hover { color: var(--accent-strong); }
.nav-links .nav-cta { height: var(--control-h); padding: 0 16px; border-radius: var(--r-sm); background: var(--accent-strong); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.nav-links .nav-cta:hover { color: #fff; filter: brightness(1.1); }
.nav-mobile-toggle { display: none; width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); color: var(--ink-2); cursor: pointer; place-items: center; }
.nav-mobile-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding: 176px 0 112px; }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1; letter-spacing: -.035em; margin-top: 14px; color: var(--ink);
}
.hero h1 .highlight { display: block; color: var(--accent-strong); }
.hero p { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); margin-top: 22px; max-width: 48ch; line-height: 1.5; }
.hero-actions { margin-top: var(--s6); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.hero-note .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ===== ON-PREMISES BANNER ===== */
.on-prem-banner { background: var(--surface); border-top: var(--bd); border-bottom: var(--bd); padding: 56px 0; }
.on-prem-banner .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: center; }
.on-prem-banner h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.on-prem-banner h2 .highlight { color: var(--accent-strong); }
.on-prem-banner p { color: var(--ink-2); font-size: 15px; margin-top: 12px; max-width: 52ch; }
.on-prem-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.on-prem-feature { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--bd); border-radius: var(--r-md); background: var(--surface-sunk); font-size: 13px; font-weight: 600; color: var(--ink); }
.on-prem-feature-icon { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--surface); border: var(--bd); display: grid; place-items: center; color: var(--accent-strong); flex-shrink: 0; }
.on-prem-feature-icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== PROOF BAR — stat tiles ===== */
.proof-bar { padding: 56px 0; }
.proof-bar > .container > p { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof-stat { background: var(--surface); border: var(--bd); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--lift-soft); }
.proof-stat-highlight { border-left: 3px solid var(--accent); }
.proof-stat-number { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.proof-stat-highlight .proof-stat-number { color: var(--accent-strong); }
.proof-stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }

/* ===== PROBLEM ===== */
.problem { border-top: var(--bd); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--s7); }
.problem-card { position: relative; background: var(--surface); border: var(--bd); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--lift-soft); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--lift-hard); border-color: var(--line-2); }
.problem-card-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-sunk); border: var(--bd); display: grid; place-items: center; color: var(--ink-2); margin-bottom: 16px; }
.problem-card-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.problem-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.problem-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ===== PRODUCTS ===== */
.products { background: var(--surface); border-top: var(--bd); border-bottom: var(--bd); }
.product-suite { margin-top: var(--s8); padding-top: var(--s7); border-top: var(--bd); }
.product-suite:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.product-suite-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-suite-header .wm { font-size: clamp(28px, 3.4vw, 36px); }
.product-suite-header .swatch { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); display: inline-block; }
.product-suite-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-strong); margin-left: 6px; }
.product-suite-desc { color: var(--ink-2); font-size: 15px; margin: 14px 0 var(--s5); max-width: 72ch; }
.product-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-cards.single { grid-template-columns: 1fr; max-width: 560px; }
.product-card {
  position: relative; background: var(--surface); border: var(--bd); border-radius: var(--r-md);
  padding: var(--s6) var(--s5) var(--s5) 28px; box-shadow: var(--lift-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--lift-hard); border-color: var(--line-2); }
.product-card::before { content: ''; position: absolute; left: 0; top: var(--s5); bottom: var(--s5); width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.product-card-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 16px; }
.product-card-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.product-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.product-card h3 .svc { color: var(--accent-strong); }
.product-card .product-tagline { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.product-card .product-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.product-card .product-features li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; }
.product-card .product-features li .check { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }

/* ===== DIFFERENTIATOR ===== */
.differentiator { text-align: center; }
.diff-quote { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; max-width: 28ch; margin: 0 auto 20px; color: var(--ink); }
.diff-quote .highlight { color: var(--accent-strong); }
.diff-attribution { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--surface); border-top: var(--bd); border-bottom: var(--bd); }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; padding: 56px 0; border-top: var(--bd); }
.step:first-child { border-top: none; padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step:nth-child(even) .step-content { order: 2; }
.step:nth-child(even) .step-visual { order: 1; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-number { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--accent-strong); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.step-product-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600; background: var(--accent-tint); color: var(--accent-strong); }
.step-product-tag::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.step-content h3 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.step-content p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.step-features { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.step-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; }
.step-features li::before { content: ''; width: 8px; height: 8px; min-width: 8px; border-radius: 2px; background: var(--accent); margin-top: 7px; }

/* Step visual — a product-like panel */
.step-visual { background: var(--surface); border: var(--bd); border-radius: var(--r-lg); box-shadow: var(--lift-soft); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: var(--surface-sunk); border-bottom: var(--bd); }
.panel-head .mark i { width: 7px; height: 7px; border-radius: 2px; }
.panel-head .wm { font-size: 14px; }
.panel-head .crumb { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.panel-body { padding: 18px; }

/* provider grid */
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.provider-chip { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 10px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink); transition: border-color .12s ease, background .12s ease; }
.provider-chip:hover { border-color: var(--accent); background: var(--accent-tint); }
.provider-chip.more { border-style: dashed; color: var(--ink-3); }
.provider-chip-icon { height: 24px; display: flex; justify-content: center; align-items: center; margin-bottom: 8px; color: var(--ink-2); }
.provider-chip-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.provider-chip:hover .provider-chip-icon { color: var(--accent-strong); }

/* mini table */
.mtbl { border: var(--bd); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.mrow { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; gap: 12px; padding: 0 14px; height: 46px; border-top: var(--bd); font-size: 13px; }
.mrow:first-child { border-top: none; }
.mrow.mhead { height: 34px; background: var(--surface-sunk); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mrow .mname { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mname small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.mrow .mono { font-size: 11.5px; }
.mrow:hover { background: var(--accent-tint); }

/* key / value lines */
.kv { display: flex; flex-direction: column; gap: 10px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: var(--bd); font-size: 13px; }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kv-row .v { font-weight: 600; color: var(--ink); }

/* form mock */
.fmock { display: flex; flex-direction: column; gap: 12px; }
.fmock .field { display: flex; flex-direction: column; gap: 6px; }
.fmock .field-lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fmock .input { height: var(--control-h); padding: 0 11px; display: flex; align-items: center; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.fmock .input.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.fmock .textarea { min-height: 96px; padding: 9px 11px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.fmock .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fmock .actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

/* chat mock */
.cmock { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: var(--r-md); line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--accent-strong); color: #fff; border-bottom-right-radius: 3px; }
.bubble.bot { align-self: flex-start; background: var(--surface-sunk); border: var(--bd); color: var(--ink); border-bottom-left-radius: 3px; }
.bubble .mono { color: var(--accent-strong); }
.toolcall { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding: 0 2px; }
.toolcall .spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer { margin-top: 4px; height: var(--control-h); border: 1px solid var(--line-2); border-radius: var(--r-sm); display: flex; align-items: center; padding: 0 11px; color: var(--ink-3); font-size: 13px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { position: relative; background: var(--surface); border: var(--bd); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--lift-soft); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--lift-hard); border-color: var(--line-2); }
.feature-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.feature-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ===== CTA ===== */
.cta-section { position: relative; overflow: hidden; background: var(--surface); border-top: var(--bd); border-bottom: var(--bd); }
.cta-section .container { position: relative; z-index: 1; }
.cta-section .section-title { max-width: 16ch; }
.cta-section p { color: var(--ink-2); font-size: 17px; max-width: 48ch; margin: 0 0 var(--s6); }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer { padding: var(--s8) 0 var(--s6); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s6); flex-wrap: wrap; padding-bottom: var(--s7); }
.footer-brand .nav-brand .wm { font-size: 22px; }
.footer-brand p { color: var(--ink-2); font-size: 13.5px; margin-top: 14px; max-width: 34ch; line-height: 1.55; }
.footer-links { display: flex; gap: var(--s8); flex-wrap: wrap; }
.footer-links-group h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.footer-links-group a { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 9px; transition: color .12s ease; }
.footer-links-group a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: var(--bd-2); padding-top: var(--s4); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-crafted { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-crafted-text { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.footer-logos { display: flex; align-items: center; gap: 28px; }
.footer-logos img { height: 24px; opacity: .85; transition: opacity .12s ease; }
.footer-logos img:hover { opacity: 1; }
.footer-copyright { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.footer-copyright a { color: var(--ink-2); }
.footer-copyright a:hover { color: var(--accent-strong); }
.footer-trademarks { margin-top: var(--s5); padding-top: var(--s4); border-top: var(--bd); font-size: 11px; color: var(--ink-3); line-height: 1.6; }

/* ===== LEGAL PAGE ===== */
.legal { padding: 136px 0 var(--s8); }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; line-height: 1; margin: 12px 0 10px; }
.legal h1 em { font-style: normal; color: var(--accent-strong); }
.legal .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-bottom: var(--s6); }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: var(--s6) 0 10px; padding-top: var(--s5); border-top: var(--bd); }
.legal p { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.legal ul { color: var(--ink-2); font-size: 15px; margin: 0 0 12px 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-strong); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal .notice { background: var(--surface); border: var(--bd); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 16px 20px; margin: 16px 0; box-shadow: var(--lift-soft); }
.legal .notice p { margin: 0; }
.legal .notice p + p { margin-top: 8px; }
.legal .notice strong { color: var(--ink); }
.legal-foot { border-top: var(--bd-2); padding-top: var(--s4); margin-top: var(--s7); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.legal-foot a { color: var(--ink-2); font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .problem-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: var(--s6); }
  .step:nth-child(even) .step-content { order: 1; }
  .step:nth-child(even) .step-visual { order: 2; }
  .on-prem-banner .inner { grid-template-columns: 1fr; gap: var(--s5); }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }
  .container, .nav-inner { padding-left: var(--s4); padding-right: var(--s4); }
  .nav-links { display: none; }
  .nav-links.show { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: var(--bd); box-shadow: var(--lift-hard); padding: 8px 0; }
  .nav-links.show a { padding: 12px var(--s4); }
  .nav-links.show .nav-cta { margin: 8px var(--s4) 4px; justify-content: center; }
  .nav-mobile-toggle { display: grid; }
  .hero { padding: 128px 0 72px; }
  .atmos { right: -60px; bottom: 16px; gap: 12px; }
  .atmos span { width: 64px; height: 64px; border-radius: 16px; }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .features-grid { grid-template-columns: 1fr; }
  .on-prem-features { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .mrow { grid-template-columns: 1.4fr 1fr; }
  .mrow > :nth-child(3) { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: var(--s6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .proof-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toolcall .spin { animation: none; }
}
