:root{
  --bg-0:#060b16;
  --bg-1:#0a1428;
  --panel:#0d1b30;
  --panel-2:#0f2138;
  --line:rgba(120,170,255,0.14);
  --line-2:rgba(120,170,255,0.24);
  --text-0:#eef4ff;
  --text-1:#9fb3d1;
  --text-2:#6b7f9e;
  --cyan:#3fd6d0;
  --blue:#3a7bff;
  --green:#3ee089;
  --shadow:0 30px 80px -30px rgba(0,10,40,0.7);
}

*{box-sizing:border-box; margin:0; padding:0;}

html{scroll-behavior:smooth;}

body{
  font-family:'Vazirmatn', system-ui, sans-serif;
  background:var(--bg-0);
  color:var(--text-0);
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
  line-height:1.7;
}

/* background field */
.bg-field{
  position:fixed;
  inset:0;
  z-index:0;
  background:
    radial-gradient(1100px 700px at 78% -6%, rgba(58,123,255,0.24), transparent 60%),
    radial-gradient(900px 600px at 8% 8%, rgba(63,214,208,0.14), transparent 55%),
    radial-gradient(1000px 800px at 50% 115%, rgba(62,224,137,0.10), transparent 60%),
    linear-gradient(180deg, #060b16 0%, #08101f 45%, #060b16 100%);
}
.bg-field::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(120,170,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,0.045) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:radial-gradient(1100px 700px at 60% 10%, black, transparent 75%);
}

.wrap{
  position:relative;
  z-index:1;
  max-width:960px;
  margin:0 auto;
  padding:56px 24px 40px;
}

/* top bar */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:56px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:15px;
  color:var(--text-1);
  letter-spacing:0.2px;
}
.brand-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--green);
  box-shadow:0 0 10px 2px rgba(62,224,137,0.6);
}
.status-pill{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--text-1);
  background:rgba(120,170,255,0.06);
  border:1px solid var(--line);
  padding:7px 14px;
  border-radius:100px;
}
.status-pill span.dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--green);
}

/* hero */
.hero{
  text-align:center;
  margin-bottom:52px;
}
.shield{
  width:78px; height:78px;
  margin:0 auto 26px;
  position:relative;
}
.shield svg{width:100%; height:100%; display:block; filter:drop-shadow(0 0 22px rgba(63,214,208,0.35));}

.hero h1{
  font-size:clamp(28px, 4.4vw, 42px);
  font-weight:800;
  color:var(--text-0);
  margin-bottom:6px;
  letter-spacing:-0.3px;
}
.hero h1 .accent{
  display:block;
  margin-top:8px;
  font-size:clamp(30px, 5vw, 46px);
  font-weight:900;
  background:linear-gradient(92deg, #3fd6d0 0%, #3a7bff 55%, #3ee089 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p{
  margin-top:16px;
  color:var(--text-1);
  font-size:15px;
  max-width:460px;
  margin-inline:auto;
}

/* apps grid */
.section-label{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text-2);
  font-size:13px;
  font-weight:600;
  margin-bottom:16px;
}
.section-label::after{
  content:"";
  flex:1;
  height:1px;
  background:linear-gradient(90deg, var(--line), transparent);
}

.apps{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-bottom:44px;
}

.app-card{
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px 16px 22px;
  text-align:center;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position:relative;
  overflow:hidden;
}
.app-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .18s ease;
  background:radial-gradient(200px 120px at 50% 0%, rgba(120,170,255,0.16), transparent 70%);
}
.app-card:hover{
  transform:translateY(-3px);
  border-color:var(--line-2);
  box-shadow:var(--shadow);
}
.app-card:hover::before{opacity:1;}
.app-card:focus-visible{outline:2px solid var(--cyan); outline-offset:3px;}

.app-icon{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  border-radius:14px;
  background:rgba(120,170,255,0.07);
  border:1px solid var(--line);
}
.app-icon svg{width:26px; height:26px;}

.app-card .os-name{
  font-weight:700;
  font-size:15px;
  color:var(--text-0);
}
.app-card .app-name{
  font-size:13px;
  color:var(--text-2);
  font-family:'Courier New', monospace;
  letter-spacing:0.2px;
  direction:ltr;
}

.app-card.android{border-top:2px solid rgba(62,224,137,0.5);}
.app-card.ios{border-top:2px solid rgba(160,200,255,0.5);}
.app-card.windows{border-top:2px solid rgba(58,123,255,0.5);}

/* config box */
.config-block{margin-bottom:56px;}
.config-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
  gap:12px;
}
.config-head .label{
  font-size:14px;
  font-weight:600;
  color:var(--text-1);
}
.copy-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:linear-gradient(135deg, #1c3a63, #14294a);
  color:#dbe8ff;
  border:1px solid var(--line-2);
  padding:8px 16px;
  border-radius:10px;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.copy-btn svg{width:15px; height:15px;}
.copy-btn:hover{border-color:var(--cyan); transform:translateY(-1px);}
.copy-btn:active{transform:translateY(0);}
.copy-btn.copied{
  background:linear-gradient(135deg, #14512f, #0d3a22);
  border-color:rgba(62,224,137,0.5);
  color:#c6ffdf;
}

.config-box{
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--text-2);
  font-size:14px;
  word-break:break-all;
  direction:ltr;
  font-family:'Courier New', monospace;
  white-space:pre-wrap;
}
.config-box.has-config{
  color:var(--text-0);
  border-color:var(--line-2);
  justify-content:flex-start;
  text-align:left;
}
.config-box[data-empty="true"]{
  font-family:'Vazirmatn', sans-serif;
  direction:rtl;
}

/* footer */
footer{margin-top:44px;}
.footer-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
  padding:26px 24px 24px;
  background:radial-gradient(420px 200px at 50% -20%, rgba(63,214,208,.12), transparent 65%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
}
.footer-badge{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:12px;
  background:linear-gradient(145deg, rgba(63,214,208,.22), rgba(58,123,255,.26));
  border:1px solid rgba(120,170,255,.3);
  color:#d9ffea;
  font-size:14px;
}
.footer-credit{
  font-size:13px;
  color:var(--text-2);
}
.footer-credit strong{color:var(--text-1);}
.footer-channel{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--cyan);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  background:rgba(63,214,208,.08);
  border:1px solid rgba(63,214,208,.3);
  padding:9px 18px;
  border-radius:100px;
  transition:border-color .18s ease, background .18s ease, transform .15s ease;
}
.footer-channel:hover{
  border-color:var(--cyan);
  background:rgba(63,214,208,.14);
  transform:translateY(-1px);
}
.footer-channel .chan-name{direction:ltr;}

@media (max-width:640px){
  .wrap{padding:32px 18px 28px;}
  .topbar{margin-bottom:40px;}
  .status-pill{font-size:12px; padding:6px 12px;}
  .apps{grid-template-columns:1fr; gap:12px;}
  .app-card{flex-direction:row; justify-content:flex-start; text-align:right; padding:16px;}
  .app-icon{width:44px; height:44px; flex-shrink:0;}
  .app-icon svg{width:22px; height:22px;}
  .app-card .os-name{font-size:14px;}
  .config-head{flex-wrap:wrap;}
  .hero{margin-bottom:40px;}
}

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

.panel-kicker{
  color:var(--cyan);
  font-size:13px;
  font-weight:700;
  margin-bottom:3px;
  letter-spacing:.3px;
}

.internet-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(110deg, rgba(32,83,73,.42), rgba(13,27,48,.92));
  border:1px solid rgba(62,224,137,.26);
  border-radius:18px;
  padding:20px 22px;
  margin:-18px 0 30px;
}
.eyebrow{
  display:block;
  color:var(--text-2);
  font-size:11px;
  font-weight:700;
  letter-spacing:.4px;
  margin-bottom:4px;
}
.internet-card strong{font-size:17px; color:#d9ffea;}
.live-indicator{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--green);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.live-indicator i{
  width:9px; height:9px; border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px rgba(62,224,137,.8);
}

.app-icon{font-size:25px; color:var(--text-0);}

/* ===================== guides / support steps ===================== */
.guides-section{
  position:relative;
  margin:4px 0 56px;
  padding:34px 26px 30px;
  background:radial-gradient(560px 260px at 100% -10%, rgba(58,123,255,.14), transparent 60%), linear-gradient(180deg, rgba(15,29,52,.55), rgba(9,15,28,.35));
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
}
.guides-section::before{
  content:"";
  position:absolute;
  left:-60px; bottom:-70px;
  width:220px; height:220px;
  background:radial-gradient(circle, rgba(63,214,208,.14), transparent 70%);
  pointer-events:none;
}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:26px;
  position:relative;
  z-index:1;
}
.section-heading h2{font-size:20px; line-height:1.5;}
.section-heading .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--cyan);
  background:rgba(63,214,208,.1);
  border:1px solid rgba(63,214,208,.3);
  padding:5px 13px 5px 11px;
  border-radius:100px;
  font-size:11px;
  letter-spacing:.3px;
  margin-bottom:12px;
}
.section-heading .eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 8px rgba(63,214,208,.8);
}

.guides-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.guide-card{
  position:relative;
  display:flex;
  align-items:flex-start;
  min-height:118px;
  gap:14px;
  padding:20px 18px;
  background:linear-gradient(145deg, rgba(24,49,83,.85), rgba(10,20,38,.92));
  border:1px solid var(--line-2);
  border-radius:17px;
  overflow:hidden;
  box-shadow:0 14px 30px -20px rgba(3,8,20,.75), inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.guide-card::before{
  content:"";
  position:absolute;
  top:0; bottom:0; right:0;
  width:3px;
  background:linear-gradient(180deg, var(--cyan), var(--blue));
  opacity:.85;
}
.guide-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg, rgba(63,214,208,.08), transparent 42%, rgba(58,123,255,.08));
  pointer-events:none;
  opacity:0;
  transition:opacity .25s ease;
}
.guide-card:hover{
  transform:translateY(-4px);
  border-color:var(--cyan);
  box-shadow:0 18px 40px -18px rgba(58,123,255,.55);
  background:linear-gradient(145deg, rgba(29,60,98,.92), rgba(11,23,44,.96));
}
.guide-card:hover::after{opacity:1;}
.guide-card:nth-child(3n+2)::before{background:linear-gradient(180deg, var(--blue), var(--green));}
.guide-card:nth-child(3n+3)::before{background:linear-gradient(180deg, var(--green), var(--cyan));}
.guide-card-icon{
  position:relative;
  z-index:1;
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:linear-gradient(145deg, rgba(63,214,208,.22), rgba(58,123,255,.26));
  border:1px solid rgba(120,170,255,.3);
  box-shadow:inset 0 0 12px rgba(63,214,208,.1);
}
.guide-card-icon::before,
.guide-card-icon::after,
.guide-card-icon span{
  content:"";
  position:absolute;
  width:13px;
  height:2px;
  border-radius:2px;
  background:var(--cyan);
  box-shadow:0 0 8px rgba(63,214,208,.5);
}
.guide-card-icon::before{transform:rotate(45deg);}
.guide-card-icon::after{transform:rotate(-45deg);}
.guide-card-icon span{width:5px;height:5px;border-radius:50%;background:#d9ffea;}
.guide-card-content{position:relative;z-index:1;flex:1;min-width:0;}
.guide-card p{
  color:var(--text-1);
  font-size:13.5px;
  line-height:1.9;
  text-align:right;
}
.guide-card:hover p{color:var(--text-0);}

@media (prefers-reduced-motion: reduce){
  .guide-card{transition:none !important;}
}

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

@media (max-width:640px){
  .internet-card{margin-top:-8px;}
  .section-heading h2{font-size:17px;}
  .guides-section{padding:26px 16px 22px;}
  .guide-card{padding:14px 16px;}
  .footer-card{padding:22px 18px 20px;}
}
