/* ============================================================
   TOOLKIT — especialistas em Figma + Framer
   ============================================================ */
.toolkit{ padding:clamp(80px,10vw,140px) 0; border-top:1px solid var(--line-soft); overflow:hidden; }
.toolkit{ --figma-sel:#0d99ff; }

/* título com logos inline */
.tk-title .tk-word{ display:inline-flex; align-items:center; gap:.18em; white-space:nowrap; }
.tk-inline{ height:.78em; width:auto; flex:none; }
.tk-inline-fr{ color:var(--fg); }

/* ---------- palco: card · ponte · card ---------- */
.tk-stage{
  display:grid; grid-template-columns:1fr 84px 1fr; align-items:stretch;
}
.tk-card{
  position:relative; display:flex; flex-direction:column; gap:22px;
  padding:clamp(18px,2vw,26px); border-radius:var(--r-lg);
  background:linear-gradient(180deg, var(--bg-1), color-mix(in oklch,var(--bg-1) 55%, var(--bg-0)));
  border:1px solid var(--line-soft);
  transition:border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tk-card::before{ /* brilho da marca no topo */
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none; opacity:.0;
  transition:opacity .5s var(--ease);
}
.tk-figma::before{ background:radial-gradient(70% 50% at 20% 0%, rgba(162,89,255,.16), transparent 70%); }
.tk-framer::before{ background:radial-gradient(70% 50% at 80% 0%, rgba(0,153,255,.16), transparent 70%); }
.tk-card:hover{ transform:translateY(-4px); border-color:var(--line); box-shadow:0 40px 80px -44px #000; }
.tk-card:hover::before{ opacity:1; }

/* cabeçalho do card */
.tk-head{ display:flex; align-items:center; gap:16px; }
.tk-head h3{ font-size:24px; font-weight:600; letter-spacing:-.02em; line-height:1.1; }
.tk-head p{ font-size:14px; color:var(--muted); margin-top:3px; }
.tk-tile{
  width:62px; height:62px; flex:none; border-radius:16px; display:grid; place-items:center;
  background:#1e1e1e; border:1px solid color-mix(in oklch,#fff 10%,transparent);
  box-shadow:inset 0 1px 0 color-mix(in oklch,#fff 8%,transparent), 0 14px 30px -14px #000;
}
.tk-tile-fr{ background:#0a0a0a; }
.tk-logo{ height:32px; width:auto; overflow:visible; }
.tk-logo-fr{ color:#fff; height:30px; }
.tk-badge{
  margin-left:auto; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--green); padding:7px 11px; border-radius:999px;
  background:var(--green-soft); border:1px solid color-mix(in oklch,var(--green) 35%,transparent);
}

/* peças dos logos — "explodem" no hover do card */
.pc{ transform-box:fill-box; transform-origin:center; transition:transform .6s var(--ease); }
.tk-card:hover .tk-logo .pc-1, .tk-card:hover .tk-hero-logo .pc-1{ transform:translate(-14%,-14%); }
.tk-card:hover .tk-logo .pc-2, .tk-card:hover .tk-hero-logo .pc-2{ transform:translate(14%,-14%); }
.tk-card:hover .tk-logo .pc-3, .tk-card:hover .tk-hero-logo .pc-3{ transform:translate(-18%,0); }
.tk-card:hover .tk-logo .pc-4, .tk-card:hover .tk-hero-logo .pc-4{ transform:translate(18%,0) rotate(90deg); }
.tk-card:hover .tk-logo .pc-5, .tk-card:hover .tk-hero-logo .pc-5{ transform:translate(-14%,14%); }
.tk-framer:hover .tk-logo-fr .pc-1{ transform:translate(0,-16%); }
.tk-framer:hover .tk-logo-fr .pc-3{ transform:translate(0,16%); }

/* ---------- canvas do Figma ---------- */
.tk-canvas{
  position:relative; flex:1; min-height:300px; display:grid; grid-template-columns:150px 1fr;
  border-radius:var(--r-md); overflow:hidden; border:1px solid var(--line-soft); background:#1e1e1e;
}
.tk-layers{
  display:flex; flex-direction:column; gap:2px; padding:12px 8px;
  background:#2c2c2c; border-right:1px solid #383838;
  font-size:11.5px; color:#bdbdbd;
}
.tk-layers-h{ font-weight:600; color:#fff; padding:0 8px 8px; font-size:11px; }
.tk-layers span:not(.tk-layers-h){ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:5px; white-space:nowrap; overflow:hidden; }
.tk-layers span.on{ background:color-mix(in srgb,var(--figma-sel) 22%,transparent); color:#fff; }
.tk-layers i{ width:10px; height:10px; flex:none; border:1.5px solid currentColor; border-radius:2px; opacity:.8; }
.tk-layers .ic-comp{ transform:rotate(45deg) scale(.85); border-color:#a259ff; }
.tk-layers .ic-var{ border-radius:50%; border-color:var(--green); }
.tk-layers .ic-text{ border:none; height:auto; font-style:normal; }
.tk-layers .ic-text::before{ content:"T"; font-weight:700; font-size:11px; }

.tk-board{
  position:relative; display:grid; place-items:center;
  background-color:#1e1e1e;
  background-image:radial-gradient(circle, #3a3a3a 1px, transparent 1.2px);
  background-size:18px 18px;
}
.tk-sel{
  position:relative; padding:22px 26px; outline:1.5px solid var(--figma-sel);
}
.tk-hero-logo{ height:120px; width:auto; overflow:visible; display:block;
  filter:drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
.tk-sel .h{ position:absolute; width:9px; height:9px; background:#fff; border:1.5px solid var(--figma-sel); }
.tk-sel .tl{ top:-5px; left:-5px; } .tk-sel .tr{ top:-5px; right:-5px; }
.tk-sel .bl{ bottom:-5px; left:-5px; } .tk-sel .br{ bottom:-5px; right:-5px; }
.tk-size{
  position:absolute; left:50%; bottom:-30px; transform:translateX(-50%); white-space:nowrap;
  font-family:var(--font-mono); font-size:10.5px; color:#fff; background:var(--figma-sel);
  padding:3px 7px; border-radius:4px;
}
.tk-chip{
  position:absolute; font-family:var(--font-mono); font-size:11px; color:#e8e8e8; white-space:nowrap;
  padding:6px 10px; border-radius:8px; background:#2c2c2c; border:1px solid #444;
  box-shadow:0 10px 24px -10px #000; animation:tk-float 6s var(--ease) infinite;
}
.tk-chip.c1{ top:14%; left:8%; }
.tk-chip.c2{ top:18%; right:7%; color:#c9a4ff; animation-delay:-2s; }
.tk-chip.c3{ bottom:7%; right:5%; color:var(--green); animation-delay:-4s; }
@keyframes tk-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }

.tk-cursor{ position:absolute; display:flex; align-items:flex-start; gap:2px; pointer-events:none; }
.tk-cursor svg{ width:18px; height:18px; stroke:#fff; stroke-width:1.2; }
.tk-cursor b{ font-size:10.5px; font-weight:600; color:#0c130d; padding:2px 7px; border-radius:6px 6px 6px 2px; margin-top:13px; }
.cur-a svg{ fill:var(--green); } .cur-a b{ background:var(--green); }
.cur-b svg{ fill:var(--violet); } .cur-b b{ background:var(--violet); color:#fff; }
.cur-a{ top:62%; left:14%; animation:tk-cur-a 11s ease-in-out infinite; }
.cur-b{ top:30%; left:70%; animation:tk-cur-b 13s ease-in-out infinite; }
@keyframes tk-cur-a{ 0%,100%{ transform:translate(0,0); } 30%{ transform:translate(60px,-40px); } 60%{ transform:translate(20px,26px); } }
@keyframes tk-cur-b{ 0%,100%{ transform:translate(0,0); } 35%{ transform:translate(-50px,50px); } 70%{ transform:translate(10px,80px); } }

/* ---------- ponte Figma → Framer ---------- */
.tk-bridge{ position:relative; display:grid; place-items:center; }
.tk-bridge svg{ position:absolute; left:-2px; right:-2px; top:50%; height:40px; width:calc(100% + 4px); transform:translateY(-50%); overflow:visible; }
.tk-wire{ fill:none; stroke:var(--line); stroke-width:1.5; stroke-dasharray:4 5; vector-effect:non-scaling-stroke; animation:tk-dash 1.2s linear infinite; }
@keyframes tk-dash{ to{ stroke-dashoffset:-18; } }
.tk-pixel{
  position:absolute; top:50%; left:0; width:10px; height:10px; margin-top:-5px; border-radius:2px;
  background:var(--green); box-shadow:0 0 16px var(--green);
  animation:tk-travel 2.4s var(--ease) infinite;
}
@keyframes tk-travel{ 0%{ left:0; opacity:0; } 15%{ opacity:1; } 85%{ opacity:1; } 100%{ left:calc(100% - 10px); opacity:0; } }
.tk-bridge-label{
  position:relative; top:44px; font-family:var(--font-mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--faint); text-align:center; line-height:1.5;
}

/* ---------- browser do Framer ---------- */
.tk-browser{
  flex:1; min-height:300px; display:flex; flex-direction:column;
  border-radius:var(--r-md); overflow:hidden; border:1px solid var(--line-soft); background:#0a0a0a;
}
.tk-bar{
  display:flex; align-items:center; gap:10px; padding:9px 10px;
  background:#141414; border-bottom:1px solid #222;
}
.tk-dots{ display:flex; gap:5px; } .tk-dots i{ width:8px; height:8px; border-radius:50%; background:#333; }
.tk-bps{ display:flex; gap:2px; padding:3px; border-radius:9px; background:#0a0a0a; border:1px solid #222; margin-inline:auto; }
.tk-bps button{
  font-size:11.5px; font-weight:500; color:#8a8a8a; padding:5px 10px; border-radius:6px;
  transition:.25s var(--ease);
}
.tk-bps button:hover{ color:#fff; }
.tk-bps button.on{ background:#0099ff; color:#fff; }
.tk-publish{
  display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; color:#fff;
  padding:5px 10px; border-radius:7px; background:#0099ff; white-space:nowrap;
}
.tk-publish i{ width:6px; height:6px; border-radius:50%; background:#7dffb0; box-shadow:0 0 8px #7dffb0; animation:tk-pulse 1.6s ease-in-out infinite; }
@keyframes tk-pulse{ 50%{ opacity:.35; } }

.tk-viewport{
  position:relative; flex:1; display:flex; justify-content:center; align-items:flex-start;
  padding:18px 16px 36px;
  background-image:linear-gradient(#141414 1px, transparent 1px), linear-gradient(90deg, #141414 1px, transparent 1px);
  background-size:22px 22px;
}
.tk-url{ position:absolute; bottom:11px; left:50%; transform:translateX(-50%); font-family:var(--font-mono); font-size:10.5px; color:#5a5a5a; }

.tk-site{
  height:100%; min-height:220px; border-radius:10px; overflow:hidden; padding:12px;
  background:linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border:1px solid #2a2a2a; outline:1.5px solid #0099ff; outline-offset:3px;
  display:flex; flex-direction:column; gap:12px;
  transition:width .7s var(--ease);
}
.tk-site-nav{ display:flex; align-items:center; justify-content:space-between; }
.tk-site-nav b{ width:38px; height:8px; border-radius:3px; background:var(--green); }
.tk-site-nav span{ display:flex; gap:5px; } .tk-site-nav span i{ width:18px; height:5px; border-radius:3px; background:#3a3a3a; }
.tk-site-hero{ display:flex; flex-direction:column; gap:7px; padding:8px 0 4px; }
.tk-site-hero i{ height:13px; border-radius:4px; background:#e9e9e4; transition:width .7s var(--ease); }
.tk-site-hero .l1{ width:82%; } .tk-site-hero .l2{ width:64%; } .tk-site-hero .l3{ width:40%; background:var(--green); }
.tk-site-hero em{ width:64px; height:20px; border-radius:999px; background:#fff; margin-top:6px; }
.tk-site-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; flex:1; min-height:60px; }
.tk-site-grid i{ border-radius:7px; background:linear-gradient(135deg, #2a2a2a, #1a1a1a); border:1px solid #2e2e2e; }
.tk-site-grid i:nth-child(2){ background:linear-gradient(135deg, color-mix(in oklch,var(--green) 45%,#1a1a1a), #1a1a1a); }
.bp-tablet .tk-site-grid{ grid-template-columns:repeat(2,1fr); }
.bp-tablet .tk-site-grid i:nth-child(3){ display:none; }
.bp-phone .tk-site-grid{ grid-template-columns:1fr; }
.bp-phone .tk-site-grid i:nth-child(n+2){ display:none; }
.bp-phone .tk-site-hero .l1{ width:100%; } .bp-phone .tk-site-hero .l2{ width:90%; } .bp-phone .tk-site-hero .l3{ width:60%; }
.bp-phone .tk-site-nav span i:nth-child(n+2){ display:none; }

/* ---------- lista de skills ---------- */
.tk-skills{ list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
.tk-skills li{ display:flex; align-items:center; gap:9px; font-size:14px; color:var(--muted); }
.tk-skills svg{ width:16px; height:16px; flex:none; color:var(--green); }

/* ---------- faixa de recursos ---------- */
.tk-marquee{
  margin-top:clamp(36px,5vw,56px); overflow:hidden;
  mask:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tk-track{ display:flex; gap:12px; width:max-content; animation:tk-marq 40s linear infinite; }
.tk-marquee:hover .tk-track{ animation-play-state:paused; }
@keyframes tk-marq{ to{ transform:translateX(-50%); } }
.tk-cap{
  display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  padding:10px 16px; border-radius:999px; font-size:14px; font-weight:500; color:var(--fg);
  background:color-mix(in oklch,var(--bg-2) 60%,transparent); border:1px solid var(--line-soft);
}
.tk-cap-ic{ height:15px; width:auto; }

/* ---------- responsivo ---------- */
@media(max-width:980px){
  .tk-stage{ grid-template-columns:1fr; grid-template-rows:auto 72px auto; }
  .tk-bridge svg{ width:40px; height:100%; left:50%; top:0; transform:translateX(-50%) rotate(90deg); transform-origin:center; }
  .tk-bridge svg{ display:none; }
  .tk-bridge::before{ content:""; position:absolute; top:0; bottom:0; left:50%; border-left:1.5px dashed var(--line); }
  .tk-pixel{ left:50%; margin-left:-5px; top:0; margin-top:0; animation-name:tk-travel-y; }
  @keyframes tk-travel-y{ 0%{ top:0; opacity:0; } 15%{ opacity:1; } 85%{ opacity:1; } 100%{ top:calc(100% - 10px); opacity:0; } }
  .tk-bridge-label{ top:0; left:64px; text-align:left; }
}
@media(max-width:560px){
  .tk-canvas{ grid-template-columns:1fr; min-height:260px; }
  .tk-layers{ display:none; }
  .tk-canvas{ min-height:320px; }
  .tk-hero-logo{ height:80px; }
  .tk-sel{ padding:18px 22px; }
  .tk-chip{ font-size:10px; padding:5px 8px; }
  .tk-chip.c1{ top:5%; left:4%; } .tk-chip.c2{ top:5%; right:4%; } .tk-chip.c3{ bottom:4%; right:4%; }
  .tk-skills{ grid-template-columns:1fr; }
  .tk-bps button{ padding:5px 7px; font-size:11px; }
  .tk-publish{ display:none; }
  .tk-badge{ display:none; }
}
@media(prefers-reduced-motion:reduce){
  .tk-chip, .tk-cursor, .tk-wire, .tk-pixel, .tk-track, .tk-publish i{ animation:none; }
  .pc, .tk-site, .tk-site-hero i{ transition:none; }
}
