/* ============================================================
   Den Lillya LLC — landing page
   Palette: shop paper + ink, "layout-fluid blue" accent
   ============================================================ */

:root {
  --bg: #f7f7f4;
  --bg-alt: #eef0ee;
  --fg: #16181d;
  --muted: #566070;
  --card-bg: #ffffff;
  --border: #dcdedb;
  --accent: #2b4bd8;          /* machinist layout-fluid blue */
  --accent-fg: #ffffff;
  --grid-line: rgba(22, 24, 29, 0.05);
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.05);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg-alt: #12151c;
    --fg: #eef0f4;
    --muted: #98a1b0;
    --card-bg: #171b24;
    --border: #262b36;
    --accent: #6d8bff;
    --accent-fg: #0a0f22;
    --grid-line: rgba(238, 240, 244, 0.045);
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 10px 30px rgba(0,0,0,0.4);
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-sub {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; font-family: var(--mono); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--fg); }
.nav .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 7px;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  margin: 0 0 22px;
  animation: rise 0.5s ease both;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 32px;
  animation: rise 0.5s ease 0.08s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.5s ease 0.16s both;
}

/* dimension-line signature */
.dim-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
  color: var(--muted);
}
.dim-tick {
  flex: 1;
  height: 1px;
  background: var(--border);
  position: relative;
}
.dim-tick::before,
.dim-tick::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--muted);
}
.dim-tick::before { left: 0; }
.dim-tick::after { right: 0; }
.dim-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Proof strip ---------- */
.proof {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px 32px;
}
.proof-item { display: flex; flex-direction: column; gap: 3px; }
.proof-k { font-weight: 700; font-size: 0.98rem; }
.proof-v { color: var(--muted); font-size: 0.88rem; }

/* ---------- Capabilities ---------- */
.capabilities { padding: 88px 0; }

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: stage;
}
.stage {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.stage:hover { border-color: var(--accent); transform: translateY(-2px); }
.stage-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}
.stage h3 { margin-bottom: 8px; }
.stage p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }

.stage-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.stage-tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- Tools ---------- */
.tools {
  padding: 88px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .btn { align-self: flex-start; }

/* ---------- Contact ---------- */
.contact { padding: 96px 0; }
.contact-inner { text-align: center; max-width: 620px; }
.contact p { color: var(--muted); margin: 0 0 30px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 44px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-loc { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; }

/* ---------- Responsive ---------- */
@media (min-width: 660px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 72px 0 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-sub, .hero-actions { animation: none; }
  .btn, .stage, .card { transition: none; }
}
