/* MyWebApps Main Stylesheet */

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --bg-light: #f9fafb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
}

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

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-text {
  color: var(--text-dark);
  padding: 0.625rem 1rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-note {
  color: var(--text-light);
  font-size: 0.875rem;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

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

.feature-card {
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
}

/* How It Works */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-light);
}

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

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-light);
}

/* Industries */
.industries {
  padding: 5rem 0;
}

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

.industry-card {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
}

.industry-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.industry-card p {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background: var(--bg-light);
}

/* Pricing */
.pricing-hero {
  padding: 4rem 0 2rem;
  text-align: center;
  background: var(--bg-light);
}

.pricing-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pricing-plans {
  padding: 4rem 0;
}

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

.plan-card {
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
}

.plan-price .amount {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.plan-price .period {
  color: var(--text-light);
}

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

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.plan-card .btn {
  width: 100%;
  text-align: center;
}

.pricing-faq {
  max-width: 800px;
  margin: 4rem auto 0;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-light);
}

/* About Page */
.about-hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-light);
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero .lead {
  font-size: 1.25rem;
  color: var(--text-light);
}

.about-content {
  padding: 4rem 0;
}

.about-story {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.about-story h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-story p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-values {
  margin-bottom: 4rem;
}

.about-values h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.value-card {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.value-card p {
  color: var(--text-light);
}

.about-cta {
  text-align: center;
  padding: 3rem;
  background: var(--bg-light);
  border-radius: 1rem;
}

.about-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-cta p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Contact Page */
.contact-hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-light);
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-content {
  padding: 4rem 0;
}

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

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

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

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}
