:root {
  --navy: #101c2c;
  --navy-deep: #071423;
  --teal: #1b8a89;
  --teal-light: #43b8b3;
  --teal-action: #126f70;
  --teal-action-hover: #0d5b5c;
  --ivory: #f5f0e6;
  --ivory-light: #fbf8f1;
  --gold: #c7a45a;
  --ink-muted: #4e5660;
  --white: #fff;
  --focus: #43b8b3;
  --content: 1240px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
section[id] { scroll-margin-top: 0; }
body { margin: 0; color: var(--navy); background: var(--ivory); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-180%); background: var(--ivory); border: 2px solid var(--teal); border-radius: var(--radius); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 52%; height: 104px; background: var(--ivory); border-bottom: 1px solid rgba(16, 28, 44, .08); }
.header-inner { width: calc(100% - 72px); height: 100%; margin: auto; display: flex; align-items: center; gap: 42px; }
.brand { flex: 0 0 auto; }
.brand img { width: 220px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 1.65vw, 26px); color: var(--navy); font-size: .86rem; font-weight: 600; }
.site-nav > a:not(.button) { position: relative; padding: 10px 0; }
.site-nav > a:not(.button)::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; transform: scaleX(0); transform-origin: right; background: var(--teal); transition: transform .2s ease; }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }
.button { min-height: 52px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; color: var(--white); background: var(--teal-action); border: 1px solid var(--teal-action); border-radius: var(--radius); font-weight: 700; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { background: var(--teal-action-hover); border-color: var(--teal-action-hover); transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: .88rem; }
.button-ivory { color: var(--navy); background: var(--ivory); border-color: var(--ivory); }
.button-ivory:hover { background: var(--white); border-color: var(--white); }

.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 52%) minmax(0, 48%); background: var(--ivory); overflow: hidden; }
.hero-copy { min-height: 100svh; padding: 104px clamp(40px, 5vw, 80px) 150px clamp(48px, 4.5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: radial-gradient(circle at 30% 70%, rgba(199, 164, 90, .08), transparent 34%), var(--ivory); }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 13px; color: #8a6a2c; font-size: .75rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); }
.eyebrow.light { color: #e1c77f; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 590px; margin-bottom: 26px; font-size: clamp(3rem, 4.55vw, 4.65rem); line-height: 1.01; letter-spacing: -.052em; }
.hero-lead { max-width: 480px; margin-bottom: 40px; color: var(--ink-muted); font-size: clamp(1.08rem, 1.35vw, 1.3rem); }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.text-link { padding: 10px 2px 7px; border-bottom: 1px solid var(--gold); font-weight: 700; }
.text-link:hover { color: var(--teal); }
.hero-visual { position: relative; min-height: 100svh; background: #010d20; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle, var(--teal-light) .7px, transparent .8px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, transparent 14%, #000 46%, transparent 88%); }
.input-traces { position: absolute; z-index: 2; inset: 0 0 0 -14px; overflow: visible; pointer-events: none; }
.input-traces span { position: absolute; left: 4px; width: 31%; height: 2px; background: linear-gradient(to right, var(--gold) 0 24%, rgba(67, 184, 179, .92) 24% 78%, rgba(67, 184, 179, 0) 100%); box-shadow: 0 0 10px rgba(67, 184, 179, .22); }
.input-traces span::before { content: ""; position: absolute; width: 10px; height: 10px; left: -3px; top: 50%; transform: translateY(-50%); border: 3px solid var(--gold); border-radius: 50%; background: var(--navy-deep); box-shadow: 0 0 0 2px rgba(245, 240, 230, .9); }
.input-traces span:nth-child(1) { top: 27%; width: 32%; }
.input-traces span:nth-child(2) { top: 33%; width: 31%; }
.input-traces span:nth-child(3) { top: 39%; width: 30%; }
.input-traces span:nth-child(4) { top: 45%; width: 29%; }
.stack-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(.98); transform-origin: center; }
.stack-art { position: absolute; width: min(95%, 700px); height: 94%; right: -2%; bottom: 0; overflow: visible; }
.stack-art[hidden] { display: none; }
.stack-product-labels { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.stack-product { position: absolute; right: 2.5%; color: #7bddda; font-size: clamp(.88rem, 1.25vw, 1.14rem); font-weight: 750; line-height: 1.08; text-shadow: 0 2px 12px var(--navy-deep); }
.stack-product::before { content: ""; position: absolute; width: 18px; height: var(--bracket-height); right: calc(100% + 11px); top: 50%; transform: translateY(-50%); border: 1px solid var(--teal-light); border-left: 0; border-radius: 0 4px 4px 0; }
.portal-label { --bracket-height: 150px; top: 25%; }
.engine-label { --bracket-height: 168px; top: 51%; }
.release-label { --bracket-height: 145px; top: 75%; }
.stack-layer { transform-box: fill-box; transform-origin: center; animation: breathe 5.6s ease-in-out infinite alternate; }
.layer-2, .layer-5, .layer-8 { animation-delay: -.8s; }
.layer-3, .layer-6 { animation-delay: -1.6s; }
@keyframes breathe { from { transform: translateY(-2px); } to { transform: translateY(5px); } }
.evidence-line { animation: trace-in 1.4s .25s both ease-out; transform-origin: bottom; }
@keyframes trace-in { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.evidence-label { position: absolute; z-index: 2; top: 20%; left: 8%; display: flex; align-items: center; gap: 12px; color: #e1c77f; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.evidence-label span { width: clamp(50px, 8vw, 120px); height: 1px; background: var(--gold); }
.capability-rail { position: absolute; z-index: 4; left: max(545px, calc(52% - 150px)); bottom: 3.5%; width: min(420px, 33vw); padding: 16px 18px; display: grid; gap: 8px; color: rgba(245, 240, 230, .94); background: #010d20; border: 0; border-radius: 18px 0 0 18px; font-size: .74rem; }
.capability-rail span { min-width: 0; display: flex; align-items: center; gap: 9px; }
.capability-rail span::after { content: ""; min-width: 10px; height: 1px; flex: 1; background: linear-gradient(to right, rgba(216, 183, 101, .85), rgba(67, 184, 179, .08)); }
.capability-rail i { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; color: var(--teal-light); border: 1px solid rgba(67, 184, 179, .42); border-radius: 50%; background: rgba(7, 20, 35, .78); }
.capability-rail svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.capability-rail b { flex: 0 0 auto; font-weight: 520; }

@media (min-height: 900px) and (min-width: 1081px) {
  .capability-rail { left: calc(52% - 200px); bottom: 12%; width: min(460px, 34vw); padding: 18px 20px; gap: 10px; border-radius: 20px 0 0 20px; font-size: .9rem; }
  .capability-rail i { width: 38px; height: 38px; flex-basis: 38px; }
  .capability-rail svg { width: 20px; height: 20px; }
}

.section { padding: clamp(90px, 10vw, 150px) max(32px, calc((100vw - var(--content)) / 2)); }
.section-heading { max-width: 790px; margin-bottom: 62px; }
h2 { margin-bottom: 22px; font-size: clamp(2.35rem, 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.048em; }
.section-heading > p:last-child, .capabilities-intro > p:last-child { max-width: 650px; color: var(--ink-muted); font-size: 1.1rem; }
.stack-overview { background: var(--ivory-light); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { position: relative; min-height: 370px; padding: 34px; display: flex; flex-direction: column; background: var(--ivory); border: 1px solid rgba(16, 28, 44, .12); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-7px); border-color: var(--teal); box-shadow: 0 24px 55px rgba(16, 28, 44, .1); }
.card-index { color: var(--gold); font-family: "JetBrains Mono", Consolas, monospace; font-size: .8rem; font-weight: 700; }
.card-line { width: 100%; height: 1px; margin: 22px 0 48px; background: linear-gradient(to right, var(--gold), rgba(199, 164, 90, .06)); }
.product-card h3 { margin-bottom: 15px; font-size: 1.6rem; letter-spacing: -.025em; }
.product-card p { color: var(--ink-muted); }
.card-tag { margin-top: auto; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.capabilities { color: var(--ivory); background: var(--navy); display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px, 9vw, 140px); }
.capabilities-intro { position: sticky; top: 130px; align-self: start; }
.capabilities-intro > p:last-child { color: rgba(245, 240, 230, .7); }
.capability-list { border-top: 1px solid rgba(245, 240, 230, .18); }
.capability-item { padding: 28px 4px; display: grid; grid-template-columns: 48px minmax(150px, .8fr) 1.2fr; align-items: baseline; gap: 20px; border-bottom: 1px solid rgba(245, 240, 230, .18); }
.capability-item > span { color: var(--gold); font-family: "JetBrains Mono", Consolas, monospace; font-size: .75rem; }
.capability-item h3 { margin: 0; font-size: 1.25rem; }
.capability-item p { margin: 0; color: rgba(245, 240, 230, .65); font-size: .94rem; }

.connectors { background: var(--ivory-light); }
.connector-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.connector-card { min-height: 158px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 8px; background: var(--ivory); border: 1px solid rgba(16, 28, 44, .12); border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.connector-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 20px 45px rgba(16, 28, 44, .09); }
.connector-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; text-wrap: balance; }
.connector-versions { margin: 0; color: var(--ink-muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.connector-flag { margin-top: auto; padding-top: 14px; color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.security { min-height: 690px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(50px, 10vw, 150px); background: var(--ivory); }
.security-copy { max-width: 680px; }
.security-copy > p:not(.eyebrow) { color: var(--ink-muted); font-size: 1.08rem; }
.disabled-link { margin-top: 22px; padding: 15px 0; display: inline-flex; align-items: center; gap: 14px; color: #59616a; border-bottom: 1px solid rgba(16, 28, 44, .25); cursor: not-allowed; }
.disabled-link small, .footer-legal small { padding: 3px 6px; color: var(--ink-muted); background: rgba(16, 28, 44, .06); border-radius: 3px; font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.security-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.security-image { width: 112%; max-width: none; height: 112%; object-fit: contain; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 70% 70% at center, #000 65%, transparent 100%); }
.security-visual > p { position: absolute; right: 2%; bottom: 14%; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.security-visual strong { color: var(--teal); }

.final-cta { position: relative; min-height: 600px; padding: clamp(100px, 11vw, 170px) max(32px, calc((100vw - var(--content)) / 2)); display: flex; align-items: center; color: var(--ivory); background: linear-gradient(135deg, #0b1a2a, var(--navy-deep)); overflow: hidden; }
.final-cta::before { content: ""; position: absolute; width: 680px; height: 680px; top: 50%; right: -180px; transform: translateY(-50%); border: 1px solid rgba(67, 184, 179, .15); border-radius: 50%; box-shadow: 0 0 0 65px rgba(67, 184, 179, .035), 0 0 0 130px rgba(67, 184, 179, .02); }
.final-cta-inner { position: relative; z-index: 2; max-width: 780px; }
.final-cta-inner > p:not(.eyebrow) { max-width: 650px; margin-bottom: 34px; color: rgba(245, 240, 230, .7); font-size: 1.1rem; }
.cta-trace { position: absolute; top: 0; right: 20%; width: 1px; height: 100%; background: linear-gradient(transparent, var(--gold), transparent); }
.cta-trace span, .cta-trace i { position: absolute; left: 50%; width: 13px; height: 13px; transform: translateX(-50%); border-radius: 50%; background: var(--ivory); border: 3px solid var(--gold); }
.cta-trace span { top: 25%; }.cta-trace i { bottom: 18%; }

.site-footer { padding: 70px max(32px, calc((100vw - var(--content)) / 2)) 28px; display: grid; grid-template-columns: 1.6fr .7fr; gap: 50px; background: var(--ivory); border-top: 1px solid rgba(16, 28, 44, .1); }
.site-footer img { width: 200px; height: auto; margin-bottom: 18px; }
.site-footer > div:first-child p { max-width: 440px; color: var(--ink-muted); }
.site-footer strong { font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-contact, .footer-legal { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-contact a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal span { display: flex; align-items: center; gap: 7px; color: var(--ink-muted); }
.copyright { grid-column: 1 / -1; margin: 26px 0 0; padding-top: 24px; color: var(--ink-muted); border-top: 1px solid rgba(16, 28, 44, .1); font-size: .78rem; }

.has-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.has-motion .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .site-header { width: 100%; background: var(--ivory); border-bottom-color: rgba(16, 28, 44, .08); }
  .header-inner { width: min(calc(100% - 40px), var(--content)); }
  .brand img { width: 200px; }
  .site-nav { gap: 18px; color: var(--navy); }
  .site-nav .button { display: none; }
}

@media (max-width: 1080px) {
  .connector-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 38px; padding-right: 38px; }
  .stack-art { width: 112%; right: -14%; }
  .stack-names { font-size: 18px; }
  .stack-product { right: 2%; }
  .capability-rail { width: 340px; left: calc(50% - 30px); }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 76px; }
  section[id] { scroll-margin-top: 76px; }
  .site-header { position: fixed; height: 76px; box-shadow: 0 6px 24px rgba(16, 28, 44, .08); }
  .header-inner { width: calc(100% - 32px); }
  .brand img { width: 190px; }
  .menu-toggle { width: 44px; height: 44px; margin-left: auto; padding: 10px; display: grid; align-content: center; gap: 5px; color: var(--navy); background: transparent; border: 1px solid rgba(16, 28, 44, .16); border-radius: var(--radius); }
  .menu-toggle span:not(.sr-only) { width: 100%; height: 2px; background: currentColor; }
  .site-nav { position: fixed; z-index: 30; top: 76px; right: 0; left: 0; padding: 24px 22px 28px; display: none; flex-direction: column; align-items: stretch; gap: 2px; background: var(--ivory-light); border-bottom: 1px solid rgba(16, 28, 44, .12); box-shadow: 0 16px 32px rgba(16, 28, 44, .12); }
  .site-nav[data-open] { display: flex; }
  .site-nav > a:not(.button) { padding: 13px 4px; }
  .site-nav .button { margin-top: 12px; display: inline-flex; }
  .hero { padding-top: 76px; display: block; }
  .hero-copy { min-height: auto; padding: 90px 30px 80px; justify-content: flex-start; }
  h1 { font-size: clamp(3.2rem, 10vw, 5rem); }
  .hero-visual { min-height: 690px; }
  .stack-art { width: 100%; right: -2%; height: 100%; }
  .stack-image { object-position: center; transform: translateY(2%) scale(1.1); }
  .capability-rail { width: 42%; left: 3%; bottom: 3.5%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 300px; }
  .card-line { margin-bottom: 32px; }
  .connector-grid { grid-template-columns: 1fr 1fr; }
  .capabilities { grid-template-columns: 1fr; gap: 54px; }
  .capabilities-intro { position: static; }
  .security { grid-template-columns: 1fr; }
  .security-visual { width: min(100%, 500px); margin: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand img { width: 190px; }
  .hero-copy { padding: 78px 22px 68px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-actions { width: 100%; }
  .hero-visual { min-height: 570px; }
  .stack-art { width: 116%; right: -16%; }
  .stack-names { font-size: 17px; }
  .stack-product { right: 2%; padding-left: 12px; font-size: .76rem; }
  .stack-product::before { width: 8px; height: 1px; right: auto; left: 0; top: .62em; transform: none; border: 0; border-radius: 0; background: var(--teal-light); }
  .stack-image { transform: scale(1.01); }
  .evidence-label { top: 10%; left: 6%; }
  .capability-rail { left: 5%; bottom: 5%; width: 90%; padding: 14px; gap: 7px; font-size: .7rem; border-radius: 16px; }
  .section { padding-left: 22px; padding-right: 22px; }
  h2 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .product-card { padding: 27px; }
  .capability-item { grid-template-columns: 36px 1fr; gap: 10px; }
  .capability-item p { grid-column: 2; }
  .connector-grid { grid-template-columns: 1fr; }
  .security-visual { width: 100%; }
  .final-cta { min-height: 620px; padding-left: 22px; padding-right: 22px; }
  .cta-trace { right: 12%; opacity: .55; }
  .site-footer { padding-left: 22px; padding-right: 22px; grid-template-columns: 1fr; }
  .site-footer > div:first-child, .copyright { grid-column: auto; }
}

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