/* Towfu homepage: "Works with" CLI section (index.html #works-with) and the reusable CLI marks.
   Loaded before home.css, so it uses home.css tokens (--accent, --hair-2, --mono ...) and the shared
   h2 / .section-kicker / [data-reveal] styles. Each maker's mark is shown unaltered, in its own colour,
   on a light tile (no recolouring, filters or effects on the mark). <svg class="cli-g"><use href="#cli-claude"/></svg>
   draws the tile; .is-mono is a plain monogram for tools without a mark, .is-any the accent "any CLI" tile. */

/* the mark tile: a light, neutral square so every official colour keeps its contrast */
.cli-g{width:34px;height:34px;padding:7px;box-sizing:border-box;flex:none;border-radius:9px;background:#f3f3f5;box-shadow:0 0 0 1px rgba(255,255,255,.5) inset,0 1px 0 #fff inset,0 2px 6px -2px rgba(0,0,0,.6);overflow:visible}
.cli-g.is-mono{padding:0;color:#2c2d33;font:700 14px/1 var(--mono);letter-spacing:-.04em}

.clis{position:relative;padding:120px 0 96px;border-top:1px solid var(--hair);isolation:isolate;overflow:hidden}
.clis::before{content:"";position:absolute;z-index:-1;left:50%;top:52%;width:min(1200px,120%);height:560px;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(124,133,245,.13),rgba(124,133,245,.04) 55%,rgba(124,133,245,0));pointer-events:none}

.clis-head{margin-bottom:52px}
.clis-head>p:last-child{max-width:640px}

/* one glass wall for every tool: same recipe as the price card and feature cards (top highlight, deep shadow,
   a light that follows the pointer), with a slow beam along the top edge while it is on screen */
.cw{--mx:50%;--my:0%;position:relative;border-radius:24px;padding:22px;overflow:hidden;isolation:isolate;
  background:radial-gradient(560px circle at var(--mx) var(--my),rgba(124,133,245,.10),transparent 60%),linear-gradient(180deg,#131418,#0d0e11);
  border:1px solid var(--hair-2);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 50px 100px -50px rgba(0,0,0,.9),0 0 0 1px rgba(0,0,0,.4),0 0 90px -50px rgba(124,133,245,.5)}
/* faint dot grid behind the tiles, fading out at the edges */
.cw::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(rgba(255,255,255,.09) 1px,transparent 1.2px);background-size:22px 22px;-webkit-mask-image:radial-gradient(ellipse 70% 80% at 50% 45%,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse 70% 80% at 50% 45%,#000 20%,transparent 75%);pointer-events:none}
.cw-beam{position:absolute;top:0;left:0;width:34%;height:1px;background:linear-gradient(90deg,transparent,rgba(163,169,250,.9),transparent);opacity:0;pointer-events:none}
.has-motion .cw.is-playing .cw-beam{animation:cwBeam 7s var(--ease-io) infinite}
@keyframes cwBeam{0%{transform:translateX(-100%);opacity:0}12%{opacity:1}55%{opacity:1}70%,100%{transform:translateX(300%);opacity:0}}

.cw-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:1fr;gap:12px;list-style:none;margin:0;padding:0}

/* one tool: mark, name and a small note on how far Towfu goes with it */
.cw-t{position:relative;min-width:0}
.cw-t,.cw-any>a{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;padding:22px 10px 18px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012));border:1px solid var(--hair-2);
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 16px 30px -22px rgba(0,0,0,.95);transition:border-color .3s,background .3s,box-shadow .3s,transform .4s var(--ease)}
.cw-any{display:block;padding:0;background:none;border:0;box-shadow:none}
.cw-grid>.cw-any{grid-column:1/-1}
.cw-any>a{height:100%;text-decoration:none;color:inherit;border:1px dashed rgba(163,169,250,.42);background:linear-gradient(180deg,rgba(124,133,245,.11),rgba(124,133,245,.035))}
.cw-t b{margin-top:14px;font-size:14.5px;font-weight:620;line-height:1.25;letter-spacing:-.01em;color:#e4e5ea}
.cw-t small{margin-top:5px;font-size:11.5px;line-height:1.3;color:#80818b}
.cw-t.is-full small{color:var(--accent-strong)}
.cw-t.is-own small{color:#a6a7b0}
.cw-any small{color:#9da2e8}

/* the mark sits on a light tile (logos keep their own colours) with a soft halo under it */
.cw-m{position:relative;display:grid;place-items:center}
.cw-m::before{content:"";position:absolute;inset:-14px;border-radius:50%;background:radial-gradient(closest-side,rgba(124,133,245,.0),transparent);transition:background .4s;z-index:-1}
.cw .cli-g{width:48px;height:48px;padding:10px;border-radius:13px}
.cw .cli-g.is-mono{padding:0;font-size:17px}
.cw-t.is-full{border-color:rgba(163,169,250,.3);background:radial-gradient(120% 90% at 50% 0%,rgba(124,133,245,.14),transparent 65%),linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015))}
.cw-t.is-full .cw-m::before{background:radial-gradient(closest-side,rgba(124,133,245,.35),transparent)}
.cw-any .cli-g{padding:0;color:var(--accent-strong);background:linear-gradient(180deg,#1d1e23,#121317);box-shadow:0 0 0 1px rgba(163,169,250,.3) inset,0 1px 0 rgba(255,255,255,.12) inset}

@media (hover:hover){
  .cw-t:not(.cw-any):hover,.cw-any>a:hover{transform:translateY(-1px);border-color:rgba(163,169,250,.24);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 16px 30px -24px rgba(0,0,0,.9),0 0 30px -20px rgba(124,133,245,.3)}
  .cw-t:hover .cw-m::before{background:radial-gradient(closest-side,rgba(124,133,245,.16),transparent)}
  .cw-any>a:hover{border-style:solid}
}
.cw-any>a:focus-visible{outline-offset:3px;border-radius:16px}

/* a gentle glint that walks across the wall, one tile after another, while it is on screen */
.cw-t::after,.cw-any>a::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.07) 50%,transparent 65%);background-size:250% 100%;background-position:120% 0;opacity:0}
.cw-any>a{position:relative}
.cw-any::after{display:none}
.has-motion .cw.is-playing .cw-t::after,.has-motion .cw.is-playing .cw-any>a::after{animation:cwGlint 9s linear infinite;animation-delay:calc(var(--i,0) * .32s)}
@keyframes cwGlint{0%{background-position:120% 0;opacity:1}10%{background-position:-20% 0;opacity:1}11%,100%{opacity:0}}
.cw-grid>li:nth-child(1){--i:0}.cw-grid>li:nth-child(2){--i:1}.cw-grid>li:nth-child(3){--i:2}.cw-grid>li:nth-child(4){--i:3}.cw-grid>li:nth-child(5){--i:4}.cw-grid>li:nth-child(6){--i:5}
.cw-grid>li:nth-child(7){--i:1}.cw-grid>li:nth-child(8){--i:2}.cw-grid>li:nth-child(9){--i:3}.cw-grid>li:nth-child(10){--i:4}.cw-grid>li:nth-child(11){--i:5}.cw-grid>li:nth-child(12){--i:6}
/* the any-CLI caret blinks like a prompt */
.has-motion .cw.is-playing .cw-any .cli-g{animation:cwCaret 1.6s steps(1) infinite}
@keyframes cwCaret{50%{color:rgba(163,169,250,.55)}}

.cw-key{max-width:820px;margin:20px auto 2px;text-align:center;font-size:13.5px;line-height:1.6;color:#8f909a}
.cw-key b{color:var(--accent-strong);font-weight:600}

#any-cli{scroll-margin-top:170px}

.clis-note{max-width:760px;margin:22px auto 0;text-align:center;font-size:12.5px;line-height:1.55;color:#85868f}

@media (prefers-reduced-motion:reduce){
  .cw-beam,.cw-t::after,.cw-any>a::after,.cw-any .cli-g{animation:none!important}
  .cw-t,.cw-any>a{transition:none}
}
@media (max-width:1100px){
  .cw-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cw-grid>li:nth-child(n){--i:0}
}
@media (max-width:900px){
  .clis{padding:96px 0 80px}
  .clis-head{margin-bottom:36px}
}
@media (max-width:640px){
  .clis{padding:76px 0 64px}
  .cw{padding:12px;border-radius:18px}
  .cw-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cw-t:not(.cw-any),.cw-any>a{padding:16px 6px 13px;border-radius:13px}
  .cw .cli-g{width:40px;height:40px;padding:8.5px;border-radius:11px}
  .cw .cli-g.is-mono{font-size:15px}
  .cw-t b{margin-top:11px;font-size:13px}
  .cw-t small{font-size:10.5px}
  .cw-key{margin-top:14px;font-size:13px;text-align:left;padding:0 4px}
  .clis-note{text-align:left}
}
@media (max-width:340px){
  .cw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
