/* dataPrice Professional Website Styles */
:root {
  --primary-color: #1F6FEB;
  --accent-color: #00B894;
  --neutral-dark: #0F1724;
  --neutral-mid: #64748B;
  --neutral-light: #94A3B8;
  --bg-color: #F8FAFC;
  --white: #FFFFFF;
  --light-gray: #F1F5F9;
  --border-color: #E2E8F0;
  --success-color: #10B981;
  --warning-color: #F59E0B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

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

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

.cta-button {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #1557c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 3px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--neutral-dark);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-color) 0%, #EBF4FF 100%);
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--neutral-mid);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--neutral-mid);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

.feature-card p {
  color: var(--neutral-mid);
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background: var(--light-gray);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--neutral-dark);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-card .period {
  color: var(--neutral-mid);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--neutral-mid);
}

.pricing-features li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--neutral-dark);
}

.contact-info p {
  color: var(--neutral-mid);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item span {
  margin-right: 1rem;
  font-size: 1.25rem;
}

.contact-form {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* Footer */
footer {
  background: var(--neutral-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--neutral-light);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

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

.footer-bottom {
  border-top: 1px solid var(--neutral-mid);
  padding-top: 1rem;
  text-align: center;
  color: var(--neutral-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-buttons .cta-button {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Feature Cards Mobile */
  .flexible-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    text-align: center;
  }
  
  .feature-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
  }
  
  .feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  /* Section spacing */
  .features {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  /* Typography improvements */
  h2 {
    font-size: 1.875rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  /* Extra small screens - optimize for mobile */
  .hero h1 {
    font-size: 1.95rem;
    line-height: 1.15;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .hero-buttons .cta-button {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }
  
  .feature-icon {
    font-size: 2.25rem !important;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-header p {
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .features,
  .pricing,
  .contact {
    padding: 60px 0;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-accent { background-color: var(--accent-color); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Flexible Card Grid System */
.flexible-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.flexible-grid .feature-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 350px;
}

/* 1 card: center */
.flexible-grid:has(.feature-card:nth-child(1):last-child) {
  justify-content: center;
}

/* 2 cards: center both */
.flexible-grid:has(.feature-card:nth-child(2):last-child) {
  justify-content: center;
}

/* 3 cards: center all */
.flexible-grid:has(.feature-card:nth-child(3):last-child) {
  justify-content: center;
}

/* 4+ cards: use normal grid layout */
.flexible-grid:has(.feature-card:nth-child(4)) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
  .flexible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .flexible-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .flexible-grid .feature-card {
    max-width: 100%;
  }
}