/* Replys website — simple glass theme, responsive */
:root {
  --bg: #0B0B10;
  --surface: rgba(255,255,255,.045);
  --surface2: rgba(255,255,255,.08);
  --text: #F2F2F4;
  --muted: #9A9AA6;
  --border: rgba(255,255,255,.09);
  --accent: #F311BD;
  --grad: linear-gradient(135deg, #F311BD, #7D1FF9);
  --radius: 16px;
  --max: 1040px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.ar { direction: rtl; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* glass helper */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,16,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.logo img { width: 26px; height: 26px; border-radius: 7px; display: block; object-fit: contain; flex-shrink: 0; }
.nav-inner { overflow: hidden; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.nav-links a {
  padding: 8px 13px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--surface2); }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 7px 12px; border-radius: 10px; font-size: 13.5px; font-family: inherit;
}
.lang-btn:hover { background: var(--surface2); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: 44px; min-width: 176px;
  background: rgba(22,22,28,.97); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; display: none; box-shadow: 0 14px 40px rgba(0,0,0,.55); z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; gap: 9px; text-align: start;
  background: none; border: 0; color: var(--text); font-family: inherit; font-size: 14px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.lang-menu button:hover { background: var(--surface2); }
.lang-menu button.sel { background: rgba(243,17,189,.14); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
h1.title { font-size: clamp(32px, 6vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
h1.title .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { font-size: clamp(15px, 2vw, 17.5px); color: var(--muted); max-width: 580px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; transition: .18s; border: 1px solid var(--border); cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface2); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(23px, 3.5vw, 32px); font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px; }
.sec-head p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 15.5px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { padding: 22px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px; background: rgba(243,17,189,.1); border: 1px solid rgba(243,17,189,.18);
  color: #F676D8; font-size: 21px;
}
.card h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.2px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; text-align: center; }
.stat { padding: 20px 12px; }
.stat b { display: block; font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.stat .msi { color: var(--accent); font-size: 20px; margin-bottom: 6px; display: block; }

/* ---------- Download ---------- */
.platforms { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.plat { padding: 20px; display: flex; flex-direction: column; gap: 13px; position: relative; }
.plat.ready { border-color: rgba(243,17,189,.35); }
.plat-top { display: flex; align-items: center; gap: 13px; }
.plat-ico {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 23px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); flex-shrink: 0;
}
.plat.ready .plat-ico { color: #F676D8; }
.plat h3 { font-size: 16.5px; font-weight: 700; }
.plat .meta { color: var(--muted); font-size: 13px; }
.plat .links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); transition: .15s;
}
.chip:hover { background: var(--surface2); }
.chip.primary { background: var(--grad); border-color: transparent; color: #fff; }
.chip.primary:hover { transform: translateY(-2px); }
.chip.disabled { opacity: .45; cursor: not-allowed; }
.soon {
  position: absolute; top: 14px; inset-inline-end: 14px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid var(--border);
}
.note-box { margin-top: 24px; padding: 17px 19px; color: var(--muted); font-size: 14px; }
.note-box b { color: #fff; }
code {
  background: rgba(255,255,255,.07); padding: 2px 7px; border-radius: 6px; font-size: 12.8px;
  font-family: ui-monospace, Menlo, monospace; word-break: break-all;
}

/* steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.step { padding: 19px; }
.step .num {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 11px; color: #fff;
}
.step h4 { font-size: 15px; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 13.8px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; margin: 40px 0 8px; }
.legal .upd { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-inline-start: 22px; }
.legal b { color: var(--text); }
.contact-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 26px; }
.contact-cards .card a { color: #F676D8; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; word-break: break-all; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 38px 0 30px; margin-top: 30px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; margin-bottom: 26px; }
.foot-brand { max-width: 300px; }
.foot-brand .logo { margin-bottom: 10px; }
.foot-brand p { color: var(--muted); font-size: 13.8px; }
.foot-col h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 11px; }
.foot-col a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.copy { border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Profile viewer ---------- */
.viewer { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.pcard { width: min(410px, 100%); text-align: center; overflow: hidden; padding: 0 26px 28px; }
.pcard .banner { height: 105px; margin: 0 -26px 0; background: var(--grad); }
.pcard .avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: -44px auto 0; position: relative;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; border: 4px solid var(--bg); overflow: hidden; color: #fff;
}
.pcard .avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard h1 { font-size: 21px; margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pcard .uname { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pcard .bio { font-size: 14.2px; margin-top: 11px; }
.pcard .meta { color: var(--muted); font-size: 12.8px; margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.vbadge { flex-shrink: 0; }
.spinner {
  width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dl-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.err { color: #ff8a8a; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .nav-links a { padding: 8px 9px; font-size: 13px; }
  .cta .btn { width: 100%; justify-content: center; }
  .plat .links .chip { flex: 1; justify-content: center; }
}
