/* ========================================
   seed.d-nd.com — Shared Design System
   ======================================== */

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

:root {
  --void: #0a0e1a;
  --surface: #111827;
  --card: #1a2332;
  --card-hover: #1f2b3d;
  --border: rgba(255,255,255,0.06);
  --border-active: rgba(255,255,255,0.12);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6,182,212,0.15);
  --emerald: #10b981;
  --emerald-glow: rgba(16,185,129,0.15);
  --purple: #8b5cf6;
  --purple-glow: rgba(139,92,246,0.15);
  --rose: #f43f5e;
  --rose-glow: rgba(244,63,94,0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245,158,11,0.15);
  --text: #f1f5f9;
  --muted: #a3b1c4;
  --dim: #8494a7;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Layout --- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

.section-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Nav --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Space Grotesk', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--cyan); }
nav a.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 32px;
  transition: color 0.2s;
}
nav a.nav-link:hover { color: var(--text); }
nav a.nav-link.active { color: var(--cyan); }
.nav-links { display: flex; align-items: center; }

/* --- Buttons --- */
.cta-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cyan);
  color: var(--void);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.cta-primary:hover {
  background: #0dd3f0;
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-1px);
}
.cta-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border-active);
  transition: all 0.2s;
}
.cta-secondary:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* --- Tags --- */
.tag {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}
.tag-live { background: var(--emerald-glow); color: var(--emerald); }
.tag-free { background: var(--cyan-glow); color: var(--cyan); }
.tag-soon { background: var(--purple-glow); color: var(--purple); }
.tag-pro { background: var(--amber-glow); color: var(--amber); }

/* --- Hero (page-level) --- */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 24px;
  position: relative;
}
.page-hero .breadcrumb a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero .breadcrumb a:hover { color: var(--cyan); }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero .hero-desc {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--border-active);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Catalog Grid --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.catalog-card {
  position: relative;
  overflow: hidden;
}
.catalog-card .card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -28px -28px 20px;
  padding: 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.catalog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-card .card-meta .tag { margin-bottom: 0; }
.catalog-card .card-repo {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--dim);
}
.catalog-card .card-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}
.catalog-card .card-stats span {
  font-family: 'Space Grotesk', monospace;
}

/* --- Feature Grid (inside module pages) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Infographic Container --- */
.infographic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.infographic::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}
.infographic h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 32px;
  position: relative;
}
.infographic svg {
  width: 100%;
  height: auto;
  position: relative;
}

/* --- Install Section --- */
.install-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.install-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 400px;
}
.install-tab {
  flex: 1;
  padding: 10px 16px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  color: var(--dim);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.install-tab.active {
  background: var(--cyan-glow);
  color: var(--cyan);
}
.install-tab:not(:last-child) { border-right: 1px solid var(--border); }
.install-content { display: none; }
.install-content.active { display: block; }
.install-content pre {
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  font-size: 13px;
  color: var(--emerald);
  font-family: 'Space Grotesk', monospace;
  overflow-x: auto;
  position: relative;
}
.install-content .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Space Grotesk', monospace;
  transition: all 0.2s;
}
.install-content .copy-btn:hover { color: var(--text); border-color: var(--muted); }
.install-steps {
  margin-top: 32px;
}
.install-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.install-step .step-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-glow);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.install-step code {
  background: var(--void);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: var(--emerald);
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.data-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-active);
}
.data-table td {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.data-table td:first-child {
  font-family: 'Space Grotesk', monospace;
  color: var(--text);
  font-weight: 500;
}
.data-table tr:hover td {
  background: var(--card);
}

/* --- Footer --- */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: 13px;
  color: var(--dim);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-left: 24px;
}
footer a:hover { color: var(--text); }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease both;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .page-hero { padding: 120px 0 48px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-secondary { margin-left: 0; }
  footer .container { flex-direction: column; gap: 16px; text-align: center; }
  footer a { margin-left: 12px; }
}
