/* ============================================================
   Lattice Agent for Dom — shared site styles
   OpenAI-clone: pure black, monochrome, Inter, sentence case.
   Loaded by every page. Font + token source of truth.
   ============================================================ */

@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-600.woff2') format('woff2'); }

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

:root {
  --bg: #000;
  --fg: #fff;
  --meta: #8e8e8e;
  --dim: #6a6a6a;
  --faint: #4a4a4a;
  --pill-dark: #161616;
  --hairline: rgba(255,255,255,0.12);
  --hairline-soft: rgba(255,255,255,0.08);
  /* media panels: a subtle top-lit gradient so they never read as flat black boxes */
  --panel: linear-gradient(165deg, #18191b 0%, #101113 46%, #0a0b0c 100%);
  --panel-quiet: linear-gradient(165deg, #141517 0%, #0c0d0f 100%);
  --ink-72: rgba(255,255,255,0.72);
  --ink-86: rgba(255,255,255,0.86);
}

html, body { background: var(--bg); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
  line-height: 1.5;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--meta); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- motion ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.rise  { animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.rise2 { animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.06s both; }
.rise3 { animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
@keyframes shimmer { 0% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
@keyframes blink   { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes pulseGlow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise2, .rise3 { animation: none !important; }
  .shimmer-line::after, .caret, .pulse { animation: none !important; }
}

/* ---------- header / nav ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  position: sticky; top: 0; z-index: 30;
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.nav-left { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav a { font-size: 15px; color: var(--meta); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.link-quiet { font-size: 15px; color: var(--meta); padding: 8px 14px; }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; padding: 12px 22px; border-radius: 999px; font-weight: 500;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-solid { background: var(--fg); color: #000; }
.pill-solid:hover { color: #000; background: #eee; }
.pill-ghost { background: var(--pill-dark); border: 1px solid var(--hairline); color: var(--fg); }
.pill-ghost:hover { color: var(--fg); border-color: rgba(255,255,255,0.28); }
.pill-sm { padding: 9px 18px; font-size: 15px; }
.pill-lg { padding: 14px 30px; font-size: 16px; }
.arrow { color: var(--meta); }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; width: 100%; }
.wrap-narrow { max-width: 720px; margin: 0 auto; width: 100%; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { font-size: 14px; color: var(--meta); letter-spacing: -0.01em; }
.lede { font-weight: 400; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--ink-72); }
.body { font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink-72); }

.h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.12; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.h2-sm { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; }

/* two-column feature rows */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}

/* ============================================================
   MEDIA / VISUALS  (the thing that used to be black boxes)
   Every panel is a top-lit gradient, never flat black.
   ============================================================ */
.media {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 24px 60px -30px rgba(0,0,0,0.9);
}
.media::before { /* soft top glow */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.media-quiet { background: var(--panel-quiet); }

/* mock product window */
.win { position: absolute; inset: clamp(14px, 3.4%, 30px); display: flex; flex-direction: column;
  border: 1px solid var(--hairline-soft); border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.015); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--hairline-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.20); }
.win-title { margin-left: 10px; font-size: 12px; color: var(--meta); }
.win-body { flex: 1; display: flex; min-height: 0; }
.win-rail { width: 30%; max-width: 150px; border-right: 1px solid var(--hairline-soft); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.rail-item { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.09); }
.rail-item.on { background: rgba(255,255,255,0.55); }
.win-main { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }

/* task rows: line bars, checked / active */
.task { display: flex; align-items: center; gap: 10px; }
.task .mark { width: 15px; height: 15px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1; }
.task .mark.done { background: rgba(255,255,255,0.92); color: #000; }
.task .mark.now  { border: 1.5px solid rgba(255,255,255,0.5); }
.task .bar { height: 8px; border-radius: 4px; }
.bar-done { background: rgba(255,255,255,0.22); }
.bar-now  { background: rgba(255,255,255,0.70); position: relative; overflow: hidden; }
.shimmer-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: shimmer 1.9s linear infinite; mix-blend-mode: overlay;
}
.caret { display: inline-block; width: 2px; height: 1em; background: #fff; margin-left: 2px; animation: blink 1.1s step-end infinite; vertical-align: -2px; }

/* result card inside window */
.mini-card { border: 1px solid var(--hairline-soft); border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 8px; }
.mini-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.14); }

/* node graph (memoria) */
.graph { position: absolute; inset: 0; }
.node-dot { fill: #fff; }
.node-line { stroke: rgba(255,255,255,0.22); stroke-width: 0.5; }
.node-label { fill: rgba(255,255,255,0.62); font-size: 4px; font-family: 'Inter', sans-serif; }

/* competitor board (campo) */
.board { position: absolute; inset: clamp(16px, 4%, 34px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.board-row { display: flex; align-items: center; gap: 10px; }
.board-row .who { width: 30%; max-width: 84px; font-size: 11px; color: var(--meta); flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .track { flex: 1; height: 12px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.board-row .fill { height: 100%; background: rgba(255,255,255,0.22); }
.board-row.you .who { color: #fff; font-weight: 500; }
.board-row.you .track { background: rgba(255,255,255,0.10); }
.board-row.you .fill { background: #fff; }

/* capability glyph panel (small, brighter) */
.glyph { background: var(--panel-quiet); border: 1px solid var(--hairline); border-radius: 14px; position: relative; overflow: hidden; }
.glyph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,0.08), transparent 60%); }

/* docs card thumb */
.doc-thumb { width: 100%; aspect-ratio: 16/10; border: 1px solid var(--hairline); border-radius: 16px; position: relative; overflow: hidden; }
.doc-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 20% 0%, rgba(255,255,255,0.10), transparent 55%); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vh, 64px) clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-top: auto;
}
.site-footer .nav a { font-size: 15px; }
.copy { font-size: 13px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .media-first { order: 2; }
  .docs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr !important; }
  .docs-grid { grid-template-columns: 1fr !important; }
  .nav-hide { display: none !important; }
  .hh-label { width: 116px !important; font-size: 13px !important; }
}
