:root {
  color-scheme: dark;
  --base: #080d0d;
  --panel: #101817;
  --text: #f3f6f4;
  --muted: #adbcb7;
  --mint: #a2f3c9;
  --amber: #efc38b;
  --line: #d0ebe02e;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--base);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; isolation: isolate; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.wrap, .frame { width: min(77rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 1rem; left: 1rem; transform: translateY(-230%); padding: .7rem 1rem; background: var(--panel); }
.skip-link:focus { transform: none; }

.film-background {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--base) url("./media/data-center-cinematic.webp") center / cover no-repeat;
}
.film-background canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.masthead { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: #080d0df2; }
.header-inner, .main-nav, .header-actions, .actions { display: flex; align-items: center; }
.header-inner { min-height: 4.85rem; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img, .brand-logo { display: block; width: clamp(6.5rem, 13vw, 9rem); height: auto; filter: brightness(0) invert(1); }
.brand-logo { aspect-ratio: 639 / 130; background: url("./media/jouliet-logo.webp") center / contain no-repeat; }
.main-nav { gap: clamp(.8rem, 2vw, 1.8rem); }
.main-nav a, .footer-link { color: var(--muted); font-size: .875rem; text-decoration: none; }
.main-nav a:hover, .footer-link:hover { color: var(--mint); }
.header-actions, .actions { gap: .65rem; flex-wrap: wrap; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem;
  padding: .68rem 1rem; border: 1px solid transparent; border-radius: .42rem;
  background: var(--mint); color: #08130e; text-decoration: none; font-weight: 690; font-size: .9rem;
}
.button:hover { background: #d0fbe5; }
.button.ghost { background: #0b1613d4; border-color: #e3f8ed60; color: var(--text); }
.button.ghost:hover { border-color: var(--mint); background: #142820; }
.hero {
  min-height: min(50rem, 86svh); display: grid; align-items: center;
  padding: clamp(4.25rem, 8vw, 8rem) 0;
  background: linear-gradient(105deg, #080d0df5 5%, #080d0dd8 46%, #080d0d37 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .75fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; padding: .45rem .7rem;
  border-radius: 99px; border: 1px solid #a2f3c959; background: #11251be6; color: var(--mint); font-size: .82rem;
}
.eyebrow span { width: .38rem; height: .38rem; border-radius: 50%; background: var(--mint); }
h1, h2 { font-weight: 640; letter-spacing: -.061em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.3vw, 5.35rem); line-height: 1.01; }
h1 em { color: var(--mint); font-style: normal; }
h2 { font-size: clamp(2.15rem, 4.55vw, 4.5rem); line-height: 1.04; }
h3 { font-size: clamp(1.1rem, 1.65vw, 1.35rem); line-height: 1.25; letter-spacing: -.027em; }
.lede, .body-copy, .card p, .case p, .steps p, .comparison-panel p:not(.kicker), .docs-copy { color: var(--muted); line-height: 1.62; }
.lede { max-width: 39rem; margin-top: 1.35rem; font-size: clamp(1rem, 1.55vw, 1.18rem); }
.actions { margin-top: 1.65rem; }
.hero-diagram {
  padding: clamp(.76rem, 2.1vw, 1.55rem); border: 1px solid #e8fcf14a; border-radius: .8rem;
  background: #0b1412ea; box-shadow: 0 1rem 5rem #0007;
}
.diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.5rem, 1.5vw, 1.1rem); }
.lane { display: grid; align-content: start; gap: .95rem; min-width: 0; --accent: var(--amber); }
.lane-after { --accent: var(--mint); }
.lane > p { font-size: .8rem; font-weight: 650; color: var(--accent); }
.node {
  display: flex; align-items: center; gap: .53rem; position: relative; min-height: 3.3rem; padding: .45rem .58rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: .35rem;
  background: color-mix(in srgb, var(--accent) 6%, var(--base)); font-size: clamp(.78rem, 1.2vw, .94rem);
}
.node + .node::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: .95rem; background: var(--accent); opacity: .5; }
.glyph { color: var(--accent); display: block; width: .9rem; height: .9rem; flex: none; border: 1px solid currentColor; }
.glyph.tokens { border-inline: 0; height: .63rem; box-shadow: 0 .2rem 0 -.13rem currentColor; }
.glyph.chip { border-radius: .12rem; box-shadow: inset 0 0 0 .16rem var(--base), inset 0 0 0 .22rem currentColor; }
.glyph.output { border-radius: 50%; }

.section { padding: clamp(3.5rem, 8vw, 7.3rem) 0; border-top: 1px solid var(--line); }
.kicker { margin-bottom: .83rem; color: var(--mint); font-size: .79rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.amber { color: var(--amber); }
.problem { background: linear-gradient(90deg,#080d0df4,#0a1211cd); }
.split { display: grid; grid-template-columns: 1fr .94fr; align-items: start; gap: clamp(1.5rem, 6vw, 6rem); }
.body-copy { font-size: clamp(1.02rem, 1.7vw, 1.24rem); align-self: center; }
.solid { background: #0a1110f5; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: clamp(1.5rem, 4vw, 2.65rem); }
.card, .case { padding: clamp(1.15rem, 2.6vw, 2.15rem); border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; }
.card p, .case p, .steps p, .comparison-panel p:not(.kicker) { margin-top: .65rem; }
.card-mark { display: block; width: 1.8rem; height: 1.4rem; margin-bottom: 1.25rem; color: var(--mint); }
.token-mark { border-block: 1px solid; background: linear-gradient(currentColor,currentColor) center / 78% 1px no-repeat; }
.route-mark { border-left: 1px solid; border-block: 1px solid; background: linear-gradient(currentColor,currentColor) left center / 70% 1px no-repeat; }
.energy-mark { background: currentColor; color: var(--amber); clip-path: polygon(46% 0, 73% 0, 57% 40%, 83% 40%, 36% 100%, 46% 56%, 20% 56%); }
.integration { background: linear-gradient(105deg, #090f0eed 25%, #080d0ded 70%, #080d0da3); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; border-top: 1px solid var(--line); padding: 1rem 0 1.12rem 2.65rem; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--mint); position: absolute; left: 0; top: 1.13rem; font-size: .79rem; }
.comparison { margin-top: clamp(1.5rem, 4vw, 2.7rem); border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem; border-bottom: 1px solid var(--line); }
.tabs button { padding: .65rem .95rem; border: 1px solid transparent; border-radius: .28rem; color: var(--muted); background: transparent; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: #1d362b; border-color: #a2f3c951; color: var(--mint); }
.comparison-panel { display: grid; grid-template-columns: 1fr 1fr; }
.comparison-panel + .comparison-panel { border-top: 1px solid var(--line); }
.comparison-panel > div { padding: clamp(1.1rem, 3.2vw, 2.45rem); }
.comparison-panel > div + div { border-left: 1px solid var(--line); background: #10231b; }
.use-cases { background: linear-gradient(100deg,#080d0df1,#080d0dbf); }
.case { background: #101817ed; border-top-color: #a2f3c962; }
.closing { text-align: center; background: linear-gradient(165deg,#0a1c14d9,#080d0df5); }
.closing .wrap { max-width: 62rem; }
.closing .lede { margin-inline: auto; }
.closing .actions { justify-content: center; }
#site-footer { padding: 1rem 0 1.65rem; }
.footer-inner, .footer-policies, .footer-contact { display: flex; flex-wrap: wrap; align-items: center; }
.footer-inner { justify-content: space-between; gap: .35rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-inner .brand-logo { width: 6.8rem; }
.footer-policies { gap: .4rem 1.35rem; }
.footer-contact { gap: .4rem 1rem; color: var(--muted); font-size: .875rem; }
.docs-page { min-height: 80vh; }
.docs-page .lede { margin-bottom: 2rem; }
.docs-list { max-width: 46rem; display: grid; gap: 1rem; }
.docs-copy a { color: var(--mint); }

@media (max-width: 920px) {
  .header-inner { gap: .8rem; }
  .main-nav { gap: .65rem; }
  .main-nav a { font-size: .83rem; }
  .header-actions .button { font-size: .83rem; padding-inline: .7rem; }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 8rem; }
  .header-inner { flex-wrap: wrap; padding-block: .54rem .63rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .hero-inner, .split, .card-grid { grid-template-columns: 1fr; }
  .hero-diagram { max-width: 28rem; }
  .hero { background: linear-gradient(100deg,#080d0df0,#080d0d87); }
  .film-background, .film-background canvas { background-position: 70% center; object-position: 70% center; }
  .footer-inner { justify-content: center; }
  .footer-policies, .footer-contact { width: 100%; justify-content: center; }
}
@media (max-width: 500px) {
  .comparison-panel { grid-template-columns: 1fr; }
  .comparison-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tabs button { padding-inline: .55rem; font-size: .84rem; }
  .header-actions { gap: .35rem; }
}
