*{box-sizing:border-box}

:root{
  --bg:#05060a;
  --panel:rgba(8,10,18,.86);
  --panel2:rgba(13,16,29,.90);
  --line:rgba(196,183,255,.34);
  --line-strong:rgba(199,111,255,.62);
  --text:#f6f7fb;
  --muted:#c5c9d5;
  --purple:#8d35ff;
  --purple2:#c65cff;
  --green:#20e28c;
}

html{scroll-behavior:smooth}

body{
  margin:0;
  min-height:100vh;
  font-family:Segoe UI,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#05060a;
}

.page{
  width:min(1536px,100%);
  margin:0 auto;
  background:#05060a;
}

.hero{
  position:relative;
  overflow:hidden;
  background:#05060a;
}

.hero-image{
  display:block;
  width:100%;
  height:auto;
}

.systems-section{
  position:relative;
  z-index:3;
  margin-top:-205px;
  padding:0 42px 22px;
  background:transparent;
}

.systems-section::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:80%;
  z-index:-2;
  background:
    linear-gradient(180deg,rgba(5,6,10,0) 0%,rgba(5,6,10,.48) 14%,rgba(5,6,10,.88) 44%,#05060a 100%);
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin:0 0 16px;
  padding:0 4px;
  text-shadow:0 2px 14px rgba(0,0,0,.85);
}

.eyebrow{
  display:block;
  margin-bottom:5px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.24em;
  color:#d8dbea;
}

.section-head h1{
  margin:0;
  font-size:31px;
  line-height:1;
  letter-spacing:-.025em;
  font-weight:800;
  background:linear-gradient(180deg,#ffffff 0%,#f3f4f7 38%,#b9bec9 70%,#f6f7fa 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 14px rgba(255,255,255,.08);
}

.section-head p{
  margin:6px 0 0;
  color:#d4d7e0;
  font-size:14px;
}

.online-chip,.card-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:#ecfff6;
  border:1px solid rgba(57,229,156,.26);
  background:rgba(7,26,21,.68);
  backdrop-filter:blur(10px);
}

.online-chip{
  padding:9px 13px;
  border-radius:12px;
  font-size:12px;
  font-weight:700;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px var(--green);
}

.systems-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.system-card{
  position:relative;
  min-height:320px;
  padding:20px 20px 18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:20px;
  background:
    radial-gradient(circle at 85% 10%,rgba(145,58,255,.14),transparent 25%),
    linear-gradient(140deg,rgba(16,19,34,.92),rgba(7,8,15,.87));
  backdrop-filter:blur(16px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.018),
    0 16px 34px rgba(0,0,0,.34);
}

.system-card:hover{
  border-color:var(--line-strong);
  box-shadow:0 18px 42px rgba(0,0,0,.42),0 0 26px rgba(138,53,255,.10);
}

.system-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(128deg,transparent 0 64%,rgba(138,53,255,.055) 64% 66%,transparent 66%);
}

.card-status{
  position:absolute;
  top:15px;
  right:15px;
  z-index:2;
  padding:7px 10px;
  border-radius:11px;
  font-size:11px;
  font-weight:700;
}

.system-icon{
  position:relative;
  z-index:2;
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  margin-bottom:14px;
  border-radius:20px;
  border:1px solid rgba(213,203,255,.42);
  background:rgba(17,19,33,.80);
  color:#c766ff;
  font-size:30px;
  font-weight:900;
  box-shadow:inset 0 0 20px rgba(149,57,255,.16),0 0 18px rgba(126,45,255,.08);
}

.system-card h2{
  position:relative;
  z-index:2;
  margin:0;
  font-size:26px;
  line-height:1.05;
  letter-spacing:-.025em;
  font-weight:850;
  background:linear-gradient(180deg,#ffffff 0%,#f4f5f7 35%,#b9bec9 68%,#f6f7fa 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 12px rgba(255,255,255,.05);
}

.system-subtitle{
  position:relative;
  z-index:2;
  margin-top:5px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.19em;
  color:#d2d5de;
}

.accent{
  position:relative;
  z-index:2;
  width:44px;
  height:3px;
  margin:16px 0 13px;
  border-radius:999px;
  background:linear-gradient(90deg,#9a42ff,#d66fff);
  box-shadow:0 0 14px rgba(154,66,255,.55);
}

.system-description{
  position:relative;
  z-index:2;
  margin:0;
  color:#d0d3dc;
  font-size:13px;
  line-height:1.45;
}

.tags{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:15px 0 16px;
}

.tag{
  padding:6px 8px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.025);
  color:#c6cad4;
  font-size:9.5px;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.open-button{
  position:relative;
  z-index:2;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:12px 15px;
  border-radius:12px;
  border:1px solid rgba(220,184,255,.26);
  text-decoration:none;
  color:#fff;
  font-size:14px;
  font-weight:800;
  background:linear-gradient(90deg,#9a39ff 0%,#7b24e8 58%,#3b0b7d 100%);
  box-shadow:0 10px 22px rgba(80,18,171,.26);
}

.open-button:hover{filter:brightness(1.10)}

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:0;
  padding:14px 42px 18px;
  color:#9ea4b2;
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.12em;
  border-top:1px solid rgba(164,77,255,.16);
  background:#05060a;
}

.footer div{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
}

.footer strong{
  background:linear-gradient(180deg,#fff,#b9bec8);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* DESKTOP: reduz a rolagem, preservando o topo da arte */
@media (min-width:1101px){
  .hero{
    height:43vh;
    min-height:330px;
    max-height:420px;
    overflow:hidden;
  }

  .hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
  }

  .systems-section{
    margin-top:0;
    padding:18px 38px 16px;
    background:
      radial-gradient(circle at 15% 0%,rgba(130,48,255,.10),transparent 26%),
      linear-gradient(180deg,#080a12 0%,#05060a 100%);
  }

  .section-head{
    margin-bottom:12px;
    align-items:center;
  }

  .eyebrow{
    margin-bottom:3px;
    font-size:10px;
  }

  .section-head h1{
    font-size:27px;
    line-height:1;
  }

  .section-head p{
    margin-top:4px;
    font-size:13px;
  }

  .online-chip{
    padding:7px 11px;
    font-size:11px;
  }

  .systems-grid{gap:14px}

  .system-card{
    min-height:270px;
    padding:16px 18px 15px;
    border-radius:18px;
  }

  .card-status{
    top:12px;
    right:12px;
    padding:6px 9px;
    font-size:10px;
  }

  .system-icon{
    width:58px;
    height:58px;
    margin-bottom:10px;
    border-radius:16px;
    font-size:24px;
  }

  .system-card h2{
    font-size:22px;
    line-height:1;
  }

  .system-subtitle{
    margin-top:4px;
    font-size:9.5px;
    letter-spacing:.16em;
  }

  .accent{
    width:38px;
    height:2px;
    margin:11px 0 9px;
  }

  .system-description{
    font-size:12px;
    line-height:1.35;
  }

  .tags{
    gap:5px;
    margin:10px 0 11px;
  }

  .tag{
    padding:5px 7px;
    font-size:8.5px;
    border-radius:8px;
  }

  .open-button{
    padding:10px 13px;
    border-radius:11px;
    font-size:12px;
  }

  .footer{
    padding:9px 38px 12px;
    font-size:9.5px;
  }

  .systems-grid[data-count="4"]{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .systems-grid[data-count="5"],
  .systems-grid[data-count="6"]{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (min-width:761px) and (max-width:1100px){
  .hero{
    height:38vh;
    min-height:300px;
    max-height:380px;
    overflow:hidden;
  }

  .hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
  }

  .systems-section{
    margin-top:0;
    padding:18px 24px 20px;
  }

  .systems-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .systems-section{
    margin-top:-35px;
    padding:0 14px 20px;
  }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .section-head h1{font-size:27px}

  .systems-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .system-card{min-height:0}

  .footer{
    padding:14px 16px 18px;
    flex-direction:column;
    align-items:flex-start;
  }

  .footer div{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }
}
