/* ========================================
   SYNCLAIR — Main Stylesheet
   From Movement to Meaning
   ======================================== */

/* ----------------------------------------
   CSS Variables (Brand System)
   ---------------------------------------- */
:root {
  /* Domain Colors */
  --color-syn: #8B5CF6;
  --color-stb: #0047FF;
  --color-mov: #00D9FF;
  --color-pat: #14B8A6;
  --color-geo: #334155;
  
  /* Brand Colors */
  --color-neural-blue: #0047FF;
  --color-kinetic-cyan: #00D9FF;
  --color-synergy-purple: #8B5CF6;
  --color-pattern-teal: #14B8A6;
  --color-deep-space: #0A0E27;
  --color-lab-white: #F8FAFC;
  
  /* Neutrals */
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-300: #CBD5E1;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  
  /* Semantic */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow-cyan: 0 0 30px rgba(0, 217, 255, 0.3);
  --shadow-glow-blue: 0 0 30px rgba(0, 71, 255, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0047FF 0%, #8B5CF6 50%, #00D9FF 100%);
  --gradient-dark: linear-gradient(135deg, #0A0E27 0%, #1E293B 100%);
  --gradient-hero: linear-gradient(180deg, #0A0E27 0%, #0F172A 50%, #0A0E27 100%);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--color-deep-space);
  color: var(--color-lab-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
}

p {
  color: var(--color-slate-300);
  line-height: 1.7;
}

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

a:hover {
  color: var(--color-lab-white);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Synclair Name - Bicolor */
.synclair-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.synclair-name .sync {
  color: var(--color-kinetic-cyan);
}

.synclair-name .lair {
  color: var(--color-lab-white);
}

/* Monospace for data */
.mono {
  font-family: var(--font-mono);
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.nav.scrolled {
  padding: var(--space-3) var(--space-6);
  background: rgba(10, 14, 39, 0.95);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.25rem;
}

.nav-links {
  display: none;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--color-slate-400);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-kinetic-cyan);
  transition: width var(--transition-base);
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-lab-white);
  transition: all var(--transition-fast);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: var(--space-4) 0;
  color: var(--color-slate-300);
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-kinetic-cyan);
  color: var(--color-deep-space);
}

.btn-primary:hover {
  background: #5ee8ff;
  color: var(--color-deep-space);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary {
  background: transparent;
  color: var(--color-kinetic-cyan);
  border: 2px solid var(--color-kinetic-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--color-kinetic-cyan);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-lab-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-lab-white);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-24) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

/* Animated gradient orbs */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero-bg::before {
  width: 600px;
  height: 600px;
  background: var(--color-neural-blue);
  top: -200px;
  right: -100px;
  animation-delay: -5s;
}

.hero-bg::after {
  width: 500px;
  height: 500px;
  background: var(--color-synergy-purple);
  bottom: -150px;
  left: -100px;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-kinetic-cyan);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-kinetic-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
  display: block;
  color: var(--color-kinetic-cyan);
  text-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-slate-400);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------
   Stats Section
   ---------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-kinetic-cyan);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 217, 255, 0.2);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

.card-icon.syn { background: rgba(139, 92, 246, 0.15); }
.card-icon.stb { background: rgba(0, 71, 255, 0.15); }
.card-icon.mov { background: rgba(0, 217, 255, 0.15); }
.card-icon.pat { background: rgba(20, 184, 166, 0.15); }

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  font-size: 0.9375rem;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

/* ----------------------------------------
   Section Headers
   ---------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-kinetic-cyan);
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1.125rem;
}

/* ----------------------------------------
   Problem Section
   ---------------------------------------- */
.problem-section {
  background: var(--color-slate-900);
  position: relative;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
}

/* ----------------------------------------
   Pillars Section
   ---------------------------------------- */
.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-slate-500);
  margin-bottom: var(--space-4);
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-synergy-purple);
  margin-bottom: var(--space-6);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  padding: var(--space-16) var(--space-6) var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo img {
  height: 36px;
}

.footer-tagline {
  color: var(--color-slate-400);
  font-style: italic;
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-8);
}

.footer-nav a {
  color: var(--color-slate-400);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-kinetic-cyan);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  color: var(--color-slate-600);
  font-size: 0.875rem;
}

.footer-location {
  color: var(--color-slate-500);
  font-size: 0.875rem;
}

/* ----------------------------------------
   Utilities
   ---------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

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

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

/* ----------------------------------------
   Page-specific: Vision
   ---------------------------------------- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
}

.article-content h1 {
  margin-bottom: var(--space-8);
}

.article-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  color: var(--color-kinetic-cyan);
}

.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-content p {
  margin-bottom: var(--space-6);
}

.article-content blockquote {
  border-left: 3px solid var(--color-kinetic-cyan);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-slate-300);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
  color: var(--color-slate-300);
}

.article-content li {
  margin-bottom: var(--space-2);
}

/* ----------------------------------------
   Page-specific: Beta
   ---------------------------------------- */
.beta-hero {
  padding-top: var(--space-24);
}

.beta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.beta-feature {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(30, 41, 59, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.beta-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-kinetic-cyan);
  font-size: 1.25rem;
}

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-300);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-lab-white);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-kinetic-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-slate-500);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}
