* {
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}
.nav-logo {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: #111;
}
.nav-links a.active {
  font-weight: 500;
}

.rainbow {
  position: relative;
  border-color: transparent;
}

.rainbow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #ff0080,
    #ff8c00,
    #ffed00,
    #00ff80,
    #00bfff,
    #8000ff,
    #ff0080
  );
  background-size: 200%;
  animation: rainbow-spin 3s linear infinite;
  z-index: -1;
  filter: blur(6px);
}

@keyframes rainbow-spin {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

.card {
  background: #fbfbfb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  margin-bottom: 26px;
}

.card-android {
  background: #fbfbfb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 1.25rem 26px;
}

.card-android-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.card-android-text {
  font-size: 16px;
  color: #111;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-android-text p {
  margin: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  color: #111;
  margin: 0;
}

.card-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.card-preview {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.card-list {
  display: none;
  margin: 0 0 14px 0;
  padding-left: 1.2rem;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}

.card-list.visible {
  display: block;
}

.card-full.visible {
  display: block;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.btn {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn:hover {
  background: #f3f4f6;
}

.btn-primary {
  background: #111;
  color: #ffffff;
  border-color: transparent;
}

.btn-primary:hover {
  opacity: 0.7;
  background: #111;
}

.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 12px 0;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0f0f0f;
    color: #e5e5e5;
  }

  .card,
  .card-android {
    background: #1a1a1a;
    border-color: #2e2e2e;
  }

  .card-android-text {
    color: #f0f0f0;
  }

  .card-title {
    color: #f0f0f0;
  }

  .card-subtitle,
  .card-preview,
  .card-full,
  .card-list {
    color: #9ca3af;
  }

  .card-logo {
    background: #262626;
    border-color: #2e2e2e;
  }

  .btn {
    color: #f0f0f0;
    border-color: #3f3f3f;
  }

  .btn:hover {
    background: #262626;
  }

  .btn-primary {
    background: #f0f0f0;
    color: #111;
  }

  .btn-primary:hover {
    opacity: 0.7;
    background: #f0f0f0;
  }

  .divider {
    border-color: #2e2e2e;
  }

  .nav-header {
    background: #0f0f0f;
    border-color: #2e2e2e;
  }

  .nav-logo {
    color: #f0f0f0;
  }

  .nav-links a {
    color: #9ca3af;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #f0f0f0;
  }
}
