
:root{
  --bg:#060914;
  --card:#151b2e;
  --text:#ffffff;
  --muted:#a7b0c7;
  --border:rgba(255,255,255,.10);
  --primary:#6d5dfc;
  --cyan:#00d4ff;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(0,212,255,.22), transparent 32%),
    radial-gradient(circle at 12% 12%, rgba(109,93,252,.24), transparent 34%),
    linear-gradient(135deg,#070a12,#0b1020 45%,#050711);
}

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.public-hero{
  text-align:center;
  padding:54px 0 26px;
}

.hero-badge{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(109,93,252,.16);
  border:1px solid rgba(109,93,252,.32);
  color:#c4b5fd;
  font-size:13px;
  font-weight:800;
  margin-bottom:14px;
}

.public-hero h1{
  margin:0;
  font-size:clamp(34px,5vw,58px);
  line-height:1.05;
  letter-spacing:-1px;
  background:linear-gradient(135deg,#fff,#dbeafe 50%,#8b5cf6);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.public-hero p{
  margin:14px auto 0;
  max-width:720px;
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
}

.search-box{
  margin:30px auto 0;
  max-width:720px;
  min-height:62px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 16px;
  border-radius:26px;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}

.search-box:focus-within{
  border-color:rgba(0,212,255,.55);
  box-shadow:0 24px 70px rgba(0,0,0,.28), 0 0 0 4px rgba(0,212,255,.10);
}

.search-icon{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
}

.search-box input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:17px;
}

.search-box input::placeholder{
  color:rgba(203,213,225,.65);
}

.app-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  padding:30px 0 76px;
}

.app-card{
  position:relative;
  overflow:hidden;
  min-height:250px;
  padding:20px;
  border-radius:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  text-align:center;
  color:#fff;
  text-decoration:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.035)),
    radial-gradient(circle at 20% 0%,rgba(109,93,252,.20),transparent 45%);
  border:1px solid var(--border);
  box-shadow:0 24px 70px rgba(0,0,0,.32);
  transition:.22s ease;
}

.app-card:hover{
  transform:translateY(-5px);
  border-color:rgba(0,212,255,.48);
}

.app-card.hidden{
  display:none !important;
}

.logo-wrap{
  width:92px;
  height:92px;
  border-radius:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 16px 38px rgba(0,0,0,.25);
}

.logo-wrap img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:11px;
}

.logo-wrap span{
  font-size:40px;
}

.app-info{
  min-height:66px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin-top:14px;
}

.app-info h3{
  margin:0;
  font-size:18px;
  line-height:1.18;
  letter-spacing:-.2px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.app-info p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.3;
}

.app-action{
  width:100%;
  min-height:44px;
  margin-top:16px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  color:#fff;
  font-size:14px;
  font-weight:900;
  box-shadow:0 14px 35px rgba(109,93,252,.28);
}

.empty-result{
  grid-column:1/-1;
  padding:22px;
  border-radius:22px;
  background:rgba(255,255,255,.055);
  border:1px dashed rgba(255,255,255,.18);
  color:var(--muted);
  text-align:center;
}

/* Computador: lado a lado */
@media(min-width:901px){
  .app-grid{
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  }
}

/* Tablet */
@media(max-width:900px){
  .app-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }
}

/* Celular: 2 cards por linha, igual o print */
@media(max-width:720px){
  .container{
    width:calc(100% - 28px);
  }

  .public-hero{
    padding:36px 0 22px;
  }

  .public-hero h1{
    font-size:34px;
  }

  .public-hero p{
    font-size:16px;
  }

  .search-box{
    min-height:56px;
    border-radius:22px;
  }

  .app-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding-top:24px;
  }

  .app-card{
    min-height:220px;
    padding:14px;
    border-radius:22px;
  }

  .logo-wrap{
    width:72px;
    height:72px;
    border-radius:21px;
  }

  .logo-wrap img{
    padding:8px;
  }

  .app-info{
    min-height:58px;
    margin-top:10px;
  }

  .app-info h3{
    font-size:15px;
  }

  .app-info p{
    font-size:11px;
    margin-top:6px;
  }

  .app-action{
    min-height:38px;
    margin-top:12px;
    border-radius:13px;
    font-size:12px;
  }
}

/* Celular pequeno: mantém 2 por linha */
@media(max-width:390px){
  .container{
    width:calc(100% - 20px);
  }

  .app-grid{
    gap:10px;
  }

  .app-card{
    min-height:205px;
    padding:12px;
  }

  .logo-wrap{
    width:64px;
    height:64px;
    border-radius:18px;
  }

  .app-info h3{
    font-size:14px;
  }

  .app-info p{
    display:none;
  }
}
