/* NeuNuc Ecosystem — Shared Design System */

:root {
  --bg-deep: #08080c;
  --bg-surface: #0f0f16;
  --bg-elevated: #16161f;
  --bg-glass: rgba(22, 22, 31, 0.72);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent: #a78bfa;
  --accent-2: #67e8f9;
  --accent-glow: rgba(167, 139, 250, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --max-width: 1120px;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); max-width: 65ch; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* Layout */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-surface); }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-weight: 700; font-size: 1.25rem; color: var(--text-primary); letter-spacing: -0.03em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent); color: var(--bg-deep); padding: 8px 18px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
}

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -20%; width: 70%; height: 140%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; right: -20%; width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(103, 232, 249, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-label {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border-strong);
  border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg-deep); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 60px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--border-strong); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px;
  backdrop-filter: blur(12px); transition: all 0.3s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-glow); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; color: var(--text-primary); }
.card p { font-size: 0.9rem; line-height: 1.5; }

/* Sections */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { margin: 0 auto; font-size: 1.1rem; }

/* Maturity labels */
.maturity {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.maturity-live { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.maturity-beta { background: rgba(167, 139, 250, 0.12); color: var(--accent); }
.maturity-alpha { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.maturity-planned { background: rgba(100, 116, 139, 0.12); color: #64748b; }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 60px 0 40px;
  background: var(--bg-surface);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 24px; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* Ecosystem badge */
.ecosystem-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; color: var(--text-secondary);
}
.ecosystem-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
