/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  background: #16213e;
  border-bottom: 1px solid #0f3460;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark {
  font-size: 22px;
  color: #e94560;
  line-height: 1;
}
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #e0e0e0;
  letter-spacing: -0.3px;
}
.tagline {
  font-size: 13px;
  color: #555;
  border-left: 1px solid #0f3460;
  padding-left: 20px;
  margin-left: 4px;
}

/* ── Main ───────────────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  width: 100%;
}

.intro {
  text-align: center;
  margin-bottom: 48px;
}
.intro-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.intro-sub {
  font-size: 16px;
  color: #888;
}

/* ── Card grid ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .intro-title { font-size: 28px; }
}

/* ── Card ───────────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border-color: #e94560;
}
.card:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

/* ── Card thumbnail ─────────────────────────────────────────────── */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1a30;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-thumb img {
  transform: scale(1.04);
}
/* Fallback globe icon shown when image is missing */
.card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #2a3a5e;
}
.card-thumb.thumb-missing img { display: none; }
.card-thumb.thumb-missing .card-thumb-fallback { display: flex; }

/* ── Card body ──────────────────────────────────────────────────── */
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  flex: 1;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e94560;
  transition: gap 0.15s;
}
.card:hover .card-cta {
  gap: 4px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: #444;
  border-top: 1px solid #0f3460;
}
.footer a {
  color: #555;
  text-decoration: none;
}
.footer a:hover { color: #e94560; }
