/* Global Styles & Variables */
:root {
  --bg-dark: #0f1115;
  --bg-card: #141822;
  --bg-elevated: #1e2433;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-highlight: #8ab4ff;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 24, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(135deg, #fff, var(--text-highlight));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta {
  background-color: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 72px;
  /* Height of the navbar */
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  transform: translateY(-150%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(15, 17, 21, 0) 70%);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--text-highlight), #a5b4fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero-checks {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-checks span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.hero-checks i {
  color: var(--accent-green);
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-muted);
}

/* Sections Common */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About / Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--border-color);
}

.stat-icon {
  width: 64px;
  height: 64px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
}

.stat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Features - Alternating */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-content {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-content h3 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.2;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.feature-list i {
  color: var(--accent-green);
  font-size: 1.2rem;
  margin-top: 2px;
}

.feature-visual {
  position: relative;
  perspective: 1000px;
}

.feature-visual img {
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-row.reverse .feature-visual img {
  transform: rotateY(5deg) rotateX(5deg);
}

.feature-visual:hover img {
  transform: rotateY(0) rotateX(0) scale(1.02);
}

.feature-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(138, 180, 255, 0.1);
  color: var(--text-highlight);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-card.large {
  grid-column: span 2;
}

.bento-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.bento-img {
  margin-top: 24px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Blog / News */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.blog-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.3;
}

.blog-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-readmore {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-highlight);
  font-size: 0.95rem;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-readmore {
  gap: 12px;
}

/* Testimonials */
.testimonials {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--bg-elevated);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.test-card .stars {
  color: #fbbf24;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.test-card p {
  font-size: 1.05rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.author-info h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  width: 100%;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-content p {
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(79, 70, 229, 0.2) 100%);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 80px 40px;
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') 0 0;
  border-radius: 32px;
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Footer */
footer {
  background-color: #0b0d11;
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--text-highlight));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--text-highlight);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* =======================
   VIDEOS GALLERY
======================= */
.video-demo {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin-top: 16px;
  border: 1px solid var(--border-color);
  display: block;
}

.faq-item.active .faq-content .video-demo {
  margin-bottom: 16px;
}

.faq-item.active .faq-content {
  max-height: 800px;
  /* Overwrite for taller video content */
}

/* =======================
   CONTACT FORM
======================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: left;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-wrapper .field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  outline: none;
}

.contact-form-wrapper textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.contact-form-wrapper .field.error input,
.contact-form-wrapper .field.error textarea {
  border-color: #ef4444;
}

.contact-form-wrapper .field.success input,
.contact-form-wrapper .field.success textarea {
  border-color: var(--accent-green);
}

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 6px;
  margin-left: 4px;
}

.contact-form-wrapper .field.error .error-msg {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse .feature-content {
    order: unset;
  }

  .feature-row.reverse .feature-visual {
    order: unset;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}