/* ====== Theme ====== */
:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --card:#0E162B;
  --card2:#0C1428;
  --stroke:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --accent:#21D4B4;
  --accent2:#4C6FFF;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius:18px;
  --radius2:14px;
  --pad: 18px;
  --max: 1020px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(76,111,255,.12), transparent 60%),
              radial-gradient(900px 700px at 80% 30%, rgba(33,212,180,.10), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* ====== Background decorations ====== */
.bg{position:fixed; inset:0; pointer-events:none; z-index:-1}
.bg__glow{
  position:absolute; width:720px; height:720px; filter: blur(60px); opacity:.55;
  border-radius:999px;
}
.bg__glow--a{left:-240px; top:-220px; background: radial-gradient(circle at 30% 30%, rgba(76,111,255,.55), transparent 60%)}
.bg__glow--b{right:-260px; top:120px; background: radial-gradient(circle at 30% 30%, rgba(33,212,180,.45), transparent 60%)}
.bg__grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 40% 10%, rgba(0,0,0,.9), rgba(0,0,0,.1) 60%, transparent 85%);
  opacity:.25;
}

/* ====== Layout ====== */
.wrap{max-width:var(--max); margin: 32px auto 64px; padding: 0 16px;}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 22px 22px;
}

.hero__left{display:flex; gap: 16px; align-items:center}

.brand{display:flex; align-items:center;}
.brand img{height:88px; width:auto; display:block;}
.logo{
  width: 44px; height: 44px; display:grid; place-items:center;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(33,212,180,.14), rgba(76,111,255,.10));
  color: var(--text);
}
h1{margin:0 0 6px; font-size: 22px; letter-spacing:.2px}
h2{margin:0; font-size: 18px}
h3{margin:0 0 10px; font-size: 15px}
h4{margin:0 0 8px; font-size: 14px}
p{margin:0}
.muted{color:var(--muted); line-height:1.5}

.hero__right{display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; justify-content:flex-end}
.pill{
  display:flex; gap:10px; align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size: 13px;
}
.pill--hint{color: var(--muted)}
.dot{width:10px; height:10px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 18px rgba(33,212,180,.35)}

.selector{margin-top:16px; padding: 16px 16px}
.selector__title{display:flex; justify-content:space-between; gap:12px; align-items:flex-end; margin-bottom: 12px}
.selector__title p{max-width: 520px}

.tabs{
  display:flex; gap:10px; flex-wrap:wrap;
}
.tab{
  appearance:none;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  cursor:pointer;
  display:flex; gap:10px; align-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-size: 14px;
}
.tab:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.14)}
.tab:active{transform: translateY(0px)}
.tab__icon{
  width: 26px; height: 26px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(76,111,255,.18), rgba(33,212,180,.16));
  border:1px solid rgba(255,255,255,.08);
}

.tab__logo{
  width: 18px;
  height: 18px;
  display:block;
}
.tab.is-active{
  background: linear-gradient(180deg, rgba(76,111,255,.20), rgba(33,212,180,.16));
  border-color: rgba(255,255,255,.16);
}

/* ====== Content sections ====== */
.content{margin-top:16px; padding: 18px 18px}
.content__head{display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom: 14px}
.content__head p{max-width: 640px}
.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
}
.block{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  border-radius: var(--radius2);
  padding: 14px 14px;
}
.note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(33,212,180,.18);
  background: rgba(33,212,180,.08);
  color: rgba(255,255,255,.86);
  line-height:1.5;
}

.check{margin:0; padding-left: 20px; color: var(--muted)}
.check li{margin: 6px 0}
.check li b{color: var(--text)}

.steps{margin-top: 14px}
.steps ol{margin: 0; padding-left: 20px; color: var(--muted); line-height:1.6}
.steps li{margin: 8px 0}
.steps b{color: var(--text)}
.steps code{
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.88);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.mini{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  border-radius: var(--radius2);
  padding: 14px 14px;
}
.bullets{margin:0; padding-left: 18px; color: var(--muted); line-height:1.6}
.bullets li{margin: 6px 0}

/* ====== Gallery ====== */
.gallery{display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));}
.gallery figure{margin:0}
.gallery img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  cursor: zoom-in;
}
.gallery figcaption{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height:1.4;
}
.gallery figcaption code{
  font-size: 12.5px;
}

/* ====== Footer ====== */
.footer{margin-top: 16px}
.footer__inner{
  padding: 16px 16px;
}
.footer__right{display:flex; align-items:center; gap:12px}
.kbd{
  font-weight: 700;
  letter-spacing:.2px;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
}

/* ====== Lightbox ====== */
.lightbox{position:fixed; inset:0; z-index:50; display:grid; place-items:center}
.lightbox__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.72)}
.lightbox__figure{
  position:relative;
  width:min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin:0;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(10,14,26,.85);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  padding: 12px;
  overflow:hidden;
}
.lightbox__img{
  width:100%;
  height:auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display:block;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}
.lightbox__caption{margin-top: 10px; font-size: 13px}
.lightbox__close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.28);
  color: var(--text);
  cursor:pointer;
  font-size: 24px;
  line-height: 36px;
}
.is-hidden{display:none !important}

/* ====== Responsive ====== */
@media (max-width: 860px){
  .brand img{height:60px;}

  .hero{flex-direction:column; align-items:stretch}
  .hero__right{justify-content:flex-start}
  .selector__title{flex-direction:column; align-items:flex-start}
  .grid{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
}


.gallery--phones{grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));}

/* ====== Official materials callout ====== */
.official{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  margin: 12px 0 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(33,212,180,.22);
  background: linear-gradient(180deg, rgba(33,212,180,.12), rgba(76,111,255,.08));
}
.official__left{display:flex; flex-direction:column; gap: 6px; min-width: 0;}
.official__badge{
  display:inline-flex;
  align-self:flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  font-size: 12.5px;
  color: rgba(255,255,255,.86);
}
.official__meta{
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.official__btn{
  flex: 0 0 auto;
  text-decoration:none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  transition: transform .12s ease, border-color .12s ease;
}
.official__btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.22)}
.official__btn:active{transform: translateY(0px)}

/* ====== Steps list ====== */
.stepslist{
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.stepslist li{margin: 8px 0}
.stepslist b{color: var(--text)}


/* ====== Download block ====== */
.download{
  margin-top:16px;
  padding: 16px 16px;
  display:flex;
  justify-content:space-between;
  gap: 14px;
  align-items:flex-start;
}
.download__left{max-width: 680px}
.download__right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(33,212,180,.22), rgba(76,111,255,.14));
  color: var(--text);
  text-decoration:none;
  font-size: 14px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  min-width: 210px;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.22)}
.btn:active{transform: translateY(0px)}
.btn--ghost{
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
}
@media (max-width: 860px){
  .download{flex-direction:column}
  .download__right{justify-content:flex-start}
  .btn{min-width: unset; width: fit-content}
}

.inline-link{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(33,212,180,.70);
  padding: 0 2px;
}
.inline-link:hover{
  border-bottom-color: rgba(76,111,255,.80);
}

.btn--store{
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  padding: 14px 16px;
}
.btn__title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.1;
}
.btn__sub{
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-top: 2px;
}
