/* Whiteam · ProductOS — site styles */
:root {
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", Monaco, Menlo, Consolas, monospace;

  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --paper-3: #e8e4da;
  --ink: #151220;
  --ink-2: #332d45;
  --ink-3: #5a5365;
  --ink-4: #8c8597;
  --rule: #e3dfd6;
  --rule-strong: #cfcabd;
  --accent: #5b3cff;
  --accent-hover: #4629d4;
  --accent-soft: #ece7ff;
  --mint: #d9ff4d;
  --mint-ink: #1a2000;
  --ink-bg: #0f0c1c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---- Type ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.display-xxl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7.4vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-m {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }

/* ---- Nav ---- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
nav.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1380px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
nav.top ul { flex-wrap: wrap; }
nav.top .btn { white-space: nowrap; }
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; align-self: center; }
.brand .by { font-family: var(--font-serif); font-style: italic; color: var(--ink-3); font-weight: 400; font-size: 14px; }
nav.top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
nav.top ul a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
nav.top ul a:hover { background: var(--paper-2); color: var(--ink); }
nav.top ul a.active { background: var(--ink); color: var(--paper); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-nav,
nav.top ul a.btn-nav {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  padding: 8px 16px;
  font-size: 13px;
}
.btn-nav:hover,
nav.top ul a.btn-nav:hover { background: var(--accent-hover, #4629d4); border-color: var(--accent-hover, #4629d4); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--mint); color: var(--mint-ink); }
.btn-accent:hover { background: #c8ee30; }

/* ---- Layout helpers ---- */
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section.first { border-top: none; }
.section.dark { background: var(--ink-bg); color: var(--paper); border-top: none; }
.section.dark .eyebrow, .section.dark .lede { color: rgba(255,255,255,.7); }
.section.tinted { background: var(--paper-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
}
.section.dark .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}

/* ---- Hero / Above the fold ---- */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 80px;
}
.hero h1 { margin: 24px 0 0; }
.hero .lede { margin: 28px 0 0; max-width: 60ch; }
.hero .ctas { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Footer ---- */
footer.bot {
  border-top: 1px solid var(--rule);
  padding: 40px 32px;
  background: var(--paper);
  color: var(--ink-3);
  font-size: 13px;
}
footer.bot .row { max-width: 1380px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.bot .legal { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ---- Quote / Aspirational quote cards ---- */
blockquote.q {
  margin: 0;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
}
blockquote.q .mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
}
blockquote.q p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
}
blockquote.q .attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Pages page-link list (Perspective) */
.linklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.linklist a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  gap: 24px;
  transition: padding .2s ease;
}
.linklist a:hover { padding-left: 8px; }
.linklist a:hover .arr { transform: translateX(6px); color: var(--accent); }
.linklist .ttl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.linklist .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.linklist .arr {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-3);
  transition: transform .25s ease, color .25s ease;
}

/* ---- About bios ---- */
.bio {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.bio .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
  border: 1px solid var(--rule);
}
.bio h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.bio .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 14px;
}
.bio p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---- Three-layer (Approach) ---- */
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer {
  display: grid;
  grid-template-columns: 56px 220px 1fr;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.layer .num {
  background: var(--ink);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.layer .name {
  padding: 18px 18px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.layer .name .t { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.layer .name .s {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.layer .d {
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  display: flex; align-items: center;
}
@media (max-width: 720px) {
  .layer { grid-template-columns: 56px 1fr; }
  .layer .d { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
}

/* ---- Benefits stat tiles ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 40px;
}
.stat-row .tile {
  padding: 28px 22px;
  border-right: 1px solid var(--rule);
}
.stat-row .tile:last-child { border-right: none; }
.stat-row .tile .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.stat-row .tile .v { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--accent); letter-spacing: -0.01em; }
.stat-row .tile .b { font-family: var(--font-display); font-size: 14px; color: var(--ink-4); text-decoration: line-through; margin-bottom: 4px; }
@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .tile:nth-child(2) { border-right: none; }
  .stat-row .tile:nth-child(1), .stat-row .tile:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ---- Final CTA ---- */
.final-cta {
  background: var(--ink-bg);
  color: var(--paper);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.final-cta .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.final-cta .inner { position: relative; }
.final-cta h2 { margin: 24px 0 0; }
.final-cta .lede { color: rgba(255,255,255,.74); margin: 24px 0 0; max-width: 60ch; }
.final-cta .ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
