@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #13282f;
  --muted: #61747b;
  --canvas: #f7faf9;
  --panel: #ffffff;
  --soft: #eef5f3;
  --line: #d6e3df;
  --aqua: #087f78;
  --aqua-dark: #075f5c;
  --aqua-light: #dff4f0;
  --terminal: #0d1922;
  --terminal-panel: #12232d;
  --terminal-line: #29434d;
  --orange: #b65e28;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); font: 400 16px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { text-wrap: pretty; }
code, pre { font-family: var(--mono); }
section[id] { scroll-margin-top: 72px; }

:focus-visible { outline: 3px solid rgba(8, 127, 120, .32); outline-offset: 4px; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--aqua); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .7rem clamp(1.25rem, 4vw, 5rem);
  background: rgba(255, 255, 255, .91);
  border-bottom: 1px solid rgba(196, 215, 210, .9);
  box-shadow: 0 8px 30px rgba(24, 59, 61, .06);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; flex: 0 0 auto; font: 700 .8rem var(--display); letter-spacing: .14em; }
.brand img { flex: 0 0 auto; }
.brand-slash { color: var(--aqua); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); color: #4e656c; font: 600 .78rem var(--display); }
nav a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--aqua-dark); }
.nav-cta { padding: .58rem .95rem; color: #fff; background: var(--aqua); border: 1px solid var(--aqua); }
nav .nav-cta:hover, nav .nav-cta:focus-visible { color: #fff; background: var(--aqua-dark); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(400px, .9fr) minmax(520px, 1.1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 6rem);
  background: radial-gradient(circle at 82% 35%, rgba(24, 152, 142, .13), transparent 30%), linear-gradient(135deg, #ffffff 0%, #eef7f4 100%);
}

.hero-grid, .cta-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image: linear-gradient(rgba(8, 127, 120, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 127, 120, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }
.eyebrow { margin: 0 0 1.3rem; color: var(--aqua); font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 34px; height: 1px; margin: 0 .75rem .2rem 0; background: currentColor; }
h1 { margin: 0; font: 700 clamp(3.6rem, 6vw, 7rem)/.92 var(--display); letter-spacing: -.06em; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px #698187; }
.lede { max-width: 690px; margin: 2rem 0 0; color: #4f666d; font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .78rem 1.2rem; border: 1px solid #b6cac5; font: 600 .8rem var(--display); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--aqua); }
.button.primary { color: #fff; background: var(--aqua); border-color: var(--aqua); box-shadow: 0 10px 24px rgba(8, 127, 120, .18); }
.button.primary:hover, .button.primary:focus-visible { background: var(--aqua-dark); }
.button.secondary { color: #244047; background: rgba(255, 255, 255, .88); }
.hero-checks { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin: 1.3rem 0 0; padding: 0; color: #60777d; list-style: none; font-size: .78rem; }
.hero-checks li::before { content: "✓"; margin-right: .45rem; color: var(--aqua); }

.hero-product, .engineering-stage { position: relative; margin: 0; padding-top: 34px; overflow: hidden; background: var(--terminal); border: 1px solid #29414f; box-shadow: 0 36px 90px rgba(34, 70, 70, .18); }
.hero-product { width: min(980px, 100%); justify-self: end; }
.hero-product > img { width: 100%; padding: clamp(1rem, 3vw, 2.5rem); background: #071015; image-rendering: auto; }
.window-bar { position: absolute; inset: 0 0 auto; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; color: #8398a3; background: #0e1923; font-size: .66rem; }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #3c5968; }
.window-bar b { margin-left: .4rem; font-weight: 500; }
.hero-product figcaption, .engineering-stage figcaption { padding: .9rem 1rem; color: #9bb0ba; background: #0d1822; font-size: .76rem; }
.hero-product figcaption strong { color: #edf6f5; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: #fff; }
.proof-strip p { min-height: 92px; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 1rem clamp(1.25rem, 4vw, 4rem); border-right: 1px solid var(--line); }
.proof-strip p:last-child { border-right: 0; }
.proof-strip strong { color: #15343a; font: 600 1.05rem var(--display); }
.proof-strip span { color: #6d8085; font-size: .76rem; }

.section-shell { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8.5rem); }
.section-intro { display: grid; grid-template-columns: 1.5fr .7fr; gap: clamp(3rem, 8vw, 10rem); align-items: end; margin-bottom: 4rem; }
.section-intro h2, .install h2, .controls-band h2, .engineering h2, .documentation h2, .final-cta h2 { margin: 0; font: 700 clamp(2.5rem, 5.2vw, 5.8rem)/.98 var(--display); letter-spacing: -.05em; }
.section-intro > p { margin: 0 0 .45rem; color: var(--muted); }

.install { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(4rem, 9vw, 11rem); align-items: center; background: #fff; }
.install-copy > p:not(.eyebrow) { max-width: 670px; margin: 1.8rem 0 0; color: var(--muted); }
.reference-links { display: flex; flex-direction: column; gap: .55rem; margin-top: 2rem; color: var(--aqua-dark); font: 600 .78rem var(--display); text-decoration: underline; text-underline-offset: 4px; }
.terminal-panel { overflow: hidden; color: #dce9e8; background: var(--terminal); border: 1px solid #3b5961; box-shadow: 0 34px 80px rgba(22, 54, 57, .2); }
.terminal-head, .code-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; color: #93aaa9; background: #0a151d; font: 600 .65rem var(--display); letter-spacing: .12em; }
.terminal-head b, .code-head b { color: #65d2c6; font-weight: 600; letter-spacing: .03em; }
.command-row { min-height: 108px; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--terminal-line); }
.command-row div { min-width: 0; display: grid; gap: .35rem; }
.command-row span { color: #7f9ba1; font: 600 .62rem var(--display); letter-spacing: .1em; text-transform: uppercase; }
.command-row code { overflow-x: auto; color: #f2f8f7; font-size: clamp(.75rem, 1.2vw, .9rem); white-space: nowrap; }
.command-row code::before { content: "> "; color: #5bd1c6; }
.copy-button { align-self: center; padding: .55rem .75rem; color: #9eddd7; background: transparent; border: 1px solid #46636c; cursor: pointer; font: 600 .68rem var(--display); }
.copy-button:hover, .copy-button:focus-visible { color: #fff; border-color: #65d2c6; }
.copy-button.copied { color: #081b20; background: #65d2c6; border-color: #65d2c6; }
.terminal-note { margin: 0; padding: 1rem 1.5rem 1.3rem; color: #89a2a7; font-size: .75rem; }

.architecture { background: #f2f7f5; }
.pipeline { display: grid; grid-template-columns: .9fr auto 1.35fr auto .85fr; gap: 1rem; align-items: stretch; margin: 0 auto 1.2rem; }
.pipeline-source, .pipeline-core, .pipeline-target { position: relative; min-height: 190px; display: grid; align-content: center; gap: .8rem; padding: 2rem; background: #fff; border: 1px solid var(--line); }
.pipeline-source > div { display: grid; }
.pipeline-source small, .pipeline-core small, .pipeline-target small { color: var(--muted); font-size: .75rem; }
.pipeline-source strong, .pipeline-core strong, .pipeline-target strong { font: 600 1rem/1.4 var(--display); }
.pipeline-core { color: #edf7f5; background: var(--aqua); border-color: var(--aqua); }
.pipeline-core small, .pipeline-core .pipeline-label { color: #c7ebe7; }
.pipeline-label { position: absolute; top: 1rem; left: 1.2rem; color: #81938f; font: 700 .61rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.pipeline-arrow { display: grid; place-items: center; color: #8ea39f; font-size: 1.4rem; }

.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.code-card { min-width: 0; overflow: hidden; background: var(--terminal); border: 1px solid #29414f; }
.code-card pre { min-height: 370px; margin: 0; padding: 1.8rem; overflow: auto; color: #e4efed; font-size: clamp(.72rem, 1vw, .84rem); line-height: 1.75; }
.token-comment { color: #728b91; }
.token-key, .token-keyword { color: #66dcd1; }
.token-attr { color: #efc26e; }
.token-value { color: #a3df91; }

.hosts { background: #fff; }
.host-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.host-card { position: relative; min-width: 0; min-height: 325px; padding: 2rem; background: var(--panel); }
.host-card.featured { background: var(--aqua-light); }
.host-index { position: absolute; top: 1.2rem; right: 1.2rem; color: #9aadaa; font: 600 .67rem var(--display); letter-spacing: .15em; }
.host-icon { min-height: 76px; color: var(--aqua); font: 600 2rem var(--mono); }
.host-card h3 { margin: 0 0 .65rem; font: 600 1.3rem var(--display); }
.host-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.host-card code { position: absolute; right: 2rem; bottom: 1.6rem; left: 2rem; overflow: hidden; color: var(--aqua-dark); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }

.controls-band { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(4rem, 8vw, 9rem); padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8.5rem); color: #fff; background: #0d7773; }
.controls-band .eyebrow { color: #b9ece6; }
.controls-intro p:last-child { max-width: 720px; margin: 1.8rem 0 0; color: #d1ece9; }
.control-groups { border-top: 1px solid rgba(255, 255, 255, .28); }
.control-groups div { display: grid; grid-template-columns: .3fr 1fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.control-groups strong { font-family: var(--display); }
.control-groups span { color: #d7f0ed; }

.rich-content { background: #f2f7f5; }
.content-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.showcase-card { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(34, 70, 70, .05); }
.showcase-card figure { height: 290px; display: grid; place-items: center; margin: 0; padding: 1rem; overflow: hidden; background: #081117; border-bottom: 1px solid var(--line); }
.showcase-card img { width: 100%; max-height: 100%; object-fit: contain; }
.showcase-card > div { position: relative; min-height: 230px; padding: 1.7rem 1.8rem 2rem; }
.showcase-card > div > span { position: absolute; top: 1.7rem; right: 1.8rem; color: #9aadaa; font: 600 .67rem var(--display); letter-spacing: .15em; }
.showcase-card h3 { margin: 0 0 .65rem; font: 600 1.35rem var(--display); }
.showcase-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.showcase-card code { color: var(--aqua-dark); font-size: .86em; }

.engineering { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(4rem, 8vw, 9rem); align-items: center; color: #eaf5f3; background: radial-gradient(circle at 78% 38%, rgba(34, 181, 167, .16), transparent 27%), #10262c; }
.engineering .eyebrow { color: #65d2c6; }
.engineering-copy > p:not(.eyebrow) { max-width: 760px; margin: 1.8rem 0 0; color: #afc4c5; }
.engineering-copy ul { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.engineering-copy li { position: relative; padding-left: 1.7rem; color: #a9bec0; font-size: .9rem; }
.engineering-copy li::before { content: "✓"; position: absolute; left: 0; color: #65d2c6; font-weight: 700; }
.engineering-copy strong { color: #f1f8f7; }
.engineering-stage { width: min(980px, 100%); justify-self: end; box-shadow: 0 34px 80px rgba(0, 0, 0, .25); }
.engineering-stage > img { width: 100%; padding: 1rem; background: #071015; }

.documentation { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(4rem, 10vw, 12rem); background: #fff; }
.documentation-title { align-self: start; position: sticky; top: 120px; }
.documentation-links { border-top: 1px solid var(--line); }
.documentation-links a { display: grid; grid-template-columns: 58px 1fr auto; gap: 1.2rem; align-items: center; min-height: 112px; padding: 1.2rem 0; border-bottom: 1px solid var(--line); transition: color .2s ease, padding .2s ease; }
.documentation-links a:hover, .documentation-links a:focus-visible { color: var(--aqua-dark); padding-inline: .6rem; }
.documentation-links > a > span { color: #99aaa7; font: 600 .68rem var(--display); letter-spacing: .12em; }
.documentation-links div { display: grid; gap: .25rem; }
.documentation-links strong { font: 600 1.1rem var(--display); }
.documentation-links small { color: var(--muted); font-size: .8rem; }
.documentation-links b { color: var(--aqua); font-size: 1rem; }

.final-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(6rem, 11vw, 11rem) 1.25rem; text-align: center; background: radial-gradient(circle at center, rgba(8, 127, 120, .13), transparent 40%), #edf7f4; }
.final-cta .cta-grid { opacity: .65; mask-image: radial-gradient(circle, #000, transparent 68%); }
.final-cta h2 span { color: var(--aqua); }
.final-cta > p:not(.eyebrow) { margin: 1.5rem auto 0; color: var(--muted); }
.centered { justify-content: center; }

footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem clamp(1.25rem, 5vw, 6rem); color: #687d82; background: #fff; border-top: 1px solid var(--line); font-size: .75rem; }
footer p { margin: 0; text-align: center; }
footer div { display: flex; gap: 1.5rem; }
footer a:hover { color: var(--aqua); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 1; transform: translateY(12px); transition: transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero-copy { max-width: 850px; }
  .hero-product { width: min(980px, 94%); }
  .host-grid { grid-template-columns: repeat(2, 1fr); }
  .content-showcase { grid-template-columns: 1fr 1fr; }
  .showcase-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  nav a:nth-child(-n+4) { display: none; }
  .install, .controls-band, .engineering, .documentation { grid-template-columns: 1fr; gap: 3rem; }
  .documentation-title { position: static; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-arrow { transform: rotate(90deg); }
  .code-grid { grid-template-columns: 1fr; }
  .code-card pre { min-height: auto; }
  .engineering-stage { justify-self: stretch; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  nav { gap: .9rem; }
  nav a:nth-child(5) { display: none; }
  .hero { padding-top: 5.5rem; }
  h1 { font-size: clamp(2.85rem, 12vw, 5.8rem); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip p:nth-child(2) { border-right: 0; }
  .proof-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .host-grid, .content-showcase { grid-template-columns: 1fr; }
  .showcase-card:last-child { grid-column: auto; }
  .showcase-card figure { height: 330px; }
  .control-groups div { grid-template-columns: 1fr; gap: .3rem; }
}

@media (max-width: 520px) {
  .site-header .brand { font-size: .66rem; }
  nav > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: .5rem .7rem; }
  .hero-product { width: 100%; }
  .hero-product figcaption { display: none; }
  .hero-checks { display: grid; }
  .eyebrow > span { display: none; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip p:last-child { border-bottom: 0; }
  .command-row { grid-template-columns: 1fr; }
  .copy-button { justify-self: start; }
  .host-card { min-height: 300px; }
  .showcase-card figure { height: 250px; }
  .documentation-links a { grid-template-columns: 42px 1fr auto; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

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