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

html, body {
  height: 100%;
  font-family: 'Nunito', sans-serif;
}

/* ── Background photo ── */
.bg {
  position: fixed;
  inset: 0;
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: grayscale(100%) brightness(0.45);
}

/* ── Centered wrapper ── */
.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ── Card panel ── */
.panel {
  background-color: #0009;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  padding: 44px 48px 48px;
  width: 100%;
  max-width: 740px;
  /*backdrop-filter: blur(18px);*/
  /*-webkit-backdrop-filter: blur(18px);*/
  box-shadow: 0 24px 80px rgba(0,0,0,0.60);
  animation: fadeUp 0.6s ease both;
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.logo-wrap img {
  height: 150px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.1);
}

/* ── Portal badge ── */
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5b7fa6;
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
.badge-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5b7fa6;
}

/* ── Title ── */
h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: white;
  text-align: center;
  margin-bottom: 36px;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin-bottom: 32px;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 32px 22px 36px; }
}

/* ── App card ── */
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.22s;
  animation: fadeUp 0.55s ease both;
  cursor: pointer;
}
.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.22s; }
.card:nth-child(3) { animation-delay: 0.29s; }
.card:nth-child(4) { animation-delay: 0.36s; }

.card:hover {
  background: rgba(74,158,255,0.12);
  border-color: rgba(74,158,255,0.45);
  transform: translateY(-3px);
}

/* ── Card icon ── */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(74,158,255,0.15);
  border: 1px solid rgba(74,158,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.card:hover .card-icon {
  background: rgba(74,158,255,0.28);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.card-url {
  font-size: 0.70rem;
  font-weight: 400;
  color: rgba(74,158,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card:hover .card-url { color: #4a9eff; }

.card-arrow {
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card-arrow { opacity: 0.9; transform: translateX(3px); }
.card-arrow svg { width: 16px; height: 16px; }

/* ── Footer ── */
.footer {
  margin-top: 22px;
  font-size: 1rem;
  color: rgba(255,255,255,1);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(91,127,166,0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(91,127,166,0); }
}


@media (max-width: 400px) {
  .card-icon {
    display: none;
  }
}