/* CSS Custom Properties */
:root {
  /* ZenDash Brand Colors */
  --zen-blue: #667eea;
  --zen-purple: #764ba2;
  --zen-green: #4ecdc4;
  
  /* Neutrals */
  --zen-white: #ffffff;
  --zen-light-gray: #f8f9fa;
  --zen-medium-gray: #6c757d;
  --zen-dark-gray: #2c3e50;
  --zen-black: #1a1a1a;
  
  /* Semantic Colors */
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --focus: #9b59b6;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--zen-blue) 0%, var(--zen-purple) 100%);
  --gradient-success: linear-gradient(135deg, var(--zen-green) 0%, var(--success) 100%);
  --gradient-text: linear-gradient(135deg, var(--zen-blue) 0%, var(--zen-purple) 50%, var(--zen-green) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--zen-dark-gray);
  background-color: var(--zen-white);
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--zen-black);
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--zen-black);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--zen-dark-gray);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--zen-blue);
}

.cta-button {
  background: var(--gradient-primary);
  color: var(--zen-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--zen-medium-gray);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.primary-button {
  background: var(--gradient-primary);
  color: var(--zen-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.primary-button.large {
  padding: var(--space-lg) var(--space-xl);
  font-size: 1.2rem;
}

.secondary-button {
  background: transparent;
  color: var(--zen-dark-gray);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--zen-dark-gray);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: var(--zen-dark-gray);
  color: var(--zen-white);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zen-blue);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--zen-medium-gray);
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-preview {
  background: var(--zen-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-md);
  max-width: 400px;
  width: 100%;
  transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
  transition: transform 0.3s ease;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--zen-light-gray);
  margin-bottom: var(--space-md);
}

.preview-dots {
  display: flex;
  gap: var(--space-xs);
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--zen-light-gray);
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #28ca42; }

.preview-title {
  font-size: 0.9rem;
  color: var(--zen-medium-gray);
}

.preview-content {
  text-align: center;
  padding: var(--space-md);
}

.preview-time {
  font-size: 3rem;
  font-weight: 300;
  color: var(--zen-black);
  margin-bottom: var(--space-md);
}

.preview-quote {
  font-size: 0.9rem;
  color: var(--zen-medium-gray);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.preview-widgets {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.widget {
  background: var(--zen-light-gray);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--zen-dark-gray);
}

/* Sections */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--zen-medium-gray);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features {
  padding: var(--space-2xl) 0;
  background: var(--zen-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--zen-white);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--zen-blue);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--zen-black);
}

.feature-card p {
  color: var(--zen-medium-gray);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  color: var(--zen-medium-gray);
  margin-bottom: var(--space-xs);
  padding-left: var(--space-md);
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--zen-green);
  font-weight: 600;
}

/* Comparison Section */
.comparison {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--zen-light-gray) 0%, #f0f8ff 100%);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.comparison-item {
  background: var(--zen-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.comparison-item:hover {
  transform: translateY(-4px);
}

.comparison-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--zen-black);
}

.comparison-before {
  color: var(--zen-medium-gray);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.comparison-after {
  color: var(--zen-blue);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Pricing Section */
.pricing {
  padding: var(--space-2xl) 0;
  background: var(--zen-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.pricing-card {
  background: var(--zen-white);
  border: 2px solid var(--zen-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--zen-blue);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--zen-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--zen-blue);
}

.price span {
  font-size: 1rem;
  color: var(--zen-medium-gray);
  font-weight: 400;
}

.pricing-card p {
  text-align: center;
  color: var(--zen-medium-gray);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  padding: var(--space-xs) 0;
  color: var(--zen-dark-gray);
}

.pricing-button {
  display: block;
  width: 100%;
  background: var(--gradient-primary);
  color: var(--zen-white);
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pricing-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* About Section */
.about {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--zen-medium-gray);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.philosophy-card {
  background: var(--zen-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.philosophy-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.philosophy-card ul {
  list-style: none;
}

.philosophy-card li {
  padding: var(--space-md) 0;
  font-size: 1.1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--zen-light-gray);
}

.philosophy-card li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta {
  padding: var(--space-2xl) 0;
  background: var(--gradient-primary);
  color: var(--zen-white);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--zen-white);
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta .primary-button {
  background: var(--zen-white);
  color: var(--zen-blue);
}

.cta .primary-button:hover {
  background: var(--zen-light-gray);
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--zen-black);
  color: var(--zen-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-md);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  color: var(--zen-white);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--zen-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-visual {
  animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--space-sm);
  }
  
  .nav-links {
    gap: var(--space-md);
  }
  
  .nav-links a:not(.cta-button) {
    display: none;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl) var(--space-sm);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .dashboard-preview {
    transform: none;
    max-width: 320px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--zen-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --zen-light-gray: #e0e0e0;
    --zen-medium-gray: #606060;
  }
}