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

:root {
  --navy-blue: #0147B4;
  --cyan: #1FBDE3;
  --light-grey: #666666; /* Keeping WCAG compliant color */
  --dark-grey: #4A4A4A;
  --black: #000000;
  --white: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, #0147B4 0%, #1FBDE3 100%);
  --gradient-hero: linear-gradient(135deg, #0147B4 0%, #1FBDE3 70%, #1FBDE3 100%);
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--black);
}

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

/* Header/Navigation */
header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(1, 71, 180, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-subtitle {
  color: var(--light-grey);
  font-size: 0.5em;
  font-weight: 400;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  font-weight: 600;
  transition: color 0.3s;
}

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

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-grey);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(1, 71, 180, 0.1);
  border-top: 1px solid rgba(1, 71, 180, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-links {
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
}

.mobile-menu .nav-links li {
  border-bottom: 1px solid rgba(1, 71, 180, 0.05);
}

.mobile-menu .nav-links a {
  display: block;
  padding: 1rem 2rem;
  color: var(--dark-grey);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.mobile-menu .nav-links a:hover {
  background: rgba(1, 71, 180, 0.05);
  color: var(--navy-blue);
}

.mobile-cta {
  padding: 1rem 2rem;
  border-top: 1px solid rgba(1, 71, 180, 0.1);
}

.mobile-cta .cta-button {
  display: block;
  text-align: center;
  width: 100%;
}

.login-link {
  text-decoration: none;
  color: var(--dark-grey);
  font-weight: 600;
  font-size: 0.9em;
  transition: color 0.3s;
}

.login-link:hover {
  color: var(--navy-blue);
}

.cta-button {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 71, 180, 0.3);
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-cta {
  background: var(--white);
  color: var(--navy-blue);
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-block;
  margin: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.hero-cta.secondary:hover {
  background: var(--white);
  color: var(--navy-blue);
}

/* Hero Visual/Demo */
.hero-visual {
  margin-top: 4rem;
  text-align: center;
}

.demo-placeholder {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 15px;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  backdrop-filter: blur(10px);
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.video-modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
}

.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  background: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-close:hover {
  background: rgba(0,0,0,0.8);
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hero Video Preview */
.video-preview {
  position: relative;
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  max-width: 900px;
  margin: 2rem auto;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(1, 71, 180, 0.2);
}

.video-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 71, 180, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s;
}

.video-preview:hover .video-play-overlay {
  background: rgba(1, 71, 180, 0.2);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(1, 71, 180, 0.3);
  transition: transform 0.3s;
}

.video-preview:hover .play-button {
  transform: scale(1.1);
}

.video-preview-text {
  background: rgba(0,0,0,0.8);
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
}

/* Social Proof */
.social-proof {
  background: #f8faff;
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(1, 71, 180, 0.1);
}

.proof-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  font-weight: 600;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.5rem;
}

/* Value Proposition */
.value-prop {
  padding: 5rem 0;
  text-align: center;
}

.value-prop h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--navy-blue);
  font-weight: 800;
}

.value-prop .subtitle {
  font-size: 1.2rem;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  max-width: 800px;
  margin: 0 auto 4rem;
  font-weight: 400;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.value-item {
  padding: 2.5rem 2rem;
  border-radius: 15px;
  background: var(--white);
  border: 2px solid rgba(31, 189, 227, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(1, 71, 180, 0.1);
  border-color: rgba(31, 189, 227, 0.3);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.value-item h3 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.value-item p {
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  font-weight: 400;
}

/* Key Features Showcase */
.features-showcase {
  background: #f8faff;
  padding: 6rem 0;
}

.features-showcase h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--navy-blue);
  font-weight: 800;
}

.features-showcase .subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  max-width: 800px;
  margin: 0 auto 5rem;
  font-weight: 400;
}

.feature-section {
  margin-bottom: 6rem;
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-content.reverse {
  direction: rtl;
}

.feature-content.reverse > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--navy-blue);
  font-weight: 800;
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 400;
}

.feature-benefits {
  list-style: none;
  padding: 0;
}

.feature-benefits li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--black);
  font-weight: 600;
}

.feature-benefits li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.feature-visual {
  background: var(--white);
  border-radius: 15px;
  border: 2px solid rgba(31, 189, 227, 0.1);
  padding: 3rem;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  font-style: italic;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(1, 71, 180, 0.05);
}

.feature-visual img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-visual img:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  text-align: center;
}

.how-it-works h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--navy-blue);
  font-weight: 800;
}

.how-it-works .subtitle {
  font-size: 1.2rem;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  max-width: 700px;
  margin: 0 auto 4rem;
  font-weight: 400;
}

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

.step {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(1, 71, 180, 0.1);
  position: relative;
  border: 2px solid rgba(31, 189, 227, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(1, 71, 180, 0.15);
}

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

.step h3 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.step p {
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  line-height: 1.6;
  font-weight: 400;
}

/* Pricing */
.pricing {
  background: #f8faff;
  padding: 6rem 0;
  text-align: center;
}

.pricing h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--navy-blue);
  font-weight: 800;
}

.pricing .subtitle {
  font-size: 1.2rem;
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  max-width: 700px;
  margin: 0 auto 4rem;
  font-weight: 400;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(1, 71, 180, 0.1);
  border: 2px solid rgba(31, 189, 227, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(1, 71, 180, 0.15);
}

.pricing-card.featured {
  border: 2px solid var(--cyan);
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(31, 189, 227, 0.02) 0%, rgba(1, 71, 180, 0.02) 100%);
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--navy-blue);
  font-weight: 700;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin-bottom: 0.5rem;
}

.price-period {
  color: var(--dark-grey); /* Changed from light-grey for better contrast */
  margin-bottom: 2.5rem;
  font-weight: 600;
}

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

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--black);
  font-weight: 600;
}

.features-list li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
  padding: 6rem 0;
  text-align: center;
}

.testimonials h2 {
  font-size: 3rem;
  margin-bottom: 4rem;
  color: var(--navy-blue);
  font-weight: 800;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.testimonial {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(1, 71, 180, 0.1);
  border: 2px solid rgba(31, 189, 227, 0.1);
  transition: transform 0.3s;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--black);
  font-weight: 400;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy-blue);
}

/* Final CTA */
.final-cta {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.final-cta-content {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.final-cta .subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Footer */
footer {
  background: var(--navy-blue);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Add tablet breakpoint for 2x3 grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .value-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation - starts at tablet breakpoint */
@media (max-width: 1024px) {
  nav {
    position: relative;
  }

  /* Hide desktop navigation */
  nav > .nav-links {
      display: none;
  }

  nav > .cta-button {
      display: none;
  }

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

  /* Show mobile menu links when active */
  .mobile-menu .nav-links {
      display: flex;
  }

  .logo {
     font-size: 1.5rem;
  }

  .logo-subtitle {
      display: none; /* Hide "(powered by G-script)" on mobile */
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
      font-size: 2.5rem;
  }
  
    .feature-content {
      grid-template-columns: 1fr;
      gap: 3rem;
  }

  .proof-items {
      flex-direction: column;
      gap: 1.5rem;
  }

  .pricing-card.featured {
      transform: none;
  }

  .value-prop h2, .features-showcase h2, .how-it-works h2, .pricing h2, .testimonials h2, .final-cta h2 {
      font-size: 2.2rem;
  }

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

  .video-modal-content {
      width: 95%;
      margin: 10% auto;
  }

  .play-button {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
  }
}