/* Native Mojo — light editorial-technical
   paper + ink + one accent. Hairlines, not shadows. */

:root {
  --paper:      #FFFFFF;
  --canvas:     #F6F7F9;
  --canvas-2:   #FBFCFD;
  --ink:        #0E1217;
  --ink-2:      #48525F;
  --ink-3:      #6B7787;
  --line:       #E4E7EC;
  --line-2:     #EDEFF3;
  --accent:     #0B6BD8;
  --accent-2:   #0B7BF0;
  --accent-wash:#EEF5FE;

  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
             "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo,
          "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 52px);
  --r: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ── type ───────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; }

h1 {
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-weight: 620;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.033em;
  text-wrap: balance;
}

h3 { font-size: 20px; line-height: 1.32; letter-spacing: -0.022em; }
h4 { font-size: 16px; line-height: 1.4; letter-spacing: -0.014em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.58;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  flex: none;
}

.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.6; }

/* ── nav ────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.top__in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 66px;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.022em; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  letter-spacing: -0.008em;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 560; }
/* The CTA is a filled pill on --ink, so it needs a white label in EVERY
   state. All three .nav ink rules above outrank .btn's own color (.nav a
   is 0,1,1 vs .btn's 0,1,0), so each one has to be answered explicitly —
   patching only the current-page case left the label at --ink-2 on --ink
   (2.4:1) on every other page, and --ink on the hover fill (1.2:1). */
.nav a.btn,
.nav a.btn:hover,
.nav a.btn[aria-current="page"] { color: #fff; }

/* group heading inside a long section */
.grouph {
  font-size: 21px; letter-spacing: -0.024em;
  margin: 46px 0 20px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.grouph:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 550; letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: #1E2530; border-color: #1E2530; text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #0A5DBC; border-color: #0A5DBC; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--canvas); border-color: #D5DAE1; }

.btn--sm { height: 36px; padding: 0 15px; font-size: 14px; }

.nav__cta { margin-left: 4px; }

/* ── hero ───────────────────────────────────────────── */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; display: block; }

.hero__cap {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin: 6px 0 0;
}

/* page header (interior pages) */
.phead { padding: clamp(48px, 6.5vw, 86px) 0 clamp(30px, 4vw, 48px); }
.phead h1 { max-width: 17ch; }
.phead .lede { margin-top: 22px; max-width: 58ch; }

.lockup { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.lockup img { width: 40px; height: 40px; }
.lockup b { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }

/* ── sections ───────────────────────────────────────── */

.sec { padding: clamp(56px, 7.5vw, 104px) 0; }
.sec--tint { background: var(--canvas); border-block: 1px solid var(--line-2); }
.sec--tight { padding: clamp(40px, 5vw, 64px) 0; }

.sec__head { max-width: 62ch; margin-bottom: clamp(34px, 4.5vw, 56px); }
.sec__head .lede { margin-top: 18px; }

.rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ── mobile menu (no JS) ────────────────────────────── */

.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  border-radius: 2px;
}
.menu__panel {
  position: absolute; right: 0; top: 48px;
  min-width: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 34px rgba(14,18,23,0.1);
}
.menu__panel a {
  display: block; padding: 10px 12px; border-radius: 7px;
  font-size: 15px; color: var(--ink-2);
}
.menu__panel a:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }

/* ── layer stack diagram ────────────────────────────── */

.stack { display: block; }

.stack__layer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 20px 22px 22px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 6px 26px;
  align-items: start;
}
.stack__layer--core {
  background: var(--accent-wash);
  border-color: #CFE1F8;
}

.stack__tag {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  grid-row: 1 / span 2;
  display: flex; align-items: baseline; gap: 9px;
  padding-top: 3px;
}
.stack__tag .n { color: var(--accent); }

.stack__main h3 { font-size: 17.5px; margin-bottom: 5px; }
.stack__main p { font-size: 14.8px; line-height: 1.55; color: var(--ink-2); }

.stack__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }

.chip {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .02em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
  white-space: nowrap;
}
.stack__layer--core .chip { border-color: #D7E5F8; }
.chip--link { color: var(--accent); border-color: #CFE1F8; background: #fff; }
.chip--link:hover { background: var(--accent-wash); text-decoration: none; }
.chip--dim { color: var(--ink-3); border-style: dashed; }

.stack__joint {
  height: 46px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.stack__joint::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line);
}
.stack__joint span {
  position: relative;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--paper); padding: 0 10px;
}

/* ── architecture diagram ───────────────────────────── */

.arch {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3.4vw, 44px);
}
.arch svg { width: 100%; height: auto; display: block; }

.arch__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 36px);
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-2);
}
.arch__legend h4 { margin-bottom: 7px; }
.arch__legend p { font-size: 15px; line-height: 1.58; color: var(--ink-2); }
.arch__legend .n {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  color: var(--accent); display: block; margin-bottom: 9px;
}

/* ── capability grid ────────────────────────────────── */

/* gap lines are drawn by each cell, not by the container background —
   an incomplete last row leaves paper, not a grey block */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}
.cap {
  background: var(--paper);
  padding: 26px 24px 28px;
  box-shadow: 1px 0 0 var(--line-2), 0 1px 0 var(--line-2),
              1px 1px 0 var(--line-2);
}
.cap .k {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: .1em; display: block; margin-bottom: 12px;
}
.cap h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.016em; }
.cap p { font-size: 14.8px; line-height: 1.6; color: var(--ink-2); }

/* ── product block (text + shot) ────────────────────── */

.prod {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.prod--flip .prod__copy { order: 2; }

.prod__copy .lede { max-width: 40ch; }
.prod__logo { height: 30px; width: auto; margin-bottom: 20px; }

.plist { list-style: none; margin: 26px 0 0; padding: 0; }
.plist li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--line-2);
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
}
.plist li:last-child { border-bottom: 1px solid var(--line-2); }
.plist li::before {
  content: ""; position: absolute; left: 2px; top: 20px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.plist b { color: var(--ink); font-weight: 560; }

.more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 26px; font-size: 15.5px; font-weight: 550;
  letter-spacing: -0.01em;
}
.more svg { width: 14px; height: 14px; transition: transform .16s ease; }
.more:hover { text-decoration: none; }
.more:hover svg { transform: translateX(3px); }

/* screenshot frame */
.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--canvas-2);
  box-shadow: 0 1px 2px rgba(14,18,23,0.04), 0 12px 34px rgba(14,18,23,0.06);
}
.shot img { width: 100%; }
.shot--dark { background: #15181C; border-color: #23282F; }

.shot__cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 14px 0 0;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

/* ── advantages ─────────────────────────────────────── */

.adv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(24px, 2.8vw, 38px);
}
.adv > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.adv h3 { font-size: 18px; margin-bottom: 9px; }
.adv p { font-size: 15.2px; line-height: 1.6; color: var(--ink-2); }

/* ── numbered index (portfolio / examples) ──────────── */

.index { border-top: 1px solid var(--line); }
.index__row {
  display: grid;
  grid-template-columns: 52px 1.05fr 1.35fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}
.index__row .n {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: .06em;
}
.index__row h3 { font-size: 18px; }
.index__row p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.index__row .go { font-size: 14px; white-space: nowrap; color: var(--accent); }

/* ── facts / stats ──────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line-2);
  border-block: 1px solid var(--line-2);
}
.facts > div { background: var(--paper); padding: 26px 22px; }
.facts b {
  display: block; font-size: 32px; font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 6px;
}
.facts span {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.5;
  display: block;
}

/* ── code chips ─────────────────────────────────────── */

.code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--canvas); border: 1px solid var(--line);
  border-radius: 7px; padding: 10px 14px;
  color: var(--ink); display: inline-block;
  letter-spacing: -0.01em;
}

/* ── pipeline (security) ────────────────────────────── */

.pipe { display: grid; gap: 1px; background: var(--paper);
        border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pipe > div { background: var(--paper); padding: 22px 20px 24px;
              box-shadow: 1px 0 0 var(--line-2), 0 1px 0 var(--line-2),
                          1px 1px 0 var(--line-2); }
.pipe .n {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: .12em; display: block; margin-bottom: 11px;
}
.pipe h4 { margin-bottom: 7px; }
.pipe p { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); }

/* ── CTA band ───────────────────────────────────────── */

.cta {
  background: var(--ink);
  color: #fff;
  padding: clamp(52px, 6.5vw, 88px) 0;
}
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: #A9B4C2; margin-top: 18px; max-width: 52ch; font-size: 17.5px; }
.cta .eyebrow { color: #8C99A8; }
.cta .eyebrow::before { background: var(--accent-2); }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.24); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.4); }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ── forms ──────────────────────────────────────────── */

.form { display: grid; gap: 18px; }
.form label {
  display: block; font-size: 13px; font-weight: 560; color: var(--ink);
  margin-bottom: 7px; letter-spacing: -0.005em;
}
.form input, .form textarea, .form select {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.form__msg { font-size: 15px; margin-top: 4px; }
.form__msg.ok { color: #1B7A44; }
.form__msg.err { color: #B4231F; }

.dl { margin: 0; }
.dl dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
  padding-top: 18px; border-top: 1px solid var(--line-2);
}
.dl dt:first-of-type { border-top: 0; padding-top: 0; }
.dl dd { margin: 7px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.dl dd:last-child { margin-bottom: 0; }

/* ── split (contact) ────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

/* ── prose ──────────────────────────────────────────── */

.prose { max-width: 66ch; }
.prose h2 { margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 34px; margin-bottom: 8px; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 570; }
.prose ul { padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }

/* ── footer ─────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 52px 0 44px; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}
.foot h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot li a { font-size: 14.5px; color: var(--ink-2); }
.foot li a:hover { color: var(--ink); text-decoration: none; }
.foot__brand p {
  font-size: 14.5px; color: var(--ink-3); max-width: 34ch; margin-top: 14px;
  line-height: 1.6;
}
.foot__base {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  justify-content: space-between;
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink-3);
}

/* ── cube animation ─────────────────────────────────── */

@keyframes trace { to { stroke-dashoffset: -220; } }
@keyframes blip  { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.trace { stroke-dasharray: 26 194; animation: trace 3.6s linear infinite; }
.node  { animation: blip 2.8s ease-in-out infinite; }

/* ── reveal ─────────────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── responsive ─────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 340px; margin: 4px auto 0; }
  .prod, .split { grid-template-columns: 1fr; }
  .prod--flip .prod__copy { order: 0; }
  .arch__legend { grid-template-columns: 1fr; gap: 22px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .stack__layer { grid-template-columns: 1fr; gap: 4px; }
  .stack__tag { grid-row: auto; padding-top: 0; margin-bottom: 8px; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .menu { display: block; }
  .top__in { height: 60px; }
  .index__row { grid-template-columns: 34px 1fr; row-gap: 6px; }
  .index__row p { grid-column: 2; }
  .index__row .go { grid-column: 2; }
  .form .row2 { grid-template-columns: 1fr; }
  .arch { padding: 18px 16px; border-radius: 12px; }
}

@media (max-width: 460px) {
  body { font-size: 16.5px; }
  .foot__grid { grid-template-columns: 1fr; }
}
