/* ============================================================
   MD Link Landing — Minimal + Mobile-first
   Reduce visual noise, one clear CTA, adaptive on all devices
   ============================================================ */

.cn-land {
  --land-bg: #0f172a;
  --land-surface: #1e293b;
  --land-border: rgba(255, 255, 255, 0.1);
  --land-text: #f1f5f9;
  --land-muted: #94a3b8;
  --land-accent: #38bdf8;
  --land-accent-soft: rgba(56, 189, 248, 0.15);
  --land-radius: 14px;
  --land-space: 1.25rem;
  --land-max: 720px;

  background: var(--land-bg);
  color: var(--land-text);
  min-height: 100vh;
  padding: 1.5rem 1rem 5.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.cn-land-inner {
  max-width: var(--land-max);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.cn-land-hero {
  text-align: center;
  padding: 1.75rem 0 2rem;
}

.cn-land-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--land-accent);
  background: var(--land-accent-soft);
  border-radius: 999px;
}

.cn-land-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.cn-land-lead {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 1rem;
  color: var(--land-muted);
  line-height: 1.55;
}

.cn-land-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a !important;
  background: var(--land-accent);
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cn-land-cta:hover,
.cn-land-cta:focus {
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
}

.cn-land-cta-lg {
  min-height: 52px;
  padding: 0.95rem 2rem;
  font-size: 1.1rem;
}

.cn-land-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--land-muted);
}

/* ---------- Benefits strip ---------- */
.cn-land-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0 0 2.25rem;
  padding: 0.75rem;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: var(--land-radius);
}

.cn-land-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.cn-land-benefit-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.cn-land-benefit-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--land-muted);
}

/* ---------- Sections ---------- */
.cn-land-section {
  margin-bottom: 2.25rem;
}

.cn-land-h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.cn-land-sub {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--land-muted);
}

/* ---------- Showcases ---------- */
.cn-land-showcases {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cn-land-card {
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: var(--land-radius);
  padding: 1rem 1.1rem 1.1rem;
}

.cn-land-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.cn-land-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cn-land-card-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--land-accent);
  background: var(--land-accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.cn-land-card-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--land-muted);
}

.cn-land-card-posts {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cn-land-card-post {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.cn-land-card-author {
  font-weight: 600;
  color: var(--land-muted);
  margin-right: 0.25rem;
}

.cn-land-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--land-accent) !important;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cn-land-card-cta:hover,
.cn-land-card-cta:focus {
  background: var(--land-accent-soft);
  border-color: var(--land-accent);
  color: #fff !important;
}

/* ---------- Live events ---------- */
.cn-land-events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cn-land-event {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: var(--land-radius);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease;
}

.cn-land-event:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.cn-land-event-emoji {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.cn-land-event-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cn-land-event-body strong {
  font-size: 0.92rem;
  color: #fff;
}

.cn-land-event-body span {
  font-size: 0.8rem;
  color: var(--land-muted);
}

/* ---------- Final CTA ---------- */
.cn-land-final {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: var(--land-radius);
}

.cn-land-final-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.cn-land-final-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--land-muted);
}

.cn-land-final-list li {
  margin-bottom: 0.35rem;
}

.cn-land-final-list li::before {
  content: "✓ ";
  color: #34d399;
  font-weight: 700;
}

/* ---------- Sticky mobile CTA ---------- */
.cn-land-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--land-border);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.cn-land-sticky.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cn-land-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--land-max);
  margin: 0 auto;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a !important;
  background: var(--land-accent);
  border-radius: 999px;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Tablet+ ---------- */
@media (min-width: 640px) {
  .cn-land {
    padding: 2rem 1.5rem 3rem;
  }

  .cn-land-showcases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .cn-land-card {
    display: flex;
    flex-direction: column;
  }

  .cn-land-card-cta {
    margin-top: auto;
  }

  .cn-land-events {
    flex-direction: row;
  }

  .cn-land-event {
    flex: 1;
  }

  /* Sticky less needed on larger screens if hero is visible */
  .cn-land-sticky {
    display: none;
  }
}

@media (min-width: 768px) {
  .cn-land-hero {
    padding: 2.5rem 0 2.5rem;
  }

  .cn-land-benefits {
    gap: 0.75rem;
    padding: 1rem;
  }

  .cn-land-benefit-label {
    font-size: 0.8rem;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 379px) {
  .cn-land-benefit-label {
    font-size: 0.65rem;
  }

  .cn-land-title {
    font-size: 1.5rem;
  }

  .cn-land-cta {
    width: 100%;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cn-land-cta,
  .cn-land-sticky {
    transition: none;
  }
}
