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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #f8fafc;
  line-height: 1.6;
}

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

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 183, 156, 0.1);
  color: #00b79c;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.section-header p {
  font-size: 1.125rem;
  color: #64748b;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  display: inline-flex;
}

.logo-pulse {
  color: #00b79c;
}

.logo-nova {
  color: #1a1a2e;
}

body.dark-mode .logo-nova {
  color: #f1f5f9;
}

body.dark-mode .logo-pulse-path {
  stroke: #e2e8f0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #475569;
  font-size: 0.938rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #00b79c;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: rgba(0, 183, 156, 0.1);
  color: #00b79c;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #00b79c, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #00b79c;
  color: #fff;
}

.btn-primary:hover {
  background: #009b84;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 183, 156, 0.3);
}

.btn-outline {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #e2e8f0;
}

.btn-outline:hover {
  border-color: #00b79c;
  color: #00b79c;
}

.hero-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 183, 156, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.stat {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #00b79c;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 4px;
}

/* Services */
.services {
  background: #fff;
}

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

.service-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: rgba(0, 183, 156, 0.15);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 183, 156, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: #00b79c;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.938rem;
  color: #64748b;
  line-height: 1.7;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  padding-left: 56px;
}

.feature::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 36px;
  width: 16px;
  height: 16px;
  background: #00b79c;
  border-radius: 4px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.938rem;
  color: #64748b;
}

/* Contact */
.contact {
  background: #fff;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00b79c;
  background: #fff;
}

.contact-form textarea {
  margin-bottom: 20px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #cbd5e1;
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer .logo {
  color: inherit;
}

.footer .logo-nova {
  color: #f1f5f9;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #00b79c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 48px;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #00b79c;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Theme toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  color: #475569;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

/* Dark mode */
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .nav-links { background: rgba(15, 23, 42, 0.98); border-color: rgba(255,255,255,0.06); }
body.dark-mode .nav-links a { color: #94a3b8; }
body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links .active-link { color: #00b79c; }

body.dark-mode .hamburger span { background: #e2e8f0; }
body.dark-mode .theme-toggle { color: #94a3b8; }
body.dark-mode .theme-toggle:hover { background: rgba(255, 255, 255, 0.06); }
body.dark-mode .section-header h2 { color: #f1f5f9; }
body.dark-mode .hero h1 { color: #f1f5f9; }
body.dark-mode .hero p { color: #94a3b8; }
body.dark-mode .stats .stat { background: #1e293b; }
body.dark-mode .stat-label { color: #94a3b8; }
body.dark-mode .services { background: #0f172a; }
body.dark-mode .service-card { background: #1e293b; }
body.dark-mode .service-card:hover { background: #1e293b; border-color: rgba(0, 183, 156, 0.2); }
body.dark-mode .service-card h3 { color: #f1f5f9; }
body.dark-mode .service-card p { color: #94a3b8; }
body.dark-mode .feature { background: #1e293b; }
body.dark-mode .feature h3 { color: #f1f5f9; }
body.dark-mode .feature p { color: #94a3b8; }
body.dark-mode .contact { background: #0f172a; }
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus { border-color: #00b79c; background: #1e293b; }
body.dark-mode .btn-outline { color: #e2e8f0; border-color: #334155; }
body.dark-mode .btn-outline:hover { border-color: #00b79c; color: #00b79c; }
body.dark-mode .testimonials { background: #1e293b; }
body.dark-mode .testimonial-card { background: #0f172a; }
body.dark-mode .testimonial-card p { color: #cbd5e1; }
body.dark-mode .cta { background: #1e293b; }
body.dark-mode .cta-outline { color: #e2e8f0; border-color: #334155; }
body.dark-mode .cta-outline:hover { border-color: #00b79c; color: #00b79c; }
body.dark-mode .clients { background: #0f172a; border-color: rgba(255,255,255,0.05); }
body.dark-mode .clients-label { color: #64748b; }
body.dark-mode .clients-logos span { color: #475569; }
body.dark-mode .preloader { background: #0f172a; }
body.dark-mode .modal { background: #1e293b; }
body.dark-mode .modal h3 { color: #f1f5f9; }
body.dark-mode .modal p { color: #94a3b8; }
body.dark-mode #demoForm input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode #demoForm input:focus { border-color: #00b79c; }
body.dark-mode .modal-close { color: #94a3b8; }

/* Active nav link */
.nav-link.active-link {
  color: #00b79c !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Client logos */
.clients {
  padding: 48px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
}

.clients-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #94a3b8;
  margin-bottom: 28px;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.clients-logos span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.clients-logos span:hover {
  color: #00b79c;
}

/* Testimonials */
.testimonials {
  background: #f8fafc;
}

.testimonials-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  min-height: 260px;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: 0 16px;
}

.testimonial-card.active {
  display: block;
  animation: fadeSlide 0.5s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 28px;
  quotes: "\201C" "\201D";
}

.testimonial-card p::before { content: open-quote; }
.testimonial-card p::after { content: close-quote; }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00b79c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-author div { text-align: left; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { display: block; font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #00b79c;
  transform: scale(1.3);
}

/* CTA section */
.cta {
  background: #fff;
  text-align: center;
}

.cta-content {
  max-width: 640px;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 32px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00b79c;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 183, 156, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #009b84;
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal p {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

#demoForm input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

#demoForm input:focus {
  outline: none;
  border-color: #00b79c;
}

body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 32px;
    gap: 20px;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero-bg {
    width: 400px;
    height: 400px;
    right: -30%;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

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

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

/* Success message */
.success-message {
  text-align: center;
  padding: 24px;
  background: #f0fdfa;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  color: #0d9488;
  font-weight: 500;
}
