/* Design System Tokens - Synth Nova */
:root {
  /* Colors */
  --sn-bg: #FFFFFF;
  --sn-bg-dark: #0F1115;
  --sn-fg: #0B0D10;
  --sn-fg-secondary: #5B6675;
  
  /* Accent Colors */
  --sn-accent: #7C4DFF;
  --sn-accent-light: rgba(124, 77, 255, 0.1);
  --sn-gradient: linear-gradient(90deg, #7C4DFF 0%, #00E5FF 50%, #00FFA9 100%);
  
  /* Status Colors */
  --sn-success: #12D47B;
  --sn-warning: #FFC400;
  --sn-danger: #FF4D4F;
  
  /* Borders & Shadows */
  --sn-border: rgba(15, 17, 21, 0.08);
  --sn-shadow-sm: 0 2px 8px rgba(15, 17, 21, 0.04);
  --sn-shadow-md: 0 4px 16px rgba(15, 17, 21, 0.08);
  --sn-shadow-lg: 0 8px 32px rgba(15, 17, 21, 0.12);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing (8px base) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-12: 6rem;    /* 96px */
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.22, 0.68, 0, 1.71);
  --transition-base: 260ms cubic-bezier(0.22, 0.68, 0, 1.71);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--sn-fg);
  background: var(--sn-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  line-height: 1.2;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #6B7280;
  max-width: 65ch;
}

a {
  color: var(--sn-accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Gradient Text */
.gradient-text {
  background: var(--sn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sn-gradient);
  color: white;
  box-shadow: var(--sn-shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sn-shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--sn-accent);
  border: 2px solid var(--sn-accent);
}

.btn-secondary:hover {
  background: var(--sn-accent-light);
}

/* Card Styles */
.card {
  background: white;
  border: 1px solid var(--sn-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
  box-shadow: var(--sn-shadow-sm);
}

.card:hover {
  box-shadow: var(--sn-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(124, 77, 255, 0.2);
}

/* Noise Texture Overlay */
.noise-overlay {
  position: relative;
  overflow: hidden;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* Section Spacing */
section {
  padding: var(--space-12) 0;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-12: 4rem;
  }
  
  section {
    padding: var(--space-8) 0;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    width: 100%;
  }
  
  .card {
    padding: var(--space-3);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  p {
    font-size: 1rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-secondary { color: var(--sn-fg-secondary); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

/* Smooth scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Better list spacing */
ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--sn-accent);
  outline-offset: 2px;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}
