@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg-0:#0e1016;
  --bg-1:#161a24;
  --indigo:#6366f1;
  --teal:#14b8a6;
  --gold:#f2b544;
  --text:#eef1f7;
  --muted:#8991a6;
  --card:#181c27;
  --card-hover:#1e2330;
  --border:#262c3a;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{margin:0;padding:0;}

body{
  background:var(--bg-0);
  color:var(--text);
  font-family:'Inter', sans-serif;
  min-height:100vh;
}

a{ color:inherit; }

/* soft ambient blobs */
.blob{
  position:fixed;
  border-radius:50%;
  filter:blur(90px);
  opacity:0.35;
  z-index:0;
  pointer-events:none;
}
.blob-1{ width:520px; height:520px; top:-180px; left:-120px; background:var(--indigo); }
.blob-2{ width:460px; height:460px; top:20%; right:-160px; background:var(--teal); }
.blob-3{ width:380px; height:380px; bottom:-160px; left:30%; background:var(--gold); opacity:0.18; }

.wrap{
  position:relative;
  z-index:1;
  max-width:1080px;
  margin:0 auto;
  padding:70px 28px 100px;
}

/* ---------- navbar ---------- */
.navbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(14,16,22,0.7);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1080px;
  margin:0 auto;
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Sora', sans-serif;
  font-weight:700;
  font-size:1.05rem;
  color:var(--text);
  text-decoration:none;
}
.nav-brand .logo-mark{
  width:32px;height:32px;
  border-radius:9px;
  background:linear-gradient(135deg, var(--indigo), var(--teal));
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.8rem;
  color:#fff;
  flex-shrink:0;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-size:0.9rem;
  font-weight:500;
  position:relative;
  transition:color .2s ease;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; bottom:-5px;
  width:0%; height:2px;
  background:var(--teal);
  transition:width .25s ease;
}
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after{ width:100%; }
.nav-links a.active{ color:var(--text); }
.nav-links a.active::after{ width:100%; }

.nav-cta{
  font-family:'Sora', sans-serif;
  background:linear-gradient(120deg, var(--indigo), var(--teal));
  color:#fff;
  border:none;
  padding:9px 20px;
  border-radius:9px;
  font-size:0.85rem;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  transition:transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px -8px rgba(20,184,166,0.5);
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  border-radius:8px;
  width:38px;height:38px;
  color:var(--text);
  cursor:pointer;
}

@media (max-width:760px){
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    background:var(--bg-1);
    border-bottom:1px solid var(--border);
    padding:18px 28px;
    gap:16px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .nav-cta{ display:none; }
}

/* ---------- shared page header ---------- */
.brand-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:30px;
  opacity:0;
  animation:fadeUp .6s ease forwards;
}
.brand-dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 10px var(--teal);
}
.brand-tag{
  font-size:0.78rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--muted);
}

header.page-head{
  text-align:center;
  margin-bottom:46px;
}

h1{
  font-family:'Sora', sans-serif;
  font-size:clamp(2.2rem, 5vw, 3.3rem);
  font-weight:800;
  margin:0 0 14px;
  letter-spacing:-0.5px;
  opacity:0;
  animation:fadeUp .7s ease .05s forwards;
  background:linear-gradient(100deg, #ffffff 30%, var(--teal) 65%, var(--indigo) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.subtitle{
  color:var(--muted);
  font-size:1.05rem;
  max-width:560px;
  margin:0 auto 30px;
  line-height:1.6;
  opacity:0;
  animation:fadeUp .7s ease .12s forwards;
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}

.actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  opacity:0;
  animation:fadeUp .7s ease .2s forwards;
}

.recommend-btn{
  font-family:'Sora', sans-serif;
  background:linear-gradient(120deg, var(--indigo), var(--teal));
  background-size:180% auto;
  border:none;
  color:#fff;
  padding:14px 30px;
  border-radius:12px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  box-shadow:0 8px 24px -8px rgba(99,102,241,0.55);
  transition:background-position .5s ease, transform .2s ease, box-shadow .2s ease;
}
.recommend-btn:hover{
  background-position:100% center;
  transform:translateY(-3px);
  box-shadow:0 12px 30px -6px rgba(20,184,166,0.5);
}

.ghost-btn{
  font-family:'Sora', sans-serif;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  padding:14px 30px;
  border-radius:12px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  transition:border-color .2s ease, transform .2s ease;
}
.ghost-btn:hover{
  border-color:var(--teal);
  transform:translateY(-3px);
}

.search-box{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:0 18px;
  min-width:280px;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.search-box:focus-within{
  border-color:var(--teal);
  box-shadow:0 0 0 4px rgba(20,184,166,0.15);
}
.search-box svg{ width:16px; height:16px; fill:var(--muted); flex-shrink:0; }
.search-box input{
  flex:1;
  background:none;
  border:none;
  outline:none;
  color:var(--text);
  font-family:inherit;
  font-size:0.95rem;
  padding:14px 0;
}
.search-box input::placeholder{ color:var(--muted); }

/* ---------- server grid (3 per row) ---------- */
.server-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:46px;
}

.card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px 20px;
  opacity:0;
  transform:translateY(12px);
  animation:rowIn .5s cubic-bezier(.2,.7,.3,1) forwards;
  transition:background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
@keyframes rowIn{
  to{ opacity:1; transform:translateY(0); }
}
.card:hover{
  background:var(--card-hover);
  border-color:rgba(20,184,166,0.4);
  transform:translateY(-4px);
  box-shadow:0 14px 28px -14px rgba(20,184,166,0.35);
}
.card.hidden{ display:none; }

.card-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.server-badge{
  width:36px;height:36px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:0.8rem;
  flex-shrink:0;
  background:linear-gradient(135deg, rgba(99,102,241,0.25), rgba(20,184,166,0.25));
  color:var(--teal);
  border:1px solid var(--border);
}
.name-col{ min-width:0; }
.server-name{
  font-weight:600;
  font-size:0.96rem;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.server-status{
  font-size:0.74rem;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:2px;
}
.server-status .dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 6px var(--teal);
}
.icons{ display:flex; gap:8px; flex-shrink:0; }
.icon-btn{
  width:32px;
  height:32px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:transparent;
  cursor:pointer;
  color:var(--muted);
  transition:transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.icon-btn.wa:hover{ background:rgba(37,211,102,0.12); border-color:#25d366; color:#25d366; transform:translateY(-2px); }
.icon-btn.tg:hover{ background:rgba(52,170,220,0.12); border-color:#34aadc; color:#34aadc; transform:translateY(-2px); }
.icon-btn svg{ width:15px; height:15px; fill:currentColor; }

.empty-msg{
  text-align:center;
  color:var(--muted);
  padding:50px 0 10px;
  display:none;
  font-size:0.95rem;
}

@media (max-width:860px){
  .server-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:560px){
  .server-grid{ grid-template-columns:1fr; }
}

/* ---------- generic section blocks (home, blogs, faq, contact) ---------- */
.section-tag{
  font-size:0.78rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--teal);
  font-weight:600;
  margin-bottom:10px;
  text-align:center;
}
.section-title{
  font-family:'Sora', sans-serif;
  font-size:clamp(1.5rem, 3vw, 2rem);
  font-weight:700;
  text-align:center;
  margin:0 0 12px;
}
.section-sub{
  color:var(--muted);
  text-align:center;
  max-width:560px;
  margin:0 auto 40px;
  line-height:1.6;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-bottom:70px;
}
.feature-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:26px;
  opacity:0;
  transform:translateY(14px);
  animation:rowIn .55s ease forwards;
  transition:transform .2s ease, border-color .2s ease;
}
.feature-card:hover{ transform:translateY(-4px); border-color:rgba(20,184,166,0.4); }
.feature-icon{
  width:42px;height:42px;
  border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(99,102,241,0.25), rgba(20,184,166,0.25));
  color:var(--teal);
  margin-bottom:16px;
}
.feature-icon svg{ width:20px; height:20px; fill:currentColor; }
.feature-card h3{
  font-family:'Sora', sans-serif;
  font-size:1.05rem;
  margin:0 0 8px;
}
.feature-card p{
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.6;
  margin:0;
}

@media (max-width:860px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .feature-grid{ grid-template-columns:1fr; } }

/* blog cards */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.blog-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  opacity:0;
  transform:translateY(14px);
  animation:rowIn .55s ease forwards;
  transition:transform .2s ease, border-color .2s ease;
  text-decoration:none;
  color:var(--text);
  display:block;
}
.blog-card:hover{ transform:translateY(-5px); border-color:rgba(20,184,166,0.4); }
.blog-thumb{
  height:130px;
  background:linear-gradient(135deg, rgba(99,102,241,0.35), rgba(20,184,166,0.25));
  display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:0.75rem;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.85);
}
.blog-body{ padding:20px; }
.blog-tag{
  font-size:0.72rem;
  color:var(--teal);
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:8px;
  display:block;
}
.blog-body h3{
  font-family:'Sora', sans-serif;
  font-size:1rem;
  margin:0 0 8px;
  line-height:1.4;
}
.blog-body p{
  color:var(--muted);
  font-size:0.87rem;
  line-height:1.6;
  margin:0 0 12px;
}
.blog-meta{
  font-size:0.78rem;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
}

@media (max-width:860px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .blog-grid{ grid-template-columns:1fr; } }

/* FAQ accordion */
.faq-list{ max-width:720px; margin:0 auto; }
.faq-item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  margin-bottom:12px;
  overflow:hidden;
  opacity:0;
  transform:translateY(10px);
  animation:rowIn .5s ease forwards;
}
.faq-question{
  width:100%;
  background:none;
  border:none;
  color:var(--text);
  text-align:left;
  padding:20px 22px;
  font-family:'Inter', sans-serif;
  font-size:0.98rem;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.faq-question .icon{
  flex-shrink:0;
  width:22px;height:22px;
  border-radius:6px;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  transition:transform .25s ease, border-color .25s ease;
  color:var(--teal);
}
.faq-item.open .faq-question .icon{ transform:rotate(45deg); border-color:var(--teal); }
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}
.faq-answer p{
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.65;
  padding:0 22px 20px;
  margin:0;
}

/* contact form */
.contact-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:30px;
  align-items:start;
}
.contact-form{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:30px;
}
.form-row{ margin-bottom:18px; }
.form-row label{
  display:block;
  font-size:0.85rem;
  color:var(--muted);
  margin-bottom:8px;
}
.form-row input, .form-row textarea{
  width:100%;
  background:var(--bg-1);
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  color:var(--text);
  font-family:inherit;
  font-size:0.92rem;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 4px rgba(20,184,166,0.15);
}
.form-row textarea{ resize:vertical; min-height:110px; }

.contact-info{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:30px;
}
.contact-info h3{
  font-family:'Sora', sans-serif;
  font-size:1.05rem;
  margin:0 0 18px;
}
.contact-info-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  color:var(--muted);
  font-size:0.9rem;
}
.contact-info-row .icon-circle{
  width:34px;height:34px;
  border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(99,102,241,0.25), rgba(20,184,166,0.25));
  color:var(--teal);
  flex-shrink:0;
}
.contact-info-row .icon-circle svg{ width:16px;height:16px; fill:currentColor; }

@media (max-width:800px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* ---------- footer ---------- */
footer{
  position:relative;
  z-index:1;
  border-top:1px solid var(--border);
  background:var(--bg-1);
}
.footer-inner{
  max-width:1080px;
  margin:0 auto;
  padding:56px 28px 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  margin-bottom:36px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Sora', sans-serif;
  font-weight:700;
  font-size:1.05rem;
  margin-bottom:12px;
}
.footer-brand .logo-mark{
  width:30px;height:30px;
  border-radius:8px;
  background:linear-gradient(135deg, var(--indigo), var(--teal));
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.75rem;
  color:#fff;
  flex-shrink:0;
}
.footer-desc{
  color:var(--muted);
  font-size:0.88rem;
  line-height:1.6;
  max-width:280px;
}
.footer-col h4{
  font-family:'Sora', sans-serif;
  font-size:0.82rem;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--text);
  margin:0 0 16px;
}
.footer-col ul{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap:11px;
}
.footer-col a{
  color:var(--muted);
  text-decoration:none;
  font-size:0.88rem;
  transition:color .2s ease, padding-left .2s ease;
}
.footer-col a:hover{ color:var(--teal); padding-left:4px; }

.footer-social{
  display:flex;
  gap:10px;
  margin-top:18px;
}
.footer-social a{
  width:34px;height:34px;
  border-radius:9px;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  transition:border-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover{
  border-color:var(--teal);
  color:var(--teal);
  transform:translateY(-2px);
}
.footer-social svg{ width:15px; height:15px; fill:currentColor; }

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:22px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:0.82rem;
}
.footer-bottom a{ color:var(--muted); text-decoration:none; }
.footer-bottom a:hover{ color:var(--teal); }

@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:460px){
  .footer-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
