/* Professional responsive styling for Nexagest one-page site */
:root {
  --primary: #0a58ca;
  --primary-dark: #084298;
  --primary-light: #cfe2ff;
  --secondary: #6c757d;
  --success: #198754;
  --bg: #f7f9fb;
  --white: #ffffff;
  --text: #222;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

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

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

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.stat span {
  opacity: 0.9;
  font-size: 0.9rem;
}

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

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-lg);
}

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

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

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

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

/* Section Styling */
section {
  padding: 5rem 0;
}

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

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

/* Services Section */
.services {
  background: var(--white);
}

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

.service-card-main {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all 0.4s;
  position: relative;
}

.service-card-main.featured {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 10px 40px var(--shadow-lg);
}

.service-card-main.featured h3,
.service-card-main.featured .service-tagline,
.service-card-main.featured p {
  color: var(--white);
}

.service-card-main.featured .feature-list li {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-card-main:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px var(--shadow-lg);
}

.badge-main {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--success);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.service-icon-large {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card-main h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.service-card-main p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.service-note {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--primary-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  text-align: center;
}

.service-note p {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.75rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-list li:last-child {
  border-bottom: none;
}

.service-card-main .feature-list li {
  padding: 0.85rem 0;
}

/* Advantages Section */
.advantages {
  background: var(--bg);
}

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

.advantage-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.advantage-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.advantage-item p {
  color: var(--text-muted);
}

/* Solutions Section */
.solutions {
  background: var(--white);
}

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

.solution-item {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.solution-item:hover {
  border-color: var(--primary);
  background: var(--white);
}

.solution-content h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.25rem;
}

.solution-content p {
  color: var(--text-muted);
}

.coming-soon {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  border-radius: 16px;
  text-align: center;
}

.coming-soon h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.coming-soon p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.coming-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.module-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.module-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Pricing Section */
.pricing {
  background: var(--bg);
}

.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 2rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 5px 20px var(--shadow);
}

.badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.price {
  margin: 1.5rem 0;
}

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

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

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

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

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.pricing-card.featured .pricing-footer {
  border-top-color: rgba(10, 88, 202, 0.2);
  color: var(--text-muted);
}

.pricing-note {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--primary-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.pricing-note p {
  margin: 0.75rem 0;
  color: var(--text);
}

/* Testimonials Section */
.testimonials {
  background: var(--white);
  padding: 5rem 0;
}

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

.testimonial-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background: var(--bg);
}

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

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

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

.contact-list a:hover {
  text-decoration: underline;
}

.contact-cta {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.contact-cta h4 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-cta p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-container h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

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

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

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

.form-group textarea {
  resize: vertical;
}

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

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

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

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

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    gap: 1rem;
  }

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

  .lead {
    font-size: 1.1rem;
  }

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

  .services-grid,
  .services-grid-main,
  .advantages-grid,
  .solutions-list,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    gap: 2rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .service-card-main {
    padding: 2rem;
  }

  .service-icon-large {
    font-size: 3rem;
  }

  .coming-modules {
    gap: 0.75rem;
  }

  .module-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 1rem;
  }

  section {
    padding: 3rem 0;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .back-to-top {
    display: none;
  }
}
