:root {
  --brand-ink: #102f31;
  --brand-deep: #112c30;
  --brand-line: #d9e2df;
  --accent: #126457;
  --accent-hover: #0b5048;
  --commercial-width: min(calc(100% - clamp(36px, 8vw, 128px)), 1216px);
}
.mast { z-index:8; background:#fff; border-color:#d9e1df; }
.enterprise-nav {
  width:var(--commercial-width); min-height:var(--mast); margin:auto;
  display:flex; align-items:center; gap:clamp(24px, 5vw, 72px); color:var(--brand-ink);
}
.enterprise-nav .brand { font-size:35px; }
.commercial-nav { display:flex; gap:clamp(14px, 2.1vw, 34px); align-self:stretch; align-items:stretch; }
.nav-group { display:flex; }
.nav-group > summary {
  display:flex; align-items:center; justify-content:center; gap:8px; height:100%; min-height:44px;
  font-weight:560; font-size:15px; list-style:none; white-space:nowrap; border-bottom:2px solid transparent;
}
.nav-group > summary::-webkit-details-marker { display:none; }
.nav-group > summary::after { content:""; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); }
.nav-group[open] > summary { border-color:#197767; color:#116050; }
.nav-group[open] > summary::after { transform:rotate(225deg) translate(-1px,-1px); }
.nav-group:not([open]) > .nav-fly { display:none; }
.nav-fly {
  position:absolute; top:100%; left:0; right:0; background:#fff; border-top:1px solid var(--brand-line);
  box-shadow:0 22px 36px -18px #0a242a44; max-height:calc(100dvh - var(--mast)); overflow-y:auto;
}
.nav-fly-inner { width:var(--commercial-width); margin:auto; display:grid; grid-template-columns:.82fr 2fr; gap:clamp(24px,4vw,60px); padding-block:30px; }
.nav-intro { padding:8px clamp(14px,1.8vw,30px) 8px 0; border-right:1px solid var(--brand-line); }
.nav-intro h2 { font-size:clamp(22px,2.3vw,32px); font-weight:575; text-align:left; letter-spacing:-.045em; line-height:1.15; }
.nav-intro p { font-size:15px; line-height:1.45; margin-top:10px; color:#4d6160; max-width:35ch; }
.nav-fly ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:6px 22px; align-content:center; }
.nav-fly li a { display:block; padding:10px 12px; border-radius:5px; min-height:46px; }
.nav-fly li a:is(:hover,:focus-visible) { background:#edf4f1; }
.nav-fly a strong,.nav-fly a span { display:block; }
.nav-fly a strong { font-size:16px; font-weight:625; }
.nav-fly a span { font-size:14px; color:#4d6160; margin-top:3px; }
.enterprise-nav .demo-link { padding:8px 18px; min-height:40px; color:#fff; border-radius:5px; background:var(--brand-ink); font-size:15px; }
.enterprise-nav .demo-link:hover { background:#195349; color:white; text-decoration:none; }
.market-hero { position:relative; isolation:isolate; background:#122e31; color:#fff; }
.market-cover { position:absolute; inset:0 0 0 auto; z-index:-2; width:77%; height:100%; object-fit:cover; object-position:50% 55%; }
.market-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#102b2d 8%,rgba(16,43,45,.98) 28%,rgba(16,43,45,.85) 42%,rgba(16,43,45,.24) 64%,rgba(16,43,45,.03) 90%); }
.market-inner { margin:auto; width:var(--commercial-width); min-height:clamp(485px,36vw,570px); display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr); align-items:center; justify-content:space-between; gap:clamp(25px,6vw,88px); padding-block:clamp(38px,5.5vw,82px); }
.market-copy h1 { max-width:17ch; font-size:clamp(42px,4.45vw,72px); line-height:1.015; font-weight:555; letter-spacing:-.061em; text-align:left; text-wrap:balance; }
.market-copy p { max-width:50ch; margin-top:20px; font-size:clamp(16px,1.2vw,19px); line-height:1.5; color:#e3ece8; text-wrap:pretty; }
.market-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 22px; margin-top:26px; }
.market-button,.market-link { display:inline-flex; align-items:center; min-height:44px; font-weight:585; font-size:15px; }
.market-button { padding:9px 17px; background:#f2f7f5; color:#133633; border-radius:5px; }
.market-button:hover { background:white; }
.market-link { text-decoration:underline; text-underline-offset:5px; }
.signal-preview { width:min(100%,370px); justify-self:end; align-self:end; margin-bottom:-12px; color:#143631; border:1px solid #ffffffb8; background:#fbfdfb; box-shadow:0 10px 44px #0c222a50; border-radius:8px; font-variant-numeric:tabular-nums; }
.signal-bar,.signal-foot,.signal-context,.signal-reading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.signal-bar { border-bottom:1px solid #dce6e1; padding:11px 16px; }
.signal-bar strong { display:inline-flex; align-items:center; gap:7px; font-size:15px; }
.signal-bar .mark { width:12px; height:13px; color:#418778; }
.signal-bar span,.signal-context span:last-child,.signal-chart small { font-size:13px; color:#526862; }
.signal-content { padding:15px 16px 12px; }
.signal-context { align-items:baseline; font-size:15px; color:#223e39; }
.signal-context span:first-child { font-weight:550; }
.signal-reading { align-items:end; margin-top:14px; }
.signal-reading > div:first-child { flex:1 1 52%; }
.signal-reading strong { display:block; font-size:clamp(32px,3vw,44px); font-weight:560; line-height:1.04; letter-spacing:-.055em; }
.signal-reading span { display:block; font-size:13px; line-height:1.4; margin-top:6px; color:#455d55; }
.signal-chart { flex:1 1 48%; text-align:right; min-width:0; }
.signal-chart svg { display:block; width:100%; height:54px; }
.signal-chart path { fill:none; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.chart-guide { stroke:#dce7e2; stroke-width:.8; }
#preview-history { stroke:#294941; stroke-width:2; }
#preview-future { stroke:#188471; stroke-width:2; stroke-dasharray:3.5 4; }
.signal-foot { background:#f4f7f4; border-top:1px solid #dce6e1; padding:2px 9px 2px 16px; border-radius:0 0 8px 8px; font-size:14px; }
.signal-foot div { display:flex; }.signal-foot button { display:grid; place-items:center; width:36px; height:36px; background:transparent; border:0; border-radius:4px; }
.signal-foot button:hover {background:#dfe9e3;}
.signal-foot i { width:8px; height:8px; border:solid #30554b; border-width:0 1.5px 1.5px 0; transform:rotate(-45deg); }
.signal-foot [data-shift="-1"] i { transform:rotate(135deg); }
.platform-wrap,.showcase>.wrap {width:var(--commercial-width);}
.engine-directory { padding:clamp(45px,5.5vw,78px) 0; background:white; }
.dir-heading { display:grid; grid-template-columns:1fr 1fr; align-items:end; gap:28px; margin-bottom:26px; }
.dir-heading h2 { color:#162e30; font-size:clamp(32px,3.4vw,49px); letter-spacing:-.055em; }
.dir-heading p { justify-self:end; max-width:48ch; color:#52615f; font-size:16px; line-height:1.5; }
.engine-browser { display:grid; grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr); gap:clamp(18px,3vw,42px); }
.product-picker { display:grid; grid-template-columns:1fr; align-content:start; }
.product-picker button { display:block; width:100%; text-align:left; padding:12px 16px; border:0; border-bottom:1px solid var(--brand-line); background:none; color:#163934; }
.product-picker button[aria-pressed=true] { box-shadow:inset 3px 0 #197764; background:#eaf3ef; }
.product-picker button:hover { background:#f2f7f3; }
.product-picker strong,.product-picker span { display:block; }
.product-picker strong { font-size:18px; line-height:1.25; font-weight:600; letter-spacing:-.02em; }
.product-picker span { margin-top:3px; color:#4f655f; font-size:14px; }
.engine-directory .engine-console { border-radius:8px; box-shadow:none; padding:clamp(16px,2.1vw,28px); }
.engine-directory .module-content { padding-top:12px; }
.engine-directory .module-circuit { margin-top:12px; }
.engine-directory .module-content>p { min-height:0; }
.showcase { background:#edf2ef; }
.industry-rail { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid #b8c9c1; }
.industry-rail button { display:flex; align-items:center; text-align:left; gap:10px; font-size:15px; padding:9px 8px; border:0; border-bottom:2px solid transparent; background:transparent; color:#334d45; }
.industry-rail img { width:37px; height:37px; object-fit:contain; mix-blend-mode:multiply; }
.industry-rail button[aria-pressed=true] { color:#113e32; border-color:#18785f; font-weight:650; background:#e3ece6; }
.industry-rail button:hover { background:#e3ece6; }
.industry-context { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 18px; align-items:baseline; padding:18px 0 14px; }
.industry-context strong { font-size:16px; font-weight:575; color:#29493b; }
.industry-context span { font-size:14px; color:#52665d; }
.footer { flex-wrap:wrap; gap:16px; }
.footer nav { display:flex; flex-wrap:wrap; gap:16px; font-size:14px; }.footer .brand{order:-1;}
@media(max-width:790px) {
  .enterprise-nav {gap:20px;}.commercial-nav {gap:13px;}.nav-group>summary{gap:6px;font-size:14px;}
  .market-inner {gap:22px;grid-template-columns:1.08fr .92fr;}
  .market-hero::before {background:linear-gradient(90deg,#102b2d 9%,rgba(16,43,45,.90) 44%,rgba(16,43,45,.32) 90%);}
  .industry-rail {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:660px) {
  :root{--mast:96px;}
  .enterprise-nav { display:grid; grid-template-columns:auto 1fr; grid-template-rows:50px 46px; gap:0; }
  .enterprise-nav .brand {font-size:30px;}.enterprise-nav .demo-link {justify-self:end;min-height:34px;font-size:14px;padding:5px 12px;}
  .commercial-nav {grid-row:2; grid-column:1/-1; justify-content:space-between; gap:3px;}
  .nav-group>summary {min-height:44px; font-size:clamp(12px,3.45vw,15px);}
  .nav-fly-inner {display:block;padding-block:14px 18px;}.nav-intro{padding:0 0 10px;border:0;}.nav-intro h2{font-size:21px;}.nav-intro p{display:none;}
  .nav-fly ul {gap:2px 4px;}.nav-fly li a {padding:9px 4px;}.nav-fly a strong{font-size:15px;}.nav-fly a span{font-size:13px;}
  .market-inner {display:flex;flex-direction:column;align-items:stretch;gap:28px;min-height:0;padding:34px 0 22px;}
  .market-cover {width:100%;height:100%;object-position:63% 50%;}
  .market-hero::before {background:linear-gradient(155deg,rgba(10,38,40,.98) 1%,rgba(10,38,40,.9) 34%,rgba(10,38,40,.44) 72%,rgba(10,38,40,.16));}
  .market-copy h1 {font-size:clamp(37px,7.2vw,48px);}.market-copy p {margin-top:13px;max-width:43ch;}
  .market-actions {margin-top:16px;gap:3px 14px;}.market-button,.market-link {font-size:14px;}
  .signal-preview {align-self:end;margin:0;width:min(100%,335px);}
  .dir-heading,.engine-browser {grid-template-columns:minmax(0,1fr);gap:12px;}.dir-heading p{justify-self:start;}.dir-heading{margin-bottom:17px;}
  .product-picker {grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}.product-picker button{padding:9px 10px;}.product-picker span{font-size:13px;}.product-picker strong{font-size:16px;}
  .industry-rail button {gap:5px;font-size:14px;padding-inline:3px;}.industry-rail img{width:28px;height:30px;}
}
@media(max-height:540px) and (min-width:661px) { .nav-fly-inner {padding-block:12px;} }
@media(prefers-reduced-motion:no-preference) {
  .nav-group[open] .nav-fly-inner {animation:panel-in .15s ease-out;}
  @keyframes panel-in {from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
}
.nav-group[open] > summary::after { content:""; }
@media(max-width:360px) {
  .commercial-nav {gap:2px;}
  .nav-group>summary {gap:4px;font-size:12px;}
  .market-inner,.dir-heading,.industry-context {min-width:0;}
}
