:root {
  --brand: #059669;
  --accent: #0ea5a4;
  --dark: #0f172a;
  --muted: #6b7280;
  --soft: #f8fafc;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0b1220;
  background: #fff;
}

a {
  text-decoration: none;
}

/* Reusable helpers */
.bg-soft {
  background: var(--soft);
}

.text-brand {
  color: var(--brand);
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-brand:hover,
.btn-brand:focus {
  background: #047857;
  border-color: #047857;
}

.telegram-btn {
  background: #0088cc;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--brand), var(--accent));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.18);
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(14, 165, 164, 0.9));
  color: #fff;
  padding: 92px 0 58px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
}

.btn-register {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-register:hover {
  filter: brightness(0.98);
  color: var(--brand);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.card-soft {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 16px;
}

.section-title {
  max-width: 760px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

/* Cards / Features */
.feature-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand);
  flex: 0 0 auto;
}

.divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

/* Steps */
.steps .step {
  text-align: center;
  padding: 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.steps .step .ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand);
  font-size: 22px;
}

/* APK section */
.apk-card {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.apk-side {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(14, 165, 164, 0.9));
  color: #fff;
  padding: 28px;
}

.apk-side small {
  color: rgba(255, 255, 255, 0.85);
}

.apk-main {
  padding: 28px;
}

/* Footer */
footer {
  background: #0d1117;
  color: #d1d5db;
}

footer a {
  color: #9ca3af;
}

footer a:hover {
  color: #00bfa6;
  text-decoration: underline;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #007bff, #00bfa6);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 28px;
  padding-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

/* Floating button */
.float-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative;
}

.float-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  color: #fff;
}

.float-label {
  position: absolute;
  right: 64px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: 0.18s ease;
}

.float-btn:hover .float-label {
  opacity: 1;
  transform: translateX(0);
}

/* Top Download Bar */
#topDownloadBar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  width: calc(100% - 32px);
  max-width: 720px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Arial, Helvetica, sans-serif;
}

#topDownloadBar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#topDownloadWrap {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 236, 245, 0.95);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  overflow: hidden;
}

#topDownloadInner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

#topDownloadIcon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d6efd, #0048c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.22);
}

#topDownloadText {
  flex: 1;
  min-width: 0;
}

#topDownloadTitle {
  font-size: 16px;
  font-weight: 700;
  color: #122033;
  margin-bottom: 3px;
}

#topDownloadDesc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

#topDownloadActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#topDownloadBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #0d6efd, #0048c7);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
}

#topDownloadBtn:hover {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, #0b5ed7, #003ca8);
}

#closeTopDownload {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  color: #334155;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: 0.2s ease;
}

#closeTopDownload:hover {
  background: #e2e8f0;
}

#downloadPulseDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: downloadPulse 1.8s infinite;
  margin-left: 6px;
}

@keyframes downloadPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  #topDownloadInner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #topDownloadText {
    width: calc(100% - 66px);
  }

  #topDownloadActions {
    width: 100%;
    margin-top: 10px;
    padding-left: 66px;
  }

  #topDownloadBtn {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 62px 0 44px;
  }

  .navbar-nav {
    margin-top: 0.5rem;
  }
}

@media (max-width: 520px) {
  #topDownloadBar {
    top: 10px;
    width: calc(100% - 18px);
  }

  #topDownloadInner {
    padding: 12px;
    gap: 10px;
  }

  #topDownloadIcon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 21px;
    border-radius: 12px;
  }

  #topDownloadTitle {
    font-size: 15px;
  }

  #topDownloadDesc {
    font-size: 12px;
  }

  #topDownloadActions {
    padding-left: 56px;
  }
}