:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-success: #10b981;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-surface: #ffffff;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* 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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 24px;
}

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

html {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding: var(--section-padding);
}

/* Header */
.header {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.logo {
  height: 32px;
  width: auto;
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: inherit;
}

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

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

.btn-secondary {
  background-color: white;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: #cbd5e1;
}

/* Hero */
.hero {
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

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

.hero-subtitle {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.25rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.hero-workflow {
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.1));
}

/* Features */
.features {
  background-color: var(--color-bg-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  color: var(--color-primary);
}

/* How It Works */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 20px;
  font-size: 1.125rem;
}

.step strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.pricing-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(1.05);
  z-index: 1;
}

.badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: #0f172a;
}

.price span {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-card ul {
  margin-bottom: 2rem;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.pricing-card li::before {
  content: "✓";
  color: var(--color-success);
  margin-right: 12px;
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

.dashboard-preview {
  margin-top: 100px;
  text-align: center;
}

.dashboard-mock {
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 50px 100px -20px rgba(50,50,93,0.15), 0 30px 60px -30px rgba(0,0,0,0.2);
}

/* Testimonials */
.testimonials {
  background-color: var(--color-bg-alt);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* CTA Section */
.cta-card {
  background-color: var(--color-bg-alt);
  padding: 80px 40px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.cta-card h2 {
  color: #0f172a;
  font-size: 3rem;
}

.cta-card p {
  color: var(--color-text-muted);
  margin: 1rem 0 2.5rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 20px;
  }

  .feature-grid, .steps-grid, .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-card h2 {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
}
