/* ============================================================
   Design tokens - shared across the whole page. Set once here.
   ============================================================ */
:root{
  /* Dark observatory - the logo's native habitat */
  --bg:#14161C;          /* deep ink-navy page */
  --panel:#1B1E26;       /* raised surfaces (nav dropdown, cards) */
  --panel-2:#22262F;     /* hover / secondary surface */
  --text:#E8E6DF;        /* warm off-white */
  --text-2:#A6A8B0;      /* muted */
  --text-3:#6C6F77;      /* dim / captions */
  --line:#ffffff14;      /* hairline on dark */
  --line-2:#ffffff26;    /* stronger border */
  --marker:#E0701B;      /* comet amber accent (brand constant) */
  --marker-2:#F4882C;    /* brighter amber (hover) */
  --chart:#5FB6CC;       /* contour teal (secondary accent) */
  /* Muted comet trail - gold -> rust. Each section walks one stop down
     as you scroll, echoing the logo's yellow->orange comet. */
  --accent-1:#E0B341;    /* muted gold */
  --accent-2:#E59A35;    /* amber-gold */
  --accent-3:#E0701B;    /* orange */
  --accent-4:#D2591A;    /* burnt orange */
  --accent-5:#C0431A;    /* rust */
  --display:"Space Grotesk",system-ui,sans-serif;
  --sans:"Inter",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;
  --wrap:1680px;        /* content column; backgrounds stay full-bleed */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;min-height:100vh;display:flex;flex-direction:column}
main{flex:1 0 auto}
a{color:inherit}

/* ============================================================
   Navbar  -  hooks from frontend-site-navbar-python:
   .site-header .brand .brand-suffix .site-nav .nav-link .nav-cta
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:transparent;border-bottom:1px solid transparent;
  transition:background .3s,border-color .3s,backdrop-filter .3s;
}
/* Gains a backdrop once scrolled off the hero */
.site-header.scrolled{
  background:#14161Ccc;
  backdrop-filter:saturate(1.3) blur(12px);
  -webkit-backdrop-filter:saturate(1.3) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  position:relative;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;
  padding:15px 32px;
}
.brand{justify-self:start}
.site-nav{justify-self:center}
.nav-actions{justify-self:end;display:flex;align-items:center;gap:8px}

/* Mobile menu toggle - injected by JS (progressive enhancement).
   Hidden by default; only shown on small screens when JS is present. */
.nav-toggle{
  display:none;align-items:center;justify-content:center;
  width:42px;height:42px;flex:0 0 auto;
  background:var(--panel);border:1px solid var(--line-2);border-radius:9px;
  cursor:pointer;padding:0;color:var(--text);
}
.nav-toggle:hover{border-color:var(--marker)}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after{
  display:block;width:18px;height:2px;background:currentColor;border-radius:2px;
  transition:transform .2s ease,opacity .2s ease,background .2s ease;
}
.nav-toggle .bar{position:relative}
.nav-toggle .bar::before,.nav-toggle .bar::after{content:"";position:absolute;left:0}
.nav-toggle .bar::before{top:-6px}
.nav-toggle .bar::after{top:6px}
.site-header.nav-open .nav-toggle .bar{background:transparent}
.site-header.nav-open .nav-toggle .bar::before{transform:translateY(6px) rotate(45deg)}
.site-header.nav-open .nav-toggle .bar::after{transform:translateY(-6px) rotate(-45deg)}
.brand{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--display);font-weight:600;font-size:1.14rem;
  letter-spacing:-.015em;text-decoration:none;color:var(--text);
  white-space:nowrap;
}
.brand img{width:28px;height:28px;display:block}
.brand-suffix{color:var(--text-3);font-weight:400}

.site-nav{display:flex;align-items:center;gap:4px}
.nav-link{
  font-size:.9rem;font-weight:450;color:var(--text-2);
  text-decoration:none;padding:8px 12px;border-radius:8px;
  transition:color .18s,background .18s;
}
.nav-link:hover{color:var(--text);background:var(--panel)}
.nav-link[aria-current="page"]{color:var(--marker-2)}

.nav-cta{
  margin-left:8px;color:var(--text);
  border:1px solid var(--line-2);
  padding:8px 15px;font-weight:500;
}
.nav-cta:hover{border-color:var(--marker);color:var(--marker-2);background:#E0701B14}

@media(max-width:760px){
  /* Flex row on mobile: brand left, then the right cluster (actions + toggle). */
  .nav-inner{display:flex;align-items:center;gap:10px;padding:13px 18px}
  .brand{margin-right:auto}
  .nav-actions{order:2}

  /* No-JS fallback: links wrap to a second row and stay reachable. */
  .site-nav{order:4;flex-wrap:wrap;gap:4px}

  /* With JS: collapse the links into a toggle-driven dropdown panel.
     GitHub stays visible in the bar next to the hamburger. */
  html.js .nav-toggle{display:inline-flex;order:3}
  html.js .site-nav{
    position:absolute;top:calc(100% + 6px);right:18px;left:18px;
    flex-direction:column;align-items:stretch;gap:2px;
    background:var(--panel);border:1px solid var(--line-2);border-radius:12px;
    padding:8px;box-shadow:0 20px 44px #00000066;
    display:none;
  }
  html.js .site-header.nav-open .site-nav{display:flex}
  html.js .site-nav .nav-link{padding:11px 12px;border-radius:8px}
}

/* ============================================================
   Hero  -  full-window agent terminal. The console fills the
   viewport and plays the scene; headline is overlaid bottom-left.
   ============================================================ */
.hero{
  position:relative;
  min-height:100dvh;
  display:flex;flex-direction:column;justify-content:flex-end;
  overflow:hidden;
  background:radial-gradient(130% 90% at 70% 0%, #15181F 0%, #0E1014 55%, #0A0B0F 100%);
}
/* the terminal itself, edge to edge — bottom is clipped so lines never run
   under the overlaid headline/rail; mask fades the last lines softly */
.term-full{
  position:absolute;top:0;left:0;right:0;
  bottom:clamp(260px,36vh,400px);z-index:0;
  font-family:var(--mono);font-size:clamp(.82rem,1.45vw,1.08rem);
  line-height:1.85;color:#CFCBC0;
  padding:clamp(90px,14vh,150px) 6vw 0;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);
}
.term-full .t-line{white-space:pre-wrap;word-break:break-word}
/* scrim so the overlaid headline stays readable over the console */
.hero-scrim{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(to top,#0A0B0F 0%,#0A0B0F 18%,#0A0B0Fef 32%,#0A0B0Fd9 48%,transparent 72%),
    radial-gradient(80% 70% at 18% 95%,#0A0B0F 0%,transparent 60%),
    radial-gradient(70% 90% at 30% 115%,#E0701B1f 0%,transparent 55%);
}
.hero-foot{
  position:relative;z-index:2;width:100%;
  padding:0 32px clamp(20px,4vh,34px);
  background:linear-gradient(to top,#0A0B0F 55%,transparent);
}
.hero-content{
  position:relative;margin-bottom:34px;
  padding:18px 0 6px;
}
.hero-content::before{
  content:"";position:absolute;inset:-28px -20px -12px;
  background:radial-gradient(120% 140% at 0% 100%,#0A0B0F 0%,#0A0B0Fcc 45%,transparent 72%);
  z-index:-1;pointer-events:none;
}
.hero-kicker{
  font-family:var(--mono);font-size:.72rem;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--chart);
  margin:0 0 16px;
}
.hero-title{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.65rem,3.5vw,1.95rem);line-height:1.06;letter-spacing:-.03em;
  margin:0 0 22px;max-width:24ch;text-shadow:0 2px 40px #00000080;
  min-height:calc(2 * 1.06em);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:13px}
.btn{
  font-family:var(--sans);font-weight:600;font-size:.95rem;text-decoration:none;
  padding:13px 22px;border-radius:10px;display:inline-flex;align-items:center;gap:8px;
  transition:transform .18s,background .18s,border-color .18s,box-shadow .18s;
}
.btn .arr{transition:transform .2s}
.btn:hover .arr{transform:translateX(3px)}
.btn-primary{background:var(--marker);color:#1A1206}
.btn-primary:hover{background:var(--marker-2);transform:translateY(-2px);box-shadow:0 12px 34px #e0701b4d}
.btn-secondary{color:var(--text);border:1px solid var(--line-2);background:#ffffff0d;backdrop-filter:blur(4px)}
.btn-secondary:hover{border-color:var(--text-2);transform:translateY(-2px)}

/* terminal line styles */
.t-mark{font-weight:700}
.t-prompt{color:#E8E6DF}
.t-prompt .t-mark{color:var(--marker)}
.t-agent,.t-agent .t-mark{color:var(--chart)}
.t-cmd{color:#E8E6DF}
.t-cmd .t-mark{color:var(--text-3)}
/* a Cartograph command - the star of the demo */
.t-cli{color:var(--marker-2);font-weight:500}
.t-cli .t-mark{color:var(--text-3);font-weight:400}
.t-result{color:#CFCBC0}
.t-star{color:var(--marker)}
.t-dim{color:var(--text-3)}
.t-ok{color:#6FB587}
.t-err{color:#E0625A}
.t-warn{color:#D9A441}
.t-cursor{
  display:inline-block;width:8px;height:1.05em;background:var(--marker);
  vertical-align:-2px;margin-left:2px;
  animation:term-blink 1.05s steps(1) infinite;
}
@keyframes term-blink{50%{opacity:0}}

/* workflow rail (NVIDIA-style auto-advancing tabs) */
.hero-rail{
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;
  gap:0;
}
.rail-tab{
  position:relative;text-align:left;cursor:pointer;
  background:none;border:none;color:inherit;
  padding:13px 18px 2px 0;
  border-top:1px solid var(--line-2);
  display:flex;flex-direction:column;gap:5px;
  font-family:var(--sans);
}
.rail-bar{position:absolute;top:-1px;left:0;right:10px;height:2px;background:var(--line-2);overflow:hidden}
.rail-bar i{display:block;height:100%;width:0;background:var(--marker)}
.rail-cat{
  font-family:var(--mono);font-size:.62rem;font-weight:500;
  letter-spacing:.13em;text-transform:uppercase;color:var(--text-3);
}
.rail-title{font-size:.92rem;font-weight:500;color:var(--text-2);transition:color .2s}
.rail-tab:hover .rail-title,.rail-tab.is-active .rail-title{color:var(--text)}

@media(max-width:1100px){
  .term-full{
    bottom:clamp(240px,34vh,380px);
    font-size:clamp(.78rem,1.8vw,.98rem);
    line-height:1.7;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%);
  }
  .hero-scrim{
    background:
      linear-gradient(to top,#0A0B0F 0%,#0A0B0F 18%,#0A0B0Fef 30%,#0A0B0Fd9 42%,transparent 64%),
      radial-gradient(80% 70% at 18% 95%,#0A0B0F 0%,transparent 60%),
      radial-gradient(70% 90% at 30% 115%,#E0701B1f 0%,transparent 55%);
  }
}
@media(max-width:760px){
  .hero{overflow:visible;overscroll-behavior:none}
  .hero-rail{grid-auto-flow:row;grid-auto-columns:auto}
  .rail-tab:not(.is-active){display:none}
  .term-full{
    bottom:clamp(200px,30vh,290px);
    padding-top:clamp(80px,12vh,120px);
    pointer-events:none;
    touch-action:pan-y;
    overscroll-behavior:none;
    overflow:hidden;
    -webkit-overflow-scrolling:auto;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 100%);
  }
  .hero-scrim{
    pointer-events:none;
    touch-action:pan-y;
    background:
      linear-gradient(to top,#0A0B0F 0%,#0A0B0F 12%,#0A0B0Fef 22%,#0A0B0Fd9 34%,transparent 52%),
      radial-gradient(80% 65% at 18% 92%,#0A0B0F 0%,transparent 58%),
      radial-gradient(70% 90% at 30% 115%,#E0701B1f 0%,transparent 55%);
  }
  .hero-foot{
    display:flex;flex-direction:column;gap:22px;
    padding:0 18px clamp(14px,2.5vh,20px);
    background:linear-gradient(to top,#0A0B0F 48%,transparent);
  }
  .hero-content{margin-bottom:0;padding:14px 0 4px}
}

@media(max-width:600px){
  .hero-foot{gap:20px}
  .hero-content{padding:8px 0 2px}
  .term-full{bottom:clamp(185px,28vh,270px)}
}

/* scroll cue */
.hero-scroll{
  position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:2;
  width:26px;height:42px;border:1px solid var(--line-2);border-radius:14px;
  display:flex;justify-content:center;padding-top:7px;
}
.hero-scroll span{
  width:3px;height:8px;border-radius:2px;background:var(--text-3);
  animation:scroll-cue 1.6s ease-in-out infinite;
}
@keyframes scroll-cue{0%{opacity:0;transform:translateY(-3px)}40%{opacity:1}100%{opacity:0;transform:translateY(8px)}}

@media(prefers-reduced-motion:reduce){
  .hero-scroll span{animation:none}
}

/* ============================================================
   Content sections  -  hooks from frontend-content-section-python:
   .content-section .section-kicker .section-title .section-lede
   .section-body .section-items .item .item-title .item-text
   Each section sets --accent (the comet stop); base rules read it.
   ============================================================ */
.content-section{
  max-width:var(--wrap);margin:0 auto;
  padding:62px 32px;
  border-top:1px solid var(--line);
  scroll-margin-top:72px;
}
/* Full-bleed IDE "wash" - the explorer itself fills the viewport (SpaceX
   style: the visual IS the section). A window-chrome bar carries the create
   command; the narrative lives in the sidebar above the file list; code fills
   the rest at full height. */
.content-section.is-full{
  max-width:none;margin:0;padding:0;
  display:flex;flex-direction:column;
  background:#0E1014;
}
/* macOS-style window titlebar: traffic lights left, window title centred */
.ide-titlebar{
  position:relative;display:flex;align-items:center;
  padding:12px 18px;border-bottom:1px solid var(--line);
  background:linear-gradient(#20242E,#191C24);
}
.ide-title{
  position:absolute;left:0;right:0;text-align:center;pointer-events:none;
  font-family:var(--sans);font-weight:500;font-size:.82rem;color:var(--text-2);
}
.ide-bar{
  display:flex;align-items:center;gap:18px;
  padding:14px 26px;border-bottom:1px solid var(--line-2);
  background:#15181F;font-family:var(--mono);font-size:.84rem;
}
.ide-dots{display:inline-flex;gap:8px;flex:none}
.ide-dots i{width:12px;height:12px;border-radius:50%;display:block}
.ide-dots i:nth-child(1){background:#FF5F57}
.ide-dots i:nth-child(2){background:#FEBC2E}
.ide-dots i:nth-child(3){background:#28C840}
.ide-cmd{color:var(--marker-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ide-cmd .we-dollar{color:var(--text-3);margin-right:8px}
.ide-tag{
  margin-left:auto;flex:none;color:var(--accent,var(--marker));
  letter-spacing:.18em;text-transform:uppercase;font-size:.72rem;white-space:nowrap;
}
/* explorer fills the remaining viewport height, edge to edge */
.content-section.is-full .widget-explorer{
  flex:1 0 auto;margin:0;border:none;border-radius:0;background:#0E1014;
  grid-template-columns:360px 1fr;
  min-height:calc(100dvh - 5.75rem);
}
.content-section.is-full .we-tree{
  padding:18px 14px;overflow:auto;
  background:#16191F;border-right:1px solid var(--line);
}
.ide-intro{padding:8px 8px 22px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.ide-intro .section-kicker{margin:0 0 12px}
.ide-intro .section-title{font-size:clamp(1.5rem,2.2vw,2rem);max-width:none;margin:0 0 10px}
.ide-intro .section-lede{font-size:.96rem;max-width:none;margin:0;line-height:1.5}
.content-section.is-full .we-pane{min-height:0;display:grid}
.content-section.is-full .we-code{
  max-height:none;height:100%;border-radius:0;background:#0E1014;
  font-size:1rem;line-height:1.7;padding:26px 30px;
}
.content-section.is-full .we-name{font-size:.92rem}
.content-section.is-full .we-file{padding:11px 12px}
/* Syntax token colors - design-system glue for frontend-syntax-highlighter.
   Tuned for the #0E1014 canvas: gold keywords (the star), teal types, green
   strings, dim comments. Accents on text only, never backgrounds. */
.we-code .tok-comment{color:#5C6573;font-style:italic}
.we-code .tok-keyword{color:#E0B341}
.we-code .tok-type{color:#5FB6CC}
.we-code .tok-string{color:#9DC68C}
.we-code .tok-number{color:#C9A0E6}
.we-code .tok-builtin{color:#E59A35}
.we-code .tok-directive{color:#E59A35}
.we-code .tok-property{color:#5FB6CC}
@media(max-width:900px){
  .content-section.is-full{
    min-height:0;
    overflow-x:clip;
    max-width:100%;
  }
  .ide-title{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    padding:0 72px;
  }
  .ide-bar{
    flex-wrap:wrap;align-items:flex-start;gap:8px;
    padding:12px 18px;min-width:0;
  }
  .ide-cmd{
    flex:1 1 100%;min-width:0;width:100%;
    white-space:normal;overflow-wrap:anywhere;word-break:break-word;
    overflow:visible;text-overflow:unset;
    font-size:clamp(.7rem,3.1vw,.82rem);line-height:1.5;
  }
  .content-section.is-full .widget-explorer{
    grid-template-columns:1fr;grid-template-rows:auto 1fr;
    flex:none;overflow:hidden;max-width:100%;min-width:0;min-height:0;
  }
  /* Override the §01 chip layout (flex-wrap) — ide-intro breaks it and
     pushes .we-file buttons off-screen. Stack intro + tab strip + code. */
  .content-section.is-full .we-tree{
    display:flex;flex-direction:column;flex-wrap:nowrap;
    overflow:hidden;min-width:0;max-width:100%;
    border-right:none;border-bottom:1px solid var(--line);
    padding:14px 0 10px;
  }
  .content-section.is-full .ide-intro{
    padding:0 18px 12px;margin-bottom:0;border-bottom:none;
  }
  .ide-intro .section-title{font-size:1.35rem}
  .ide-intro .section-lede{font-size:.88rem;line-height:1.45}
  .content-section.is-full .we-root{display:none}
  .content-section.is-full .we-files{
    display:flex;gap:6px;overflow-x:auto;padding:0 18px 4px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    cursor:grab;
  }
  .content-section.is-full .we-files.is-grabbing{
    cursor:grabbing;user-select:none;-webkit-user-select:none;
  }
  .content-section.is-full .we-files.is-grabbing .we-file{pointer-events:none}
  .content-section.is-full .we-files::-webkit-scrollbar{display:none}
  .content-section.is-full .we-file{
    width:auto;flex:0 0 auto;white-space:nowrap;
    padding:8px 12px;border-radius:8px;border:1px solid var(--line);
    border-left-width:1px;
  }
  .content-section.is-full .we-file.is-active{border-color:var(--accent,var(--marker))}
  .content-section.is-full .we-hint{display:none}
  .content-section.is-full .we-pane{min-height:min(55vh,480px);min-width:0;max-width:100%}
  .content-section.is-full .we-code{
    height:auto;max-height:none;min-height:min(55vh,480px);
    max-width:100%;overflow-x:auto;
    font-size:.84rem;line-height:1.65;padding:18px 16px;
    overflow-wrap:anywhere;word-break:break-word;
  }
  .ide-tag{display:none}
}
.section-kicker{
  display:inline-flex;align-items:center;gap:11px;
  font-family:var(--mono);font-size:.74rem;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent,var(--marker));margin:0 0 16px;
}
.section-kicker::before{
  content:"";width:22px;height:2px;border-radius:2px;
  background:var(--accent,var(--marker));
}
.section-title{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.7rem,3.2vw,2.4rem);letter-spacing:-.02em;line-height:1.1;
  margin:0 0 14px;max-width:20ch;
}
.section-lede{
  font-size:1.12rem;color:var(--text-2);max-width:56ch;
  margin:0 0 34px;line-height:1.55;
}
.section-items{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;
}
.item{
  background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:22px;transition:border-color .2s,transform .2s,background .2s;
}
.item:hover{border-color:var(--accent,var(--marker));transform:translateY(-3px);background:var(--panel-2)}
.item-title{
  font-family:var(--display);font-weight:600;font-size:1.12rem;
  letter-spacing:-.01em;margin:0 0 7px;
}
.item-text{font-size:.96rem;color:var(--text-2);margin:0;line-height:1.5}
.content-section code{font-family:var(--mono);font-size:.86em;color:var(--text);background:#ffffff12;border:1px solid var(--line);border-radius:5px;padding:1px 6px}

/* Section backdrop - full-bleed image behind a left-weighted dark scrim so
   left-aligned text stays legible while the generated art lives on the right.
   Set --bg-img on the section; with no image it gracefully shows flat --bg. */
.content-section.has-bg{
  max-width:none;padding:0;position:relative;overflow:hidden;
}
.content-section.has-bg::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:var(--bg-img,none) var(--bg-pos,center right)/cover no-repeat;
}
.content-section.has-bg::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,
    var(--bg) 0%, rgba(20,22,28,.92) 30%,
    rgba(20,22,28,.45) 64%, rgba(20,22,28,.72) 100%);
}
/* optional background video - sits above the poster image, below the scrim.
   Lazy-loaded + paused offscreen by glue JS; hidden under reduced-motion so
   the poster (--bg-img / poster attr) shows instead. */
.section-video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:var(--bg-pos,center right);z-index:0;border:0;
}
@media(prefers-reduced-motion:reduce){.section-video{display:none}}
/* tame a too-bright / off-theme photo: darken + desaturate toward the dark theme */
.content-section.has-bg.bg-tame::before,
.content-section.has-bg.bg-tame .section-video{filter:brightness(.55) contrast(1.05)}
/* no scrim - rely on the darkened image alone for legibility */
.content-section.has-bg.scrim-none::after{background:none}
/* softer left scrim - far-left stays dark for text, opens up sooner to reveal a subject */
.content-section.has-bg.scrim-soft::after{
  background:linear-gradient(90deg,
    var(--bg) 0%, rgba(20,22,28,.85) 18%,
    rgba(20,22,28,.45) 45%, rgba(20,22,28,.30) 100%);
}
/* vertical scrim - for top-dark / bottom-busy art (text up top, glow at base) */
.content-section.has-bg.bg-vert::after{
  background:linear-gradient(180deg,
    rgba(20,22,28,.92) 0%, rgba(20,22,28,.80) 34%,
    rgba(20,22,28,.55) 70%, rgba(20,22,28,.30) 100%);
}
.section-inner{
  position:relative;z-index:2;
  max-width:var(--wrap);margin:0 auto;padding:84px 32px;
}
/* keep content over the dark left so it never collides with the art */
.content-section.has-bg .section-title,
.content-section.has-bg .section-lede{max-width:46ch}
@media(max-width:760px){
  .content-section.has-bg::after{background:linear-gradient(180deg,var(--bg) 0%,rgba(20,22,28,.82) 100%)}
}

/* § Registry / two-paths section - live stat band + two CTA cards */
#s1{min-height:min(88vh,920px)}
#s1 .section-inner{
  display:flex;flex-direction:column;
  min-height:min(88vh,920px);
  padding-top:56px;padding-bottom:72px;
}
#s1 .section-lede{margin-bottom:0}
#s1 .stat-band{margin-top:auto;margin-bottom:44px}
@media(max-width:760px){
  #s1,#s1 .section-inner{min-height:0}
  #s1 .section-inner{padding-top:48px;padding-bottom:48px}
  #s1 .stat-band{margin-top:36px;margin-bottom:36px}
}
.stat-band{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:22px;margin:6px 0 44px;padding:0;list-style:none;
}
.stat dd{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2rem,4vw,3rem);letter-spacing:-.02em;line-height:1;
  color:var(--accent,var(--marker));margin:0;
}
.stat dt{
  font-family:var(--mono);font-size:.78rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:#fff;margin-top:9px;
}
.path-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:860px){.path-cards{grid-template-columns:1fr}}
.path-card{
  display:flex;flex-direction:column;gap:9px;padding:28px;
  border:1px solid var(--line-2);border-radius:16px;background:var(--panel);
  text-decoration:none;color:inherit;
  transition:border-color .2s,transform .2s,background .2s;
}
.path-card:hover{border-color:var(--accent,var(--marker));transform:translateY(-3px);background:var(--panel-2)}
.path-card--alt{--accent:var(--accent-5)}
.path-tag{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--accent,var(--marker));
}
.path-card h3{font-family:var(--display);font-weight:600;font-size:1.4rem;letter-spacing:-.01em;margin:0}
.path-card p{color:var(--text-2);margin:0;font-size:1rem;line-height:1.5;flex:1}
.path-go{font-family:var(--mono);font-size:.86rem;color:var(--text);margin-top:6px}
.path-card:hover .path-go{color:var(--accent,var(--marker))}
/* coming-soon card: badge instead of a call to action */
.path-card.is-soon .path-go{
  align-self:flex-start;margin-top:8px;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent,var(--marker));
  border:1px solid var(--accent,var(--marker));border-radius:999px;padding:5px 13px;
}

/* § For-agents section — text sits over a photo, so lift contrast + shadow */
#s2{--bg-pos:32% 12%;min-height:min(88vh,920px)}
#s2 .section-inner{
  display:flex;flex-direction:column;
  min-height:min(88vh,920px);
  padding-top:56px;padding-bottom:72px;
}
#s2 .section-title,#s2 .section-lede{text-shadow:0 2px 18px rgba(0,0,0,.6)}
#s2 .section-lede{color:var(--text);margin-bottom:0}
#s2 .agent-chips li{color:var(--text)}
#s2 .agent-side-label,#s2 .agent-cmd-label{
  color:var(--text);
  text-shadow:0 2px 18px rgba(0,0,0,.75),0 1px 3px rgba(0,0,0,.85);
}
#s2 .agent-cols{margin-top:auto;padding-top:40px;align-items:stretch}
#s2 .agent-setup{display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-height:100%}
#s2 .agent-tools{
  margin:0;flex:1;
  display:flex;flex-direction:column;justify-content:space-between;
  gap:0;padding:4px 0 2px;
}
#s2 .agent-tools li{
  color:var(--text);
  font-size:clamp(1.2rem,1.75vw,1.55rem);
  line-height:1.35;
  padding-left:26px;
}
#s2 .agent-tools li::before{font-size:1.05em;top:.08em}
#s2 .agent-tools code{
  font-size:.92em;
  color:var(--marker-2);
  background:#0F1117e6;
  border:1px solid var(--line-2);
  box-shadow:0 2px 14px rgba(0,0,0,.55);
}
@media(max-width:760px){
  #s2{--bg-pos:calc(32% - min(60vw,400px)) 12%}
  #s2,#s2 .section-inner{min-height:0}
  #s2 .section-inner{padding-top:48px;padding-bottom:56px}
  #s2 .section-lede{margin-bottom:24px}
  #s2 .agent-cols{margin-top:0;padding-top:0;align-items:start}
  #s2 .agent-setup{height:auto;min-height:0}
  #s2 .agent-tools{justify-content:flex-start;gap:16px}
  #s2 .agent-tools li{font-size:1.15rem}
  #s2 .agent-side{min-height:0}
  #s2 .agent-chips{margin-top:20px}
  #s2 .we-create{
    white-space:normal;overflow-wrap:anywhere;word-break:break-word;
    font-size:clamp(.72rem,3.2vw,.84rem);line-height:1.5;
  }
}
#s2 .agent-side{display:flex;flex-direction:column}
#s2 .agent-chips{margin-top:auto}
.agent-cols{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:start;margin-top:8px}
@media(max-width:760px){.agent-cols{grid-template-columns:1fr;gap:28px}}
.agent-tools{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:11px}
.agent-tools li{color:var(--text-2);font-size:1rem;padding-left:20px;position:relative}
.agent-tools li::before{content:"▸";position:absolute;left:0;color:var(--accent,var(--marker))}
.agent-side-label{font-family:var(--mono);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-3);margin:0 0 14px}
.agent-cmds{display:flex;flex-direction:column;gap:14px;margin:0 0 14px}
.agent-cmd-block{display:flex;flex-direction:column;gap:8px}
.agent-cmd-label{font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-3)}
.agent-chips{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.agent-chips li{
  font-family:var(--mono);font-size:.86rem;color:var(--text-2);
  border:1px solid var(--line-2);border-radius:999px;padding:8px 16px;
  transition:border-color .2s,color .2s;
}
.agent-chips li:hover{border-color:var(--accent,var(--marker));color:var(--text)}

/* the create command that scaffolds the widget below */
.we-create{
  font-family:var(--mono);font-size:.86rem;
  background:#0F1117;border:1px solid var(--line-2);
  border-left:3px solid var(--accent,var(--marker));border-radius:9px;
  padding:13px 16px;margin:0;overflow:auto;white-space:nowrap;
}
.we-create:has(.copy-btn){position:relative;padding-right:76px}
.we-dollar{color:var(--text-3);margin-right:8px}
.we-cmd-text{color:var(--marker-2)}


/* Interactive widget explorer (§ 01) - click a file to see its stub */
.widget-explorer{
  display:grid;grid-template-columns:280px 1fr;
  border:1px solid var(--line-2);border-radius:14px;overflow:hidden;
  background:var(--panel);margin-top:8px;
}
.we-tree{background:#15181F;border-right:1px solid var(--line);padding:14px 12px}
.we-root{font-family:var(--mono);color:var(--text-3);font-size:.8rem;padding:4px 10px 10px}
.we-file{
  display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;
  background:none;border:none;cursor:pointer;color:var(--text-2);
  padding:9px 10px;border-radius:8px;border-left:2px solid transparent;transition:.15s;
}
.we-file:hover{color:var(--text);background:#ffffff08}
.we-file.is-active{color:var(--accent,var(--marker));background:#ffffff0d;border-left-color:var(--accent,var(--marker))}
.we-name{font-family:var(--mono);font-size:.84rem}
.we-hint{font-size:.68rem;color:var(--text-3)}
.we-file.is-active .we-hint{color:var(--accent,var(--marker))}
.we-pane{min-width:0}
.we-code{
  margin:0;padding:20px 22px;font-family:var(--mono);font-size:.8rem;
  line-height:1.65;color:#CFCBC0;max-height:min(62vh,560px);overflow:auto;
  white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2;
}
.widget-explorer.live .we-code{display:none}
.widget-explorer.live .we-code.is-active{display:block}
@media(max-width:640px){
  .widget-explorer{grid-template-columns:1fr}
  /* §01 compact explorer — not the full-bleed §03 anatomy (ide-intro breaks wrap) */
  .content-section:not(.is-full) .we-tree{display:flex;flex-wrap:wrap;gap:4px;border-right:none;border-bottom:1px solid var(--line)}
  .content-section:not(.is-full) .we-root{flex-basis:100%}
  .content-section:not(.is-full) .we-file{flex:1 1 auto;width:auto}
  .content-section:not(.is-full) .we-hint{display:none}
}
@media(max-width:640px){
  .content-section{padding:46px 18px}
}

/* ============================================================
   Footer  -  hooks from frontend-site-footer-python
   ============================================================ */
.site-footer{background:#101218;border-top:1px solid var(--line);margin-top:0}
.footer-inner{max-width:var(--wrap);margin:0 auto;padding:46px 32px 36px}
.footer-top{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  flex-wrap:wrap;padding-bottom:34px;margin-bottom:34px;border-bottom:1px solid var(--line);
}
.footer-cta{
  font-family:var(--sans);font-weight:500;font-size:.92rem;color:var(--text);
  text-decoration:none;padding:11px 20px;border:1px solid var(--line-2);border-radius:9px;
  transition:border-color .18s,color .18s,background .18s;
}
.footer-cta:hover{border-color:var(--marker);color:var(--marker-2);background:#E0701B14}
.footer-social{display:flex;align-items:center;gap:6px}
.social-link{
  display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:9px;color:var(--text-3);text-decoration:none;transition:color .18s,background .18s;
}
.social-link:hover{color:var(--text);background:var(--panel)}
.social-link svg{display:block}
.footer-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:28px 24px;margin-bottom:38px}
.footer-col-title{
  font-family:var(--display);font-weight:600;font-size:.82rem;letter-spacing:.04em;
  text-transform:uppercase;color:var(--text);margin:0 0 14px;
}
.footer-col-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.footer-col-links a{font-size:.92rem;color:var(--text-2);text-decoration:none;transition:color .15s}
.footer-col-links a:hover{color:var(--marker-2)}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding-top:26px;border-top:1px solid var(--line);
}
.footer-legal{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.footer-legal a{font-size:.82rem;color:var(--text-3);text-decoration:none;transition:color .15s}
.footer-legal a:hover{color:var(--text-2)}
.footer-copyright{font-family:var(--mono);font-size:.76rem;color:var(--text-3);margin:0;letter-spacing:.02em}
@media(max-width:560px){
  .footer-inner{padding:38px 18px 30px}
  .footer-top{justify-content:center;text-align:center}
  .footer-bottom{justify-content:center;text-align:center}
}

/* ============================================================
   Getting-started page — numbered steps
   ============================================================ */
.page-head{
  max-width:var(--wrap);margin:0 auto;padding:104px 32px 8px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px 48px;
}
.page-head-intro .section-lede{margin-bottom:0}
.page-head-route{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:0}
.page-head .setup-toggle{margin:0}
.page-head-route .setup-toggle{
  position:relative;display:inline-flex;align-items:center;gap:12px;
  padding:12px 18px 18px;margin:0;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--line-2);
}
.page-head-route .setup-toggle-underline{
  position:absolute;bottom:10px;left:0;z-index:1;pointer-events:none;
  width:var(--ul-w,0);height:3px;
  transform:translateX(var(--ul-x,0));
  background:var(--accent,var(--marker));
  border-radius:2px;
  box-shadow:0 0 14px color-mix(in srgb,var(--accent,var(--marker)) 55%,transparent);
  transition:
    transform .4s cubic-bezier(.34,1.2,.64,1),
    width .4s cubic-bezier(.34,1.2,.64,1);
}
.page-head-route .setup-tab{
  position:relative;z-index:2;
  font-size:1.1rem;padding:12px 28px;letter-spacing:.02em;
  border:none;border-radius:0;
  background:transparent;color:var(--text-3);
  transition:color .35s;
}
.page-head-route .setup-tab.is-active{
  background:transparent;
  color:var(--accent,var(--marker));
  font-weight:600;
}
.page-head-route .setup-tab:not(.is-active):hover{color:var(--text-2)}
.page-head-route .setup-sub{font-size:1rem;text-align:right;white-space:nowrap;margin:0}
@media(max-width:860px){
  .page-head{
    grid-template-columns:1fr;align-items:start;
    padding:104px 18px 8px;
  }
  .page-head-route{align-items:stretch;width:100%;max-width:100%}
  .page-head-intro .section-lede{margin-bottom:0}
  .page-head-route .setup-toggle{
    display:flex;width:100%;max-width:100%;
    gap:0;padding:10px 10px 16px;
    box-sizing:border-box;
  }
  .page-head-route .setup-tab{
    flex:1 1 0;min-width:0;
    padding:12px 10px;
    font-size:clamp(.88rem,3.6vw,1rem);
    text-align:center;
  }
  .page-head-route .setup-sub{
    text-align:left;white-space:normal;
  }
}
.steps{list-style:none;margin:0;padding:0;max-width:var(--wrap);}
.step{display:grid;grid-template-columns:auto 1fr;gap:22px;padding:30px 0;border-top:1px solid var(--line)}
.step:first-child{border-top:none}
.step-n{
  font-family:var(--display);font-weight:600;font-size:1.1rem;
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--accent,var(--marker));border:1px solid var(--accent,var(--marker));
}
.step-body{min-width:0}
.step-body h3{font-family:var(--display);font-weight:600;font-size:1.3rem;letter-spacing:-.01em;margin:0 0 8px}
.step-body p{color:var(--text-2);margin:0 0 14px;font-size:1.02rem;line-height:1.5;max-width:62ch}
.step-body .we-create{max-width:560px}

/* nav items not yet live: no navigation, "coming soon" tooltip on hover */
.nav-link.is-soon{color:var(--text-3);cursor:default;position:relative}
.nav-link.is-soon:hover{color:var(--text-3);background:none}
.nav-link.is-soon::after{
  content:"Coming soon";
  position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);
  white-space:nowrap;font-family:var(--mono);font-size:.64rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--marker-2);
  background:var(--panel-2);border:1px solid var(--line-2);border-radius:6px;
  padding:4px 9px;opacity:0;pointer-events:none;transition:opacity .15s;
}
.nav-link.is-soon:hover::after{opacity:1}
@media(max-width:760px){.nav-link.is-soon::after{position:static;transform:none;display:inline-block;margin-left:8px;opacity:.7}}

/* ============================================================
   Getting-started: route toggle (Full setup vs CLI)
   ============================================================ */
.setup-toggle{
  display:inline-flex;gap:4px;margin:22px 0 6px;padding:4px;
  border:1px solid var(--line-2);border-radius:999px;background:var(--panel);
}
.setup-tab{
  font-family:var(--mono);font-size:.82rem;letter-spacing:.01em;
  padding:9px 18px;border:none;border-radius:999px;background:none;
  color:var(--text-2);cursor:pointer;transition:background .15s,color .15s;white-space:nowrap;
}
.setup-tab:hover:not(.is-active){color:var(--text)}
.setup-tab.is-active{background:var(--accent,var(--marker));color:#14161C;font-weight:600}
.setup-sub{color:var(--text-2);font-size:.92rem;margin:2px 0 0}
.route{display:none}
.route.is-active{display:block}
.step-note{color:var(--text-3);font-size:.92rem;margin:10px 0 0}
.step-note code{font-size:.86em}

/* ============================================================
   Getting-started: two-column (prose steps + sticky code card)
   ============================================================ */
.setup-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:48px;align-items:start}
@media(max-width:860px){.setup-grid{grid-template-columns:1fr;gap:26px}}
.doctor-body p{color:var(--text-2);font-size:1.02rem;line-height:1.5;max-width:62ch;margin:0}
#languages .section-title{max-width:none;margin-top:0;margin-bottom:18px}
#languages .languages-grid{align-items:stretch}
#languages .setup-code{align-self:start}
#languages .doctor-body{display:flex;flex-direction:column;justify-content:flex-end}
.steps-prose .step .step-body p{margin-bottom:0}
.setup-code{display:flex;flex-direction:column;gap:14px;position:static}
.setup-code .agent-row{margin:0}
.code-card{
  position:relative;background:#0E1014;border:1px solid var(--line-2);border-radius:14px;
  padding:24px 22px;font-family:var(--mono);font-size:.9rem;line-height:1.95;overflow:auto;
}
.code-line{white-space:pre-wrap;overflow-wrap:anywhere}
.c-comment{color:var(--text-3)}
.c-prompt{color:var(--text-3);user-select:none}
.c-cmd{color:var(--marker-2)}
.copy-btn{
  position:absolute;top:12px;right:12px;
  font-family:var(--mono);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-2);background:var(--panel-2);border:1px solid var(--line-2);
  border-radius:7px;padding:5px 11px;cursor:pointer;transition:.15s;
}
.copy-btn:hover{color:var(--text);border-color:var(--accent,var(--marker))}
.copy-btn.is-copied{color:var(--accent,var(--marker));border-color:var(--accent,var(--marker))}

/* in-agent slash command (not shell): distinct color, excluded from copy */
.c-slash{color:var(--chart)}
.c-slashp{color:var(--text-3);user-select:none}

/* getting-started: "works with any agent" chips row */
.agent-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 4px}
.agent-row-label{font-family:var(--mono);font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-3)}

/* §02 interactive agent bubbles — sharp edges + dark backing so they read on the photo */
.agent-chip{
  font-family:var(--mono);font-size:.86rem;color:var(--text);
  background:rgba(16,18,23,.6);
  border:1px solid rgba(255,255,255,.34);border-radius:999px;
  padding:8px 16px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
}
.agent-chip:hover{border-color:#fff;color:#fff}
.agent-chip.is-active{
  background:var(--accent,var(--marker));border-color:var(--accent,var(--marker));
  color:#14161C;font-weight:600;
}
