/* ==========================================================================
   Project NEXUS Sales Site — Styles
   Dark theme with indigo/purple gradient accents
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #2a2a3a;
  --border-light: #3a3a4f;
  --text: #e8e8ed;
  --text-muted: #9898a8;
  --text-subtle: #6b6b80;
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #6366f1;
  --accent: #a78bfa;
  --gradient-start: #818cf8;
  --gradient-end: #a78bfa;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .fade-in:nth-child(2) { transition-delay: 0.05s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.15s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.2s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.25s; }
.features-grid .fade-in:nth-child(7) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(8) { transition-delay: 0.35s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border-light);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover { color: var(--text); }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-link {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-link:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
  bottom: -100px;
  right: 10%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, black, transparent);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(129, 140, 248, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(129, 140, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--icon-color, var(--primary));
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Steps (How It Works) ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-number {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(129, 140, 248, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary-light);
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--border-light), var(--border));
  margin-top: 4.5rem;
  flex-shrink: 0;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.value-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.value-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-subtle);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  -webkit-text-stroke: 1px var(--border);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 4rem 0 6rem;
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(167, 139, 250, 0.1));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-actions {
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo {
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 320px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--border), var(--border-light), var(--border));
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ---------- Focus styles (a11y) ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Additional styles for open source redesign
   ========================================================================== */

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(129, 140, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--icon-color, var(--primary));
}

.pillar-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Feature Categories ---------- */
.feature-category {
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(129, 140, 248, 0.03);
}

.category-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(129, 140, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-color, var(--primary));
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.25rem 0;
}

.feature-item {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(42, 42, 58, 0.6);
}

.feature-item strong {
  color: var(--text);
}

/* ---------- Federation ---------- */
.federation-section {
  text-align: center;
}

.federation-inner {
  max-width: 900px;
  margin: 0 auto;
}

.federation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.08);
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.federation-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.federation-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 auto 3rem;
  line-height: 1.8;
  max-width: 700px;
}

.federation-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.fed-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.fed-item:hover {
  border-color: var(--border-light);
}

.fed-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.125rem;
}

.fed-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.fed-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.federation-cta-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---------- Communities ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.community-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.community-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.community-card-cta {
  border-style: dashed;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(167, 139, 250, 0.04));
}

.community-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.community-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(129, 140, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-color, var(--primary));
}

.community-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: rgba(110, 231, 183, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.2);
}

.community-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.community-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: color var(--transition);
  margin-top: auto;
}

.community-link:hover {
  color: var(--primary);
}

/* ---------- Tech Stack ---------- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--t, var(--text));
  transition: all var(--transition);
  cursor: default;
}

.tech-badge:hover {
  border-color: var(--t, var(--border-light));
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* ---------- Get Started ---------- */
.get-started-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.get-started-code {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-title {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-left: auto;
  font-family: monospace;
}

.code-block {
  display: block;
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.9;
  color: #c9d1d9;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}

.code-comment {
  color: #5c6370;
}

.get-started-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gs-link-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.gs-link-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.125rem;
}

.gs-link-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
}

.gs-link-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.125rem 0 0;
  line-height: 1.4;
}

/* ---------- V2 Preview ---------- */
.v2-card {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(167, 139, 250, 0.07));
  border: 1px solid rgba(129, 140, 248, 0.2);
  position: relative;
  overflow: hidden;
}

.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.08);
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.v2-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.v2-card > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.v2-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.v2-item {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Contributors ---------- */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contributor-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.contributor-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.contributor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
}

.contributor-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contributor-role {
  font-size: 0.8125rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.contributor-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.acknowledgements {
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

/* ---------- CTA additions ---------- */
.cta-quote {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 1.5rem auto 2.5rem;
  max-width: 600px;
  opacity: 0.85;
}

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

/* ---------- Footer additions ---------- */
.footer-grid-5 {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

.footer-tagline {
  line-height: 1.6;
}

.footer-license {
  margin-top: 1rem;
}

.license-badge {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(129, 140, 248, 0.2);
  letter-spacing: 0.04em;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 1024px) {
  .footer-grid-5 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contributors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .get-started-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .federation-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .federation-features {
    grid-template-columns: 1fr;
  }

  .footer-grid-5 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .contributors-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid-5 {
    grid-template-columns: 1fr;
  }
}
