/* CSS Variables for Design System */
:root {
  --color-primary: #4C6EF5;
  --color-secondary: #7C3AED;
  --color-accent: #F59E0B;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8FAFC;
  --color-bg-tertiary: #F1F5F9;
  
  --color-text-primary: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-tertiary: #94A3B8;
  
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  font-size: var(--font-size-base);
}

.container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

/* Header */
.header {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
}

.logo h1 {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0;
}

.logo .tagline {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 400;
}

/* Hero Section */
.hero {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
}

/* Value Proposition */
.value-proposition {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

@media (min-width: 640px) {
  .value-proposition {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.value-icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
}

.value-item h3 {
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

.value-item p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--color-bg-primary);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--color-border);
}

.cta-section h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

.cta-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border: none;
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: var(--spacing-md);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-button:active {
  transform: translateY(0);
}

.privacy-note {
  color: var(--color-text-tertiary);
  margin: 0;
}

/* Network Preview */
.hero-visual {
  position: relative;
  height: 400px;
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.network-preview {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 110, 245, 0.05) 0%, transparent 50%);
}

.network-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.pulse-center {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: var(--font-size-lg);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(76, 110, 245, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 110, 245, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(76, 110, 245, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 110, 245, 0);
  }
}

.connection-hint {
  margin-top: var(--spacing-xl);
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.connection-hint span {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.connection-hint span:nth-child(1) { animation-delay: 1s; }
.connection-hint span:nth-child(2) { animation-delay: 1.2s; }
.connection-hint span:nth-child(3) { animation-delay: 1.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preview Network Animation */
.preview-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.6;
  }
}

.preview-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
  opacity: 0.2;
  animation: shimmer 4s ease-in-out infinite;
}

.preview-line:nth-child(n+9):nth-child(-n+13) {
  width: 60px;
  top: 45%;
  left: 30%;
  transform-origin: left center;
  transform: rotate(45deg);
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Demo Explanation Section */
.demo-explanation {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-secondary);
}

.demo-explanation h3 {
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-3xl);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--color-bg-primary);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
}

.step-content h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.step-content p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.footer p {
  color: var(--color-text-tertiary);
  margin-bottom: var(--spacing-md);
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer em {
  color: var(--color-primary);
  font-style: normal;
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .pulse-center {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-base);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }