:root {
  /* The original site's blues and grays on a near-black navy. */
  --bg: #020b18;
  --bgc: 2,11,24;            /* the background as r,g,b, for translucent shades */
  --ink: #f4f7fb;
  --dim: rgba(213, 225, 240, .72);
  --faint: rgba(213, 225, 240, .42);
  --rule: rgba(213, 225, 240, .16);
  --glass: rgba(3, 16, 34, .62);
  --accent: #5aaeea;         /* a lighter tint of the brand blue #3385c6, for small labels */
  --glow: 90,174,234;        /* the accent as r,g,b, for glows */
  --tag2: #a9c9ea;
  --tag3: #c9d3df;
  --on-ink: #03182e;
  --pad: clamp(20px, 3.6vw, 56px);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter Tight', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad);
  font-size: 14px; letter-spacing: .01em;
  transition: padding .5s cubic-bezier(.2,.7,.1,1), background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(var(--bgc),.62); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .14em; font-size: 15px; }
.brand img { display: block; width: 28px; height: 28px; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 36px); align-items: center; color: rgba(242,246,252,.95); }
/* The surface passes behind the nav, so the text carries a soft dark halo until the bar turns solid. */
.nav:not(.scrolled) { text-shadow: 0 0 12px rgba(var(--bgc),.95), 0 1px 3px rgba(var(--bgc),.85); }
.nav nav a { transition: color .3s, text-shadow .3s, border-color .3s, box-shadow .3s; }
/* Hover: the link brightens and picks up a soft glow in the accent color, like the View Demo pill. */
.nav nav a:hover { color: #fff; text-shadow: 0 0 16px rgba(var(--glow),.95), 0 0 3px rgba(var(--glow),.6); }
.pill { border: 1px solid var(--rule); padding: 9px 18px; border-radius: 99px; color: var(--ink); }
.nav nav a.pill:hover { border-color: rgba(var(--glow),.8); box-shadow: 0 0 24px rgba(var(--glow),.38), inset 0 0 12px rgba(var(--glow),.12); }

/* ---------- menu (narrow screens) ---------- */
.menu-btn {
  display: none; position: relative; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  background: rgba(var(--bgc), .35); border: 1px solid var(--rule); transition: border-color .3s, box-shadow .3s;
}
/* Three bars that turn into an X while the sheet is open. */
.menu-btn svg {
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round;
  transition: opacity .3s ease, transform .45s cubic-bezier(.16,.8,.2,1);
}
.menu-btn .x { opacity: 0; transform: rotate(-45deg) scale(.7); }
.menu-open .menu-btn .i { opacity: 0; transform: rotate(45deg) scale(.7); }
.menu-open .menu-btn .x { opacity: 1; transform: none; }
.menu-btn:hover, .menu-open .menu-btn { border-color: rgba(var(--glow), .8); box-shadow: 0 0 24px rgba(var(--glow), .3); }
.menu {
  display: none; position: fixed; inset: 0; z-index: 5; flex-direction: column;
  padding: 104px var(--pad) 36px; overflow-y: auto;
  background: rgba(var(--bgc), .9); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open, .menu-open body { overflow: hidden; }
.menu .item {
  display: block; padding: 22px 0 24px; border-top: 1px solid var(--rule);
  font-size: 27px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1;
  opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .55s cubic-bezier(.16,.8,.2,1);
}
.menu .item:nth-child(3) { border-bottom: 1px solid var(--rule); }
.menu .item b { display: block; margin-bottom: 10px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.menu .item small { display: block; margin-top: 8px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--dim); }
.menu .btn { margin-top: 30px; align-self: flex-start; opacity: 0; transition: opacity .45s ease .32s, background .3s, box-shadow .3s; }
.menu-open .menu .item, .menu-open .menu .btn { opacity: 1; transform: none; }
.menu-open .menu .item:nth-child(1) { transition-delay: .06s; }
.menu-open .menu .item:nth-child(2) { transition-delay: .13s; }
.menu-open .menu .item:nth-child(3) { transition-delay: .2s; }
/* With the sheet open, the bar above it stays clear so the logo and Close read cleanly. */
.menu-open .nav { background: none; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- sections ---------- */
main { position: relative; z-index: 2; }
.sec {
  position: relative; isolation: isolate; scroll-margin-top: 20px;
  min-height: 100vh; padding: 16vh var(--pad);
  display: flex; flex-direction: column; justify-content: center; gap: 56px;
}
/* A soft shade behind the copy so the scene never fights the type. */
.sec::before {
  content: ''; position: absolute; inset: -12vh 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--bgc),.86) 0%, rgba(var(--bgc),.6) 36%, rgba(var(--bgc),0) 66%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.sec.right::before { background: linear-gradient(270deg, rgba(var(--bgc),.86) 0%, rgba(var(--bgc),.6) 36%, rgba(var(--bgc),0) 66%); }
.sec.case::before, .sec.engines::before { background: rgba(var(--bgc),.5); }
.sec.contact::before { background: linear-gradient(180deg, rgba(var(--bgc),.7), rgba(var(--bgc),0) 62%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%); mask-image: linear-gradient(180deg, transparent, #000 34%); inset: -12vh 0 0; }
.sec.hero::before { inset: 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
  background: linear-gradient(90deg, rgba(var(--bgc),.78) 0%, rgba(var(--bgc),.46) 34%, rgba(var(--bgc),0) 60%); }

.col { max-width: 640px; }
.col.wide { max-width: 760px; }
.sec.right .col { margin-left: auto; }

h2 {
  font-weight: 500; font-size: clamp(32px, 4.3vw, 66px); line-height: 1; letter-spacing: -.034em;
  text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 33em; font-size: clamp(16px, 1.32vw, 19.5px); line-height: 1.52; color: var(--dim); }

.glass {
  background: var(--glass); border: 1px solid var(--rule); border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

/* ---------- hero ---------- */
.hero { justify-content: flex-start; padding-top: 22vh; padding-bottom: 8vh; min-height: 0; }
.hero-in { width: min(940px, 100%); }
h1 { font-weight: 500; font-size: clamp(46px, 7vw, 108px); line-height: .94; letter-spacing: -.038em; }
h1 .l { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
h1 .l > span { display: block; }
.intro { margin-top: 34px; max-width: 31em; font-size: clamp(16px, 1.32vw, 19.5px); line-height: 1.5; color: var(--dim); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  font-size: 15px; font-weight: 500; padding: 14px 22px; border-radius: 99px;
  border: 1px solid var(--rule); backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.btn:hover { border-color: rgba(222,229,255,.5); transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { background: #fff; box-shadow: 0 8px 32px rgba(var(--glow),.42), 0 0 0 1px rgba(var(--glow),.25); }
.by { margin-top: 30px; font-size: 13px; color: var(--faint); max-width: 34em; }
.cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--faint), transparent); transform-origin: top; }

/* ---------- suite ---------- */
.suite { min-height: 110vh; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); }
.parts li { padding: 28px 28px 32px; border-left: 1px solid var(--rule); }
.parts li:first-child { border-left: 0; }
/* the number sits in front of its heading, centered on the height of the heading's text */
.parts h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.parts .n { flex: none; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; color: var(--accent); }
.parts p { font-size: 15.5px; line-height: 1.5; color: var(--dim); }
/* On the home page the three parts sit in one box that behaves like a software tile: Learn More
   stretches over the whole box, and View Examples is the pill at the right. */
.specbox { position: relative; transition: border-color .4s, transform .5s cubic-bezier(.2,.7,.1,1); }
.specbox:hover { border-color: rgba(222,229,255,.36); transform: translateY(-4px); }
.specbox .actions { margin-top: 0; padding: 20px 28px 22px; border-top: 1px solid var(--rule); }
.specbox:hover .more { color: var(--ink); }
.specbox:hover .more span { transform: translateX(6px); }

/* ---------- specifications & test cases page ---------- */
.offer { min-height: 0; padding-top: 3vh; padding-bottom: 8vh; gap: 20px; }
.cases { min-height: 0; padding-top: 12vh; padding-bottom: 14vh; gap: 44px; scroll-margin-top: 0; }
.sec.offer::before, .sec.cases::before { background: rgba(var(--bgc),.55); }
.offer .plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; }
.offer .plist li:last-child { padding-bottom: 15px; }

/* ---------- case ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: clamp(32px, 6vw, 110px); }
.card { padding: 26px 30px 28px; font-family: var(--mono); font-size: 13.5px; }
.card figcaption {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.card dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 7px 0; }
.card dt { color: var(--dim); }
.card dd { font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.card .given { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.card .step { padding: 18px 0 12px; border-bottom: 1px solid var(--rule); }
.card .step.last { border-bottom: 0; padding-bottom: 0; }
.card .what { margin-bottom: 8px; color: var(--ink); font-family: 'Inter Tight', sans-serif; font-size: 17px; letter-spacing: -.01em; }
.card .what b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-right: 14px; }
.card .hot dd { color: var(--accent); font-size: 22px; font-weight: 500; text-shadow: 0 0 22px rgba(var(--glow),.55); }
.card .hot dt { color: var(--ink); }
.card .verdict { display: flex; gap: 12px; align-items: baseline; margin-top: 18px; font-family: 'Inter Tight', sans-serif; font-size: 14.5px; line-height: 1.45; color: var(--dim); }
.card .verdict i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: translateY(-1px); }

/* ---------- engines ---------- */
.pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engine { padding: 30px 30px 32px; display: flex; flex-direction: column; min-height: 340px; transition: border-color .4s, transform .5s cubic-bezier(.2,.7,.1,1); }
.engine:hover { border-color: rgba(222,229,255,.36); transform: translateY(-4px); }
.engine h3 { margin: 0 0 16px; font-weight: 500; font-size: clamp(24px, 2.15vw, 32px); letter-spacing: -.03em; line-height: 1.04; }
.engine p { font-size: 16.5px; line-height: 1.52; color: var(--dim); max-width: 34em; }
/* Every tile has Details on the left. A demo, where there is one, sits at the far right. */
.actions { margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; }
/* The demo is the action to notice: a filled pill, like the first screen's main button. */
.demo {
  position: relative; z-index: 1; display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 99px; background: var(--ink); color: var(--on-ink);
  font-size: 14px; font-weight: 600; transition: background .3s, transform .3s, box-shadow .3s;
}
.demo:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 26px rgba(var(--glow),.28); }
.demo i, .plinks i { font-style: normal; margin-left: 7px; font-size: .92em; }
.more { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; color: var(--dim); transition: color .3s; }
.engine:hover .more { color: var(--ink); }
/* The Learn More link stretches over the whole tile, so a click anywhere on it opens the product page. */
.engine { position: relative; }
.more::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.more span { transition: transform .35s cubic-bezier(.2,.7,.1,1); }
.engine:hover .more span { transform: translateX(6px); }
.note { max-width: 46em; font-size: 14px; line-height: 1.5; color: var(--faint); margin-top: -28px; }

/* ---------- product pages ---------- */
.phero { min-height: 0; padding-top: 22vh; padding-bottom: 7vh; gap: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.crumb a { color: var(--dim); transition: color .3s; }
.crumb a:hover { color: var(--ink); }
.crumb b { font-weight: 400; color: var(--accent); }
.phero h1 { font-size: clamp(40px, 5.6vw, 88px); line-height: .96; max-width: 11em; text-wrap: balance; }
.phero .lede { margin-top: 30px; max-width: 34em; }
.pbody { min-height: 0; padding-top: 5vh; padding-bottom: 14vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sec.pbody::before { background: rgba(var(--bgc),.55); }
.pstack { display: grid; gap: 20px; }
/* a product page with a single panel: it takes the full width and its list runs in two columns */
.pbody.solo { grid-template-columns: minmax(0, 1fr); }
.pbody.solo .plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.pbody.solo .plist li:last-child { padding-bottom: 15px; }
.panel { padding: 28px 32px 30px; }
.panel h2 { margin-bottom: 18px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--accent); }
.panel p { font-size: 16.5px; line-height: 1.52; color: var(--dim); }
.panel p + p { margin-top: 12px; }
.panel .small { font-size: 14px; color: var(--faint); }
.plist li { padding: 15px 0; border-top: 1px solid var(--rule); font-size: 17.5px; line-height: 1.4; }
.plist li:last-child { padding-bottom: 0; }
.plinks a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--rule); font-size: 17.5px; font-weight: 500; transition: color .3s; }
.plinks a:hover { color: var(--accent); }
.plinks + .small { margin-top: 14px; }

/* ---------- consulting ---------- */
.rows { margin-top: 28px; border-top: 1px solid var(--rule); }
.rows li { padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: clamp(18px, 1.55vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }

/* ---------- contact ---------- */
.contact { align-items: center; text-align: center; justify-content: flex-start; padding-top: 15vh; padding-bottom: 0; gap: 0; min-height: 100vh; }
.about { max-width: 36em; font-size: clamp(16px, 1.32vw, 19.5px); line-height: 1.55; color: var(--dim); }
.about.sub { margin-top: 28px; }
.big { margin-top: 48px; font-size: clamp(44px, 8.2vw, 128px); line-height: .92; letter-spacing: -.042em; }
.contact .cta { justify-content: center; margin-top: 32px; }
.contact footer {
  margin-top: auto; width: 100%; display: flex; justify-content: space-between; gap: 20px; white-space: nowrap;
  padding: 26px 0; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  h1 .l > span { transform: translateY(108%); animation: rise 1.25s cubic-bezier(.16,.8,.2,1) forwards; animation-delay: calc(.35s + var(--i) * .1s); }
  .intro, .hero .cta, .by, .nav { opacity: 0; animation: fade 1.4s ease forwards; }
  .nav { animation-delay: .2s; }
  .intro { animation-delay: .9s; } .hero .cta { animation-delay: 1.1s; } .by { animation-delay: 1.3s; }
  .cue i { animation: cue 2.6s cubic-bezier(.6,0,.2,1) infinite; }
  .rv { opacity: 0; transform: translateY(34px); transition: opacity 1.1s cubic-bezier(.2,.7,.1,1), transform 1.3s cubic-bezier(.16,.8,.2,1); }
  .rv.in { opacity: 1; transform: none; }
  .col .rv:nth-child(2), .pair .rv:nth-child(2) { transition-delay: .09s; }
  .col .rv:nth-child(3) { transition-delay: .18s; }
  .engine.rv.in, .specbox.rv.in { transition: border-color .4s, transform .5s cubic-bezier(.2,.7,.1,1), opacity 1.1s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 900px) { h1 .l > span { white-space: nowrap; } }
@media (max-height: 800px) { .hero .by { display: none; } }
@media (max-width: 1000px) {
  .pbody { grid-template-columns: 1fr; }
  .pbody.solo .plist, .offer .plist { grid-template-columns: 1fr; }
  .case { display: flex; }
  .pair { grid-template-columns: 1fr; }
  .engine { min-height: 0; }
}
/* The full nav needs about 500px, so it stays until the screen is narrower than 600px. Only then do
   the links fold behind the menu button. (menu.js closes the menu again at 600px and up.) */
@media (max-width: 599px) {
  .nav nav a { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { display: flex; }
}
/* The footer's three items share a line down to a 445px screen. Under 480px, which leaves room for
   a scrollbar, only the copyright shows, so there is no width where one item drops to a second line. */
@media (max-width: 479px) {
  .contact footer { justify-content: center; }
  .contact footer span:not(:last-child) { display: none; }
}
@media (max-width: 820px) {
  .cue { display: none; }
  .hero { padding-top: 14vh; }
  .sec::before, .sec.right::before { background: rgba(var(--bgc),.62); }
  .parts { grid-template-columns: 1fr; }
  .hero { height: auto; padding-bottom: 8vh; }
  .parts li { border-left: 0; border-top: 1px solid var(--rule); }
  .parts li:first-child { border-top: 0; }

}
