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

:root {
  /* Color Palette */
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #eef2ff;
  --secondary: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #fafbfc;
  --success: #059669;
  --warning: #dc2626;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Shadows */
  --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);
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

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

.container--wide {
  max-width: 1400px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: var(--space-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.25rem;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Navigation */
.nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: var(--space-2xl);
  align-items: center;
}

.nav__menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav__menu a:hover {
  color: var(--text-primary);
}

.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav__menu a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--primary) !important;
  color: white !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-md);
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.section--hero {
  padding: var(--space-4xl) 0 var(--space-4xl);
  text-align: center;
  background: #000000;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section--hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
  z-index: -1;
}

.section--light {
  background-color: var(--bg-secondary);
}

.section--accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.section--accent h2,
.section--accent h3,
.section--accent p {
  color: white;
}

.section--bordered {
  border-top: 1px solid var(--border);
}

/* Hero */
.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero__subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Hero section specific overrides */
.section--hero .hero__headline,
.section--hero .hero__subhead {
  color: #ffffff;
}

.section--hero .hero__subhead {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

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

.btn--secondary:hover {
  background: var(--primary);
  color: white;
}

/* Hero section button - white on black background */
.section--hero .btn {
  background: white;
  color: #000000;
  font-weight: 700;
}

.section--hero .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  transform: translateY(-2px);
}

/* Enhanced Lists */
.problem-list,
.solution-list {
  list-style: none;
  margin: var(--space-xl) 0;
  display: grid;
  gap: var(--space-md);
}

.problem-list li,
.solution-list li {
  padding: var(--space-md) var(--space-lg);
  position: relative;
  padding-left: var(--space-2xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: var(--space-sm);
}

.problem-list li {
  border-left-color: var(--warning);
  background: #fef2f2;
}

.solution-list li {
  border-left-color: var(--success);
  background: #f0fdf4;
}

.problem-list li::before {
  content: "✕";
  color: var(--warning);
  font-weight: 700;
  font-size: 1.2rem;
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
}

.solution-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  font-size: 1.2rem;
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
}

.problem-list li:hover,
.solution-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Layout Grids */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.four-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

/* Fit/Not Fit Section */
.fit-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.fit-box,
.not-fit-box {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.2s ease;
}

.fit-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: var(--success);
}

.not-fit-box {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: var(--warning);
}

.fit-box:hover,
.not-fit-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fit-box h3,
.not-fit-box h3 {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fit-box h3::before {
  content: "✅";
  font-size: 1.25rem;
}

.not-fit-box h3::before {
  content: "❌";
  font-size: 1.25rem;
}

.fit-box ul,
.not-fit-box ul {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.fit-box li,
.not-fit-box li {
  padding-left: var(--space-lg);
  position: relative;
}

.fit-box li::before {
  content: "•";
  color: var(--success);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.not-fit-box li::before {
  content: "•";
  color: var(--warning);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Process Steps */
.process-steps {
  margin: 3rem 0;
}

.step {
  margin-bottom: 2rem;
  padding-left: 3rem;
  position: relative;
}

.step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: #3498db;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.process-steps {
  counter-reset: step-counter;
}

/* Calendar Section */
.calendar-section {
  text-align: center;
  padding: 3rem 0;
}

.calendar-embed {
  max-width: 600px;
  margin: 2rem auto;
  min-height: 600px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-xl);
    border-right: 1px solid var(--border);
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
  }
  
  .nav__menu.active {
    left: 0;
  }
  
  .nav__menu a::after {
    display: none;
  }
  
  .nav__menu a {
    font-size: 1.1rem;
    padding: var(--space-sm) 0;
    width: 100%;
  }
  
  .nav__cta {
    margin-top: var(--space-lg) !important;
    text-align: center;
    width: 100%;
  }
  
  .container {
    padding: 0 var(--space-lg);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .section--hero {
    padding: var(--space-3xl) 0;
  }
  
  .two-column,
  .fit-section,
  .three-column,
  .four-column {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .nav .container {
    padding: var(--space-lg);
  }
  
  /* Mobile typography adjustments */
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }
  
  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
  
  .hero__headline {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .hero__subhead {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
  
  .lead {
    font-size: 1.125rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  /* Mobile button adjustments */
  .btn {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn--large {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.1rem;
  }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav .container {
    padding: var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section--hero {
    padding: var(--space-2xl) 0;
  }
  
  .nav__menu {
    width: 100%;
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .hero__headline {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }
  
  .two-column,
  .fit-section {
    gap: var(--space-md);
  }
  
  .process-card,
  .fit-box,
  .not-fit-box {
    padding: var(--space-lg);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets for mobile */
  .nav__menu a {
    padding: var(--space-lg) var(--space-sm);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .btn {
    min-height: 48px;
    padding: var(--space-lg) var(--space-xl);
  }
  
  .mobile-menu-toggle {
    min-height: 48px;
    min-width: 48px;
    padding: var(--space-md);
  }
  
  /* Remove hover effects on touch devices */
  .process-card:hover,
  .solution-list li:hover,
  .problem-list li:hover,
  .fit-box:hover,
  .not-fit-box:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

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

/* Ensure mobile menu works properly */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle,
  .mobile-overlay {
    display: none !important;
  }
}

/* Process Steps */
.process-steps {
  margin: var(--space-2xl) 0;
  counter-reset: step-counter;
}

.step {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  padding-left: var(--space-4xl);
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  background: var(--primary);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step h3 {
  margin-bottom: var(--space-md);
}

.step p {
  margin-bottom: 0;
}

/* Process Cards */
.process-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.2s ease;
  text-align: center;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.process-card h3 {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-size: 1.25rem;
}

.process-card p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Calendar Section */
.calendar-section {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.calendar-embed {
  max-width: 600px;
  margin: var(--space-xl) auto;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
}

/* 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(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.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); }
.mt-2xl { margin-top: var(--space-2xl); }

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

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
