/* Absence — product homepage (static) */

:root {
  --bg: #0b0b0e;
  --fg: #f2f2f4;
  --muted: #9a9ba3;
  --faint: #5f606a;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.025);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(242, 242, 244, 0.18); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Nav ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 14, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.logo-mark { width: 20px; height: 20px; transition: transform 0.5s ease; }
.logo:hover .logo-mark { transform: rotate(45deg); }
.nav-links { display: flex; align-items: center; gap: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--fg); color: #16161a; }
.btn-primary:hover { background: rgba(242, 242, 244, 0.82); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.btn-outline { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); }
.btn:focus-visible { outline: 2px solid rgba(242, 242, 244, 0.5); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent);
}
.hero-inner { position: relative; padding-top: clamp(96px, 16vh, 128px); padding-bottom: 96px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.display {
  margin-top: 24px;
  max-width: 900px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display em, .display-sm em { color: var(--muted); }
.lede { margin-top: 32px; max-width: 576px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.tagline { margin-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--border); padding-block: 96px; scroll-margin-top: 56px; }
.heading { max-width: 576px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.heading h2 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 2.25rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.heading p { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.fine { margin-top: 40px; max-width: 672px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- Flow diagram ---------- */
.flow {
  --arrow: 28px;
  margin-top: 56px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) var(--arrow) minmax(0, 1fr) var(--arrow) minmax(0, 1fr) var(--arrow)
    minmax(0, 1fr) var(--arrow) auto 34px minmax(0, 1fr);
  align-items: center;
}
.node {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.node b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-final { border-color: rgba(242, 242, 244, 0.25); background: rgba(242, 242, 244, 0.04); }
.decision {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px dashed rgba(242, 242, 244, 0.25);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.arrow { position: relative; height: 8px; color: rgba(154, 155, 163, 0.6); }
.arrow::before { content: ""; position: absolute; left: 2px; right: 3px; top: 50%; border-top: 1px solid currentColor; }
.arrow::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.arrow-yes span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-style: normal; }

/* The loop shares the diagram's columns, so it always lines up with Humanize and the decision. */
.loop { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; height: 44px; margin-top: 10px; }
.seg { position: relative; display: block; color: rgba(154, 155, 163, 0.5); font-style: normal; }
.seg-start { grid-column: 5; }
.seg-mid { grid-column: 6 / 9; }
.seg-end { grid-column: 9; }
.seg-start::before, .seg-mid::before, .seg-end::before { content: ""; position: absolute; top: 0; height: 24px; border-color: currentColor; border-style: dashed; border-width: 0; }
.seg-start::before { left: 50%; right: 0; border-left-width: 1px; border-bottom-width: 1px; border-bottom-left-radius: 8px; }
.seg-mid::before { left: 0; right: 0; border-bottom-width: 1px; }
.seg-end::before { left: 0; right: 50%; border-right-width: 1px; border-bottom-width: 1px; border-bottom-right-radius: 8px; }
.loop-label {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translate(-50%, -50%);
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.flow-mobile-note { display: none; }

@media (max-width: 860px) {
  .flow { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .flow .arrow, .loop { display: none; }
  .decision { height: auto; padding: 12px 14px; }
  .flow-mobile-note {
    display: block;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    order: 5;
  }
  .flow .node-final { order: 6; }
}

/* ---------- Brief ---------- */
.split { display: grid; gap: 56px; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1.1fr; } }
.chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 13px; color: rgba(242, 242, 244, 0.85); }

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { background: var(--bg); padding: 28px; }
.features .note { display: flex; flex-direction: column; justify-content: space-between; }
.num { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.features h3 { margin-top: 24px; font-size: 15px; font-weight: 500; }
.features p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
@media (min-width: 640px) { .cta { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.display-sm { max-width: 576px; font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1.2; letter-spacing: -0.015em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 32px; font-size: 12px; color: var(--muted); }
.footer a { color: var(--fg); }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- Motion ---------- */
.rise { animation: rise 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}
