:root {
  /* Color Palette - Hybrid Sovereign */
  --bg-foundation: #000000;
  --bg-surface-low: #0d0d0d;
  --bg-surface-mid: #1a1a1a;
  --bg-surface-high: #2a2a2a;
  
  --accent-primary: #00ff41;
  --accent-primary-dim: #008f24;
  
  --text-primary: #e2e2e2;
  --text-secondary: #b9ccb2;
  --text-dim: #5c6b57;
  
  --border-ghost: rgba(59, 75, 55, 0.2);
  --border-active: rgba(0, 255, 65, 0.3);
  
  /* Typography */
  --font-main: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
  
  /* Geometry */
  --radius-card: 12px;
  --radius-sharp: 0px;
  
  /* Animation */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-foundation);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Base Terminal Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 3px, 3px 100%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.3;
}

h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Components --- */

/* Glass Cards */
.glass-card {
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  background: rgba(20, 20, 20, 0.7);
}

/* Terminal Snippet */
.terminal-block {
  background: #000;
  border: 1px solid var(--bg-surface-high);
  border-radius: var(--radius-sharp);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-block .prompt {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.terminal-block .copy-btn {
  background: transparent;
  border: 1px solid var(--border-ghost);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-block .copy-btn:hover {
  background: var(--bg-surface-mid);
  color: var(--accent-primary);
}

/* --- Navigation --- */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-ghost);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 2px;
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  line-height: 0.9;
  color: var(--accent-primary);
  text-shadow: 
    0 0 10px rgba(0, 255, 65, 0.4),
    0 0 20px rgba(0, 255, 65, 0.2);
  position: relative;
}

/* Matrix scanline effect for title */
.hero h1::after {
  content: "SYNAX CLI";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  opacity: 0.8;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero .terminal-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

/* --- Workflow Section --- */
.workflow {
  padding: 6rem 0;
  border-top: 1px solid var(--border-ghost);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.step-card {
  position: relative;
  padding-top: 2rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  color: var(--bg-surface-high);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  z-index: -1;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.step-card:hover .step-number {
  color: var(--accent-primary-dim);
  opacity: 0.3;
}

.step-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.mini-terminal {
  display: block;
  background: var(--bg-surface-low);
  border-left: 2px solid var(--accent-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* --- Philosophy Section --- */
.philosophy {
  padding: 6rem 0;
  border-top: 1px solid var(--border-ghost);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.phil-item h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.phil-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Registry Section --- */
.registry {
  padding: 6rem 0;
  border-top: 1px solid var(--border-ghost);
  background: linear-gradient(to bottom, #000000, #050505);
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
}

.registry-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.col-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--accent-primary-dim);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2rem;
}

.skill-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.skill-item span {
  display: block;
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* --- Social & Contribution --- */
.social-prompt {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  border: 1px dashed var(--border-ghost);
  border-radius: var(--radius-card);
}

.social-prompt h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.social-prompt p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* --- Support/Sponsorship --- */
.support-section {
  text-align: center;
  margin-top: 6rem;
  padding: 4rem 2rem;
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-card);
}

.qr-wrapper {
  margin: 2rem auto;
  width: 180px;
  height: 180px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.qr-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.support-section .btn-cta {
  background: #fff;
  color: #000;
  margin-top: 1rem;
}

.support-section .btn-cta:hover {
  background: var(--accent-primary);
  color: #000;
}

.btn-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-primary);
  color: var(--bg-foundation);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: var(--radius-sharp);
  transition: var(--transition-fast);
}

.btn-cta:hover {
  background: #fff;
  transform: scale(1.05);
}

.contribute-grid {
  margin-top: 4rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border-ghost);
}

/* Contribution Form Styles */
.contribution-card {
  margin-top: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 1px solid var(--border-active);
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.05), rgba(0, 0, 0, 0.8));
}

.contribution-card .card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contribution-card h3 {
  margin-bottom: 0;
  color: var(--accent-primary);
}

.contribution-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pp-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.amount-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.amount-btn {
  cursor: pointer;
}

.amount-btn input {
  display: none;
}

.amount-btn span {
  display: block;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-ghost);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.amount-btn input:checked + span {
  background: var(--accent-primary);
  color: var(--bg-foundation);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.amount-btn:hover span {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.donate-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1rem;
  letter-spacing: 0.2rem;
}

.secure-tag {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1rem;
}

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

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 65, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

/* --- Footer --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-ghost);
  margin-top: 4rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.footer-meta span {
  display: block;
  margin-bottom: 0.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
}
