/* SalesOS public site. Dark surface, laid out as the sibling of the other
   public pages in the family, which are never named here: this file is served
   publicly and sibling identity stays off the public surface.
   Colors are the SalesOS design-system tokens (packages/design-system, seed v0.4).
   Marketing headlines use the shared sibling serif; labels, figures, and
   evidence annotations use the SalesOS mono stack. No remote fonts. */

:root {
  color-scheme: dark;
  --canvas-0: #090a0e;
  --canvas-1: #101218;
  --canvas-2: #14171e;
  --canvas-3: #181c24;
  --canvas-4: #1d222c;
  --canvas-5: #232936;
  --ink-100: #f1f3f8;
  --ink-80: #c4cad6;
  --ink-60: #98a0ae;
  --ink-40: #596070;
  --ink-25: #3a404e;
  --brand-300: #6e92f9;
  --brand-400: #5380ff;
  --brand-500: #315cff;
  --brand-600: #3159d6;
  --brand-700: #1837ad;
  --brand-500-rgb: 49 92 255;
  --ok-400: #3fd08c;
  --viz-purple: #8e6cf6;
  --line: #ffffff14;
  --line-strong: #ffffff24;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas-0);
  color: var(--ink-100);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: 0.8rem 1rem;
  background: var(--canvas-3);
  color: var(--ink-100);
  border: 2px solid var(--brand-400);
  border-radius: 0.4rem;
}
.skip-link:focus {
  top: 1rem;
}
a:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 5px;
  border-radius: 0.2rem;
}
main:focus {
  outline: none;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: var(--canvas-0);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: max-content;
  font-weight: 750;
  font-size: 1.3rem;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.brand-os {
  color: var(--brand-400);
}
/* The lockup mark ships trimmed to its own ink, so the element is sized by
   height and its width IS the ink width. That makes the flex gap above the
   real optical gap beside the wordmark, with no invisible padding inflating
   it. Do not reintroduce a fixed square width here: the square canvas belongs
   to the icon, which is a separate asset. */
.brand-mark {
  display: block;
  width: auto;
  height: 38px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.7rem);
}
.site-nav a {
  color: var(--ink-80);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--brand-300);
}
.header-access {
  justify-self: end;
  color: var(--brand-300);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.header-access:hover {
  color: var(--ink-100);
}
main {
  display: block;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: calc(100svh - 92px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 5vw, 6rem);
}
.eyebrow,
.section-kicker {
  margin: 0 0 1.7rem;
  color: var(--brand-300);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok-400);
  box-shadow: 0 0 0 5px #3fd08c26;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.7rem, 5.45vw, 6.6rem);
  line-height: 1.01;
}
h1 em {
  color: var(--brand-300);
  font-style: normal;
  font-weight: 400;
}
.intro {
  max-width: 690px;
  margin: 2.1rem 0 0;
  color: var(--ink-80);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.68;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.35rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}
.button-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 12px 30px rgb(var(--brand-500-rgb) / 0.2);
}
.button-primary:hover {
  background: var(--brand-400);
}
.button-quiet {
  border-color: var(--line-strong);
  color: var(--ink-80);
}
.button-quiet:hover {
  border-color: var(--brand-400);
  color: var(--ink-100);
}
.availability {
  margin: 1.35rem 0 0;
  color: var(--ink-60);
  font-size: 0.86rem;
  line-height: 1.6;
}
.availability strong {
  color: var(--ink-100);
}

/* Hero visual: one sales truth resolved from several sources */
.visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas-1);
  border-left: 1px solid var(--line);
}
.visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 48% 46%,
      rgb(var(--brand-500-rgb) / 0.702) 0%,
      #3159d659 32%,
      #8e6cf61f 55%,
      transparent 74%
    ),
    linear-gradient(180deg, var(--canvas-1), var(--canvas-0));
}
.visual::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(135deg, transparent 49.8%, #c4cad633 50%, transparent 50.2%);
  background-size: 104px 104px;
}
.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(#98a0ae2e 1px, transparent 1px),
    linear-gradient(90deg, #98a0ae2e 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 78%);
}
.orbit {
  position: absolute;
  top: 47%;
  left: 50%;
  border: 1px solid #6e92f973;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}
.orbit-one {
  width: min(34vw, 430px);
  height: min(34vw, 430px);
}
.orbit-two {
  width: min(50vw, 650px);
  height: min(50vw, 650px);
  border-color: #6e92f93d;
}
.core {
  position: absolute;
  z-index: 3;
  top: 47%;
  left: 50%;
  width: 228px;
  height: 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 34% 30%,
    var(--canvas-5),
    var(--canvas-3) 62%,
    var(--canvas-2)
  );
  box-shadow:
    0 28px 90px rgb(var(--brand-500-rgb) / 0.502),
    0 0 0 1px #6e92f9a6,
    inset 0 1px 0 #ffffff1f;
}
.core-ring {
  position: absolute;
  inset: 17px;
  border: 1px solid #6e92f966;
  border-radius: 50%;
}
.core-name {
  font-size: 2.45rem;
  font-weight: 750;
  letter-spacing: -0.07em;
  color: var(--ink-100);
}
.core-name span {
  color: var(--brand-300);
}
.core-sub {
  margin-top: 0.4rem;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.system-node {
  position: absolute;
  z-index: 4;
  padding: 0.68rem 0.88rem;
  border: 1px solid #6e92f973;
  background: #1d222ce6;
  color: var(--ink-100);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px #090a0e73;
}
.system-node::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 0 5px #6e92f929;
}
.node-deals {
  top: 17%;
  left: 12%;
}
.node-deals::before {
  right: -19px;
  top: 50%;
}
.node-bookings {
  top: 21%;
  right: 10%;
}
.node-bookings::before {
  left: -19px;
  top: 50%;
}
.node-payments {
  top: 48%;
  right: 5%;
}
.node-payments::before {
  left: -19px;
  top: 50%;
}
.node-receipts {
  bottom: 20%;
  right: 16%;
}
.node-receipts::before {
  left: -19px;
  top: 50%;
}
.node-scope {
  bottom: 18%;
  left: 10%;
}
.node-scope::before {
  right: -19px;
  top: 50%;
}
.node-receipts,
.node-scope {
  border-color: #8e6cf680;
}
.node-receipts::before,
.node-scope::before {
  background: var(--viz-purple);
  box-shadow: 0 0 0 5px #8e6cf629;
}
.visual-trace {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 4vw, 5rem);
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trace-key {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-80);
}
.trace-arrow {
  color: var(--brand-300);
}
.visual-caption {
  position: absolute;
  z-index: 3;
  left: clamp(1.5rem, 4vw, 5rem);
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-100);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.caption-line {
  width: 34px;
  height: 1px;
  background: var(--brand-300);
}

/* Tension */
.tension {
  display: grid;
  grid-template-columns: 0.45fr 1.25fr 0.8fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.tension h2,
.section-heading h2,
.loop-intro h2,
.founder-section h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4.25vw, 5.2rem);
  line-height: 1.04;
}
.tension > div > p {
  max-width: 720px;
  margin: 2rem 0 0;
  color: var(--ink-60);
  font-size: 1.07rem;
  line-height: 1.75;
}
.pull-quote {
  align-self: end;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--brand-500);
  color: var(--ink-80);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.8rem);
  line-height: 1.45;
}

/* System modules */
.system-section {
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 6vw, 7rem);
}
.section-heading {
  display: grid;
  grid-template-columns: 0.48fr 1.1fr 0.72fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  margin-bottom: 4rem;
}
.section-heading .section-kicker {
  margin-top: 0.7rem;
}
.section-heading h2 {
  max-width: 780px;
}
.section-heading > p:last-child {
  margin: 0.7rem 0 0;
  color: var(--ink-60);
  font-size: 1.02rem;
  line-height: 1.7;
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.system-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--canvas-1);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.system-card:hover {
  position: relative;
  z-index: 2;
  background: var(--canvas-3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px #090a0e99;
}
.card-index {
  color: var(--brand-300);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.system-card h3 {
  margin: auto 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}
.system-card p {
  min-height: 5.5rem;
  margin: 0;
  color: var(--ink-60);
  line-height: 1.65;
}
.card-link {
  margin-top: 1.4rem;
  color: var(--brand-300);
  font-size: 0.82rem;
  font-weight: 750;
}

/* Loop */
.loop-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 6vw, 7rem);
  background: var(--canvas-2);
  color: var(--ink-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-kicker.light {
  color: var(--brand-300);
}
.loop-intro {
  position: sticky;
  top: 3rem;
  align-self: start;
}
.loop-intro h2 {
  max-width: 660px;
}
.loop-intro > p:last-child {
  max-width: 600px;
  margin: 2rem 0 0;
  color: var(--ink-60);
  font-size: 1.05rem;
  line-height: 1.75;
}
.loop-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.loop-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line-strong);
}
.loop-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--brand-400);
  border-radius: 50%;
  color: var(--brand-300);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.loop-list h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.loop-list p {
  margin: 0;
  color: var(--ink-60);
  line-height: 1.7;
}

/* Principles */
.principles-section {
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.section-heading.compact {
  grid-template-columns: 0.48fr 1.82fr;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.principles-grid article {
  min-height: 280px;
  padding: clamp(1.7rem, 3vw, 2.8rem);
  background: var(--canvas-0);
}
.principles-grid article > span {
  color: var(--brand-300);
  font-size: 1.25rem;
}
.principles-grid h3 {
  margin: 4.5rem 0 1rem;
  font-size: 1.18rem;
}
.principles-grid p {
  margin: 0;
  color: var(--ink-60);
  line-height: 1.7;
}

/* Leader statement */
.founder-section {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 9vw, 10rem) clamp(1.5rem, 9vw, 12rem);
  background: var(--canvas-1);
}
.founder-mark {
  color: var(--brand-500);
  font-family: var(--serif);
  font-size: clamp(8rem, 16vw, 15rem);
  line-height: 0.7;
}
.founder-section h2 {
  max-width: 970px;
}
.founder-section > div:last-child > p:last-child {
  max-width: 720px;
  margin: 2rem 0 0;
  color: var(--ink-60);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Closing */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6rem, 10vw, 11rem) 1.5rem;
  background: linear-gradient(160deg, var(--brand-500), var(--brand-600) 70%, #2a4bb8);
  color: #fff;
  text-align: center;
}
.closing-mark {
  margin-bottom: 2rem;
  padding: 9px;
  border-radius: 16px;
  background: var(--canvas-0);
  box-shadow: 0 0 0 1px #ffffff33;
}
.closing .section-kicker.light {
  color: #fff;
}
.closing h2 {
  max-width: 980px;
}
.closing > p:not(.section-kicker) {
  max-width: 620px;
  margin: 1.7rem 0 2.4rem;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
}
.button-light {
  background: #fff;
  color: var(--brand-600);
}
.button-light:hover {
  background: var(--ink-100);
}
.closing a:focus-visible {
  outline-color: #fff;
}

/* Footer */
.site-footer {
  min-height: 110px;
  padding: 1.5rem clamp(1.5rem, 6vw, 7rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-60);
  font-size: 0.86rem;
}
.footer-brand {
  font-size: 1.05rem;
}
.footer-brand .brand-mark {
  width: auto;
  height: 32px;
}
.site-footer p {
  margin: 0;
}
.site-footer > a:last-child {
  justify-self: end;
  color: var(--brand-300);
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 690px;
  }
  .visual {
    min-height: 620px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .orbit-one {
    width: 420px;
    height: 420px;
  }
  .orbit-two {
    width: 650px;
    height: 650px;
  }
  .tension,
  .section-heading {
    grid-template-columns: 0.5fr 1.5fr;
  }
  .tension .pull-quote,
  .section-heading > p:last-child {
    grid-column: 2;
  }
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    padding-inline: 1.2rem;
  }
  .header-access {
    font-size: 0.78rem;
  }
  .brand {
    font-size: 1.15rem;
  }
  .brand-mark {
    width: auto;
    height: 34px;
  }
  .hero-copy {
    min-height: 0;
    padding: 4.7rem 1.3rem 5rem;
  }
  h1 {
    font-size: clamp(3rem, 14.5vw, 4.8rem);
  }
  .intro {
    font-size: 1.04rem;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .button {
    width: 100%;
  }
  .visual {
    min-height: 500px;
  }
  .core {
    width: 168px;
    height: 168px;
  }
  .core-name {
    font-size: 1.85rem;
  }
  .core-sub {
    display: none;
  }
  .orbit-one {
    width: 290px;
    height: 290px;
  }
  .orbit-two {
    width: 470px;
    height: 470px;
  }
  .system-node {
    padding: 0.55rem 0.65rem;
    font-size: 0.58rem;
  }
  .node-deals {
    top: 14%;
    left: 5%;
  }
  .node-bookings {
    top: 18%;
    right: 4%;
  }
  .node-payments {
    top: 49%;
    right: 1%;
  }
  .node-receipts {
    bottom: 18%;
    right: 8%;
  }
  .node-scope {
    bottom: 15%;
    left: 4%;
  }
  .visual-trace {
    display: none;
  }
  .visual-caption {
    left: 1.3rem;
    bottom: 1.6rem;
  }
  .tension,
  .section-heading,
  .section-heading.compact,
  .loop-section,
  .founder-section {
    grid-template-columns: 1fr;
  }
  .tension,
  .system-section,
  .loop-section,
  .principles-section,
  .founder-section {
    padding: 5rem 1.3rem;
  }
  .tension .pull-quote,
  .section-heading > p:last-child {
    grid-column: auto;
  }
  .system-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .system-card {
    min-height: 270px;
  }
  .loop-intro {
    position: static;
  }
  .loop-list li {
    grid-template-columns: 52px 1fr;
    gap: 1rem;
  }
  .founder-mark {
    font-size: 8rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
    padding: 2rem 1.3rem;
  }
  .site-footer > a:last-child {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .system-card {
    transition: none;
  }
}
