:root {
  --bg: #0a0a0f;
  --bg-card: #14141c;
  --bg-card-hover: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --max-blue: #2563eb;
  --radius: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(37, 99, 235, 0.12), transparent),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--max-blue));
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.topbar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.hero h2 {
  font-size: 1.25rem;
  margin: 8px 0;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--max-blue);
  background: rgba(37, 99, 235, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--max-blue));
  color: #fff;
  width: 100%;
}

.section-hint {
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-buttons .btn {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.link-buttons .btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.btn-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.3;
}

.btn-tg {
  background: rgba(41, 168, 225, 0.18);
  color: #7dd3fc;
  border: 1.5px solid rgba(41, 168, 225, 0.45);
}

.btn-max {
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
  border: 1.5px solid rgba(37, 99, 235, 0.4);
}

.btn-max.btn-primary {
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-site {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.footer a {
  color: var(--max-blue);
  text-decoration: none;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: max(16px, var(--safe-bottom));
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.topbar-link {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--max-blue);
  text-decoration: none;
}

.topbar-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--max-blue);
  text-decoration: none;
  margin-bottom: 4px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.project-card {
  display: block;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:active {
  transform: scale(0.99);
}

.project-card:not([href]) {
  cursor: default;
}

.project-card[href]:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

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

.project-head h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.tag-live {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
}

.tag-beta {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.15);
}

.tag-partner {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
}

.tag-soon {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
}

