/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* Root Variables */
:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 30%, 12%);
  --primary: hsl(215, 50%, 18%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 25%, 93%);
  --accent: hsl(152, 60%, 42%);
  --accent-foreground: hsl(0, 0%, 100%);
  --muted: hsl(210, 25%, 93%);
  --muted-foreground: hsl(215, 15%, 45%);
  --border: hsl(214, 25%, 88%);
  --card: hsl(0, 0%, 100%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-soft: 0 4px 24px -4px rgba(33, 60, 91, 0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(33, 60, 91, 0.12);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  overflow: hidden;
  margin-top: 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, var(--accent) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, hsl(168, 55%, 38%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* Floating Quote Bar */
.floating-quote-bar {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: white;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.quote-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quote-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.selected-count {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
  white-space: nowrap;
}

.btn-clear-selection {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-clear-selection:hover {
  background: #fee;
  border-color: #f87171;
  color: #dc2626;
}

/* Products Section */
.products-section {
  padding: 5rem 0;
}

/* Product Categories */
.product-category {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.category-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent), hsl(168, 55%, 38%));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.category-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Selectable Product Cards */
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), hsl(168, 55%, 38%));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card.selected::before {
  opacity: 1;
}

.product-card.selected {
  background: linear-gradient(135deg, rgba(52, 168, 121, 0.05), rgba(52, 168, 121, 0.02));
}

.product-card:hover {
  border-color: rgba(52, 168, 121, 0.5);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.product-checkbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0.375rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.product-card.selected .product-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.product-checkbox svg {
  width: 0.875rem;
  height: 0.875rem;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.product-card.selected .product-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.product-card:hover .product-checkbox {
  border-color: var(--accent);
}

.product-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(52, 168, 121, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  background: rgba(52, 168, 121, 0.2);
}

.product-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  stroke-width: 2;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.625rem;
  min-height: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 0 40px rgba(52, 168, 121, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: hsl(152, 60%, 38%);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(52, 168, 121, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(52, 168, 121, 0.05);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
  background: rgba(210, 225, 236, 0.3);
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--muted);
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.billing-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
}

.billing-btn.active {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 2px 8px rgba(52, 168, 121, 0.2);
}

.billing-btn:hover:not(.active) {
  color: var(--foreground);
}

.save-badge {
  padding: 0.125rem 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(52, 168, 121, 0.1);
}

.popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 3rem 0 2rem;
    margin-top: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .products-section,
  .pricing-section,
  .cta-section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  /* Floating Quote Bar Mobile */
  .floating-quote-bar {
    top: 60px;
    padding: 0.5rem 0;
  }
  
  .quote-bar-content {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .quote-info {
    width: 100%;
    justify-content: space-between;
  }
  
  .selected-count {
    font-size: 0.875rem;
  }
  
  .btn-clear-selection {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .floating-quote-bar .btn-primary {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
  
  /* Category Grid Mobile */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-header {
    gap: 0.75rem;
  }
  
  .category-title {
    font-size: 1.25rem;
  }
  
  /* Product Cards Mobile */
  .product-card {
    padding: 1.25rem;
  }
  
  .product-title {
    font-size: 1.125rem;
  }
  
  .product-description {
    font-size: 0.8125rem;
  }
  
  /* CTA Mobile */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Pricing Mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .billing-toggle {
    width: 100%;
    flex-direction: row;
  }
  
  .billing-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-section {
    padding: 2rem 0 1.5rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.9375rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-description {
    font-size: 0.9375rem;
  }
  
  .product-category {
    margin-bottom: 2rem;
  }
  
  .category-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .category-icon svg {
    width: 1rem;
    height: 1rem;
  }
  
  .category-title {
    font-size: 1.125rem;
  }
  
  .product-card {
    padding: 1rem;
  }
  
  .product-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .product-icon svg {
    width: 1rem;
    height: 1rem;
  }
  
  .product-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .product-checkbox svg {
    width: 0.75rem;
    height: 0.75rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .btn {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    min-height: 44px;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {
  .quote-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .btn-clear-selection {
    align-self: stretch;
  }
}