:root {
  --bg: #040b1c;
  --bg-alt: #0a1430;
  --card: rgba(13, 24, 54, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7edff;
  --muted: #9bb3d8;
  --accent: #4db4ff;
  --accent-2: #657bff;
  --success: #34caa5;
  --warning: #f7c266;
  --neutral: #7c8db4;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(120% 120% at 20% 20%, rgba(101, 123, 255, 0.15), transparent 50%),
    radial-gradient(120% 120% at 80% 0%, rgba(77, 180, 255, 0.12), transparent 45%),
    linear-gradient(135deg, #030817 0%, #050c1f 100%);
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
}

.muted a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(77, 180, 255, 0.6);
}

.muted a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

ul {
  padding: 0;
  margin: 0;
}

::selection {
  background: rgba(77, 180, 255, 0.25);
}

.background-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 10%, rgba(101, 123, 255, 0.35), transparent 40%),
    radial-gradient(40% 40% at 80% 20%, rgba(77, 180, 255, 0.25), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero {
  position: relative;
  padding: 36px 0 80px;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  margin: 0 20px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 20, 48, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.nav.stuck {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 14, 34, 0.85);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #041026;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(77, 180, 255, 0.35);
  border: none;
  cursor: pointer;
}

.nav-logout {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: none;
}

.nav-user {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.5px;
  display: none;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 0 20px;
  align-items: center;
}

.hero-text h1 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.lead {
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #041026;
  box-shadow: 0 12px 40px rgba(77, 180, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 50px rgba(77, 180, 255, 0.45);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.server-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(77, 180, 255, 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.server-status.error::before {
  background: #e06b6b;
  box-shadow: 0 0 0 8px rgba(224, 107, 107, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 18, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  width: min(440px, 92vw);
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal-content.wide {
  width: min(520px, 94vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
}

.form-label {
  font-weight: 600;
}

.login-status {
  margin-top: 6px;
}

.beta-desc {
  line-height: 1.6;
}

.beta-input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
}

.beta-help {
  margin-top: 10px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  margin: 4px 0 0;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(77, 180, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid rgba(77, 180, 255, 0.35);
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  margin: 6px 0 8px;
}

.progress {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 180, 255, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.step-title {
  margin: 0;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.badge.success {
  background: rgba(52, 202, 165, 0.15);
  color: var(--success);
  border-color: rgba(52, 202, 165, 0.4);
}

.badge.warning {
  background: rgba(247, 194, 102, 0.14);
  color: var(--warning);
  border-color: rgba(247, 194, 102, 0.4);
}

.badge.neutral {
  background: rgba(124, 141, 180, 0.16);
  color: var(--neutral);
  border-color: rgba(124, 141, 180, 0.35);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section h2 {
  margin: 6px 0 10px;
  font-size: clamp(22px, 3vw, 32px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(77, 180, 255, 0.12);
  color: var(--text);
  font-size: 22px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
}

.card-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(77, 180, 255, 0.15);
}

.install {
  padding-top: 20px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.download-card {
  background: linear-gradient(140deg, rgba(77, 180, 255, 0.12), rgba(10, 20, 48, 0.9));
  border: 1px solid rgba(77, 180, 255, 0.4);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.download-card.android {
  background: linear-gradient(140deg, rgba(52, 202, 165, 0.16), rgba(10, 36, 30, 0.85));
  border-color: rgba(52, 202, 165, 0.55);
}

.btn.wide {
  width: 100%;
  margin: 12px 0 10px;
}

.download-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.step-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  background: rgba(77, 180, 255, 0.12);
}

.footer {
  max-width: 1180px;
  margin: 20px auto 40px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  z-index: 2;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.account-card {
  padding: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(10, 20, 48, 0.85), rgba(13, 24, 54, 0.7));
  box-shadow: var(--shadow);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.account-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  margin-top: 6px;
}

.avatar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.activate-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.activate-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(77, 180, 255, 0.14), rgba(10, 20, 48, 0.85));
  box-shadow: var(--shadow);
}

.activate-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.activate-btn {
  padding: 14px 22px;
  font-size: 16px;
  min-width: 220px;
}

.status-line {
  margin: 6px 0 0;
}

.status-line.error {
  color: #f87171;
}

.status-line.success {
  color: var(--success);
}

.tiny {
  font-size: 13px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
