/* Nuvqetra LLC — site styles */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --fg: #16161a;
  --fg-soft: #55555f;
  --muted: #86868b;
  --line: #e6e6ea;
  --line-soft: #f0f0f3;
  --card: #ffffff;
  --accent: #2aa04a;
  --accent-soft: rgba(42, 160, 74, .10);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --radius: 16px;
  --maxw: 1000px;
  --text: 1000px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --bg-soft: #141418;
    --fg: #f0f0f3;
    --fg-soft: #b6b6bf;
    --muted: #8c8c95;
    --line: #26262c;
    --line-soft: #1c1c21;
    --card: #16161a;
    --accent: #4ecf6b;
    --accent-soft: rgba(78, 207, 107, .12);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 4px;
  flex: none;
}
.mark i { background: #fff; border-radius: 1.5px; opacity: .95; display: block; }
.mark i:nth-child(2), .mark i:nth-child(6) { opacity: .5; }

nav.main { display: flex; gap: 22px; }
nav.main a {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
}
nav.main a:hover { color: var(--fg); }
nav.main a[aria-current="page"] { color: var(--fg); font-weight: 500; }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(760px 340px at 50% -120px, var(--accent-soft), transparent 70%);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 15ch;
}
.hero p.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero.center { text-align: center; }
.hero.center h1, .hero.center p.lead { margin-left: auto; margin-right: auto; }

/* dot grid: the app's own metaphor — lived cells in accent, the rest waiting */
.lifegrid {
  position: relative;
  margin-top: 54px;
  height: 176px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.lifegrid::before,
.lifegrid i {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 5px 5px, currentColor 2.6px, transparent 2.9px);
  background-size: 15px 15px;
}
.lifegrid::before { color: var(--fg); opacity: .11; }
.lifegrid i {
  color: var(--accent);
  clip-path: inset(0 71% 0 0);
  opacity: .9;
}
.lifegrid.dense { height: 132px; }
.lifegrid.dense i { clip-path: inset(0 44% 0 0); }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--bg-soft); opacity: 1; }

/* ---------- sections ---------- */

section.block { padding: 72px 0; border-bottom: 1px solid var(--line-soft); }
section.block.soft { background: var(--bg-soft); }
section.block:last-of-type { border-bottom: 0; }

.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--fg-soft); margin: 0; font-size: 18px; }

h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.25; margin: 44px 0 14px; }
h3 { font-size: 17.5px; letter-spacing: -0.01em; margin: 0 0 8px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 7px; }
.muted { color: var(--muted); }
.soft-text { color: var(--fg-soft); }
.small { font-size: 14.5px; }

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 32px;
}
.feature p { color: var(--fg-soft); font-size: 16px; margin: 0; }
.ficon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.ficon svg { width: 18px; height: 18px; display: block; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }

.product {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.product h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.product p { color: var(--fg-soft); }
.product .art {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ---------- facts table ---------- */

table.facts { width: 100%; border-collapse: collapse; font-size: 16px; }
table.facts th, table.facts td {
  text-align: left;
  vertical-align: top;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: 0; }
table.facts th { font-weight: 400; color: var(--muted); width: 38%; padding-right: 24px; }
table.facts td { font-variant-numeric: tabular-nums; }

/* ---------- faq ---------- */

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 24px;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq .answer { padding: 0 0 18px; color: var(--fg-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- legal pages ---------- */

.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); letter-spacing: -0.025em; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 38px 0 12px; }
.doc .callout {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 28px;
}
.doc .callout p { margin: 0; }

.crumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 52px 0 44px;
  font-size: 15px;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: var(--fg-soft); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.foot address {
  font-style: normal;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 14px;
}
.foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .lifegrid { margin-top: 36px; }
  section.block { padding: 52px 0; }
  nav.main { gap: 16px; }
  nav.main a { font-size: 14px; }
  .brand span.name { display: none; }
  table.facts th { width: 100%; display: block; padding: 12px 0 0; border: 0; }
  table.facts td { display: block; padding: 2px 0 12px; }
  .foot { grid-template-columns: 1fr; }
}
