   /* ==========================================================================
   TECH LOOK — Módulo de Serviços
   Token system
   ========================================================================== */
:root{
  --bg:            #090d14;
  --bg-panel:      #0e1420;
  --bg-panel-hi:   #131b2b;
  --line:          #1d2837;
  --line-strong:   #2c3c52;
  --text:          #e8edf6;
  --text-muted:    #8a97ab;
  --text-faint:    #57647a;
  --accent:        #0575EC;
  --accent-soft:   rgba(61,146,255,.12);
  --accent-amber:  #f0a83e;
  --radius:        2px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ color-scheme: dark; }

.BOI{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

::selection{ background:var(--accent); color:#04070c; }

/* Faint drafting grid across the whole page */
.grid-backdrop{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:56px 56px;
  opacity:.28;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ==========================================================================
   Layout shell
   ========================================================================== */
.services{
  position:relative;
  z-index:1;
  max-width:1240px;
  margin:0 auto;
  padding: clamp(64px, 9vw, 120px) 24px clamp(80px, 10vw, 140px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.services__header{
  max-width:760px;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.services__eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:28px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  color:var(--accent);
}
.services__eyebrow-line{
  width:32px;
  height:1px;
  background:var(--accent);
  flex:none;
}
.services__eyebrow-text{ white-space:nowrap; }
.services__eyebrow-code{
  color:var(--text-faint);
  padding-left:14px;
  border-left:1px solid var(--line-strong);
}

.services__title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(34px, 5.4vw, 58px);
  line-height:1.06;
  letter-spacing:-.01em;
  margin:0 0 22px;
  color: #ffffff;
}
.services__title-accent{ color:var(--text-muted); font-weight:500;

}


.services__intro{
  font-size:16px;
  line-height:1.7;
  color:var(--text-muted);
  max-width:58ch;
  margin:0 0 36px;
}

.services__filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.filter-chip{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.04em;
  color:var(--text-muted);
  background:transparent;
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:8px 16px;
  cursor:pointer;
  transition:border-color .18s ease, color .18s ease, background-color .18s ease;
}
.filter-chip:hover{ border-color:var(--accent); color:var(--text); }
.filter-chip:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.filter-chip.is-active{
  background:var(--accent-soft);
  border-color:var(--accent);
  color:var(--accent);
}

/* ==========================================================================
   Grid
   ========================================================================== */
.services__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:20px;
}

.services__empty{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--text-faint);
  text-align:center;
  padding:60px 0;
}

/* ==========================================================================
   Module card
   ========================================================================== */
.module{
  position:relative;
  background:var(--bg-panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  opacity:0;
  transform:translateY(14px);
  animation:module-in .5s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay:calc(var(--i) * 60ms);
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
@keyframes module-in{
  to{ opacity:1; transform:translateY(0); }
}
.module.is-hidden{ display:none; }

.module:hover{
  border-color:var(--line-strong);
}

.module__trigger{
  all:unset;
  display:block;
  box-sizing:border-box;
  width:100%;
  cursor:pointer;
  padding:0 0 22px;
}
.module__trigger:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-2px;
}

/* -- image frame ---------------------------------------------------- */
.module__frame{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/20px 20px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/20px 20px,
    var(--bg-panel-hi);
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.module__image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(35%) contrast(1.05);
  transition:filter .4s ease, transform .5s ease;
}
.module:hover .module__image{
  filter:grayscale(0%) contrast(1.05);
  transform:scale(1.035);
}

/* image not yet provided by João -> onerror sets this class on .module__frame */
.module__frame.is-empty .module__image{ display:none; }
.module__fallback-icon{
  display:none;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  color:var(--text-faint);
}
.module__fallback-icon svg{ width:30%; height:30%; }
.module__frame.is-empty .module__fallback-icon{ display:flex; }

/* drafting corner brackets */
.module__frame-corner{
  position:absolute;
  width:18px;
  height:18px;
  border:1px solid var(--accent);
  opacity:.55;
  transition:width .25s ease, height .25s ease, opacity .25s ease;
}
.module__frame-corner.tl{ top:10px; left:10px; border-right:none; border-bottom:none; }
.module__frame-corner.tr{ top:10px; right:10px; border-left:none; border-bottom:none; }
.module__frame-corner.bl{ bottom:10px; left:10px; border-right:none; border-top:none; }
.module__frame-corner.br{ bottom:10px; right:10px; border-left:none; border-top:none; }
.module:hover .module__frame-corner{ width:26px; height:26px; opacity:1; }

/* -- text ------------------------------------------------------------ */
.module__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 22px 0;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.08em;
}
.module__code{ color:var(--accent-amber); }
.module__tag{ color:var(--text-faint); }

.module__title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  line-height:1.3;
  margin:10px 22px 8px;
  text-align:left;
  color: #ffffff;
  text-transform: uppercase;
}

.module__desc{
  font-size:13.5px;
  line-height:1.6;
  color:var(--text-muted);
  margin:0 22px;
  text-align:left;
  text-align: justify;
}

.module__expand-icon{
  position:absolute;
  right:20px;
  bottom:22px;
  width:20px;
  height:20px;
}
.module__expand-icon::before,
.module__expand-icon::after{
  content:'';
  position:absolute;
  background:var(--text-faint);
  transition:transform .3s ease, background-color .25s ease;
}
.module__expand-icon::before{ top:9px; left:2px; width:16px; height:1.5px; }
.module__expand-icon::after{ top:2px; left:9px; width:1.5px; height:16px; }
.module:hover .module__expand-icon::before,
.module:hover .module__expand-icon::after{ background:var(--accent); }
.module__trigger[aria-expanded="true"] .module__expand-icon::after{ transform:rotate(90deg); opacity:0; }

/* -- expandable panel -------------------------------------------------- */
.module__panel{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .35s cubic-bezier(.2,.7,.2,1);
  border-top:1px dashed transparent;
}
.module__trigger[aria-expanded="true"] + .module__panel{
  grid-template-rows:1fr;
  border-top-color:var(--line);
}
.module__panel > .module__list{
  overflow:hidden;
  margin:0;
  padding:0 22px;
  list-style:none;
}
.module__trigger[aria-expanded="true"] + .module__panel > .module__list{
  padding:18px 22px 24px;
}
.module__list li{
  position:relative;
  padding-left:16px;
  font-size:13px;
  line-height:1.65;
  color:var(--text-muted);
  margin-bottom:10px;
}
.module__list li:last-child{ margin-bottom:0; }
.module__list li::before{
  content:'';
  position:absolute;
  left:0;
  top:8px;
  width:6px;
  height:1px;
  background:var(--accent);
}
.module__list strong{
  color:var(--text);
  font-weight:600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:560px){
  .services__eyebrow-code{ display:none; }
  .services__grid{ grid-template-columns:1fr; }
}