  .invalid {
    border: 1px solid red;
  }

  .error-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 4px;
    margin-bottom: 8px;
  }

    .anchor-offset {
      scroll-margin-top: 100px;
      scroll-snap-align: start;
      scroll-padding-top: 100px;
      animation: pop-in 0.6s ease;
    }

  
  .menu-button:active, .cta-button:active, .feature-item:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  .parallax {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
  }
  .parallax.visible {
    transform: translateY(0);
    opacity: 1;
  }


    @keyframes pop-in {
      0% {
        transform: translateY(-20px);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
  .faq-section {
  background: #0d0f18;
  padding: 4rem 1rem;
  user-select: none;
}
.faq-section > h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #4da6ff;
  margin-bottom: 2.5rem;
}
.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.faq-item {
  background: #1c2037;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(77, 166, 255, 0.15);
  transition: background-color 0.3s ease;
}
.faq-item:hover {
  background: #28304f;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  color: #4da6ff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border: none;
  outline: none;
}
.faq-answer {
  padding: 0 1.5rem 1rem;
  font-size: 1rem;
  color: #cbd6f7;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}
.security-section {
  background: #12152b;
  padding: 4rem 1rem;
  user-select: none;
}
.security-section > h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #4da6ff;
  margin-bottom: 2.5rem;
}
.security-content {
  max-width: 840px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #cbd6f7;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.security-content p {
  margin: 0;
}
.security-content code {
  background: #1c2037;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #4da6ff;
}
  .fixed-top-menu {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 15, 24, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.4);
    justify-content: center;
  }
  .fixed-top-menu a {
    color: #4da6ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
  }
  .fixed-top-menu a:hover,
  .fixed-top-menu a:focus {
    color: #80bfff;
    outline: none;
  }
  .menu-button {
    color: #4da6ff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
    border: 2px solid #4da6ff;
    border-radius: 8px;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }

  .menu-button:hover,
  .menu-button:focus {
    background: #4da6ff;
    color: #0d0f18;
    border-color: #4da6ff;
  }
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: #0d0f18;
      color: #ffffff;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }
    a {
      color: #4da6ff;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    a:hover,
    a:focus {
      color: #80bfff;
      outline: none;
    }
    button {
      cursor: pointer;
      border: none;
      background: none;
      color: inherit;
      font: inherit;
      padding: 0;
    }

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

    header.hero {
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 1rem;
      background: #0d0f18;
      user-select: none;
    }
    .hero-logo {
      width: 520px;
      height: 520px;
      margin-bottom: 1rem;
      fill: #4da6ff;
      filter: drop-shadow(0 0 4px #4da6ff);
      flex-shrink: 0;
    }
    .hero-title {
      font-size: 2.5rem;
      font-weight: 600;
      color: #4da6ff;
      margin: 0 auto 0.5rem auto; /* ensure horizontal centering */
      line-height: 1.2;
      max-width: 960px;          /* keep long lines centered */
      text-align: center;        /* safety */
      display: block;
    }
    .hero-subtitle {
      font-size: 1.25rem;
      font-weight: 400;
      color: #cbd6f7;
      margin: 0 auto 2rem auto;  /* center horizontally */
      max-width: 720px;          /* wider so it doesn't wrap too early */
      width: 100%;
      text-align: center;        /* explicit centering */
      user-select: text;
      display: block;
    }
    .cta-button {
      background-color: #4da6ff;
      color: #0d0f18;
      font-weight: 600;
      font-size: 1.125rem;
      padding: 0.85rem 2rem;
      border-radius: 8px;
      box-shadow: 0 6px 12px rgba(77, 166, 255, 0.5);
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
      user-select: none;
      display: inline-block;
    }
    .cta-button:hover,
    .cta-button:focus {
      background-color: #3a85e6;
      box-shadow: 0 8px 16px rgba(58, 133, 230, 0.7);
      outline: none;
    }

    /* Features Section */
    section.features {
      padding: 4rem 1rem 3rem;
      background: #12152b;
      user-select: none;
    }
    section.features > h2 {
      text-align: center;
      font-size: 2rem;
      font-weight: 600;
      color: #4da6ff;
      margin-bottom: 2.5rem;
      user-select: text;
    }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
      gap: 1.75rem 2rem;
      max-width: 960px;
      margin: 0 auto;
    }
    .feature-item {
      background: #1c2037;
      border-radius: 12px;
      padding: 1.5rem 1.75rem;
      box-shadow: 0 4px 12px rgba(77, 166, 255, 0.15);
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
      user-select: text;
    }
    .feature-item:hover,
    .feature-item:focus-within {
      background: #28304f;
      box-shadow: 0 8px 20px rgba(77, 166, 255, 0.4);
      outline: none;
    }
    .feature-item h3 {
      margin: 0 0 0.6rem 0;
      font-size: 1.25rem;
      font-weight: 600;
      color: #4da6ff;
    }
    .feature-item p {
      margin: 0;
      color: #cbd6f7;
      font-size: 1rem;
      line-height: 1.4;
    }
    

    /* Carousel Section */
    section.carousel-section {
      background: #0d0f18;
      padding: 3rem 1rem 4rem;
      user-select: none;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }
    .gallery-grid img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 0 12px rgba(77, 166, 255, 0.4);
      transition: transform 0.3s ease;
      cursor: zoom-in;
    }
    .gallery-grid img:hover {
      transform: scale(1.03);
    }

    /* Why VoiceMind Section */
    section.why-voicemind {
      background: #12152b;
      padding: 4rem 1rem 4rem;
      user-select: none;
    }
    section.why-voicemind > h2 {
      text-align: center;
      font-size: 2rem;
      font-weight: 600;
      color: #4da6ff;
      margin-bottom: 2.5rem;
      user-select: text;
    }
    .why-list {
      max-width: 840px;
      margin: 0 auto;
      list-style: none;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
      gap: 1.75rem 2rem;
    }
    .why-list li {
      background: #1c2037;
      border-radius: 12px;
      padding: 1.5rem 1.75rem;
      box-shadow: 0 4px 12px rgba(77, 166, 255, 0.15);
      font-weight: 500;
      font-size: 1.1rem;
      color: #cbd6f7;
      user-select: text;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }
    .why-list li:hover,
    .why-list li:focus-within {
      background: #28304f;
      box-shadow: 0 8px 20px rgba(77, 166, 255, 0.4);
      outline: none;
    }

    /* Footer */
    footer {
      background: #0d0f18;
      text-align: center;
      padding: 2rem 1rem;
      font-size: 0.9rem;
      color: #4da6ff;
      user-select: none;
    }

    /* Responsive Typography */
    @media (max-width: 480px) {
      .container {
        padding: 0 1.5rem;
      }
      .hero-title {
        font-size: 1.8rem;
      }
      .hero-subtitle {
        font-size: 1rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
      }
      section.features > h2,
      section.why-voicemind > h2 {
        font-size: 1.5rem;
      }
      .feature-item h3 {
        font-size: 1.1rem;
      }
      .feature-item p,
      .why-list li {
        font-size: 0.9rem;
      }
      .cta-button {
        font-size: 1rem;
        padding: 0.9rem 1.7rem;
      }
      .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
      }
    }

    .reviews-section {
      background: #12152b;
      padding: 4rem 1rem;
      user-select: none;
    }
    .reviews-section > h2 {
      text-align: center;
      font-size: 2rem;
      font-weight: 600;
      color: #4da6ff;
      margin-bottom: 2.5rem;
    }
    .reviews-grid {
      max-width: 840px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    blockquote {
      background: #1c2037;
      border-left: 4px solid #4da6ff;
      padding: 1rem 1.5rem;
      font-style: italic;
      color: #cbd6f7;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(77, 166, 255, 0.2);
    }
    cite {
      display: block;
      margin-top: 0.5rem;
      font-size: 0.95rem;
      color: #80bfff;
      text-align: right;
    }

    #burger-menu a {
      padding: 0.3rem 0.8rem;
      border-radius: 6px;
      background: #1c2037;
    }
    #burger-menu a:hover {
      background: #28304f;
    }

    #burger-menu a.active {
      background: #4da6ff !important;
      color: #0d0f18 !important;
    }

    .roadmap-section {
      background: #0d0f18;
      padding: 4rem 1rem;
      user-select: none;
    }
    .roadmap-section > h2 {
      text-align: center;
      font-size: 2rem;
      font-weight: 600;
      color: #4da6ff;
      margin-bottom: 2.5rem;
    }
    .roadmap-list {
      max-width: 700px;
      margin: 0 auto;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      font-size: 1.1rem;
      color: #cbd6f7;
    }
    .roadmap-list li {
      position: relative;
      padding-left: 1.5rem;
    }
    .roadmap-list li::before {
      content: "🚀";
      position: absolute;
      left: 0;
    }

    .stats-section {
      background: #12152b;
      padding: 4rem 1rem;
      user-select: none;
    }
    .stats-section > h2 {
      text-align: center;
      font-size: 2rem;
      font-weight: 600;
      color: #4da6ff;
      margin-bottom: 2.5rem;
    }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 2rem;
      max-width: 840px;
      margin: 0 auto;
      text-align: center;
    }
    .stat-item h3 {
      font-size: 2.5rem;
      color: #4da6ff;
      margin-bottom: 0.5rem;
    }
    .stat-item h3[data-count] {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .stat-item h3[data-count].visible {
      opacity: 1;
      transform: translateY(0);
    }
    .stat-item p {
      color: #cbd6f7;
      font-size: 1.1rem;
    }

    .contacts-section {
      background: #0d0f18;
      padding: 4rem 1rem;
      user-select: none;
    }
    .contacts-section > h2 {
      text-align: center;
      font-size: 2rem;
      font-weight: 600;
      color: #4da6ff;
      margin-bottom: 2.5rem;
    }
    .contacts-container {
      max-width: 700px;
      margin: 0 auto;
      font-size: 1.1rem;
      color: #cbd6f7;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
    .contacts-container a {
      color: #4da6ff;
    }
    .contacts-container a:hover {
      color: #80bfff;
    }
    /* Animations */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #0d0f18;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.6s ease;
    }
    #preloader .loader {
      border: 6px solid #1c2037;
      border-top: 6px solid #4da6ff;
      border-radius: 50%;
      width: 64px;
      height: 64px;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  .loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .preloader-logo {
    width: 480px;
    height: 480px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
  }
  .preloader-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #4da6ff;
    font-weight: 500;
    opacity: 0;
    animation: fadeInText 2s ease forwards, pulseText 2s ease-in-out infinite;
    animation-delay: 1s, 3s; 
  }

  @keyframes fadeInText {
    to {
      opacity: 1;
    }
  }

  @keyframes pulseText {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.7;
    }
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
  }

  .contact-section {
    max-width: 500px;
    margin: 0 auto 60px;
    padding: 30px;
    background-color: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.2);
  }

  .contact-section h2 {
    text-align: center;
    color: #00bfff;
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    color: #eee;
    font-size: 14px;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: #666;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #0077ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .submit-btn:hover {
    background-color: #005ec2;
  }
#policy-popup {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: left;
  max-width: 600px;
  width: 90%;
}
#policy-popup .vm-policy__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#policy-popup button {
  margin-top: 10px;
}

/* Policy popup content styling */
#policy-popup .vm-policy__text {
  color: #cbd6f7;
  margin: 0;
  line-height: 1.4;
}
#policy-popup .vm-policy__btn {
  padding: 10px 16px;
  background: #4da6ff;
  color: #0d0f18;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(77,166,255,.4);
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
}
#policy-popup .vm-policy__btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Comparison table: keep readable via horizontal scroll on small screens */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: visible;            /* don't trap vertical scrolling */
  overscroll-behavior: auto;      /* allow page to keep scrolling vertically */
  scrollbar-gutter: stable both-edges; /* avoid layout shift when scrollbar appears */
}

/* Default table styling for comparison table (non-invasive: only applies to common class names) */

.modes-compare, .comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.modes-compare th, .modes-compare td,
.comparison-table th, .comparison-table td {
  padding: 0.75rem;
  border: 1px solid rgba(77,166,255,0.22);
  vertical-align: top;
}
.modes-compare th, .comparison-table th {
  background: rgba(77,166,255,0.08);
  color: #cfe5ff;
  font-weight: 600;
  white-space: nowrap;
}

/* Subtle scroll-hint gradients shown only when a wrapper is used */
.compare-scroll { position: relative; }
.compare-scroll::before,
.compare-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  z-index: 2;
}
.compare-scroll::before { left: 0;  background: linear-gradient(to right, rgba(13,15,24,0.85), rgba(13,15,24,0)); }
.compare-scroll::after  { right: 0; background: linear-gradient(to left,  rgba(13,15,24,0.85), rgba(13,15,24,0)); }

@media (max-width: 1024px) {
  /* allow horizontal pan even if wrapper is missing */
  .modes-compare, .comparison-table {
    display: block;               /* table becomes a scroll container */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 720px;             /* keep columns readable on tablets/phones */
    font-size: 0.95rem;
  }
  /* preferred wrapper still works and gets soft gutters */
  .compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  .modes-compare, .comparison-table { min-width: 640px; font-size: 0.92rem; }
  .modes-compare th, .modes-compare td,
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.5rem; }
  .compare-scroll::before,
  .compare-scroll::after { width: 18px; }
}

/* Header & menu tweaks for mobile */
@media (max-width: 768px) {
  .fixed-top-menu {
    top: 0.5rem;
    padding: 0.35rem 0.6rem;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.35);
  }
  .menu-button {
    font-size: 0.88rem;
    padding: 0.35rem 0.7rem;
    border-width: 1.5px;
  }

  header.hero {
    padding-top: 2.5rem; /* so the centered hero never sits under the fixed menu */
    height: auto;       /* allow content height on small screens */
    min-height: calc(100vh - 56px);
  }
  .hero-logo {
    width: 260px;
    height: 260px;
    margin-bottom: 0.5rem;
  }
  .hero-title {
    font-size: 1.6rem;
    max-width: 92vw;
    padding: 0 0.25rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    max-width: 90vw;
  }

  /* Sections and cards tighter spacing */
  section.features, section.why-voicemind, .reviews-section, .stats-section, .roadmap-section, .contacts-section {
    padding: 3rem 1rem;
  }
  .feature-item, .why-list li, .faq-item { padding: 1rem 1.1rem; }
}

/* Ultra-small devices */
@media (max-width: 380px) {
  .menu-button { font-size: 0.82rem; padding: 0.3rem 0.6rem; }
  .hero-title { font-size: 1.45rem; }
  .hero-subtitle { font-size: 0.95rem; }
}

/* Desktop restore: full-width non-scrollable table */
@media (min-width: 1025px) {
  .compare-scroll {
    overflow: visible;          /* no horizontal scroll on desktop */
  }
  .modes-compare,
  .comparison-table {
    display: table;             /* back to normal table layout */
    width: 100%;
    min-width: 0;               /* cancel mobile min-width */
    overflow: visible;
  }
}