/* ============================================================
   Lumio Labs — design system v0.1
   Hybrid direction: A (Engineered Precision) + mono accents
   ============================================================ */

:root {
  --surface-0: #F6F4EE;
  --surface-1: #FFFFFF;
  --surface-2: #FBFAF5;
  --surface-3: #F0EDE3;

  --text-1: #15161A;
  --text-2: #5C5D62;
  --text-3: #9A9AA0;

  --border-1: #E5E2D8;
  --border-2: #C7C6BF;

  --accent: #0F2A52;
  --accent-on: #F6F4EE;

  --grid-line: rgba(15, 22, 26, 0.05);

  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 8px;

  --maxw: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--surface-0);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-on); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-on);
  padding: 10px 16px; border-radius: var(--r-md);
  font-size: 13px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.section { border-top: 0.5px solid var(--border-1); }
.section--alt { background: var(--surface-2); }
.section__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px; }
.section__inner--tight { padding: 36px 32px; }

.section__head {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 16px; margin-bottom: 28px;
}
.eyebrow { font-size: 12px; color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.01em; }
h2.title {
  font-size: 26px; font-weight: 500; color: var(--text-1);
  letter-spacing: -0.02em; line-height: 1.15;
}
.pos {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  white-space: nowrap; flex-shrink: 0;
}

/* ---------- nav ---------- */
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px 32px; display: flex;
  justify-content: space-between; align-items: center; gap: 24px;
}
.brand { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 22px; font-size: 13px; color: var(--text-2); }
.nav__links a { transition: color .15s ease; }
.nav__links a:hover { color: var(--text-1); }
.nav__links a.is-active { color: var(--text-1); font-weight: 500; }
.nav__cta {
  background: var(--text-1); color: var(--surface-0);
  padding: 7px 14px; border-radius: var(--r-md);
  font-size: 12px; font-weight: 500; transition: opacity .15s ease;
}
.nav__cta:hover { opacity: .85; }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 32px 64px; position: relative; }
.hero--grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--grid-line) 0.5px, transparent 0.5px);
  background-size: 28px 28px; pointer-events: none;
}
.hero__content { position: relative; max-width: 600px; }
.kicker { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 16px; }
.kicker--accent { color: var(--accent); }
h1.display {
  font-size: 40px; font-weight: 500; color: var(--text-1);
  letter-spacing: -0.025em; line-height: 1.08;
}
.subtitle {
  font-size: 16px; color: var(--text-2);
  margin-top: 18px; line-height: 1.55; max-width: 90%;
}
.lead {
  font-size: 20px; font-weight: 500; color: var(--text-2);
  letter-spacing: -0.015em; line-height: 1.25; margin: 4px 0 16px;
}

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-size: 13px; font-weight: 500;
  padding: 11px 18px; border-radius: var(--r-md);
  transition: opacity .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer; border: 0.5px solid transparent;
}
.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { opacity: .9; }
.btn--ghost { background: transparent; color: var(--text-1); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--text-1); }

/* ---------- meta strip ---------- */
.metastrip {
  position: relative; display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 56px; font-family: var(--mono);
  font-size: 11px; color: var(--text-3);
}
.metastrip .dot { color: var(--border-2); }

/* ---------- logo strip ---------- */
.logos { font-size: 14px; color: var(--text-2); line-height: 1.85; font-weight: 500; }
.logos .sep { color: var(--border-2); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.card {
  background: var(--surface-1); border: 0.5px solid var(--border-1);
  border-radius: var(--r-lg); padding: 22px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--border-2); transform: translateY(-2px); }

.card__idx { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.card__idx--accent { color: var(--accent); }
.card__title {
  font-size: 17px; font-weight: 500; color: var(--text-1);
  letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.25;
}
.card__title--sm { font-size: 16px; }
.card__body { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.card__link { font-size: 13px; color: var(--accent); margin-top: 18px; font-weight: 500; }
.card__refs {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  margin-top: 16px; line-height: 1.7;
}
.card__topline {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}

/* ---------- chips ---------- */
.chip {
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  background: var(--surface-3); padding: 3px 8px; border-radius: var(--r-sm);
}
.chip--year { background: transparent; color: var(--text-3); padding: 3px 0; }
.tag {
  font-family: var(--mono); font-size: 12px; color: var(--text-1);
  background: var(--surface-1); border: 0.5px solid var(--border-1);
  padding: 6px 12px; border-radius: var(--r-md); display: inline-block;
}
.tag--sm { font-size: 11px; padding: 5px 10px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- table (lifecycle) ---------- */
.ltable__head, .lrow {
  display: grid; grid-template-columns: 130px 1fr 1fr; gap: 16px;
}
.ltable__head { padding-bottom: 10px; border-bottom: 0.5px solid var(--border-2); margin-bottom: 4px; }
.lrow { padding: 14px 0; border-bottom: 0.5px solid var(--border-1); }
.lrow:last-child { border-bottom: none; }
.lcol-ai { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.lcol-hu { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.lstage__n { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.lstage__t { font-size: 14px; font-weight: 500; color: var(--text-1); letter-spacing: -0.01em; }
.lcell { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ---------- decisions list ---------- */
.decisions { display: grid; grid-template-columns: 220px 1fr; gap: 14px 28px; font-size: 14px; }
.decisions dt { font-family: var(--mono); color: var(--accent); padding-top: 2px; }
.decisions dd { color: var(--text-2); line-height: 1.55; }

/* ---------- stat cards ---------- */
.stat__n {
  font-size: 32px; font-weight: 500; color: var(--accent);
  letter-spacing: -0.025em; line-height: 1; margin-bottom: 10px;
}
.stat__d { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ---------- pull quote ---------- */
.pullquote { border-left: 2px solid var(--accent); padding: 8px 0 8px 20px; }
.pullquote p {
  font-size: 18px; font-weight: 500; color: var(--text-1);
  letter-spacing: -0.015em; line-height: 1.4; max-width: 560px; margin-bottom: 10px;
}
.pullquote cite { font-family: var(--mono); font-size: 11px; color: var(--text-3); font-style: normal; }

/* ---------- two-col text ---------- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.twocol h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.twocol p { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.prose { font-size: 15px; color: var(--text-2); line-height: 1.65; max-width: 640px; }

/* ---------- tech stack rows ---------- */
.stackrows { display: grid; grid-template-columns: 110px 1fr; gap: 8px 20px; font-size: 13px; }
.stackrows .k { font-family: var(--mono); color: var(--text-3); }
.stackrows .v { color: var(--text-1); }

/* ---------- form ---------- */
.form { display: grid; gap: 14px; max-width: 460px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 14px; color: var(--text-1);
  background: var(--surface-1); border: 0.5px solid var(--border-2);
  border-radius: var(--r-md); padding: 10px 14px; outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-aside dt { font-size: 12px; color: var(--text-2); margin-top: 18px; margin-bottom: 4px; }
.contact-aside dd { font-size: 14px; color: var(--text-1); }
.contact-aside a { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 0.5px solid var(--border-1); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 32px;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 32px; flex-wrap: wrap;
}
.footer__col h4 { font-size: 12px; color: var(--text-2); margin-bottom: 10px; font-weight: 500; }
.footer__col a { display: block; font-size: 13px; color: var(--text-2); padding: 3px 0; transition: color .15s ease; }
.footer__col a:hover { color: var(--text-1); }
.footer__meta { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 24px; width: 100%; }

/* ---------- page-load reveal ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .5s ease both; }
.reveal:nth-child(2) { animation-delay: .05s; }
.reveal:nth-child(3) { animation-delay: .1s; }
.reveal:nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mono helpers ---------- */
.mono { font-family: var(--mono); }
.m-accent { color: var(--accent); }
.m-mute { color: var(--text-3); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .display, h1.display { font-size: 34px; }
}

@media (max-width: 760px) {
  .wrap, .nav, .hero__inner, .section__inner, .footer__inner { padding-left: 20px; padding-right: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .twocol, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .decisions { grid-template-columns: 1fr; gap: 4px 0; }
  .decisions dt { padding-top: 12px; }
  .decisions dd { padding-bottom: 8px; }
  .ltable__head { display: none; }
  .lrow { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .lrow .lcol-tagline { display: none; }
  .lcell::before { font-family: var(--mono); font-size: 11px; color: var(--text-3); display: block; margin-bottom: 2px; }
  .lcell.ai::before { content: "// AI"; color: var(--accent); }
  .lcell.hu::before { content: "// Human"; }
  h1.display { font-size: 30px; }
  .section__inner { padding: 40px 20px; }
  .hero__inner { padding-bottom: 48px; }
  .stackrows { grid-template-columns: 90px 1fr; }

  .nav__toggle {
    display: block; background: none; border: 0.5px solid var(--border-2);
    border-radius: var(--r-md); padding: 6px 10px; font-family: var(--mono);
    font-size: 11px; color: var(--text-1); cursor: pointer;
  }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface-1); border-top: 0.5px solid var(--border-1);
    border-bottom: 0.5px solid var(--border-1);
    flex-direction: column; gap: 0; padding: 8px 20px; z-index: 50;
  }
  .nav__links a { padding: 12px 0; border-bottom: 0.5px solid var(--border-1); }
  .nav__links a:last-child { border-bottom: none; }
  #navtoggle:checked ~ .nav__links { display: flex; }
  .nav { position: relative; flex-wrap: wrap; }
}

/* ---------- legal pages ---------- */
.legal-content { max-width: 720px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.legal-content h2 { font-size: 18px; font-weight: 500; color: var(--text-1); margin: 32px 0 12px; letter-spacing: -0.01em; }
.legal-content h3 { font-size: 15px; font-weight: 500; color: var(--text-1); margin: 24px 0 8px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content li { margin-bottom: 6px; }
.legal-content dl { margin-bottom: 14px; }
.legal-content dt { font-weight: 500; color: var(--text-1); margin-top: 12px; }
.legal-content dd { margin-left: 0; margin-bottom: 6px; }
.legal-content .placeholder { font-family: var(--mono); color: var(--accent); font-size: 12px; background: var(--surface-3); padding: 1px 6px; border-radius: 3px; }
.legal-content .last-updated { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 24px; }
.footer__legal { font-family: var(--mono); font-size: 11px; color: var(--text-3); width: 100%; margin-top: 20px; padding-top: 16px; border-top: 0.5px solid var(--border-1); }

/* ---------- nav dropdown (Solutions) ---------- */
.nav__group { position: relative; }
.nav__group-toggle::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.5;
  transition: transform .15s ease, opacity .15s ease;
}
.nav__group:hover .nav__group-toggle::after,
.nav__group:focus-within .nav__group-toggle::after {
  transform: rotate(225deg) translateY(1px);
  opacity: 0.8;
}
/* invisible bridge so the dropdown doesn't close when moving the cursor */
.nav__group::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 10px;
  background: transparent;
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 250px;
  background: var(--surface-1);
  border: 0.5px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 8px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(15, 22, 26, 0.05);
}
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown::before {
  content: "// industries";
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 4px 12px 8px;
  border-bottom: 0.5px solid var(--border-1);
  margin-bottom: 4px;
}
.nav__dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-1);
  border-radius: var(--r-md);
  transition: background .12s ease, color .12s ease;
}
.nav__dropdown a:hover { background: var(--surface-2); color: var(--accent); }

@media (max-width: 760px) {
  .nav__group { width: 100%; border-bottom: 0.5px solid var(--border-1); }
  .nav__group::after { display: none; }
  .nav__group-toggle::after { display: none; }
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
    min-width: 0;
    border-radius: 0;
  }
  .nav__dropdown::before {
    padding: 0 0 6px;
    margin-bottom: 4px;
  }
  .nav__dropdown a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 13px;
    color: var(--text-2);
  }
  .nav__dropdown a:hover { background: transparent; color: var(--text-1); }
}
