/* Goodlady Design System - Shared Styles */
/* Adapted from Goodlady Finance design language with neumorphism */

:root {
  /* Brand Colors */
  --primary: #1a1a1a;
  --primary-light: #2a2a2a;
  --accent: #6c5ce7;
  --accent-dark: #5a4ad1;
  --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --accent-gradient-text: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Neutral Colors */
  --text: #1a1a1a;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --bg-dark: #0a0a0a;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  /* 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);

  /* Neumorphism Shadows */
  --neu-shadow-light: -6px -6px 12px rgba(255, 255, 255, 0.95);
  --neu-shadow-dark: 6px 6px 12px rgba(0, 0, 0, 0.12);
  --neu-shadow-inset-light: inset -3px -3px 6px rgba(255, 255, 255, 0.95);
  --neu-shadow-inset-dark: inset 3px 3px 6px rgba(0, 0, 0, 0.12);
  --neu-shadow-pressed: inset 3px 3px 6px rgba(0, 0, 0, 0.15), inset -3px -3px 6px rgba(255, 255, 255, 0.8);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(162, 155, 254, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
  border-radius: 24px;
}

.btn-primary:hover {
  background: var(--accent-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--neu-shadow-dark), var(--neu-shadow-light);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12), -8px -8px 16px rgba(255, 255, 255, 0.95);
}

.btn-secondary:active {
  box-shadow: var(--neu-shadow-pressed);
}

.btn-dark {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--neu-shadow-dark), var(--neu-shadow-light);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), -10px -10px 20px rgba(255, 255, 255, 0.1);
}

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

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
}

/* Cards */
.card {
  background: var(--bg);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--neu-shadow-dark), var(--neu-shadow-light);
}

.card:hover {
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15), -8px -8px 16px rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
}

.card-dark {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--neu-shadow-dark), var(--neu-shadow-light);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--neu-shadow-inset-dark), var(--neu-shadow-inset-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: var(--neu-shadow-inset-dark), var(--neu-shadow-inset-light), 0 0 0 3px rgba(108, 92, 231, 0.2);
}

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

/* ManyChat-style Form */
.manychat-form {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 0 auto;
}

.manychat-form h2 {
  margin-bottom: 24px;
  text-align: center;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manychat-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.manychat-form input,
.manychat-form textarea,
.manychat-form select {
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  box-shadow: none;
}

.manychat-form input:focus,
.manychat-form textarea:focus,
.manychat-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.manychat-form button {
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.manychat-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.manychat-form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.manychat-form .success-message {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  margin-top: 20px;
  animation: slideUp 0.5s ease;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
}

.badge-accent {
  background: var(--accent);
  color: var(--primary);
}

.badge-dark {
  background: var(--primary);
  color: var(--bg);
}

/* Section */
.section {
  padding: var(--space-2xl) 0;
}

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

.section-dark {
  background: var(--primary);
  color: var(--bg);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark p {
  color: var(--bg);
}

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

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

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

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

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

/* Flex */
.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-tertiary); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Spacing Utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Header */
.header {
  background: var(--bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(232, 236, 239, 0.9);
  box-shadow: var(--neu-shadow-dark), var(--neu-shadow-light);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.header-logo {
  height: 48px;
  width: auto;
}

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

.header-nav a {
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.header-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
  box-shadow: var(--neu-shadow-inset-dark), var(--neu-shadow-inset-light);
}

/* Hero */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--bg);
}

.hero h1 {
  margin-bottom: var(--space-md);
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--bg);
  padding: var(--space-2xl) 0;
  font-size: 0.875rem;
}

.footer a {
  color: var(--text-tertiary);
}

.footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}