/* Landing page - Inter, modern redesign */

.landing-body {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #141414;
  color: #d8d8d8;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #141414;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 169, 110, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Warm ambient glow */
.hero::after {
  content: '';
  position: absolute;
  top: -42%;
  right: -18%;
  width: 92%;
  height: 82%;
  background: radial-gradient(ellipse at 72% 8%, rgba(200, 169, 110, 0.07) 0%, rgba(200, 169, 110, 0.032) 34%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Center content: side-by-side layout */
.hero-center {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.hero-center-logo {
  width: clamp(160px, 18vw, 220px);
  height: auto;
  opacity: 0.9;
  flex-shrink: 0;
}

.hero-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.7);
  margin: 0;
  white-space: nowrap;
}

.hero-divider {
  width: 1px;
  align-self: stretch;
  min-height: 100px;
  background: rgba(200, 169, 110, 0.2);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-label { font-size: 0.6rem; letter-spacing: 0.12em; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  flex: 1 1 auto;
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #ebebeb;
  max-width: 100%;
}

.hero-accent {
  color: #c8a96e;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
  max-width: 100%;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  background: transparent;
  color: #c8a96e;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #c8a96e;
  transition: background 0.15s, color 0.15s;
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
  background: #c8a96e;
  color: #141414;
}

/* Hero designer dropdown */
.hero-designer-menu {
  position: relative;
}

.hero-designer-trigger {
  gap: 0.45rem;
  cursor: pointer;
}

.hero-designer-chevron {
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s;
}

.hero-designer-trigger[aria-expanded="true"] .hero-designer-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.hero-designer-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow: hidden;
}

.hero-dropdown-item {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.hero-dropdown-item:not(:last-child) {
  border-bottom: 1px solid #222;
}

.hero-dropdown-item:hover {
  background: rgba(200, 169, 110, 0.07);
  color: #c8a96e;
}

.btn-new-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1em 0.45em;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c8a96e;
  color: #141414;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}

.btn-hero-primary:hover .btn-new-badge {
  background: #141414;
  color: #c8a96e;
}

/* Scroll hint */
.hero-scroll-hint {
  text-align: center;
  padding: 0.75rem 0 1.5rem;
  color: #222;
  font-size: 0.85rem;
  flex-shrink: 0;
  animation: hero-scroll-fade 2.5s ease-in-out infinite;
}

@keyframes hero-scroll-fade {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}

@media (max-width: 820px) {
  .hero-center {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
  }
  .hero-divider { display: none; }
  .hero-brand-block { flex-direction: column; gap: 0.5rem; }
  .hero-brand-block .hero-center-logo { width: 220px; }
  .hero-copy { align-items: center; text-align: center; flex: 0 0 auto; width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-subtitle { max-width: 480px; margin-left: auto; margin-right: auto; width: 100%; box-sizing: border-box; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .hero { min-height: calc(100svh - 52px); }
  .hero-center {
    /* Override max-width/margin so flex:1 fills height correctly for centering */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 1.75rem;
    gap: 1.5rem;
    justify-content: center;
  }
  .hero-brand-block .hero-center-logo { width: 180px; }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* ── Shared label utility ─────────────────────────────────────────────────── */

.capabilities-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #383430;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Recent section ───────────────────────────────────────────────────────── */

.recent-section {
  border-top: 1px solid #181818;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #141414 0%, #121212 100%);
  padding: 5rem 2.5rem;
}

.recent-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 169, 110, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.recent-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.recent-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.recent-section-sub {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  margin: 0.5rem 0 0;
  max-width: 520px;
}

.recent-section-header-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e8e0d5;
  margin: 0;
}

.recent-section-grid {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.recent-section-grid::before {
  content: '';
  position: absolute;
  inset: -0.75rem -0.9rem;
  background:
    linear-gradient(180deg, rgba(200, 169, 110, 0.026) 0%, rgba(255, 255, 255, 0.008) 36%, rgba(52, 148, 124, 0.014) 100%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.012) 46%, transparent 72%);
  border-top: 1px solid rgba(200, 169, 110, 0.035);
  border-bottom: 1px solid rgba(52, 148, 124, 0.025);
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}

.recent-section-grid::after {
  content: '';
  position: absolute;
  inset: -0.75rem -0.9rem;
  background:
    linear-gradient(90deg, rgba(200, 169, 110, 0.014), transparent 18%, transparent 78%, rgba(52, 148, 124, 0.02)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.055) 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: -2;
}

.recent-section-empty {
  font-size: 0.85rem;
  color: #444;
}

@media (max-width: 860px) {
  .recent-section { padding: 4rem 1.5rem; }
  .recent-section-header { flex-direction: column; align-items: flex-start; }
  .recent-btn-desktop { display: none; }
  .recent-btn-mobile { display: block; text-align: center; width: 100%; box-sizing: border-box; }
  .recent-section-inner .discord-inline {
    padding: 1.25rem 1.5rem;
    justify-content: flex-start;
  }
}

@media (min-width: 861px) {
  .recent-btn-mobile { display: none; }
}

@media (max-width: 600px) {
  .recent-section { padding: 3.5rem 1.25rem; }
  .recent-section-grid { grid-template-columns: 1fr; }
  .recent-section-inner .discord-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
}

.hero-recent-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.875rem;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038) 0%, rgba(255, 255, 255, 0.022) 100%),
    #151515;
  border: 1px solid rgba(200, 169, 110, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.018) inset,
    0 12px 28px -26px rgba(0, 0, 0, 0.9);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-height: 90px;
}

.hero-recent-item:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052) 0%, rgba(255, 255, 255, 0.03) 100%),
    #171717;
  border-color: rgba(200, 169, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.026) inset,
    0 16px 34px -28px rgba(0, 0, 0, 0.95);
}

.hero-recent-type {
  font-size: 0.57rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.hero-recent-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #b0a898;
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hero-recent-author {
  font-size: 0.68rem;
  color: #7e7468;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-recent-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #3a2e1e;
}

.hero-recent-avatar.user-avatar--supporter,
.hero-recent-avatar-letter.user-avatar--supporter {
  border: 1px solid rgba(100, 190, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(8, 20, 36, 0.75) inset,
    0 0 22px rgba(45, 150, 255, 0.2),
    0 0 1px rgba(160, 220, 255, 0.4);
}

.hero-recent-avatar-letter.user-avatar--supporter {
  background: linear-gradient(160deg, #1a2838 0%, #142030 100%);
  color: #8ec8f0;
  text-shadow: 0 0 12px rgba(100, 190, 255, 0.35);
}

.hero-recent-avatar.user-avatar--pro,
.hero-recent-avatar-letter.user-avatar--pro {
  border: 1px solid rgba(210, 90, 195, 0.55);
  box-shadow:
    0 0 0 1px rgba(40, 8, 22, 0.78) inset,
    0 0 22px rgba(205, 75, 185, 0.22),
    0 0 1px rgba(255, 180, 245, 0.35);
}

.hero-recent-avatar-letter.user-avatar--pro {
  background: linear-gradient(160deg, #310d30 0%, #1c0a1a 100%);
  color: #ecc5dc;
  text-shadow: 0 0 12px rgba(255, 140, 190, 0.35);
}

.hero-recent-avatar-letter {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2a2318;
  border: 1px solid #3a2e1e;
  color: #c8a96e;
  font-size: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-recent-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.hero-recent-header .hero-recent-type,
.hero-recent-header .design-card-tag {
  align-self: center;
}

.hero-recent-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  color: #625a50;
}

@media (max-width: 820px) {
  .hero-recent {
    padding: 0.875rem 1.5rem 1.25rem;
  }
  .hero-recent-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-recent {
    padding: 0.75rem 1rem 1rem;
  }
  .hero-recent-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-recent-label,
  .hero-recent-more {
    display: none;
  }
}

/* ── Designs grid (shared with catalog) ───────────────────────────────────── */

.designs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem 0;
}

/* Landing community strip: four cards in 2×2 (not a single tall column) */
.landing-catalog-grid.designs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.landing-catalog-grid .design-card {
  min-width: 0;
  gap: 1rem;
  padding: 0.65rem 1rem;
}

.landing-catalog-grid .design-card-preview {
  width: 200px;
  flex-shrink: 0;
}

/* catalog.css gives tank strip two classes - pin to same width as battalion preview here */
.landing-catalog-grid .design-card-preview.design-card-preview--tank-modules {
  width: 200px;
}

/* Ship strip scales by col count so cells match tank cells (6-col baseline = 200px). */
.landing-catalog-grid .design-card-preview.design-card-preview--ship-modules {
  width: calc(200px * var(--ship-preview-cols, 7) / 6);
  max-width: 100%;
}

.landing-catalog-grid .design-card-title {
  font-size: 0.82rem;
}

.landing-catalog-grid .design-card-meta {
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}

.landing-catalog-grid .design-card-author {
  margin-bottom: 0.5rem;
}

/* Two columns get narrow: stack body / preview inside each card */
@media (max-width: 960px) {
  .landing-catalog-grid .design-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .landing-catalog-grid .design-card-preview {
    width: min(220px, 100%);
    align-self: center;
  }

  .landing-catalog-grid .design-card-preview.design-card-preview--tank-modules {
    width: min(220px, 100%);
  }

  .landing-catalog-grid .design-card-preview.design-card-preview--ship-modules {
    width: min(calc(220px * var(--ship-preview-cols, 7) / 6), 100%);
  }
}

@media (max-width: 640px) {
  .landing-catalog-grid.designs-grid {
    grid-template-columns: 1fr;
  }

  .landing-catalog-grid .design-card {
    flex-direction: row;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .landing-catalog-grid .design-card-preview {
    width: 200px;
    align-self: center;
  }

  .landing-catalog-grid .design-card-preview.design-card-preview--tank-modules {
    width: 200px;
  }

  .landing-catalog-grid .design-card-preview.design-card-preview--ship-modules {
    width: min(calc(200px * var(--ship-preview-cols, 7) / 6), 100%);
  }
}

/* ── Design card ──────────────────────────────────────────────────────────── */

.design-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  background: #161616;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  padding: .75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.design-card--tank,
.design-card--ship,
.design-card--air {
  padding: 2.1rem 1.5rem;
}

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

.design-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.design-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.design-card-type {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.type-template {
  background: rgba(200, 169, 110, 0.08);
  color: #c8a96e;
}

.type-division {
  background: rgba(200, 169, 110, 0.08);
  color: #c8a96e;
}

.type-guide {
  background: rgba(100, 150, 200, 0.08);
  color: #7aabda;
}

.type-question {
  background: rgba(150, 120, 200, 0.08);
  color: #a88fd4;
}

.type-challenge {
  background: rgba(210, 140, 40, 0.1);
  color: #d4900a;
}

/* Highlighted card */
.design-card--highlighted {
  border-color: rgba(210, 140, 40, 0.3);
  background: #191510;
  box-shadow: 0 0 0 1px rgba(210, 140, 40, 0.15), 0 2px 12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.design-card--highlighted::before {
  content: '★ Featured';
  position: absolute;
  top: -1px;
  left: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d4900a;
  background: #191510;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(210, 140, 40, 0.3);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.design-card--highlighted:hover {
  border-color: rgba(210, 140, 40, 0.5);
  box-shadow: 0 0 0 1px rgba(210, 140, 40, 0.25), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.design-card-version {
  font-size: 0.68rem;
  color: #2e2a25;
  margin-left: auto;
}

.design-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d0d0d0;
  margin: 0 0 0.3rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.design-card-author {
  font-size: 0.72rem;
  color: #555;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.design-card-author-avatar-link {
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
}

.design-card-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid #3a2e1e;
}

.design-card-author-avatar-letter {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2a2318;
  border: 1px solid #3a2e1e;
  color: #c8a96e;
  font-size: 0.58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-card-author-link {
  color: #666;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.design-card-author-link:hover {
  color: #c8a96e;
}

.design-card-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.design-card-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #555;
}

.design-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.design-card-tag {
  font-size: 0.62rem;
  background: transparent;
  color: #666;
  border: 1px solid #2a2a2a;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.design-card-tag:hover {
  color: #c8a96e;
  border-color: rgba(200, 169, 110, 0.3);
}

.design-card-tag[data-tag="challenge"]     { color: #e8c060; border-color: rgba(232, 192, 96,  0.4);  }
.design-card-tag[data-tag="showcase"]      { color: #6bbf8a; border-color: rgba(107, 191, 138, 0.35); }
.design-card-tag[data-tag="rate my build"] { color: #6699cc; border-color: rgba(102, 153, 204, 0.35); }
.design-card-tag[data-tag="help wanted"]   { color: #cc7060; border-color: rgba(204, 112, 96,  0.35); }
.design-card-tag[data-tag="meta"]          { color: #9977bb; border-color: rgba(153, 119, 187, 0.35); }

/* ── Design card grid preview ─────────────────────────────────────────────── */

.design-card-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 4px 0.85fr;
  grid-template-rows: repeat(5, 1fr) auto;
  gap: 2px;
  margin: 0;
  padding: 0.5rem;
  background: transparent;
  flex-shrink: 0;
  width: 280px;
}

.dc-divider {
  grid-column: 6;
  grid-row: 1 / 6;
  background: transparent;
}

.dc-cell-support {
  width: 80%;
  justify-self: center;
  align-self: center;
}

.dc-cell-regimental {
  aspect-ratio: auto;
  height: 28px;
  margin-top: 2px;
  background: rgba(0, 0, 0, 0.45);
  border-color: #141414;
  opacity: 0.7;
}

.dc-cell {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dc-cell.dc-filled {
  background: #191e1d;
  border-color: #252e2c;
}

.dc-cell img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.dc-lock {
  font-size: 6px;
  opacity: 0.2;
  line-height: 1;
  user-select: none;
}

/* ── Empty catalog CTA ────────────────────────────────────────────────────── */

.empty-catalog-cta {
  padding: 6rem 1.5rem;
  text-align: center;
  background: #141414;
  border-top: 1px solid #181818;
}

.empty-catalog-inner {
  max-width: 480px;
  margin: 0 auto;
}

.empty-catalog-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ebebeb;
  margin: 0 0 0.75rem;
}

.empty-catalog-inner p {
  color: #666;
  margin: 0 0 2rem;
  line-height: 1.7;
  font-size: 0.875rem;
}

/* ── Designer features ────────────────────────────────────────────────────── */

/* Featured spotlight - inline card below hero CTAs */
.featured-spotlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1rem;
  background: rgba(52, 148, 124, 0.06);
  border: 1px solid rgba(52, 148, 124, 0.22);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
  max-width: 100%;
  min-width: 0;
}

.featured-spotlight:hover {
  background: rgba(52, 148, 124, 0.11);
  border-color: rgba(52, 148, 124, 0.38);
}

.featured-spotlight-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4900a;
  white-space: nowrap;
  flex-shrink: 0;
}

.featured-spotlight-type {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

.featured-spotlight-title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b0a898;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.featured-spotlight-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(52, 148, 124, 0.85);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .featured-spotlight { align-self: stretch; }
  .featured-spotlight-type { display: none; }
}

/* Announcement variant - takes the spotlight slot for releases, challenges,
   and other timely news. Uses the brand teal so it reads as "news" rather
   than the gold "Featured" tag. */
.featured-spotlight--announcement {
  background: rgba(52, 148, 124, 0.10);
  border-color: rgba(52, 148, 124, 0.38);
}

.featured-spotlight--announcement:hover {
  background: rgba(52, 148, 124, 0.16);
  border-color: rgba(52, 148, 124, 0.55);
}

.featured-spotlight-badge--announcement {
  color: #5cc4a3;
}

/* ── Designer features (main-style two-column layout) ───────────────────── */

.designer-features {
  padding: 5rem 2.5rem;
  border-top: 1px solid #181818;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1e1b14 0%, #181614 40%, #141414 100%);
}

.designer-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 169, 110, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.designer-features::after {
  content: '';
  position: absolute;
  top: -36%;
  left: -24%;
  width: 78%;
  height: 76%;
  background: radial-gradient(ellipse at 20% 6%, rgba(200, 169, 110, 0.055) 0%, rgba(200, 169, 110, 0.026) 36%, transparent 76%);
  pointer-events: none;
  z-index: 0;
}

/* One band: Powerful tools (build) → Library */
.designer-features-stack {
  position: relative;
  border-top: 1px solid #181818;
  overflow: hidden;
  background: linear-gradient(180deg, #1e1b14 0%, #1c1916 38%, #19171c 72%, #141414 100%);
}

.designer-features-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 169, 110, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.designer-features-stack::after {
  content: '';
  position: absolute;
  top: -34%;
  right: -22%;
  width: 82%;
  height: 72%;
  background: radial-gradient(ellipse at 82% 4%, rgba(200, 169, 110, 0.052) 0%, rgba(200, 169, 110, 0.024) 36%, transparent 76%);
  pointer-events: none;
  z-index: 0;
}

.designer-features-stack > .designer-features {
  position: relative;
  z-index: 1;
  background: transparent;
  border-top: none;
}

.designer-features-stack > .designer-features--build {
  padding: 5rem 2.5rem 2.25rem;
}

.designer-features-stack > .designer-features--workspace {
  padding: 0 2.5rem 5rem;
}

.designer-features-stack > .designer-features--build::before,
.designer-features-stack > .designer-features--build::after,
.designer-features-stack > .designer-features--workspace::before,
.designer-features-stack > .designer-features--workspace::after {
  display: none;
}

.designer-features-bridge {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 1.35rem;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.designer-features-bridge::before,
.designer-features-bridge::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.22), transparent);
}

.designer-features-bridge-label {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.55);
}

.designer-features-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Build: centered intro → three feature cards */
.designer-features-inner--build {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.designer-build-intro {
  max-width: 44rem;
  margin: 0 auto 2.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.designer-build-intro .capabilities-label {
  margin-bottom: 0.2rem;
}

.designer-build-title {
  line-height: 1.18;
  text-wrap: balance;
}

.designer-build-subtitle {
  max-width: 38rem;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #8a8a8a;
}

.designer-build-intro .designer-features-lede {
  max-width: 38rem;
}

.designer-build-intro .designer-features-cta-row {
  margin-top: 0.9rem;
  justify-content: center;
  align-self: center;
}

.designer-features-inner--build .df-btn-mobile {
  margin-top: 1.35rem;
}

/* Library workspace: copy + spotlight card */
.designer-features-inner--library {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.05fr);
  gap: 3rem 3.5rem;
  align-items: center;
}

.designer-features-inner--library .designer-features-copy--library {
  grid-column: 1;
}

.designer-features-inner--library .df-library-spotlight {
  grid-column: 2;
}

.designer-features-inner--library .df-btn-mobile {
  grid-column: 1 / -1;
}

.designer-features-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.designer-features-lede {
  font-size: 0.9rem;
  font-weight: 400;
  color: #7d7d7d;
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
}

.designer-features-lede--library {
  max-width: 42ch;
  color: #7d7d7d;
}

.capabilities-label--muted {
  color: rgba(140, 160, 185, 0.65);
}

.designer-features-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e8e0d5;
  margin: 0;
}

.designer-features-grid {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.designer-features-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.df-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid #252525;
  border-radius: 8px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  min-height: 100%;
  box-sizing: border-box;
}

.df-tile--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  padding: 1.45rem 1.35rem 1.55rem;
  border: 1px solid rgba(45, 42, 38, 0.95);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(30, 27, 22, 0.65) 0%, rgba(17, 16, 15, 0.96) 48%, rgba(14, 13, 12, 0.98) 100%);
  min-height: 0;
}

.df-icons--tile {
  align-self: center;
  margin: 0 auto;
}

.df-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.df-tile-heading {
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #ebe4d7;
  margin: 0;
  line-height: 1.25;
}

.df-tile-pro-chip {
  text-decoration: none;
  margin: 0 0.15rem;
}

.df-tile-text {
  font-size: 0.8rem;
  color: #8c8c8c;
  line-height: 1.62;
  margin: 0;
}

.df-tile:hover,
.df-tile--stacked:hover {
  border-color: rgba(200, 169, 110, 0.22);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42);
  background: linear-gradient(165deg, rgba(34, 30, 24, 0.72) 0%, rgba(20, 18, 16, 0.98) 50%, rgba(16, 15, 14, 1) 100%);
}


.df-library-spotlight {
  min-width: 0;
}

.df-library-spotlight-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 1.5rem 1.65rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 169, 110, 0.2);
  background: linear-gradient(145deg, rgba(28, 25, 20, 0.95) 0%, rgba(18, 17, 16, 0.98) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.df-icon-saved--spotlight {
  flex-shrink: 0;
}

.df-library-spotlight-list {
  margin: 0;
  padding: 0.15rem 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.df-library-spotlight-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #9aa3ae;
  line-height: 1.45;
}

.df-library-spotlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.75);
}

.designer-features-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.designer-features-cta-row--stack {
  align-self: stretch;
  margin-top: 0;
}

.designer-features-cta-row--stack .btn-hero-primary,
.designer-features-cta-row--stack .btn-hero-secondary {
  flex: 1;
  text-align: center;
  box-sizing: border-box;
}

/* Legacy stacked list (kept for any other pages using .df-item) */
.designer-features-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}

.df-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: #141414;
  transition: background 0.15s;
}

.df-item:not(:last-child) {
  border-bottom: 1px solid #1a1a1a;
}

.df-item:hover {
  background: #161616;
}

.df-icons {
  position: relative;
  width: 100px;
  height: 48px;
  flex-shrink: 0;
}

.df-icon {
  position: absolute;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  background: #1a1a1a;
  padding: 3px;
  border: 1px solid #252525;
}

.df-icon-1 { left: 0;    top: 0;    z-index: 4; }
.df-icon-2 { left: 18px; top: 7px;  z-index: 3; opacity: 0.85; }
.df-icon-3 { left: 36px; top: 1px;  z-index: 2; opacity: 0.65; }
.df-icon-4 { left: 54px; top: 8px;  z-index: 1; opacity: 0.4; }

/* Analytical tools tile: stack of three designer-style stat pills instead of
   the card-fan used on the other tiles. Reads as a real comparison snapshot. */
.df-icons--analytics {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  height: auto;
}

/* Designer-style stat pill: rounded chip with a label on the left and a
   colored delta on the right, mirroring the stat-delta styling in the
   actual division designer. */
.df-statpill {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  min-width: 108px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.df-statpill:nth-child(1) { z-index: 3; }
.df-statpill:nth-child(2) { z-index: 2; margin-top: -6px; opacity: 0.85; }
.df-statpill:nth-child(3) { z-index: 1; margin-top: -6px; opacity: 0.7; }

.df-statpill-label {
  color: #b0a898;
  letter-spacing: 0.02em;
}

.df-statpill-delta {
  color: #2d7a2d;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.df-statpill-delta--neg {
  color: #9e3333;
}

.df-icon-saved {
  position: relative;
  width: 100px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.df-icon-saved-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
  background: #1a1a1a;
  padding: 3px;
  border: 1px solid #252525;
}

.df-icon-saved-badge {
  position: absolute;
  top: 0;
  right: 32px;
  display: flex;
  color: #c8a96e;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

.df-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.df-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #d4c9b8;
}

.df-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.df-account-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8a96e;
  text-decoration: none;
  transition: opacity 0.15s;
}

.df-account-cta:hover {
  opacity: 0.75;
}

@media (max-width: 960px) {
  .designer-features-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .designer-features-inner--library {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .designer-features-inner--library .df-library-spotlight {
    grid-column: 1;
  }

  .designer-build-intro {
    text-align: left;
    align-items: flex-start;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2.2rem;
  }

  .designer-build-intro .designer-features-cta-row {
    justify-content: flex-start;
  }

  .df-tile-copy {
    text-align: left;
  }

  .df-icons--tile {
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
  }

  .df-icons--analytics {
    align-self: flex-start;
    align-items: flex-start;
    margin-left: 0;
    margin-right: auto;
  }

  .designer-features-copy {
    position: static;
  }

  .designer-features-stack > .designer-features--build {
    padding: 4rem 1.5rem 1.75rem;
  }

  .designer-features-stack > .designer-features--workspace {
    padding: 0 1.5rem 4rem;
  }

  .designer-features-bridge {
    padding: 0 1.5rem;
    margin-bottom: 1.1rem;
  }

  .df-btn-desktop {
    display: none;
  }

  .df-btn-mobile {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .designer-features-cta-row--stack .hero-designer-menu {
    flex: 1;
    min-width: 0;
  }

  .designer-features-cta-row--stack .hero-designer-menu .hero-designer-trigger {
    width: 100%;
    box-sizing: border-box;
  }

  .designer-features-cta-row--stack.df-cta-build-only .hero-designer-menu {
    flex: none;
    width: 100%;
  }

  .designer-features-lede,
  .designer-features-lede--library {
    max-width: none;
  }

  .df-library-spotlight-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .df-library-spotlight-list {
    align-items: center;
  }

  .df-library-spotlight-list li {
    text-align: left;
  }
}

@media (min-width: 861px) {
  .df-btn-mobile {
    display: none;
  }
}

@media (max-width: 600px) {
  .designer-features-stack > .designer-features--build {
    padding: 3.5rem 1.25rem 1.35rem;
  }

  .designer-features-stack > .designer-features--workspace {
    padding: 0 1.25rem 3.5rem;
  }

  .designer-features-bridge {
    padding: 0 1.25rem;
  }
}

/* ── Card showcase ────────────────────────────────────────────────────────── */

.card-showcase {
  padding: 5rem 2.5rem;
  border-top: 1px solid #181818;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #161514 0%, #141414 100%);
}

.card-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 169, 110, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.card-showcase-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.card-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-showcase-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ebebeb;
  margin: 0;
}

.card-showcase-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.card-showcase-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showcase-card-demo {
  pointer-events: none;
}

.landing-card-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  border: 1px solid #2a2a2a;
  border-top: 2px solid #2e2e2e;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(20, 20, 20, 0.98)),
    radial-gradient(circle at 18% 18%, rgba(200, 169, 110, 0.08), transparent 36%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.landing-card-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(180, 160, 120, 0.08) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: dt-val-shimmer 1.7s ease-in-out infinite;
}

.btn-load-designer {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #c8a96e;
  color: #141414;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn-load-designer:hover {
  opacity: 0.88;
}

.showcase-load-btn {
  align-self: flex-start;
  pointer-events: all;
}

@media (max-width: 800px) {
  .card-showcase-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .card-showcase-copy {
    order: -1;
  }
}

@media (max-width: 600px) {
  .card-showcase { padding: 4rem 1.25rem; }
}

/* ── Closing CTA ──────────────────────────────────────────────────────────── */

.landing-cta {
  border-top: 1px solid #181818;
  padding: 5rem 2.5rem;
  background: #141414;
  text-align: center;
}

.landing-cta-inner {
  max-width: 660px;
  margin: 0 auto;
}

.landing-cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ebebeb;
  margin: 0 0 0.875rem;
}

.landing-cta-sub {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.landing-cta-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .landing-cta { padding: 4rem 1.25rem; }
}

/* ── Join strip (account sync + Discord) ─────────────────────────────────── */

/* Sits below the design grid as a small "by the way, we have a Discord"
   note. Constrained width and light treatment so it doesn't compete with
   the catalog grid above or read as a closing panel for the section. */
.discord-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.25rem auto 0;
  padding: 0.75rem 1.1rem;
  background: rgba(114, 137, 218, 0.035);
  border: 1px solid rgba(114, 137, 218, 0.1);
  border-radius: 6px;
  max-width: 720px;
}

.discord-inline-copy {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.discord-inline-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c8c0b4;
}

.discord-inline-desc {
  font-size: 0.8rem;
  color: #4a4540;
  line-height: 1.5;
}

.discord-strip-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7289da;
  text-decoration: none;
  border: 1px solid rgba(114, 137, 218, 0.35);
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  transition: background 0.15s;
  white-space: nowrap;
}

.discord-strip-btn:hover {
  background: rgba(114, 137, 218, 0.1);
}

/* ── Elevated Discord CTA block ───────────────────────────────────────────── */

.discord-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(114, 137, 218, 0.05);
  border: 1px solid rgba(114, 137, 218, 0.13);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.discord-cta-block:hover {
  background: rgba(114, 137, 218, 0.08);
  border-color: rgba(114, 137, 218, 0.22);
}

.discord-cta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.discord-cta-icon {
  color: #7289da;
  flex-shrink: 0;
  opacity: 0.8;
}

.discord-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.discord-cta-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c8c0b4;
}

.discord-cta-desc {
  font-size: 0.8rem;
  color: #4a4540;
  line-height: 1.5;
}

.discord-cta-btn {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7289da;
  text-decoration: none;
  border: 1px solid rgba(114, 137, 218, 0.35);
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.discord-cta-btn:hover {
  background: rgba(114, 137, 218, 0.12);
  border-color: rgba(114, 137, 218, 0.5);
}

@media (max-width: 860px) {
  .discord-cta-block {
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .discord-cta-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    gap: 1rem;
  }
  .discord-cta-btn {
    align-self: flex-start;
  }
}

/* ── Card showcase additions ──────────────────────────────────────────────── */

.card-showcase-platforms {
  font-size: 0.72rem;
  color: #2e2b27;
  letter-spacing: 0.06em;
  margin: 0;
}

.card-showcase-cta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.card-showcase-frame {
  position: relative;
}

.card-showcase-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 169, 110, 0.05) 0%, transparent 65%);
  pointer-events: none;
}




/* ── Design card mobile stack ─────────────────────────────────────────────── */

@media (max-width: 560px) {
  .design-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .design-card-preview {
    order: -1;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1e1e1e;
    background: rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
  }
  /* Tank module strip: same full-bleed behavior as division battalion preview */
  .design-card-preview.design-card-preview--tank-modules {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    margin: 0 auto;
  }
  /* Ship module strip: same full-bleed on mobile (cells will be 7-across to fit screen). */
  .design-card-preview.design-card-preview--ship-modules {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    margin: 0 auto;
  }
  .design-card-preview.design-card-preview--tank {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    box-sizing: border-box;
  }
  .design-card-body {
    padding: 0.75rem 1rem;
  }
  .design-card-title {
    font-size: 0.875rem;
  }
  .design-card-author {
    margin-bottom: 0.5rem;
  }
  .design-card-meta {
    margin-bottom: 0.4rem;
  }

  /* Beat .landing-catalog-grid .design-card-preview { width: 200px } from the 640px breakpoint */
  .landing-catalog-grid .design-card-preview {
    width: 100%;
    max-width: 100%;
  }
}

/* ── Library strip (pill inside tools band) ───────────────────────────────── */

.library-strip {
  padding: 0.5rem 2.5rem 5rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.library-strip-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(200, 169, 110, 0.04);
  border: 1px solid rgba(200, 169, 110, 0.15);
  border-radius: 8px;
}

.library-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.library-strip-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #d0c8bc;
  margin: 0;
}

.library-strip-lede {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.library-strip-ctas {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .library-strip { padding: 0.5rem 1.5rem 4rem; }
}

@media (max-width: 640px) {
  .library-strip { padding: 0.5rem 1.25rem 3.5rem; }
  .library-strip-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .library-strip-ctas { width: 100%; }
  .library-strip-ctas .btn-hero-primary,
  .library-strip-ctas .btn-hero-secondary { flex: 1; text-align: center; }
}

/* ── Landing Pro section ──────────────────────────────────────────────────── */
/* Sits in the landing's gold-on-dark vocabulary like every other section.
   Magenta is reserved for two signature moments only: the PRO badge (brand
   mark) and the Annual CTA (the actual ask). Everything else uses the same
   gold accent grammar as .hero-title, .capabilities-label, .recent-section,
   etc., so the section reads as part of the page rhythm, not an /pro island. */

.landing-pro {
  position: relative;
  border-top: 1px solid #181818;
  background: linear-gradient(180deg, #141414 0%, #121212 100%);
  padding: 6.5rem 2.5rem 7rem;
  overflow: hidden;
}

/* Soft Pro-purple atmosphere: two asymmetric radials at low opacity. Reads
   as tinted air, not a magenta panel — enough to mark this as "Pro territory"
   without breaking the landing's gold-on-dark rhythm. The stronger wash sits
   behind the visual on the right; a fainter companion on the left keeps the
   ambience balanced across the whole section. */
.landing-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 88% 50%, rgba(180, 30, 175, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 52% 72% at -18% 20%, rgba(98, 32, 90, 0.055) 0%, rgba(98, 32, 90, 0.022) 36%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.landing-pro-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 4rem;
  align-items: center;
}

.landing-pro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* Pro nudge pill — does identity + price anchor + action in a single line.
   On desktop, lives inside .landing-pro-copy at the bottom of the left
   column (.landing-pro-nudge--inline). On mobile, the inline variant is
   hidden and a duplicate (.landing-pro-nudge--end) sits as a grid sibling
   below the visual, centered, closing the section.
   Both share .landing-cta-pro-nudge so analytics fires from either.
   Note: visibility rules use 2-class selectors to beat the base rule
   regardless of source order. */
.landing-pro-nudge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, rgba(60, 22, 64, 0.55) 0%, rgba(98, 32, 90, 0.45) 100%);
  border: 1px solid rgba(210, 90, 195, 0.32);
  border-radius: 8px;
  color: #e8c8df;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 18px -4px rgba(180, 30, 175, 0.18);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

/* Default visibility: inline variant shows, end variant hides. Two-class
   specificity so source order doesn't matter. Mobile breakpoint flips both. */
.landing-pro-nudge.landing-pro-nudge--end {
  display: none;
}

.landing-pro-nudge:hover {
  border-color: rgba(225, 145, 210, 0.55);
  color: #f4d8eb;
  transform: translateY(-1px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 24px -4px rgba(205, 75, 185, 0.28);
}

/* Match the /pro hero PRO badge: squary plaque (4px radius), not a pill.
   Sits inside the nudge as a proper miniature of the real Pro badge mark. */
.landing-pro-nudge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.48rem;
  border-radius: 4px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(145deg, #3c1640 0%, #62205a 50%, #310d30 100%);
  border: 1px solid rgba(210, 90, 195, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(205, 75, 185, 0.3);
}

.landing-pro-nudge-mark-label {
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2cae8;
  text-shadow: 0 0 6px rgba(210, 90, 195, 0.5);
  line-height: 1;
}

.landing-pro-nudge-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  white-space: nowrap;
}

.landing-pro-nudge-text strong {
  color: #f4d8eb;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.landing-pro-nudge-arrow {
  opacity: 0.7;
  transition: transform 140ms ease, opacity 140ms ease;
  flex-shrink: 0;
}

.landing-pro-nudge:hover .landing-pro-nudge-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.landing-pro-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.landing-pro-eyebrow {
  margin-top: 0;
}

.landing-pro-new-badge {
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(210, 90, 195, 0.5);
  border-radius: 999px;
  background: rgba(210, 90, 195, 0.12);
  color: #f2cae8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(210, 90, 195, 0.35);
}

/* Matches .recent-section-title / .card-showcase-title / .designer-features-title
   so the Pro section sits in the same header rhythm as every other landing
   section, instead of using hero-scale proportions. */
.landing-pro-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
  color: #e8e0d5;
  text-wrap: balance;
}

.landing-pro-accent {
  color: #c8a96e;
}

/* Matches .recent-section-sub / .card-showcase-desc */
.landing-pro-lede {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
  margin: 0.5rem 0 0;
  max-width: 520px;
}

/* ── Visual: Scan Path feature preview ────────────────────────────────────── */

.landing-pro-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.landing-pro-demo {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #1a1a1a 0%, #161616 100%);
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 1rem 1rem 1.1rem;
  box-shadow:
    0 18px 50px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(200, 169, 110, 0.04);
}

.landing-pro-demo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(200, 169, 110, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
}


.landing-pro-demo-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-pro-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(210, 90, 195, 0.28);
  border-radius: 7px;
  background: rgba(210, 90, 195, 0.07);
}

.landing-pro-scan-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d8d8d8;
  white-space: nowrap;
}

.landing-pro-scan-pro {
  padding: 0.22rem 0.38rem;
  border-radius: 3px;
  background: linear-gradient(145deg, #3c1640 0%, #62205a 100%);
  border: 1px solid rgba(210, 90, 195, 0.5);
  color: #f2cae8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.landing-pro-scan-icon {
  color: #d080c0;
  flex-shrink: 0;
}

.landing-pro-scan-target {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.landing-pro-scan-target span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 120px;
  padding: 0.24rem 0.45rem;
  border: 1px solid #303030;
  border-radius: 4px;
  color: #c7b7c2;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-pro-scan-target-design img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-pro-scan-target span:last-child {
  border-color: rgba(210, 90, 195, 0.42);
  color: #f2cae8;
}

.landing-pro-scan-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid #292929;
  border-radius: 7px;
  background: #1a1a1a;
}

.landing-pro-scan-panel--primary {
  border-color: rgba(200, 169, 110, 0.24);
  background: linear-gradient(180deg, rgba(200, 169, 110, 0.08) 0%, #1a1a1a 72%);
}

.landing-pro-scan-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #686868;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-pro-scan-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.55rem;
  border: 1px solid #242424;
  border-radius: 5px;
  background: #161616;
  color: #8d8d8d;
  font-size: 0.72rem;
}

.landing-pro-scan-row img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: #131313;
  border: 1px solid #262626;
  border-radius: 4px;
  padding: 2px;
}

.landing-pro-scan-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-pro-scan-row b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #686868;
  font-size: 0.72rem;
}

.landing-pro-scan-row--best {
  border-color: rgba(210, 90, 195, 0.5);
  background: rgba(210, 90, 195, 0.08);
  color: #d6d6d6;
  box-shadow:
    0 0 14px rgba(210, 90, 195, 0.16),
    inset 0 0 0 1px rgba(210, 90, 195, 0.08);
}

.landing-pro-scan-row--best img {
  border-color: rgba(210, 90, 195, 0.42);
}

.landing-pro-scan-row--best b {
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(210, 90, 195, 0.55);
  border-radius: 3px;
  background: linear-gradient(145deg, #3c1640 0%, #62205a 100%);
  color: #f2cae8;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .landing-pro { padding: 5.5rem 2rem 6rem; }
  .landing-pro-inner { gap: 3rem; }
}

@media (max-width: 820px) {
  .landing-pro { padding: 4.5rem 1.5rem 5rem; }
  .landing-pro-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .landing-pro-demo {
    max-width: 480px;
    margin: 0 auto;
  }
  /* Swap nudge placement: inline copy variant hides, end-of-section variant
     shows and centers itself as a closing call below the preview. Two-class
     selectors keep the visibility rule winning over the base display. */
  .landing-pro-nudge.landing-pro-nudge--inline { display: none; }
  .landing-pro-nudge.landing-pro-nudge--end {
    display: inline-flex;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .landing-pro { padding: 3.75rem 1.25rem 4rem; }
  .landing-pro-title { font-size: 1.55rem; }
  .landing-pro-lede { font-size: 0.9rem; }
  .landing-pro-scan-head { align-items: flex-start; flex-direction: column; }
  .landing-pro-scan-target { width: 100%; }
  .landing-pro-scan-target span { max-width: none; flex: 1; }
}
