
:root{
  --bg:#0b1020;
  --card:#121933;
  --accent:#4f7cff;
  --text:#ffffff;
  --muted:#9aa3c7;
  --border:#1b244a;
}
*{box-sizing:border-box;margin:0;font-family:Inter,system-ui}
body{
  background:linear-gradient(180deg,#0b1020,#060914);
  color:var(--text);
}
.hidden{display:none}
.fade{animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1}}

/* HEADER */
.site-header{
  padding:20px;
  border-bottom:1px solid var(--border);
}
.site-header h1{font-size:22px}
.site-header p{color:var(--muted);font-size:14px;margin-top:4px}

/* SEARCH */
/* GLASS SEARCH BAR */
.search-wrap{
  padding: 12px 16px;
  background: rgba(10,16,40,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.featured-wrap{
  opacity: 0;
  transition: opacity .3s ease;
}
.featured-wrap.ready{
  opacity: 1;
}


/* SEARCH INPUT */
.search-input{
  position: relative;
}
input, textarea {
  touch-action: manipulation;
}


.search-input input{
  width: 100%;
  padding: 14px 44px 14px 16px; /* space on RIGHT for icon */
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,20,55,0.7);

  color: #fff;
  font-size: 16px;
}

/* SEARCH ICON ON RIGHT */
.search-icon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  font-size: 16px;
  pointer-events: none;
}


.search{
  width:100%;
  max-width:520px;
  background:#0f1530;
  border:1px solid var(--border);
  border-radius:999px;
  padding:12px 18px;
  color:#fff;
  font-size:14px;
  outline:none;
  transition:.2s;
}
.search::placeholder{color:#7f89b8}
.search:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(79,124,255,.25);
}

/* HERO INFO */
.hero-info{
  padding:18px;
  background:linear-gradient(120deg,rgba(79,124,255,.15),transparent);
}
.hero-info p{
  color:var(--muted);
  font-size:14px;
  max-width:650px;
}

/* GRID */
.container{padding:16px}
.grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
@media(min-width:900px){
  .grid{grid-template-columns:repeat(6,1fr)}
}
.card{
  background:var(--card);
  border-radius:14px;
  padding:14px;
  cursor:pointer;
  transition:.2s;
}
.card:hover{transform:scale(1.05)}
.card img{width:100%;border-radius:12px}
.card h4{margin-top:10px}
.card span{color:#ffd34f;font-size:12px}

/* FOOTER */
footer{
  padding:20px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* DETAILS */
.back{padding:16px;color:var(--muted);cursor:pointer}
.hero{
  padding:24px;
  background:linear-gradient(120deg,rgba(79,124,255,.25),rgba(0,0,0,.7));
  border-bottom:1px solid var(--border);
}
.hero-top{
  display:flex;
  gap:16px;
  align-items:center;
}
.hero-top img{
  width:78px;
  height:78px;
  border-radius:18px;
}
.hero .meta{color:var(--muted);font-size:13px}
.full-download{
  margin-top:18px;
  background:var(--accent);
  padding:16px;
  text-align:center;
  border-radius:16px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 0 20px rgba(79,124,255,.4);
}

/* SECTIONS */
.section{
  padding:20px;
  border-bottom:1px solid var(--border);
}
.section h3{margin-bottom:8px}
.section p{color:var(--muted);font-size:14px}
.info-row{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
}

/* PERMISSIONS */
.permissions{padding:24px}
.permissions ul{list-style:none;margin-top:16px}
.permissions li{
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.allow{
  margin-top:20px;
  background:var(--accent);
  padding:16px;
  text-align:center;
  border-radius:16px;
  font-weight:600;
  cursor:pointer;
}

/* LOADER */
.loader{padding:24px}
.loader-head{
  display:flex;
  align-items:center;
  gap:14px;
}
.loader-head img{width:64px;border-radius:14px}
.percent{
  font-size:52px;
  font-weight:800;
  opacity:.12;
  text-align:center;
}
/* IMPROVED INSTALLER PROGRESS */
.percent{
  font-size:48px;
  font-weight:800;
  opacity:.18;
  text-align:center;
  margin-top:8px;
}

.progress{
  width:100%;
  height:14px;
  background:linear-gradient(180deg,#0c1230,#070b1f);
  border-radius:12px;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px #1b244a;
  margin:16px 0;
}

.progress div{
  height:100%;
  width:0%;
  background:
    linear-gradient(
      90deg,
      #4f7cff,
      #7fa3ff,
      #4f7cff
    );
  background-size:200% 100%;
  animation:flow 1.6s linear infinite;
  box-shadow:0 0 12px rgba(79,124,255,.7);
  transition:width .6s ease;
}

@keyframes flow{
  0%{background-position:0%}
  100%{background-position:200%}
}

.terminal{
  background:#040712;
  border-radius:12px;
  padding:14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:13px;
  color:#9ef0c3;
  height:180px;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px #111638;
}

.terminal .ok{color:#6dffb3}
.terminal .info{color:#9ef0c3}

.vanta-bg{
  position: relative;
}

.vanta-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(11,16,32,.85),
    rgba(11,16,32,.95)
  );
  z-index:0;
}

.vanta-bg > *{
  position:relative;
  z-index:1;
}

#vanta-root{
  position: relative;
  min-height: 100vh;
}

#vanta-root::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,16,32,0.88),
    rgba(11,16,32,0.95)
  );
  z-index: 0;
}

#vanta-root > *{
  position: relative;
  z-index: 1;
}
/* DARK CONTENT BOX (READABILITY FIX) */
.content-box{
  background:rgba(8,12,28,0.88);
  border:1px solid #1b244a;
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

/* STEP 2 sections inside boxes */
.section{
  margin:16px;
}
.section.content-box{
  padding:18px;
}

/* STEP 3 permissions box */
.permissions-box{
  max-width:520px;
  margin:40px auto;
}

/* FORCE DARK PANELS FOR READABILITY */
.content-box{
  background: rgba(6,10,24,0.92) !important;
  border: 1px solid #1b244a;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.section{
  margin: 16px;
  background: none !important; /* kill any old background */
}

/* BOTTOM NAV */
.bottom-nav{
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,14,34,.95);
  border: 1px solid #1b244a;
  border-radius: 20px;
  display: flex;
  gap: 8px;
  padding: 10px;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.nav-item{
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: .2s;
}

.nav-item.active{
  background: var(--accent);
  color: #fff;
}

.nav-item span{
  font-size: 18px;
}
.nav-item svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
/* APP CARD BADGE */
.card-icon-wrap{
  position: relative;
}

.app-badge{
  position: absolute;
  top: -6px;
  left: -6px;
  background: linear-gradient(135deg, #ff8a00, #ff3d00);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  text-transform: uppercase;
}
/* IMPROVED HEADER */
.header-center{
  text-align: center;
}

.site-title{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.site-subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
/* HEADER LOGO */
.site-logo{
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}

.site-title{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .4px;
}

.site-subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* CARD FEATURE TEXT */
.card-feature{
  margin-top: 4px;
  font-size: 12px;
  color: #7fa3ff;
  font-weight: 600;
  line-height: 1.3;
}

/* FEATURE ICON TEXT */
.card-feature{
  margin-top: 4px;
  font-size: 12px;
  color: #7fa3ff;
  font-weight: 600;
  line-height: 1.3;
}

/* STAR RATING */
.star-rating{
  margin-top: 4px;
  color: #ffd34f;
  font-size: 14px;
  letter-spacing: 1px;
}
/* FEATURED SECTION */
.featured-wrap{
  padding: 20px;
}

.featured-title{
  font-size: 26px;
  font-weight: 800;
}

.featured-subtitle{
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* FEATURED CARD */
.featured-card{
  flex-shrink: 0;
  position: relative;
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* GLASS SHINE EFFECT */
.featured-card::after{
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
  transform: rotate(25deg);
  animation: glassShine 8s infinite linear;
  pointer-events: none;
}


/* DARK OVERLAY */
.featured-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.2),
    rgba(0,0,0,.85)
  );
  z-index: 0;
}

.featured-card > *{
  position: relative;
  z-index: 1;
}

@media(max-width: 768px){
  .featured-card{
    width: 100vw;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }
}

@media(min-width: 769px){
  .featured-card{
    width: 360px;
    height: 220px;
  }
}


.featured-icon{
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.featured-info h3{
  font-size: 18px;
  margin-bottom: 4px;
}



.featured-meta{
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
}

.featured-pill{
  background: rgba(0,0,0,.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1b244a;
}

.featured-badge{
  background: linear-gradient(135deg,#ff8a00,#ff3d00);
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
}

/* FEATURED BASE */
.featured-wrap{
  padding: 20px;
}

.featured-title{
  font-size: 26px;
  font-weight: 800;
}

.featured-subtitle{
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* FEATURED TRACK */
.featured-track{
  display: flex;
  gap: 16px;
  margin-top: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* FEATURED CARD */
.featured-card{
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  position: relative;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}

/* DARK OVERLAY */
.featured-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.1),
    rgba(0,0,0,.85)
  );
  border-radius: 22px;
}

.featured-card > *{
  position: relative;
  z-index: 1;
}

/* Mobile */
@media (max-width: 768px){
  .featured-desc{
    font-size: 12px;
    -webkit-line-clamp: 5;
  }
}

/* Desktop */
@media (min-width: 769px){
  .featured-desc{
    font-size: 13px;
    -webkit-line-clamp: 6;
  }
}


/* CONTENT */
.featured-app-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.featured-name{
  font-size: 20px;
  font-weight: 700;
}



.featured-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.featured-pill{
  background: rgba(0,0,0,.45);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1b244a;
}

.featured-badge{
  background: linear-gradient(135deg,#ff8a00,#ff3d00);
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 6px;
  width: fit-content;
}
/* FEATURED SECTION */
.featured-wrap{
  padding: 20px;
}

.featured-header h2{
  font-size: 26px;
  font-weight: 800;
}

.featured-header p{
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* HORIZONTAL SCROLL */
.featured-track{
  display: flex;
  gap: 16px;
  margin-top: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

/* FEATURED CARD (UI BOX, NOT IMAGE BG) */
.featured-card{
  flex-shrink: 0;
  background: rgba(8,12,28,0.9);
  border: 1px solid #1b244a;
  border-radius: 20px;
  padding: 16px;
  width: 85vw;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* DESKTOP SIZE */
@media(min-width: 900px){
  .featured-card{
    width: 360px;
  }
}

/* APP ICON */
.featured-app{
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-app img{
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

/* TEXT */
.featured-name{
  font-size: 18px;
  font-weight: 700;
}



/* FEATURE DESCRIPTION CLAMP */
.featured-desc{
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* FORCE LEFT ALIGN IN FEATURED CARD */
.featured-desc,
.featured-meta {
  text-align: left;
}

.featured-app{
  align-items: flex-start;
}

/* Mobile */
@media (max-width: 768px){
  .featured-desc{
    -webkit-line-clamp: 4;
  }
}

/* Desktop */
@media (min-width: 769px){
  .featured-desc{
    -webkit-line-clamp: 6;
  }
}



/* META */
.featured-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.featured-pill{
  background: rgba(0,0,0,.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1b244a;
}

.featured-badge{
  background: linear-gradient(135deg,#ff8a00,#ff3d00);
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
  font-weight: 700;
  width: fit-content;
}

/* FORCE FULL WIDTH FEATURED ON MOBILE */
@media (max-width: 768px){

  .featured-wrap{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .featured-track{
    overflow-x: auto;
    width: 100%;

  }

  .featured-card{
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-1 * env(safe-area-inset-left));
    margin-right: calc(-1 * env(safe-area-inset-right));
    border-radius: 0 !important;
  }
}

.featured-app{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.featured-app img{
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.featured-badge{
  background: linear-gradient(135deg,#ff8a00,#ff3d00);
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 700;
}
/* SNAP FIX FOR FEATURED */
.featured-track{
  scroll-snap-type: x mandatory;
}

.featured-card{
  scroll-snap-align: start;
}


/* TOP HEADER  IMPROVED */
/* GLASS HEADER */
.top-header{
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 20px;
  width: 100%;

  background: rgba(10,16,40,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}



.header-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo{
  width: 26px;
  height: 26px;
}

.site-name{
  font-weight: 700;
  font-size: 16px;
}

.header-right{
  display: flex;
  gap: 12px;
}

.icon-btn{
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* SEARCH BAR  CLEAR & VISIBLE */
.search-wrap{
  margin: 0;
  padding: 10px 16px;
  background: rgba(6,10,30,0.95);
  border-bottom: 1px solid #1b244a;
}

.search-wrap input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #25306a;
  background: rgba(15,20,55,0.95);
  color: #fff;
  font-size: 14px;
}

@keyframes glassShine {
  0% {
    transform: translateX(-120%) rotate(25deg);
  }
  100% {
    transform: translateX(220%) rotate(25deg);
  }
}


