/* ============================================================================
   Homepage (CN-992) layout: band, hero, strip, showcase. Loaded by index.html
   only, after codenavi-ui.css. The dark palette itself lives in codenavi-ui.css
   since 2026-11-20, so every page and the portal share it.
   ============================================================================ */

body.home{--maxw:1110px; background:var(--bg)}
body.home::before{display:none} /* the light grid */
body.home code{background:rgba(231,255,247,.08); color:var(--ink)}
body.home a{color:var(--teal-dark)}

/* the striped band behind the hero and under the footer: teal into coral */
body.home .hero, body.home footer{position:relative; isolation:isolate}
body.home .hero::before, body.home footer::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(0,0,0,.28) 0 2px,transparent 2px 22px),
    linear-gradient(90deg,#063f3b 0%,#07645e 22%,#0d8f83 45%,#3fbfa8 60%,#c9f4dd 72%,#ff765f 88%,#b23b2b 100%);
}
body.home .hero::before{-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.95),rgba(0,0,0,.6) 60%,transparent); mask-image:linear-gradient(180deg,rgba(0,0,0,.95),rgba(0,0,0,.6) 60%,transparent)}
body.home .hero::after{content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse 60% 55% at 50% 45%,rgba(11,18,17,.72),transparent 75%)}

/* ---------- header: sits on the band ---------- */
body.home .site-header{position:absolute; left:0; right:0; background:rgba(4,10,9,.28); border-bottom:1px solid rgba(255,255,255,.12); backdrop-filter:blur(6px)}
body.home .brand, body.home .nav-links a{color:#fff}
body.home .brand-mark{background:rgba(255,255,255,.12); color:#fff}
body.home .nav-links a:hover{color:var(--mint)}
body.home .nav-links a.nav-cta{background:#fff; color:#0b1211}
body.home .nav-links a.nav-cta:hover{background:var(--mint); color:#0b1211}
body.home .nav-search input{background-color:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); color:#fff}
body.home .nav-search input::placeholder{color:rgba(255,255,255,.88)}
@media(min-width:881px){ body.home .nav-search:focus-within input, body.home .nav-search input:not(:placeholder-shown){background-color:#12201d} body.home .nav-search:not(:focus-within) input:placeholder-shown::placeholder{color:transparent} body.home .nav-search:not(:focus-within) input:placeholder-shown{filter:brightness(1.8)} }
body.home .nav-toggle{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.25)}
body.home .nav-toggle span{background:#fff}

/* ---------- type: big, light, tight ---------- */
body.home h1, body.home .sec-title{color:var(--ink)}
body.home .sec-title{font-size:clamp(2rem,4.4vw,3.1rem); line-height:1.1; margin:0}
body.home #product > .sec-title{text-align:center; margin-bottom:44px}
body.home #signals .sec-title{font-size:clamp(1.6rem,3.6vw,2.7rem); text-wrap:balance} /* one line from ~620px up */
body.home .sec-intro{margin:20px auto 0; max-width:70ch; color:var(--body); font-size:1.08rem}
body.home .sec-intro a{color:var(--ink); text-decoration-color:rgba(231,255,247,.45)}
body.home .center{text-align:center}
body.home main > section{padding:clamp(64px,9vw,112px) 0 0}
body.home main > #product{padding-top:clamp(40px,4vw,56px)}

/* ---------- buttons ---------- */
body.home .btn{border-radius:8px; padding:12px 18px; font-size:16px; font-weight:500; box-shadow:none}
body.home .btn:hover{transform:none; text-decoration:none}
body.home .btn-white{background:#fff; color:#0b1211}
body.home .btn-white:hover{background:var(--mint); color:#0b1211}
body.home .btn-outline{background:rgba(11,18,17,.25); color:#fff; border:1px solid rgba(255,255,255,.75)}
body.home .btn-outline:hover{background:rgba(255,255,255,.12); color:#fff}

/* ---------- hero ---------- */
body.home main > .hero{display:block; padding:140px 0 56px; text-align:center}
body.home .hero-inner{display:flex; flex-direction:column; align-items:center}
body.home .hero h1{margin:0; text-wrap:balance; font-size:clamp(2rem,4.2vw,3rem); line-height:1.12; color:#fff}
body.home .hero h1 .teal{color:var(--mint)} /* --teal sinks into the teal band behind the hero */
body.home .lede{margin:26px auto 0; max-width:66ch; color:rgba(255,255,255,.78); font-size:1.18rem; line-height:1.6}
body.home .lede{text-wrap:balance}
body.home .lede code{white-space:nowrap}
body.home .br-wide{display:none}
@media (min-width:900px){body.home .lede-lead, body.home .br-wide{display:block} body.home .lede{max-width:none; text-wrap:wrap}}
body.home .lede a{color:#fff; text-decoration:underline; text-decoration-color:rgba(255,255,255,.35); text-underline-offset:3px}
body.home .lede a:hover{text-decoration-color:#fff}
body.home .hero-actions{justify-content:center; gap:16px; margin-top:36px}
body.home .hero-note{margin:18px 0 0; font-size:14px; color:rgba(255,255,255,.66)}
body.home .hero-note a{color:#fff; text-decoration:underline; text-decoration-color:rgba(255,255,255,.35); text-underline-offset:3px}
body.home .announce{margin-top:28px; font-size:13.5px; color:rgba(255,255,255,.72)}
body.home .announce:hover{color:#fff}
body.home .badges{display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:26px 0 0; padding:0; list-style:none}
body.home .badges li, body.home .badges a{padding:8px 16px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(11,18,17,.45); color:rgba(255,255,255,.8); font-size:14px}
body.home .badges li{display:flex}
body.home .badges li:has(a){padding:0; border:0; background:none}
body.home .badges a:hover{border-color:rgba(255,255,255,.5); text-decoration:none}

/* ---------- agent strip: greyed names, looping ---------- */
body.home main > .strip{padding:24px 0 0}
body.home .marquee{display:flex; overflow:hidden; width:min(var(--maxw),calc(100% - 44px)); margin:0 auto; -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
body.home .marquee ul{display:flex; flex:0 0 auto; gap:64px; margin:0; padding:0 32px; list-style:none}
body.home .marquee li{font-size:clamp(1.5rem,2.6vw,2.2rem); font-weight:700; letter-spacing:-.02em; color:rgba(231,255,247,.32); white-space:nowrap}
body.home a.marquee{text-decoration:none}
body.home a.marquee li{transition:color .2s}
body.home a.marquee:hover li, body.home a.marquee:focus-visible li{color:rgba(231,255,247,.7)}
body.home a.marquee:hover ul{animation-play-state:paused}

/* ---------- product showcase: segmented toggle, rows split by rules ---------- */
body.home .show{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(24px,5vw,64px); align-items:center; padding:40px 0; border-top:1px solid var(--line)}
body.home .show:last-child{border-bottom:1px solid var(--line)}
body.home .show h3{margin:0 0 14px; font-size:1.65rem; font-weight:500; letter-spacing:-.02em}
body.home .show p{margin:0 0 14px; color:var(--body); font-size:16px; line-height:1.65}
body.home .show-links{display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin-top:22px!important}
body.home .show-links a{display:inline-flex; gap:8px; padding:7px 14px; border-radius:8px; background:var(--raised); color:var(--ink); font-size:14.5px; font-weight:500}
body.home .show-links a:hover{background:#1d2b29; text-decoration:none}
body.home .show-visual > *{display:block; width:100%; border-radius:12px; border:1px solid var(--line); box-shadow:var(--shadow)}
body.home .show-visual video{height:auto; aspect-ratio:1150/1184; background:#000}
body.home .show-visual picture{overflow:hidden}
body.home .show-visual img{display:block; height:auto}
body.home .term-list{margin:0; padding:22px 24px; background:#070d0c; color:var(--body); display:grid; grid-template-columns:auto 1fr; gap:12px 20px; font-size:14.5px; line-height:1.45}
body.home .term-list dt{font-family:var(--mono); font-size:13px; font-weight:600; color:#4bd6c1; white-space:nowrap}
body.home .term-list dd{margin:0}

/* ---------- stats ---------- */
body.home .stats{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:48px auto 0; padding:0; max-width:900px; list-style:none}
body.home .stats li{display:flex; flex-direction:column; align-items:center}
body.home .stats a{display:flex; flex-direction:column; align-items:center; color:inherit}
body.home .stats a:hover{text-decoration:none}
body.home .stats b{font-size:clamp(2rem,4vw,2.8rem); font-weight:600; letter-spacing:-.03em; color:var(--ink)}
body.home .stats span{font-size:14px; color:var(--muted)}

/* ---------- client tiles ---------- */
body.home .tiles{display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin:44px 0 24px; padding:0; list-style:none}
body.home .tiles li{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:104px; padding:16px 10px; border:1px solid var(--line); border-radius:12px; background:var(--surface)}
body.home .tiles b{font-size:15px; font-weight:600; color:var(--ink); line-height:1.25}
body.home .tiles span{font-family:var(--mono); font-size:11px; color:var(--muted)}

/* ---------- boundary diagram: shared markup, dark surfaces ---------- */
body.home .wall{margin-top:44px; text-align:left; background:var(--surface)}
body.home .wall{position:relative}
body.home .wall-logo{position:absolute; right:32px; bottom:26px; display:flex; align-items:center; gap:8px; font-weight:800; font-size:15px; letter-spacing:-.015em; color:var(--ink)}
body.home .wall-logo .brand-mark{width:28px; height:28px; flex:0 0 28px; border-radius:7px; background:var(--teal); color:#fff}
@media(max-width:880px){ body.home .wall-logo{position:static; justify-content:center; margin-top:14px} }
body.home .wall-inside{background:rgba(13,143,131,.08); border-color:rgba(75,214,193,.45)}
body.home .wall-card, body.home .wall-card.infra{background:var(--raised); box-shadow:none}
body.home .wall-chips span{background:rgba(231,255,247,.07); color:var(--body)}
body.home .wall-line span{background:rgba(75,214,193,.14); color:#c9f4dd}
body.home .wall-line .out{background:var(--teal); color:#fff}
body.home .wall-line .gate{background:var(--bg); color:#4bd6c1; border-color:#4bd6c1}
body.home .wall-name, body.home .wall-zone{color:#4bd6c1}
body.home .wall-line::before{border-color:#4bd6c1}

/* ---------- six capabilities ---------- */
body.home .grid6{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:44px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--line); text-align:left}
body.home .grid6 article{padding:28px 26px; background:var(--bg)}
body.home .grid6 h3{margin:0 0 8px; font-size:1.1rem; font-weight:600; letter-spacing:-.01em}
body.home .grid6 p{margin:0; color:var(--muted); font-size:15px; line-height:1.55}
body.home .grid6.grid4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1040px){ body.home .grid6.grid4{grid-template-columns:repeat(2,1fr)} }
@media(max-width:560px){ body.home .grid6.grid4{grid-template-columns:1fr} }

/* ---------- three steps ---------- */
body.home .start-steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:64px 0 0; padding:0; list-style:none; counter-reset:step}
body.home .start-steps li{position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; padding:44px 22px 22px; border:1px solid var(--line); border-radius:14px; background:var(--surface); counter-increment:step; min-width:0}
body.home .start-steps li::before{content:counter(step); position:absolute; top:-24px; left:50%; translate:-50% 0; display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:var(--teal); color:#fff; font-size:18px; font-weight:600; box-shadow:0 0 0 6px var(--bg), 0 2px 8px rgba(0,0,0,.35)}
body.home .start-steps h3{margin:0; font-size:1.35rem; font-weight:500; letter-spacing:-.02em}
body.home .start-steps p{margin:0; color:var(--body); font-size:14.5px; line-height:1.55}
body.home .start-os{display:flex; flex-wrap:wrap; justify-content:center; gap:10px}
body.home .start-os .btn{padding-inline:14px}
body.home .code{width:100%; border:1px solid var(--line); border-radius:10px; background:#070d0c; overflow:hidden; text-align:left}
body.home .code-lang{display:block; padding:7px 12px; border-bottom:1px solid var(--line); font-family:var(--mono); font-size:11.5px; color:var(--muted)}
body.home .code pre.cli{margin:0; border:0; border-radius:0; background:transparent; white-space:pre-wrap; overflow-wrap:anywhere} /* wraps instead of scrolling under the copy button */
body.home .start-chip{margin-top:auto; font-size:12.5px; color:var(--muted)}

/* ---------- FAQ: one centred column ---------- */
body.home .faq-list{max-width:760px; margin:40px auto 0; text-align:left}
body.home .faq details{background:var(--surface); border-color:var(--line)}
body.home .faq summary{font-weight:500}

/* ---------- latest releases ---------- */
body.home .news-head{display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap}
body.home .news-head > a{font-weight:500}
body.home .news{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px}
body.home .news-card{display:flex; flex-direction:column; gap:10px; padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink)}
body.home .news-card:hover{border-color:rgba(75,214,193,.5); text-decoration:none}
body.home .news-card time{font-size:13px; color:var(--muted)}
body.home .news-card h3{margin:0; font-size:1.12rem; font-weight:500; line-height:1.35; letter-spacing:-.01em}

/* ---------- stay in touch ---------- */
body.home .kicker{display:inline-flex; align-items:center; gap:8px; margin-bottom:14px; font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--body)}
body.home .kicker .dot{width:8px; height:8px; rotate:45deg; background:var(--coral)}
body.home .signup{max-width:560px; margin:24px auto 0; justify-content:center}
body.home .signup input[type=email]{background:var(--surface); border-color:var(--line); color:var(--ink)}
body.home .signup button[type=submit]{background:#fff; color:#0b1211; box-shadow:none}
body.home .signup button[type=submit]:hover{background:var(--mint); transform:none}
body.home .form-note{margin:20px auto 0}
body.home .form-fineprint{margin:14px auto 0}
body.home .links-row{display:grid; grid-template-columns:repeat(6,1fr); margin:56px 0 0; padding:0; list-style:none; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
body.home .links-row li + li{border-left:1px solid var(--line)}
body.home .links-row a{display:flex; flex-direction:column; gap:2px; padding:26px 18px; color:var(--ink); text-align:left}
body.home .links-row a:hover{background:var(--surface); text-decoration:none}
body.home .links-row b{font-weight:600; color:var(--ink)}
body.home .links-row span{font-size:14px; color:var(--muted)}

/* ---------- footer on the band ---------- */
body.home footer{margin-top:110px; padding:0 0 150px}
body.home footer::before{top:auto; height:150px; -webkit-mask-image:linear-gradient(0deg,#000,transparent); mask-image:linear-gradient(0deg,#000,transparent)}
body.home .foot{border-top:0}
body.home footer, body.home .foot a, body.home .social-link{color:var(--muted)}
body.home .foot .brand{color:var(--ink)}

/* ---------- small screens ---------- */
@media(max-width:1040px){ body.home .tiles{grid-template-columns:repeat(4,1fr)} body.home .links-row{grid-template-columns:repeat(3,1fr)} body.home .links-row li:nth-child(4){border-left:0} body.home .links-row li:nth-child(n+4){border-top:1px solid var(--line)} }
@media(max-width:880px){
  body.home .nav-links{background:var(--bg)}
  body.home .show, body.home .news, body.home .start-steps, body.home .grid6, body.home .stats{grid-template-columns:1fr}
  body.home .start-steps{gap:48px}
  body.home main > .hero{padding:96px 0 40px}
}
@media(max-width:560px){
  body.home .tiles{grid-template-columns:repeat(2,1fr)}
  body.home .links-row{grid-template-columns:repeat(2,1fr)}
  body.home .links-row li{border-left:0!important; border-top:1px solid var(--line)}
  body.home .links-row li:nth-child(even){border-left:1px solid var(--line)!important}
  body.home .links-row li:nth-child(-n+2){border-top:0}
  body.home .term-list{grid-template-columns:1fr; gap:2px}
  body.home .term-list dd{margin-bottom:10px}
}

/* ---------- motion: only the strip moves, and not for reduced motion ---------- */
@keyframes cn-marquee{to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:no-preference){ body.home .marquee ul{animation:cn-marquee 45s linear infinite} }
