:root {
  --bg: #050505;
  --card: rgba(18, 18, 18, 0.84);
  --card-soft: rgba(18, 18, 18, 0.72);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #aaa;
  --soft: #777;
  --accent: #fff;
  --button-dark: #1f1f1f;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 36px 18px;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: #000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(120, 120, 120, 0.12), transparent 30%),
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75)),
    url("/assets/img/bg.jpg") center / cover no-repeat,
    linear-gradient(180deg, #111 0%, var(--bg) 100%);
}

.wrap {
  width: min(100%, 980px);
  margin: 0 auto;
}

.topbar,
.modal-header,
.info-item,
.app-buttons {
  display: flex;
}

.topbar,
.modal-header {
  align-items: center;
  justify-content: space-between;
}

.topbar {
  gap: 18px;
  margin-bottom: 28px;
}

.logo {
  width: 210px;
  max-width: 65%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.back-link,
.help-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link {
  font-size: 0.92rem;
}

.back-link:hover,
.help-link:hover {
  color: var(--text);
}

.hero,
.card,
.modal-card {
  border: 1px solid var(--card-border);
  background: var(--card);
}

.hero {
  margin-bottom: 22px;
  padding: 38px;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.intro {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 6;
  padding: 26px;
  border-radius: 24px;
  background: var(--card-soft);
}

.card.full {
  grid-column: span 12;
}

.info-list,
.app-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-list {
  gap: 14px;
}

.info-item {
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item:last-child {
  border-bottom: 0;
}

.label {
  color: var(--muted);
}

.value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.app {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.app-buttons {
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--button-dark);
  color: var(--text);
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}

.steps strong {
  color: var(--text);
  font-weight: 700;
}

.footer {
  margin: 24px 0 0;
  color: #666;
  font-size: 0.78rem;
  text-align: center;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  width: min(100%, 600px);
  padding: 24px;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.95);
}

.modal-header {
  gap: 16px;
  margin-bottom: 16px;
}

.modal-close {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: #000;
}

.tab-content {
  display: none;
  color: var(--muted);
}

.tab-content.active {
  display: block;
}

.credentials {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

/* Mobile */

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .card {
    grid-column: span 12;
    padding: 22px;
  }

  .app {
    grid-template-columns: 56px 1fr;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .app-buttons {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-buttons .btn,
  .btn {
    width: 100%;
  }

  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .value {
    text-align: left;
  }
}