/* =========================================
   LAUNCHPAD LISTING — STRIPE LIGHT THEME
   ========================================= */

:root {
  --bg:               #ffffff;
  --bg-subtle:        #f7f7f8;
  --bg-section:       #f3f4f6;
  --border:           #e5e7eb;
  --border-strong:    #d1d5db;
  --primary:          #5046e5;
  --primary-hover:    #4338ca;
  --primary-bg:       #eef2ff;
  --primary-border:   #c7d2fe;
  --text:             #111827;
  --text-2:           #374151;
  --text-3:           #6b7280;
  --text-4:           #9ca3af;
  --success:          #16a34a;
  --success-bg:       #f0fdf4;
  --success-border:   #bbf7d0;
  --error:            #dc2626;
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:        0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --font:             'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:             'JetBrains Mono', 'Fira Code', monospace;
  --radius:           6px;
  --radius-lg:        10px;
  --radius-xl:        14px;
  --transition:       all 0.18s cubic-bezier(0.16,1,0.3,1);
  /* legacy aliases */
  --stellar-black:    #111827;
  --stellar-yellow:   #5046e5;
  --stellar-yellow-hover: #4338ca;
  --bg-cream:         #f7f7f8;
  --bg-cream-alt:     #f3f4f6;
  --text-muted:       #6b7280;
  --text-light:       #9ca3af;
  --border-light:     #e5e7eb;
  --border-medium:    #d1d5db;
  --shadow-card:      0 4px 12px rgba(0,0,0,0.08);
  --shadow-lift:      0 12px 32px rgba(0,0,0,0.10);
  --shadow-yellow:    0 2px 8px rgba(80,70,229,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body { font-family: var(--font); background: var(--bg-subtle); color: var(--text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   NAV
   ========================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }

.nav-logo { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo-orb { width: 24px; height: 24px; background: var(--primary); border-radius: var(--radius); flex-shrink: 0; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-3);
  padding: 6px 10px; border-radius: var(--radius); transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-links a.nav-active { color: var(--primary); background: var(--primary-bg); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.chain-id-wrap { display: flex; align-items: center; }

.mobile-toggle { display: none; background: transparent; border: none; color: var(--text); font-size: 20px; cursor: pointer; }
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--bg); z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transform: translateY(-100%); transition: transform 0.35s ease;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { color: var(--text); font-size: 18px; font-weight: 600; }

/* =========================================
   HERO
   ========================================= */
.hero-section {
  position: relative; margin-top: 60px;
  background: var(--bg); overflow: hidden;
  padding: 64px 0 52px; border-bottom: 1px solid var(--border);
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(80,70,229,0.05) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(80,70,229,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; text-align: center; }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 20px; }
.breadcrumb a, .breadcrumb span { font-size: 12px; font-weight: 500; color: var(--text-4); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { color: var(--text-4); flex-shrink: 0; }

.hero-title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.hero-desc { font-size: 16px; color: var(--text-3); max-width: 560px; margin: 0 auto 40px; line-height: 1.6; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  padding: 20px 32px; background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-xl); max-width: fit-content; margin: 0 auto;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* =========================================
   TOKENIZATION SECTION
   ========================================= */
.tokenization-section {
  background: var(--bg); padding: 72px 40px;
  border-bottom: 1px solid var(--border);
}
.tokenization-inner { max-width: 1120px; margin: 0 auto; }
.tokenization-header { text-align: center; margin-bottom: 48px; }
.tokenization-header h2 { font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 10px; }
.tokenization-header p { font-size: 15px; color: var(--text-3); max-width: 520px; margin: 0 auto; }
.tokenization-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tokenization-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: var(--transition); position: relative; overflow: hidden;
}
.tokenization-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--border); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.tokenization-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.tokenization-card:hover::before { transform: scaleX(1); background: var(--primary); }
.token-icon {
  width: 48px; height: 48px; background: var(--primary-bg);
  border: 1px solid var(--primary-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.token-icon svg { stroke: var(--primary); }
.tokenization-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.tokenization-card p { font-size: 13px; line-height: 1.7; color: var(--text-3); }

/* =========================================
   PAGE BODY
   ========================================= */
.page-body { max-width: 1200px; margin: 0 auto; padding: 40px 40px 80px; }

/* =========================================
   FILTERS
   ========================================= */
.filters-section {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text-3);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); min-width: 260px;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.search-box svg { color: var(--text-4); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; outline: none; font-family: var(--font);
  font-size: 13px; color: var(--text); background: transparent;
}
.search-box input::placeholder { color: var(--text-4); }

/* =========================================
   PROJECTS GRID
   ========================================= */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.project-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; transition: var(--transition); cursor: pointer; position: relative;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.project-banner-img {
  width: 100%; height: 160px; object-fit: cover;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-section) 100%);
}

.project-content { padding: 20px; }
.project-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.project-logo {
  width: 48px; height: 48px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  object-fit: contain; background: var(--bg); padding: 6px; flex-shrink: 0;
}
.project-info { flex: 1; min-width: 0; }
.project-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 3px; }
.project-symbol { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-4); text-transform: uppercase; }

.project-status-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.status-active { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.status-upcoming { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary-border); }
.status-completed { background: var(--bg-subtle); color: var(--text-4); border: 1px solid var(--border); }

.project-description {
  font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.project-progress { margin-bottom: 14px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.progress-label { font-size: 11px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; }
.progress-percentage { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--success); }
.progress-bar { height: 6px; background: var(--bg-subtle); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, #818cf8 100%); border-radius: 3px; transition: width 0.6s ease; }

.project-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-item { padding: 10px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-item-label { font-size: 10px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.stat-item-value { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }

.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); gap: 10px;
}
.project-networks { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.networks-label { font-size: 11px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; }
.network-icons-list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.network-icon-small {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: var(--transition);
}
.network-icon-small:hover { transform: scale(1.1); border-color: var(--primary-border); }
.network-icon-small img { width: 14px; height: 14px; object-fit: contain; }
.project-chain { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.chain-icon { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); }

.view-project-btn {
  padding: 7px 14px; background: var(--primary); border: none; border-radius: var(--radius);
  font-size: 12px; font-weight: 500; color: #fff; cursor: pointer; transition: var(--transition);
}
.view-project-btn:hover { background: var(--primary-hover); box-shadow: 0 2px 6px rgba(80,70,229,0.3); }

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state svg { color: var(--text-4); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-3); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .tokenization-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-inner { padding: 0 20px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { width: 100%; height: 1px; }
  .tokenization-section { padding: 52px 20px; }
  .tokenization-header h2 { font-size: 26px; }
  .tokenization-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-body { padding: 28px 20px 60px; }
  .filters-section { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-stats .stat-item:last-child { grid-column: 1 / -1; }
  .project-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .project-networks { justify-content: center; }
  .view-project-btn { width: 100%; text-align: center; }
}
