:root {
  --ink: #10191f;
  --ink-soft: #1b2a33;
  --paper: #f5f2ea;
  --paper-deep: #eae5da;
  --card: #fffdf7;
  --white: #fff;
  --muted: #657078;
  --line: #d4d0c6;
  --accent: #ff6b4a;
  --accent-dark: #c93d2b;
  --mint: #9fe0c1;
  --sky: #9fc8df;
  --amber: #f0c36d;
  --violet: #baa7dc;
  --max: 1240px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(16, 25, 31, .12);
  --product: var(--sky);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(16, 25, 31, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.025em; }
.mark {
  width: 29px;
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--accent);
  position: relative;
  box-shadow: 0 0 0 5px rgba(255, 107, 74, .12);
}
.mark::before, .mark::after { content: ""; position: absolute; background: var(--ink); }
.mark::before { width: 5px; height: 17px; left: 12px; top: 6px; }
.mark::after { width: 17px; height: 5px; left: 6px; top: 12px; }
.nav { display: flex; align-items: center; gap: 25px; color: #c7d0d5; font-size: .9rem; }
.nav a { transition: color .18s ease; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--white); }
.nav .nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  font-weight: 850;
}

.eyebrow, .kicker {
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.kicker { margin-bottom: 12px; }
h1 { font-size: clamp(3.5rem, 7.3vw, 7.4rem); line-height: .88; letter-spacing: -.075em; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: .94; letter-spacing: -.065em; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.button.light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button.dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button .arrow { font-size: 1.2em; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* Home */
.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--ink);
}
.home-hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -230px;
  top: -300px;
  border: 1px solid rgba(255, 107, 74, .36);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 107, 74, .035), 0 0 0 145px rgba(255, 107, 74, .025);
  pointer-events: none;
}
.home-hero-grid {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: 72px;
  align-items: end;
  padding-block: 88px 76px;
  position: relative;
  z-index: 1;
}
.home-hero h1 { max-width: 900px; margin-bottom: 25px; }
.home-hero h1 span { color: var(--accent); }
.hero-copy { max-width: 750px; margin-bottom: 31px; color: #c4cdd2; font-size: 1.14rem; }
.roster-note { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.roster-label { margin-bottom: 15px; color: #93a1a9; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.roster-counts { border-top: 1px solid rgba(255, 255, 255, .18); }
.count-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.count-row strong { color: var(--accent); font-size: 2.5rem; line-height: 1; letter-spacing: -.06em; }
.count-row:first-child strong { color: var(--mint); }
.count-row span { color: #c4cdd2; font-size: .9rem; }
.signal-strip { color: var(--ink); background: var(--accent); overflow: hidden; }
.signal-track {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.signal-track span::before { content: "+"; margin-right: 28px; }
.signal-track span:first-child::before { display: none; }
.screen-section { padding: 76px 0 18px; }
.screen-section.compact { padding-top: 52px; }
.screen-intro {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 22px;
}
.screen-intro .kicker { margin: 0; }
.screen-intro h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}
.screen-frame {
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.screen-toolbar {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
}
.screen-toolbar i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
}
.screen-toolbar span {
  margin-left: auto;
  color: #99a7ae;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.screen-frame a { display: block; border-radius: 13px; overflow: hidden; }
.screen-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 857;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 13px;
  background: #edf2f8;
}
.screen-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 9px 5px;
  color: #c5ced3;
  font-size: .84rem;
}
.screen-frame figcaption strong { color: var(--white); }
.screen-frame figcaption span:last-child { color: var(--product, var(--accent)); white-space: nowrap; }
.showcase { padding: 94px 0 104px; }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .56fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 38px;
}
.section-intro h2 { margin-bottom: 0; }
.section-intro p { margin-bottom: 2px; color: var(--muted); font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.product-card {
  --product-color: var(--sky);
  grid-column: span 6;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card.featured {
  grid-column: span 12;
  min-height: 370px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  color: var(--white);
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}
.product-card.packrat { --product-color: var(--amber); }
.product-card.bayfloor { --product-color: var(--sky); }
.product-card.quarters { --product-color: var(--mint); }
.product-card.lockbox { --product-color: var(--violet); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 45px; }
.featured .product-top { margin-bottom: 34px; }
.product-code { color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.featured .product-code { color: #aab6bc; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #2f7859;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--product-color); }
.featured .status { color: var(--mint); }
.product-card h3 { margin-bottom: 10px; font-size: clamp(2.15rem, 3.4vw, 3.8rem); line-height: .95; letter-spacing: -.055em; }
.product-card .domain { margin-bottom: 18px; color: var(--accent-dark); font-size: .82rem; font-weight: 850; text-transform: uppercase; }
.featured .domain { color: var(--product-color); }
.product-card p { color: var(--muted); }
.featured p { color: #bdc8cd; }
.card-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 17px 0 26px; padding: 0; list-style: none; color: var(--muted); font-size: .89rem; }
.featured .card-points { color: #bdc8cd; }
.card-points li { position: relative; padding-left: 15px; }
.card-points li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 2px; background: var(--product-color); }
.card-link { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); font-weight: 850; }
.card-link a { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-link span { color: var(--accent-dark); font-size: 1.25rem; }
.featured .card-link { border-color: rgba(255, 255, 255, .17); }
.featured .card-link span { color: var(--accent); }
.featured-aside {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}
.workflow-mini { align-self: center; display: grid; gap: 11px; }
.workflow-mini div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; color: #dbe2e5; }
.workflow-mini b { color: var(--accent); font-size: .73rem; }
.workflow-mini span { padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.featured-aside small { color: #95a5ad; }
.product-card[hidden] { display: none; }

.platform { padding: 96px 0; color: var(--white); background: var(--ink); }
.platform-head { max-width: 900px; margin-bottom: 55px; }
.platform-head .kicker { color: var(--accent); }
.platform-head p { max-width: 720px; margin: 22px 0 0; color: #b9c4ca; font-size: 1.05rem; }
.platform-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.module {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.module span { color: #8f9da5; font-size: .69rem; }
.module strong { display: block; margin: 22px 0 5px; font-size: 1.05rem; }
.module small { color: #aebbc1; }
.core {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  margin-top: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 107, 74, .38);
  border-radius: 14px;
  background: rgba(255, 107, 74, .07);
}
.core strong { color: var(--accent); }
.core span { color: #bbc5ca; }
.readiness { padding: 100px 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.principle { min-height: 270px; padding: 26px; border-top: 5px solid var(--ink); background: var(--card); }
.principle .num { margin-bottom: 52px; color: var(--accent-dark); font-size: .73rem; font-weight: 900; letter-spacing: .12em; }
.principle h3 { margin-bottom: 10px; font-size: 1.42rem; letter-spacing: -.03em; }
.principle p { margin-bottom: 0; color: var(--muted); }

/* Product detail pages */
.product-page { --product: var(--sky); }
.product-page.packrat-page { --product: var(--amber); }
.product-page.bayfloor-page { --product: var(--sky); }
.product-page.quarters-page { --product: var(--mint); }
.product-page.lockbox-page { --product: var(--violet); }
.detail-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--ink);
  border-bottom: 9px solid var(--product);
}
.breadcrumbs { padding-top: 30px; color: #93a1a9; font-size: .82rem; }
.breadcrumbs a:hover { color: var(--white); }
.detail-hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr);
  gap: 70px;
  align-items: end;
  padding-block: 56px 70px;
}
.detail-hero-grid > * { min-width: 0; }
.detail-hero .eyebrow { color: var(--product); }
.detail-hero h1 { max-width: 820px; margin-bottom: 24px; }
.detail-hero-copy { max-width: 720px; margin-bottom: 30px; color: #c4cdd2; font-size: 1.15rem; }
.answer-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}
.answer-panel h2 { margin-bottom: 18px; color: #aebac0; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.answer-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.answer-list li { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: #e2e7e9; }
.answer-list li::before { content: "→"; margin-right: 10px; color: var(--product); }
.detail-section { padding: 92px 0; }
.detail-section.tint { background: var(--paper-deep); }
.detail-section.dark { color: var(--white); background: var(--ink-soft); }
.detail-head { max-width: 900px; margin-bottom: 42px; }
.detail-head h2 { margin-bottom: 18px; }
.detail-head p { max-width: 730px; margin-bottom: 0; color: var(--muted); font-size: 1.06rem; }
.dark .detail-head p { color: #b9c4ca; }
.workflow-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.workflow-step { min-height: 190px; padding: 25px; border-right: 1px solid var(--line); }
.workflow-step:last-child { border-right: 0; }
.workflow-step .step-num { color: var(--accent-dark); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.workflow-step h3 { margin: 43px 0 8px; font-size: 1.25rem; }
.workflow-step p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}
.feature .feature-num { color: var(--accent-dark); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.feature h3 { margin: 36px 0 11px; font-size: 1.45rem; letter-spacing: -.03em; }
.feature p { color: var(--muted); }
.feature ul { display: grid; gap: 7px; margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: .91rem; }
.depth-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; align-items: start; }
.depth-grid h2 { margin-bottom: 18px; }
.depth-grid > div:first-child p { color: #b9c4ca; }
.proof-stack { display: grid; gap: 11px; }
.proof-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}
.proof-row b { color: var(--product); font-size: .72rem; }
.proof-row strong { display: block; margin-bottom: 3px; }
.proof-row span { color: #aebac0; font-size: .9rem; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card { padding: 24px; border-top: 4px solid var(--product); background: var(--card); }
.role-card h3 { margin-bottom: 9px; font-size: 1.22rem; }
.role-card p { margin-bottom: 0; color: var(--muted); }
.suite-link {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 28px;
  color: var(--white);
  background: var(--ink);
  border-radius: 18px;
}
.suite-link .kicker { margin: 0; color: var(--product); }
.suite-link p { margin: 0; color: #bac5ca; }
.suite-link a { font-weight: 850; white-space: nowrap; }
.next-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.next-product { display: flex; justify-content: space-between; gap: 20px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 800; }
.next-product span { color: var(--accent-dark); }

.contact { padding: 28px 0 100px; }
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 54px;
  color: var(--white);
  background: var(--accent-dark);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.contact-card .kicker { color: #ffd1c7; }
.contact-card h2 { max-width: 820px; margin-bottom: 0; }
.contact-card p { max-width: 700px; margin: 21px 0 0; color: #ffdad2; }
.contact-card .button { white-space: nowrap; }
.site-footer { padding: 30px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 960px) {
  .home-hero-grid, .section-intro, .screen-intro, .detail-hero-grid, .depth-grid { grid-template-columns: 1fr; }
  .home-hero-grid, .detail-hero-grid { min-height: auto; gap: 52px; }
  .roster-note { max-width: 540px; }
  .product-card { grid-column: span 12; }
  .product-card.featured { grid-template-columns: 1fr; }
  .platform-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module:last-of-type { grid-column: span 2; }
  .principle-grid, .role-grid { grid-template-columns: 1fr 1fr; }
  .workflow-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .suite-link { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .topbar-inner { min-height: 62px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav { gap: 0; }
  .nav .nav-cta { min-height: 36px; padding-inline: 12px; }
  .home-hero-grid { padding-block: 64px 55px; }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .detail-hero h1 { font-size: clamp(2.8rem, 13.5vw, 4rem); }
  .signal-track { justify-content: flex-start; overflow: hidden; }
  .screen-section { padding-top: 52px; }
  .screen-intro { gap: 8px; }
  .screen-frame { padding: 6px; border-radius: 15px; }
  .screen-toolbar { min-height: 25px; }
  .screen-frame img, .screen-frame a { border-radius: 9px; }
  .screen-frame figcaption { display: block; padding: 11px 7px 5px; }
  .screen-frame figcaption span { display: block; margin-top: 4px; }
  .showcase, .platform, .readiness, .detail-section { padding-block: 68px; }
  .section-intro { gap: 18px; margin-bottom: 28px; }
  .product-card, .product-card.featured { min-height: 0; padding: 22px; }
  .product-top { margin-bottom: 34px; }
  .card-points, .feature-grid, .principle-grid, .role-grid, .next-products { grid-template-columns: 1fr; }
  .featured-aside { display: none; }
  .platform-map { grid-template-columns: 1fr; }
  .module:last-of-type { grid-column: auto; }
  .core { grid-template-columns: 1fr; gap: 8px; }
  .principle { min-height: 230px; }
  .detail-hero-grid { padding-block: 44px 58px; }
  .answer-panel { padding: 20px; }
  .workflow-rail { grid-template-columns: 1fr; }
  .workflow-step { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-step:nth-child(3) { border-bottom: 1px solid var(--line); }
  .workflow-step:last-child { border-bottom: 0; }
  .feature { min-height: 0; padding: 23px; }
  .contact { padding-bottom: 68px; }
  .contact-card { padding: 29px 23px; border-radius: 20px; }
  .contact-card .button { width: 100%; }
}
