/* ==========================================================================
   Profusia — the marketing site (www.profusia.com)
   The product's own light tokens (src/ui.ts LIGHT_TOKENS), copied rather than
   imported because this site is plain files served beside the product, not a
   page the product renders. Neutral greys, THE teal, Archivo for prose and
   display, Plex Mono for labels — the same choices the product makes, so the
   page and the screens on its walls read as one thing.
   ========================================================================== */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/archivo-var-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plexmono-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plexmono-500-latin.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --canvas: #fafafa; --surface: #ffffff; --raised: #f4f4f5; --sunken: #eeeef0;
  --line: #e5e5e8; --line-strong: #d3d3d8;
  --ink: #18181b; --ink-2: #63636b; --ink-3: #91919a;
  --accent: #0f766e; --accent-hover: #0a5d57; --accent-ink: #ffffff;
  --accent-soft: #e6f2f0; --accent-line: #b8ddd7; --accent-vivid: var(--accent);
  --r-sm: 6px; --r-md: 9px; --r-lg: 13px; --r-xl: 18px;
  --shadow-md: 0 2px 4px rgba(9,9,11,.05), 0 4px 12px rgba(9,9,11,.06);
  --shadow-lg: 0 8px 16px rgba(9,9,11,.07), 0 24px 48px rgba(9,9,11,.10);
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.center { text-align: center; }
section { padding-block: clamp(56px, 8vw, 104px); }

.h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.12; font-weight: 660; letter-spacing: -.028em; }
.sub { color: var(--ink-2); font-size: 1.04rem; max-width: 62ch; margin-inline: auto; margin-top: 14px; }
.kicker {
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-vivid); margin-bottom: 14px;
}

/* ------------------------------ buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: 10px 18px; border-radius: var(--r-md); font: 560 15px/1 var(--font);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap; transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.btn:hover { background: var(--raised); border-color: var(--ink-3); }
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 620; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 11px; }

/* -------------------------------- nav ----------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
body.scrolled .nav { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 660; letter-spacing: -.022em; font-size: 1.08rem; }
.mark { width: 24px; height: 24px; flex: none; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ------------------------------- hero ----------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(24px, 4vw, 48px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% 0 auto; height: 34rem; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 46% at 50% 34%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%);
}
.hero-inner { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-vivid);
  font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.display {
  font-size: clamp(2.4rem, 6.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 690; margin: 22px auto 0; max-width: 17ch;
}
.display em { font-style: normal; color: var(--accent-vivid); }
.lede { color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 58ch; margin: 20px auto 0; }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-inner .cta-row, .center-row { justify-content: center; }

/* ------------------------------- strip ---------------------------------- */
.strip { padding-block: 0; }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
  padding: 26px 8px; border-block: 1px solid var(--line);
}
.stat b { display: block; font: 660 clamp(1.5rem, 3vw, 2rem)/1 var(--font); letter-spacing: -.03em; }
.stat span { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 7px; }

/* ------------------------------- rooms ---------------------------------- */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.room-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.room-card i { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--tint); margin-bottom: 12px; }
.room-card b { display: block; font: 630 17px/1.25 var(--font); letter-spacing: -.016em; margin-bottom: 6px; }
.room-card span { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------------------------- the one integration ------------------------ */
.integration { padding-block: 0; }
.integration-inner {
  display: grid; gap: 1rem 2.5rem; grid-template-columns: 1fr; align-items: start;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(22px, 3.5vw, 36px);
}
@media (min-width: 760px) { .integration-inner { grid-template-columns: 1fr 1.4fr; } }
.integration h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 650; letter-spacing: -.024em; line-height: 1.2; }
.integration p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.integration p + p { margin-top: 10px; }
.integration .fine { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }

/* ------------------------------ closing ---------------------------------- */
.cta-band { position: relative; }
.cta-band .sub { max-width: 58ch; }
.fine { color: var(--ink-3); font-size: 13.5px; margin-top: 20px; }

.footer { background: var(--raised); border-top: 1px solid var(--line); padding-block: 40px 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-2); font-size: 13.5px; margin-top: 10px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }

/* ------------------------------ reveal ----------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav-links, .nav-signin { display: none; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
