/* TWO — O que trabalhamos. Port visual do Icon Folder do 21st.dev.
   Scoped para preservar as seções e o footer existentes. */
.twotools-section {
  --tt-bg: #24282e;
  --tt-panel: #14171b;
  --tt-paper: #f1f1ee;
  --tt-yellow: #e6c75e;
  --tt-muted: #aeb5ba;
  --tt-ease: cubic-bezier(.2,.8,.2,1);
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(76px,6.8vw,108px) clamp(16px,3.5vw,56px) clamp(70px,5.4vw,92px);
  color: var(--tt-paper);
  background-color: var(--tt-bg);
  background-image: radial-gradient(circle,rgba(241,241,238,.052) 0 1px,transparent 1.4px);
  background-size: 20px 13px;
  background-position: -6px -1px;
  border-top: 1px solid rgba(241,241,238,.08);
  border-bottom: 1px solid rgba(241,241,238,.08);
  isolation: isolate;
}
.twotools-section, .twotools-section * { box-sizing: border-box; }
.twotools-container { max-width: 1240px; margin: 0 auto; }
.twotools-heading {
  display: flex; align-items: end; justify-content: space-between;
  gap: 28px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(241,241,238,.18);
}
.twotools-intro {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin: 0 0 17px; font: 500 10px/1.4 "JetBrains Mono",monospace;
  letter-spacing: .075em;
}
.twotools-label {
  display: inline-block; padding: 5px 9px 4px; border-radius: 5px;
  background: #373c43; color: var(--tt-yellow); font-weight: 700;
}
.twotools-kicker { color: var(--tt-muted); }
.twotools-heading h2 {
  margin: 0; font: 400 clamp(40px,4.4vw,67px)/1.09 "Playfair Display",Georgia,serif;
  letter-spacing: -.045em; color: var(--tt-paper);
}
.twotools-heading h2 em { font-weight: 400; color: var(--tt-yellow); }
.twotools-description {
  max-width: 330px; margin: 0 0 4px;
  color: var(--tt-muted); font: 400 14px/1.65 "Inter",sans-serif;
}
.twotools-grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: center; gap: clamp(10px,1.2vw,24px);
  padding: clamp(33px,3.6vw,52px) 0 20px;
}
.twotools-card {
  min-width: 0; display: flex; justify-content: center;
  margin: 0; padding: 0; position: relative;
}
.twotools-card > h3, .twotools-card > p { display: none; }
.twotools-card:not(.twotools-ready) {
  min-height: 286px; padding: 80px 20px; flex-direction: column;
  align-items: center; gap: 10px; text-align: center;
}
.twotools-card:not(.twotools-ready) > h3 { display: block; font-size: 22px; }
.twotools-card:not(.twotools-ready) > p { display: block; color: var(--tt-muted); font-size: 13px; }
.twotools-folder {
  position: relative; isolation: isolate; flex: 1 1 auto;
  width: 100%; max-width: 420px; height: 286px;
  padding: 0; border: 0; border-radius: 25px; outline: none;
  color: #fff; cursor: pointer; user-select: none;
  font: 400 16px/1.3 "Inter",sans-serif; letter-spacing: -.045em;
  -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(34px) scale(.92);
  transition: transform .9s var(--tt-ease), opacity .6s ease;
  transition-delay: var(--tt-delay,0s);
}
.twotools-folder.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.twotools-folder.is-visible.is-active { z-index: 5; transform: translateY(-6px) scale(1.015); }
.twotools-folder:focus-visible { outline: 2px solid var(--tt-yellow); outline-offset: 6px; }
.twotools-glow {
  position: absolute; inset: 40px 8% 42px;
  background: radial-gradient(closest-side,rgba(230,199,94,.12),transparent);
  filter: blur(18px); z-index: -1; pointer-events: none;
}
.twotools-back {
  position: absolute; left: 0; right: 0; top: 14px; bottom: 0;
  background: linear-gradient(180deg,rgba(255,255,255,.046),rgba(255,255,255,.012) 60%);
  pointer-events: none;
}
.twotools-back svg, .twotools-front svg.twotools-outline {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.twotools-back path { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.twotools-icons { position: absolute; inset: 0; pointer-events: none; }
.twotools-icon {
  position: absolute; top: 42px; left: 50%;
  width: var(--tt-tile,84px); height: var(--tt-tile,84px);
  margin-left: calc(var(--tt-tile,84px) / -2);
  border-radius: 24%; opacity: 0; pointer-events: auto;
  backface-visibility: hidden; transition: transform .9s var(--tt-ease), opacity .5s ease;
}
.twotools-icon-body {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: inherit; overflow: visible;
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.14);
  transition: transform .45s var(--tt-ease), filter .3s ease;
}
.twotools-icon-inner {
  display: grid; place-items: center; width: 100%; height: 100%;
  overflow: hidden; border-radius: inherit;
}
.twotools-icon-inner svg { width: 60%; height: 60%; display: block; }
.twotools-icon-inner svg.twotools-figma { width: 31%; height: 51%; }
.twotools-brand-text { font-size: clamp(20px,2.3vw,32px); line-height: 1; font-weight: 700; letter-spacing: -.075em; }
.twotools-icon-name {
  position: absolute; bottom: calc(100% + 11px); left: 50%;
  padding: 5px 10px; white-space: nowrap; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.13); background: rgba(13,16,20,.88);
  color: var(--tt-paper); font: 500 11px/1.25 "Inter",sans-serif;
  letter-spacing: -.01em; backdrop-filter: blur(9px);
  opacity: 0; transform: translate(-50%,6px); pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--tt-ease);
}
.twotools-icon.is-highlighted .twotools-icon-name {
  opacity: 1; transform: translate(-50%,0);
}
.twotools-front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.015) 55%),rgba(15,18,22,.86);
  backdrop-filter: blur(18px) saturate(150%);
  overflow: hidden; pointer-events: none;
  transition: transform .6s var(--tt-ease);
}
.twotools-folder.is-active .twotools-front { transform: translateY(6px); }
.twotools-front-content { padding: 34px 18px 0; }
.twotools-title { display: block; margin: 0; font: 500 19px/1.35 "Inter",sans-serif; letter-spacing: -.048em; }
.twotools-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.twotools-tag {
  display: inline-flex; align-items: center; height: 23px; padding: 0 9px;
  border-radius: 999px; white-space: nowrap;
  font: 400 10px/1 "Inter",sans-serif; letter-spacing: -.02em;
  color: #b5b8be; background: rgba(36,36,36,.7);
  border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(7px);
  transition: color .25s ease, border-color .25s ease;
}
.twotools-tag.is-highlighted { color: #fff; border-color: rgba(230,199,94,.65); }
.twotools-pill {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 5px; height: 34px;
  padding: 5px 6px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.45);
}
.twotools-mini { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; }
.twotools-mini svg { width: 65%; height: 65%; }
.twotools-mini svg.twotools-figma { width: 38%; height: 65%; }
.twotools-mini .twotools-brand-text { font-size: 12px; font-weight: 700; }
.twotools-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(16px,2.5vw,32px); padding-top: 15px;
  border-top: 1px solid rgba(241,241,238,.18);
  color: #a2abb2; font: 400 11px/1.5 "JetBrains Mono",monospace;
}
.twotools-bottom > span:last-child { color: var(--tt-yellow); }
@media (min-width: 1101px) and (max-width: 1440px) {
  .twotools-section { padding-left: clamp(18px,3vw,40px); padding-right: clamp(18px,3vw,40px); }
  .twotools-grid { gap: 9px; }
  .twotools-front-content { padding-left: 15px; padding-right: 12px; }
  .twotools-tags { gap: 4px; }
  .twotools-tag { padding: 0 7px; font-size: 9px; }
}
@media (max-width: 1100px) {
  .twotools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; max-width: 900px; margin: 0 auto; }
  .twotools-card { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 670px) {
  .twotools-section { padding: 74px 20px 66px; }
  .twotools-heading { flex-direction: column; align-items: start; gap: 12px; }
  .twotools-heading h2 { font-size: clamp(38px,9vw,54px); }
  .twotools-description { max-width: 460px; }
  .twotools-grid { grid-template-columns: minmax(0,1fr); gap: 30px; padding: 28px 0 0; }
  .twotools-card { max-width: 420px; }
  .twotools-bottom { flex-wrap: wrap; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .twotools-folder, .twotools-icon, .twotools-icon-body, .twotools-icon-name,
  .twotools-front, .twotools-tag { transition: none !important; }
}
