/* Block 1 */
.index-page,
      #loader.index-page,
      .flex.index-page {
        display: none;
      }

      @font-face {
        font-family: "Satoshi";
        src: url("/public/assets/satoshi/Satoshi-Regular.otf")
          format("opentype");
        font-weight: 400;
        font-style: normal;
      }

      @font-face {
        font-family: "Satoshi";
        src: url("/public/assets/satoshi/Satoshi-Medium.otf") format("opentype");
        font-weight: 500;
        font-style: normal;
      }

      @font-face {
        font-family: "Satoshi";
        src: url("/public/assets/satoshi/Satoshi-Bold.otf") format("opentype");
        font-weight: 700;
        font-style: normal;
      }

      @font-face {
        font-family: "Satoshi";
        src: url("/public/assets/satoshi/Satoshi-Light.otf") format("opentype");
        font-weight: 300;
        font-style: normal;
      }

      /* Italic versions */
      @font-face {
        font-family: "Satoshi";
        src: url("/public/assets/satoshi/Satoshi-Italic.otf") format("opentype");
        font-weight: 400;
        font-style: italic;
      }

      body,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p,
      .font-satoshi * {
        font-family: "Satoshi", Arial, sans-serif;
      }

      /* Fix background transparency and stretching issues */
      body {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: -0.1px;
        line-height: 24px;
        background-color: #fafafa;
        color: #141414;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
      }

      /* Prevent horizontal overflow */
      main {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
      }

      /* Fix logo spacing on mobile */
      @media (max-width: 768px) {
        .hashtag-container {
          margin-right: -3px;
        }

        /* Fix form overlapping on mobile */
        .main-input-container {
          height: 60px;
        }

        .main-input {
          width: calc(100% - 120px);
          padding-left: 55px;
          font-size: 14px;
        }

        .country-selector {
          left: 8px;
          width: 45px;
        }

        /* Make a smaller version visible below the input instead */
        .demo-link {
          display: none;
          /* Hide on mobile to prevent overlap */
        }

        /* Fix testimonial boxes */
        .testimonials-container {
          overflow-x: auto !important;
          -webkit-overflow-scrolling: touch;
          scroll-behavior: smooth;
          scroll-snap-type: x proximity;
          /* Change from mandatory to proximity for smoother scrolling */
          display: flex;
          gap: 16px;
          padding-bottom: 20px;
          width: 100%;
          cursor: grab;
        }

        .testimonial-card {
          flex: 0 0 260px;
          min-width: 260px;
          scroll-snap-align: start;
          transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* Make scrollbar invisible but functional */
        .testimonials-container::-webkit-scrollbar {
          height: 0;
          width: 0;
          background: transparent;
        }

        /* Show scroll affordance on mobile */
        @media (max-width: 768px) {
          .testimonials-container::after {
            content: "";
            flex: 0 0 20px;
            min-width: 20px;
          }

          .testimonials-container::before {
            content: "";
            flex: 0 0 16px;
            min-width: 16px;
          }

          /* Fix testimonial width for mobile */
          .testimonial-card {
            flex: 0 0 80%;
            min-width: 240px;
            width: 80%;
            max-width: 300px;
          }
        }

        /* Better phone number preview on mobile */
        #formattedPhonePreview {
          position: static;
          margin-top: 8px;
          margin-bottom: 16px;
          padding: 0 8px;
          font-size: 11px;
          height: auto;
          line-height: 1.4;
        }
      }

      /* Updated loader animation to match the hashtag flip effect */
      .loader-hashtag {
        font-family: "Chivo", sans-serif;
        font-weight: 600;
        font-size: 5rem;
        color: #141414;
        animation: hashtag-flip 1.5s ease-out forwards;
        transform-origin: center;
        position: relative;
        display: inline-block;
      }

      @keyframes hashtag-flip {
        0% {
          transform: rotateY(0deg);
          opacity: 0;
        }

        20% {
          opacity: 1;
        }

        50% {
          transform: rotateY(90deg);
          opacity: 0.5;
        }

        100% {
          transform: rotateY(360deg);
          opacity: 1;
        }
      }

      /* Matching animation for the header logo */
      .logo-container:hover .hashtag-container span {
        transform: rotateY(360deg);
      }

      /* Cookie disclaimer */
      .cookie-disclaimer {
        position: fixed;
        bottom: 20px;
        right: 20px;
        max-width: 300px;
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        padding: 12px 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        font-size: 12px;
        color: #666;
        transform: translateY(100px);
        opacity: 0;
        transition: all 0.5s ease;
      }

      .cookie-disclaimer.show {
        transform: translateY(0);
        opacity: 1;
      }

      .cookie-disclaimer button {
        background-color: #25d366;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 6px 10px;
        margin-top: 8px;
        cursor: pointer;
        font-size: 11px;
        font-weight: 500;
        transition: background-color 0.2s ease;
      }

      .cookie-disclaimer button:hover {
        background-color: #128c7e;
      }

      /* Loader Animation */
      #loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out;
      }

      #loader.fade-out {
        opacity: 0;
      }

      .loader-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-family: "Nunito", sans-serif;
        font-size: 2rem;
      }

      .hashtag {
        font-weight: bold;
        color: #ff4d00;
        animation: pulse 1.5s infinite;
        margin-right: 4px;
      }

      .loader-text {
        font-weight: bold;
      }

      @keyframes pulse {
        0% {
          transform: scale(1);
        }

        50% {
          transform: scale(1.2);
        }

        100% {
          transform: scale(1);
        }
      }

      /* Loader Animation */
      #loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
      }

      #loader.fade-out {
        opacity: 0;
      }

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

      @keyframes pulse {
        0% {
          transform: scale(1);
        }

        50% {
          transform: scale(1.1);
        }

        100% {
          transform: scale(1);
        }
      }

      #loader .hashtag {
        animation: pulse 2s infinite;
      }

      .loader-text {
        font-family: "Chivo", sans-serif;
        font-weight: 600;
        font-style: italic;
        font-size: 3rem;
        color: #141414;
        opacity: 0;
        animation: loader-fade-in 0.5s ease-out 2.2s forwards;
        margin-left: 0.25rem;
      }

      @keyframes loader-fade-in {
        0% {
          opacity: 0;
        }

        100% {
          opacity: 1;
        }
      }

      /* Logo styling fixes - adjust spacing */
      .logo-container {
        position: relative;
        display: inline-flex;
        align-items: center;
      }

      .hashtag-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        perspective: 800px;
        perspective-origin: center;
        transform-style: preserve-3d;
        margin-right: 0px;
      }

      .hashtag-container span {
        display: inline-block;
        transform-style: preserve-3d;
        transition: transform 0.6s ease-in-out;
      }

      .logo-container:hover .hashtag-container span {
        transform: rotateY(360deg);
      }

      /* Responsive styles */
      @media (max-width: 768px) {
        h1 {
          font-size: 32px;
          line-height: 1.2;
        }

        h2 {
          font-size: 20px;
          line-height: 1.3;
          margin-bottom: 20px;
        }

        .testimonials-container {
          padding-bottom: 10px;
        }

        .testimonial-card {
          min-width: 240px;
          padding: 12px;
        }

        #features .grid {
          grid-template-columns: 1fr;
          gap: 24px;
        }

        /* Mobile adjustments for header */
        header {
          padding: 12px 16px;
          align-items: center;
        }

        /* Mobile hero section adjustments */
        .main-input-container {
          height: 56px;
        }

        .main-input {
          width: calc(100% - 140px);
          padding-left: 60px;
          font-size: 14px;
        }

        .country-selector {
          left: 8px;
          width: 50px;
        }

        .main-button {
          padding: 0 12px;
          width: auto;
          min-width: 90px;
          height: calc(100% - 10px);
          right: 5px;
          top: 5px;
          bottom: 5px;
        }

        .main-button span {
          display: inline-block !important;
          margin-left: 4px;
          font-size: 14px;
        }

        .demo-button {
          right: 80px;
          font-size: 12px;
          padding: 4px 8px;
        }

        /* Trust badges alignment */
        .flex.flex-wrap.items-center.justify-center.gap-3 {
          gap: 5px;
        }

        /* Beta counter adjustment */
        .flex.items-center.justify-center.my-4.text-sm {
          margin: 10px 0;
        }

        /* Mobile logo adjustments */
        .logo-container {
          height: 32px;
        }

        .logo-container .hashtag-container {
          height: 24px;
          width: 24px;
        }

        .logo-container span.text-2xl {
          font-size: 20px;
        }

        /* More space for header elements in mobile */
        header .w-16 {
          width: auto;
        }

        /* Fix the modal content for mobile */
        .modal-content {
          max-width: 90%;
          width: 350px;
          padding: 1.5rem;
        }

        /* Better spacing for the form elements on mobile */
        #formattedPhonePreview {
          position: static !important;
          margin-top: 4px;
          margin-bottom: 30px;
          /* Increased space for demo link */
          padding: 0 8px;
          font-size: 11px;
          height: auto;
          line-height: 1.4;
          bottom: auto !important;
        }

        /* Position the mobile demo link with more space */
        .demo-link {
          display: none;
          /* Was 'display: block', changed to 'none' to hide it on mobile as well */
          text-align: center;
          margin-top: 32px;
          /* Plenty of space after phone preview */
          margin-bottom: 16px;
          font-size: 13px;
          color: #666;
        }
      }

      /* Small mobile adjustments */
      @media (max-width: 375px) {
        h1 {
          font-size: 28px;
        }

        h2 {
          font-size: 18px;
        }

        .main-input {
          width: calc(100% - 140px);
          padding-left: 65px;
        }

        .demo-button {
          right: 80px;
          font-size: 12px;
          padding: 3px 6px;
        }

        .main-button {
          padding: 0 10px;
        }

        .main-button span {
          display: none;
        }
      }

/* Block 2 */
/* Global Styles - Exactly as in Grok */
      body {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: -0.1px;
        line-height: 24px;
        background-color: #fafafa;
        color: #141414;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

      /* Exact Grok heading styles */
      h1 {
        font-size: 42px;
        font-weight: 600;
        letter-spacing: -0.8px;
        line-height: 1.2;
        color: #000000;
        margin-bottom: 16px;
      }

      h2 {
        font-size: 28px;
        font-weight: 400;
        letter-spacing: -0.4px;
        line-height: 1.3;
        color: #6b7280;
        margin-bottom: 40px;
      }

      /* Grok-exact input field */
      .main-input-container {
        position: relative;
        width: 100%;
        max-width: 640px;
        height: 64px;
        border-radius: 9999px;
        background-color: white;
        border: 1px solid #e5e5e5;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
        margin: 0 auto;
      }

      .main-input-container:focus-within {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        border-color: #d1d5db;
      }

      /* Adjust phone input placeholder to prevent overflow */
      .main-input {
        width: calc(100% - 210px);
        height: 100%;
        padding: 0 20px 0 80px;
        border: none;
        background: transparent;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: -0.1px;
        line-height: 24px;
        color: #141414;
        outline: none;
        text-overflow: ellipsis;
        /* Add text overflow handling */
        white-space: nowrap;
        overflow: hidden;
      }

      .main-input::placeholder {
        color: #6b7280;
        opacity: 0.8;
      }

      /* Main Button (Grok-style) */
      .main-button {
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background-color: #141414;
        color: white;
        padding: 0 20px;
        border-radius: 9999px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        border: none;
        height: calc(100% - 12px);
      }

      .main-button:hover {
        background-color: #2a2a2a;
      }

      /* Deep Search Button (Grok-style) */
      .demo-button {
        position: absolute;
        right: 130px !important;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 10px;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .demo-button:hover {
        background-color: #f5f5f5;
      }

      /* Country selector */
      .country-selector {
        position: absolute;
        left: 12px;
        top: 0;
        bottom: 0;
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .country-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 120px;
        max-height: 250px;
        overflow-y: auto;
        background-color: white;
        border: 1px solid #e5e5e5;
        border-radius: 0.5rem;
        z-index: 50;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 5px;
      }

      /* Primary and secondary buttons */
      .primary-button {
        background-color: #141414;
        color: white;
        border-radius: 9999px;
        padding: 12px 24px;
        font-weight: 500;
        font-size: 15px;
        border: none;
        transition: all 0.2s ease;
        cursor: pointer;
      }

      .primary-button:hover {
        background-color: #2a2a2a;
      }

      .secondary-button {
        background-color: white;
        color: #141414;
        border: 1px solid #e5e5e5;
        border-radius: 9999px;
        padding: 12px 24px;
        font-weight: 500;
        font-size: 15px;
        transition: all 0.2s ease;
        cursor: pointer;
      }

      .secondary-button:hover {
        background-color: #f5f5f5;
        border-color: #d1d5db;
      }

      /* Login modal */
      .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
      }

      .modal.show {
        opacity: 1;
        pointer-events: auto;
      }

      .modal-content {
        background-color: white;
        border-radius: 1rem;
        padding: 2rem;
        max-width: 90%;
        width: 450px;
        transform: translateY(20px);
        transition: transform 0.3s ease;
        border: 1px solid #e5e5e5;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      }

      .modal.show .modal-content {
        transform: translateY(0);
      }

      /* Testimonials Section - Same as Video Carousel */
      .testimonials-container {
        overflow: hidden;
        position: relative;
        width: 100%;
        cursor: grab;
        padding-bottom: 20px;
      }

      .testimonials-track {
        display: flex;
        gap: 20px;
        will-change: transform;
        transition: none;
      }

      .testimonials-container:active {
        cursor: grabbing;
      }

      /* Make testimonial cards more visible on mobile */
      .testimonial-card {
        flex: 0 0 auto;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        white-space: normal;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      /* Responsive width for mobile devices */
      @media (max-width: 640px) {
        .testimonial-card {
          width: min(280px, 85vw);
          min-width: min(280px, 85vw);
          max-width: min(280px, 85vw);
        }
      }

      @media (max-width: 480px) {
        .testimonial-card {
          width: min(260px, 90vw);
          min-width: min(260px, 90vw);
          max-width: min(260px, 90vw);
        }
      }

      .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
      }

      /* Fix testimonial card stretching on mobile */
      .testimonial-card {
        box-sizing: border-box !important;
        display: block !important;
      }

      .testimonial-card .flex.items-start {
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
      }

      .testimonial-card img {
        flex-shrink: 0;
        width: 48px !important;
        height: 48px !important;
      }

      .testimonial-card .flex-1 {
        min-width: 0;
        max-width: calc(100% - 64px) !important;
        overflow-wrap: break-word;
        word-break: break-word;
      }

      .testimonial-card p {
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
      }

      /* Ensure testimonial cards maintain consistent dimensions on mobile */
      @media (max-width: 768px) {
        .testimonial-card {
          height: auto !important;
          min-height: 180px !important;
          max-height: none !important;
        }

        .testimonial-card .flex.items-start {
          height: 100%;
          flex-direction: row !important;
        }
      }

      /* Pause animation when user is interacting */
      .testimonials-container.user-scrolling {
        scroll-behavior: auto;
      }

      /* Features Section */
      .feature-card {
        transition: transform 0.3s ease;
      }

      .feature-card:hover {
        transform: translateY(-8px);
      }

      .feature-card svg {
        transition: transform 0.3s ease;
      }

      .feature-card:hover svg {
        transform: scale(1.1);
      }

      /* Hero section enhancements */
      .main-input-container {
        backdrop-filter: blur(8px);
        background-color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
      }

      .main-input-container:focus-within {
        background-color: white;
      }

      .main-button {
        background: linear-gradient(135deg, #141414 0%, #2c2c2c 100%);
      }

      .main-button:hover {
        background: linear-gradient(135deg, #2c2c2c 0%, #141414 100%);
        transform: translateY(-1px);
      }

      /* WhatsApp accent button */
      .whatsapp-button {
        position: relative;
        overflow: hidden;
        background-color: #25d366;
        color: white;
        transition: all 0.3s ease;
      }

      .whatsapp-button:hover {
        background-color: #128c7e;
      }

      .whatsapp-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
        );
        transition: left 0.7s ease;
      }

      .whatsapp-button:hover::before {
        left: 100%;
      }

      @keyframes subtle-float {
        0% {
          transform: translateY(0);
        }

        50% {
          transform: translateY(-5px);
        }

        100% {
          transform: translateY(0);
        }
      }

      .blur-3xl {
        animation: subtle-float 8s ease-in-out infinite;
      }

      /* Logo styling */
      .logo-container {
        position: relative;
        display: inline-flex;
        align-items: center;
      }

      .hashtag-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        perspective: 800px;
        perspective-origin: center;
        transform-style: preserve-3d;
        margin-right: 0px;
      }

      .hashtag-container span {
        display: inline-block;
        transform-style: preserve-3d;
        transition: transform 0.6s ease-in-out;
      }

      .logo-container:hover .hashtag-container span {
        transform: rotateY(360deg);
      }

      /* Responsive styles */
      @media (max-width: 768px) {
        h1 {
          font-size: 32px;
          line-height: 1.2;
        }

        h2 {
          font-size: 20px;
          line-height: 1.3;
          margin-bottom: 20px;
        }

        .testimonials-container {
          padding-bottom: 10px;
        }

        .testimonial-card {
          min-width: 240px;
          padding: 12px;
        }

        #features .grid {
          grid-template-columns: 1fr;
          gap: 24px;
        }

        /* Mobile adjustments for header */
        header {
          padding: 12px 16px;
        }

        /* Mobile hero section adjustments */
        .main-input-container {
          height: 56px;
        }

        .main-input {
          width: calc(100% - 140px);
          padding-left: 60px;
          font-size: 14px;
        }

        .country-selector {
          left: 8px;
          width: 50px;
        }

        .main-button {
          padding: 0 12px;
          width: auto;
          min-width: 90px;
          height: calc(100% - 10px);
          right: 5px;
          top: 5px;
          bottom: 5px;
        }

        .main-button span {
          display: inline-block !important;
          margin-left: 4px;
          font-size: 14px;
        }

        .demo-button {
          right: 95px !important;
          font-size: 11px;
          padding: 4px 8px;
          min-width: fit-content;
        }

        /* Trust badges alignment */
        .flex.flex-wrap.items-center.justify-center.gap-3 {
          gap: 5px;
        }

        /* Beta counter adjustment */
        .flex.items-center.justify-center.my-4.text-sm {
          margin: 10px 0;
        }

        /* Mobile logo adjustments */
        .logo-container {
          height: 32px;
        }

        .logo-container .hashtag-container {
          height: 24px;
          width: 24px;
        }

        .logo-container span.text-2xl {
          font-size: 20px;
        }

        /* More space for header elements in mobile */
        header .w-16 {
          width: auto;
        }

        /* Fix the modal content for mobile */
        .modal-content {
          max-width: 90%;
          width: 350px;
          padding: 1.5rem;
        }

        /* Better spacing for the form elements on mobile */
        #formattedPhonePreview {
          position: static !important;
          margin-top: 4px;
          margin-bottom: 30px;
          /* Increased space for demo link */
          padding: 0 8px;
          font-size: 11px;
          height: auto;
          line-height: 1.4;
          bottom: auto !important;
        }

        /* Position the mobile demo link with more space */
        .demo-link {
          display: none;
          /* Was 'display: block', changed to 'none' to hide it on mobile as well */
          text-align: center;
          margin-top: 32px;
          /* Plenty of space after phone preview */
          margin-bottom: 16px;
          font-size: 13px;
          color: #666;
        }
      }

      /* Small mobile adjustments */
      @media (max-width: 375px) {
        h1 {
          font-size: 28px;
        }

        h2 {
          font-size: 18px;
        }

        .main-input {
          width: calc(100% - 140px);
          padding-left: 65px;
        }

        .demo-button {
          right: 80px;
          font-size: 12px;
          padding: 3px 6px;
        }

        .main-button {
          padding: 0 10px;
        }

        .main-button span {
          display: none;
        }
      }

/* Block 3 */
/* WhatsApp green color for buttons */
      .main-button.bg-whatsapp,
      .whatsapp-button,
      #demoCtaBtn {
        background-color: #25d366 !important;
        border: none;
        color: white;
      }

      .main-button.bg-whatsapp:hover,
      .whatsapp-button:hover,
      #demoCtaBtn:hover {
        background-color: #128c7e !important;
        transform: translateY(-1px);
      }

/* Block 4 */
/* Fix WhatsApp green color for the Start button */
      .main-button.bg-whatsapp {
        background-color: #25d366 !important;
        background: #25d366 !important;
        border: none;
        color: white !important;
      }

      .main-button.bg-whatsapp:hover {
        background-color: #128c7e !important;
        background: #128c7e !important;
        transform: translateY(-1px);
      }

      /* Make sure "Get a demo instead" only shows on mobile */
      .demo-link {
        display: none;
      }

      @media (max-width: 768px) {
        .demo-link {
          display: none;
          /* Was 'display: block', changed to 'none' to hide it on mobile as well */
          text-align: center;
          margin-top: 32px;
          margin-bottom: 16px;
          font-size: 13px;
          color: #666;
        }
      }

      /* Fix mobile testimonial scrolling */

/* Block 5 */
/* Language selector styles - right aligned */
      .language-selector {
        display: flex;
        background: white;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 5px;
        border: 1px solid #eaeaea;
        margin-left: 4px;
      }

      .language-option {
        padding: 4px 8px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
        color: #666;
      }

      .language-option.active {
        background-color: #141414;
        /* Black */
        color: white !important;
        padding: 2px 10px !important;
      }

      .language-option:hover:not(.active) {
        background-color: #f5f5f5;
      }

      @media (max-width: 768px) {
        .language-selector {
          padding: 3px;
        }

        .language-option {
          padding: 3px 6px;
          font-size: 11px;
        }
      }

/* Block 6 */
/* Header adjustments for language selector and customer link */
      header .flex.items-center.relative {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        height: 100%;
      }

      header .language-selector {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 8px;
      }

      @media (max-width: 768px) {
        header .flex.items-center.relative {
          flex-direction: column;
          align-items: flex-end;
        }

        header .language-selector {
          margin-bottom: 4px;
        }

        #loginBtn {
          font-size: 11px;
        }
      }

/* Block 7 */
/* Add truncation to phone preview to prevent overflow */
      #formattedPhonePreview {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 90%;
        margin: 0 auto;
      }

      /* Improve desktop demo button positioning */
      .demo-button {
        position: absolute;
        right: 130px !important;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 10px;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        /* Prevent text wrapping */
        min-width: 85px;
      }

      /* Position mobile demo link closer to phone validation */
      @media (max-width: 768px) {
        /* Better phone number preview on mobile with less space */
        #formattedPhonePreview {
          position: static;
          margin-top: 8px;
          margin-bottom: 4px !important;
          /* Reduce space */
          padding: 0 8px;
          font-size: 11px;
          height: auto;
          line-height: 1.4;
        }

        /* Demo link right after phone preview */
        .demo-link {
          display: none;
          /* Was 'display: block', changed to 'none' to hide it on mobile as well */
          text-align: center;
          margin-top: 0;
          margin-bottom: 16px;
          font-size: 13px;
          color: #666;
        }
      }

/* Block 8 */
/* Adjust demo button to prevent it from appearing under Start button */
      .demo-button {
        position: absolute;
        right: 150px !important;
        /* Increase space from Start button significantly */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 10px;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-width: 90px;
        z-index: 5;
      }

      /* Increase spacing of main button to accommodate demo button */
      .main-button {
        width: auto;
        min-width: 100px;
      }

      /* Move phone input placeholder text more to the left */
      .main-input {
        width: calc(100% - 270px) !important;
        /* More space for the placeholder */
        padding-right: 5px !important;
        text-align: left;
      }

      /* Fix for mobile so demo button doesn't overlap */
      @media (max-width: 768px) {
        .demo-button {
          right: 95px !important;
          font-size: 11px;
          padding: 3px 6px;
          min-width: 70px;
        }

        .main-input {
          width: calc(100% - 170px) !important;
        }
      }

/* Block 9 */
/* Position the demo button closer to the start button */
      .demo-button {
        position: absolute;
        right: 130px !important;
        /* Reduce space from start button (was 150px) */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-width: fit-content;
        /* Use fit-content to adapt to text width */
        max-width: none;
        /* Remove any max-width constraints */
        z-index: 5;
        text-overflow: ellipsis;
        overflow: visible;
      }

      /* Adjust formatted phone preview position on mobile */
      @media (max-width: 768px) {
        /* Move phone preview down to create more space */
        #formattedPhonePreview {
          position: static !important;
          margin-top: 12px !important;
          margin-bottom: 12px !important;
          font-size: 11px;
          color: #666;
          padding: 0 10px;
        }

        /* Adjust demo button positioning for mobile */
        .demo-button {
          right: 95px !important;
          font-size: 11px;
          padding: 4px 8px;
          min-width: fit-content;
        }

        /* Add more space between phone preview and mobile demo link */
        .demo-link {
          display: none;
          /* Was 'display: block', changed to 'none' to hide it on mobile as well */
          text-align: center;
          margin-top: 8px !important;
          margin-bottom: 16px;
          font-size: 13px;
          color: #666;
        }
      }

/* Block 10 */
/* Float demo button to align with start button */
      .demo-button {
        position: absolute;
        right: auto !important;
        /* Remove fixed right positioning */
        left: calc(100% - 150px) !important;
        /* Position from the left instead */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-width: fit-content;
        max-width: none;
        z-index: 5;
        margin-right: 8px;
        /* Space between demo button and start button */
      }

      /* Adjust main button to accommodate floating demo button */
      .main-button {
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background-color: #25d366;
        color: white;
        padding: 0 20px;
        border-radius: 9999px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        border: none;
        height: calc(100% - 12px);
        z-index: 6;
        /* Higher than demo button */
      }

      /* Move phone preview message down on mobile */
      @media (max-width: 768px) {
        /* Adjust mobile demo button positioning */
        .demo-button {
          left: 60px !important;
          font-size: 11px;
          padding: 4px 8px;
          min-width: fit-content;
        }

        /* Move phone message preview down */
        #formattedPhonePreview {
          position: static !important;
          margin-top: 18px !important;
          /* Increase top margin */
          margin-bottom: 12px !important;
          font-size: 11px;
          color: #666;
          padding: 0 10px;
        }

        /* Add more space between phone preview and mobile demo link */
        .demo-link {
          display: none;
          /* Was 'display: block', changed to 'none' to hide it on mobile as well */
          text-align: center;
          margin-top: 12px !important;
          margin-bottom: 16px;
          font-size: 13px;
          color: #666;
        }
      }

/* Block 11 */
/* Position demo button to be visible and not under start button */
      .demo-button {
        position: absolute;
        right: auto !important;
        left: calc(100% - 220px) !important;
        /* Move further left to not be under start button */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-width: fit-content;
        max-width: none;
        z-index: 5;
        margin-right: 8px;
        display: none;
        /* Hide the demo button completely */
      }

      /* Reduce gap between country selector and input field */
      .country-selector {
        position: absolute;
        left: 8px;
        /* Reduced from 12px */
        top: 0;
        bottom: 0;
        width: 50px;
        /* Reduced from 60px */
        display: flex;
        align-items: center;
        justify-content: center;
      }

      /* Adjust input padding to accommodate narrower country selector */
      .main-input {
        width: calc(100% - 210px);
        height: 100%;
        padding: 0 20px 0 60px;
        /* Reduced from 80px to 60px */
        border: none;
        background: transparent;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: -0.1px;
        line-height: 24px;
        color: #141414;
        outline: none;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }

      /* Ensure mobile adjustments maintain proper layout */
      @media (max-width: 768px) {
        .country-selector {
          left: 5px;
          /* Further reduced for mobile */
          width: 45px;
        }

        .main-input {
          width: calc(100% - 140px);
          padding-left: 50px;
          /* Reduced from 60px to 50px for mobile */
          font-size: 14px;
        }

        /* Move demo button on mobile to be visible */
        .demo-button {
          display: none;
          /* Hide on mobile as well */
          left: auto !important;
          right: 95px !important;
          font-size: 11px;
          padding: 4px 8px;
          min-width: fit-content;
        }
      }

/* Block 12 */
/* Make country selector wider and reduce gap with input */
      .country-selector {
        position: absolute;
        left: 6px !important;
        /* Closer to left edge */
        top: 0;
        bottom: 0;
        width: 65px !important;
        /* Wider to fit text */
        display: flex;
        align-items: center;
        justify-content: center;
      }

      /* Make selector text fit better */
      #countryButton,
      #modalCountryButton,
      #demoCountryButton {
        font-size: 14px;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
      }

      /* Reduce gap with number input */
      .main-input {
        width: calc(100% - 210px);
        height: 100%;
        padding: 0 20px 0 72px !important;
        /* Closer to country selector */
        border: none;
        background: transparent;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: -0.1px;
        line-height: 24px;
        color: #141414;
        outline: none;
      }

/* Block 13 */
/* Keep country selector width but move input field left */
      .main-input {
        width: calc(100% - 210px);
        height: 100%;
        padding: 0 20px 0 68px !important;
        /* Reduced from 72px to 68px */
        border: none;
        background: transparent;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: -0.1px;
        line-height: 24px;
        color: #141414;
        outline: none;
      }

      /* Adjust the country selector display */
      .country-selector {
        position: absolute;
        left: 6px !important;
        top: 0;
        bottom: 0;
        width: 65px !important;
        display: flex;
        align-items: center;
        justify-content: flex-end !important;
        /* Align to the right side */
        padding-right: 2px !important;
        /* Add small padding on right */
      }

      /* Make selector text fit better */
      #countryButton,
      #modalCountryButton,
      #demoCountryButton {
        font-size: 14px;
        width: 100%;
        text-align: right !important;
        /* Align text to the right */
        display: flex;
        justify-content: flex-end !important;
        /* Right-align the button text */
        padding-right: 2px;
      }

      /* For mobile - ensure proper spacing */
      @media (max-width: 768px) {
        .main-input {
          width: calc(100% - 140px);
          padding-left: 55px !important;
          /* Reduced for mobile */
          font-size: 14px;
        }

        .country-selector {
          left: 5px !important;
        }
      }

/* Block 14 */
/* Adjust phone preview message positioning on mobile */
      @media (max-width: 768px) {
        /* Move phone message preview down by 6 more pixels (now 12px total) */
        #formattedPhonePreview {
          position: static !important;
          margin-top: 8px !important;
          /* Increased from 24px to 30px (+6px) */
          margin-bottom: 12px !important;
          font-size: 11px;
          color: white;
          padding: 0 10px;
        }
      }

/* Block 15 */
/* Modal styling */
      .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        padding: 20px;
      }

      .modal.show {
        display: flex;
      }

      /* Style the modal to match demo modal */
      #successModal .modal-content {
        position: relative;
        background-color: white;
        padding: 24px;
        border-radius: 16px;
        max-width: 450px;
        width: 90%;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        z-index: 10;
      }

      /* Button animation */
      #openWhatsAppBtn {
        position: relative;
        overflow: hidden;
      }

      #openWhatsAppBtn:after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent
        );
        transition: 0.5s;
      }

      #openWhatsAppBtn:hover:after {
        left: 100%;
      }

      /* Ensure confetti canvas sits inside modal content */
      #confetti-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        pointer-events: none;
        z-index: 1;
      }

      /* Make sure content is above confetti */
      #successModal .modal-content > div {
        position: relative;
        z-index: 2;
      }

/* Block 16 */
/* Make the bottom CTA button feel like a final element */
      #demoCtaBtn {
        background-color: #25d366;
        position: relative;
        margin-top: 30px;
        margin-bottom: 40px;
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
        border: none;
      }

      #demoCtaBtn:hover {
        background-color: #128c7e;
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
      }

      /* Add visual separator before the final CTA */
      #features::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(37, 211, 102, 0.5),
          transparent
        );
        margin: 40px auto 0;
        border-radius: 2px;
      }

      @media (max-width: 768px) {
        #demoCtaBtn {
          margin-top: 20px;
          margin-bottom: 30px;
        }

        #features::after {
          width: 60px;
          height: 3px;
          margin: 30px auto 0;
        }
      }

      .wrapper-tilt {
        transform: perspective(1500px);
        transition: transform 0.2s ease;
        transform-style: preserve-3d;
        will-change: transform;
        background-color: none !important;
      }

      .card::before {
        content: "";
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: inherit;
        background: transparent !important;
        opacity: 0;
        transition: all 0.2s ease-in-out;
      }

      .card:hover::before {
        opacity: 1;
      }

/* Block 17 */
.input-card,
      #heroSection,
      #pageHeader,
      #pageFooter,
      #heroSectionBg {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
      }

      .color-transition {
        transition: all 0.3s ease !important;
        -webkit-transition: all 0.3s ease !important;
      }

      .force-repaint {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
      }

/* Block 18 */
@media (min-width: 769px) {
        .language-selector {
          margin: 0;
          padding: 4px 10px;
          display: flex;
          align-items: center;
          background: white;
          border-radius: 6px;
        }

        .language-option {
          padding: 2px 10px;
          color: #141414;
          font-size: 14px;
          font-weight: normal;
          cursor: pointer;
          transition: background-color 0.2s ease;
        }

        .language-option:hover {
          background-color: #f3f4f6;
          border-radius: 4px;
        }

        .language-option.active {
          background-color: #141414;
          color: white;
          border-radius: 4px;
        }

        .dropdown-toggle {
          display: none;
        }

        .dropdown-content {
          display: none;
        }
      }

      /* Mobile - Dropdown layout */
      @media (max-width: 768px) {
        .language-selector {
          position: relative;
        }

        .language-option {
          display: none;
        }

        .dropdown-toggle {
          cursor: pointer;
          display: flex;
          align-items: center;
          gap: 8px;
          padding: 8px 12px;
          background: white;
          border-radius: 6px;
          transition: all 0.2s ease;
        }

        .dropdown-toggle:hover {
          background-color: #f9fafb;
        }

        .dropdown-content {
          position: absolute;
          top: 100%;
          right: 0;
          background: white;
          min-width: 120px;
          box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
          z-index: 1000;
          border-radius: 8px;
          overflow: hidden;
          opacity: 0;
          visibility: hidden;
          transform: translateY(-10px);
          transition: all 0.3s ease;
        }

        .dropdown-content.show {
          opacity: 1;
          visibility: visible;
          transform: translateY(0);
        }

        .dropdown-content .language-option {
          display: block;
          padding: 12px 16px;
          cursor: pointer;
          transition: background-color 0.2s ease;
          color: #141414;
          font-size: 14px;
          font-weight: normal;
        }

        .dropdown-content .language-option:hover {
          background-color: #f3f4f6;
        }

        .dropdown-content .language-option.active {
          background-color: #141414;
          padding: 12px 16px !important;
          color: white;
          font-weight: 400;
        }

        .chevron {
          transition: transform 0.3s ease;
        }

        .chevron.rotate {
          transform: rotate(180deg);
        }
      }

/* Block 19 */
.dropdown-arrow {
        transition: transform 0.2s ease;
      }

      .dropdown-open .dropdown-arrow {
        transform: rotate(180deg);
      }

      /* Hide desktop buttons on mobile, show on desktop */
      @media (max-width: 767px) {
        #categoryContainer {
          display: none !important;
        }
      }

      /* Hide mobile dropdown on desktop */
      @media (min-width: 768px) {
        .mobile-dropdown {
          display: none !important;
        }
      }

/* Block 20 */
@keyframes gradient-move {
        0% {
          background-position: 0% 50%;
        }

        50% {
          background-position: 100% 50%;
        }

        100% {
          background-position: 0% 50%;
        }
      }

      .animated-gradient {
        background: linear-gradient(90deg, #20cc81, #7a5ef8, #20cc81);
        background-size: 200% 200%;
        animation: gradient-move 4s ease infinite;
      }

/* Block 21 */
@keyframes slide-arrow {
        0% {
          transform: translateX(-100%);
          opacity: 0;
        }

        50% {
          opacity: 1;
        }

        100% {
          transform: translateX(100%);
          opacity: 0;
        }
      }

      .arrow-button:hover .arrow-move {
        animation: slide-arrow 1s linear infinite;
      }

/* Block 22 */
@media (max-width: 630px) {
        .mobile-title {
          height: 36%;
          position: absolute;
          top: 32%;
          transform: translateY(-50%);
          left: 50%;
          transform: translateX(-50%);
        }

        .mobile-cards {
          position: absolute;
          width: 100%;
          top: -7.5rem;
        }
      }

      @media (max-width: 375px) {
        .mobile-title {
          height: 50%;
          position: absolute;
          top: 25%;
          transform: translateY(-50%);
          transform: translateX(-50%);
        }

        .mobile-cards {
          position: absolute;
          width: 100%;
          top: -115px;
        }
      }

/* Block 23 */
.button-container {
        position: relative;
      }

      .glow-button {
        position: relative;
        padding: 18px 60px;
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        background: #000000;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        text-transform: capitalize;
        letter-spacing: 1px;
        z-index: 2; /* Button is above glow */
        transition: transform 0.2s ease;
      }

      .glow-effect {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 140px; /* slightly bigger so glow peeks outside button */
        height: 140px;
        background: radial-gradient(
          circle,
          rgba(60, 171, 164, 0.9) 0%,
          rgba(63, 179, 174, 0.6) 40%,
          transparent 70%
        );
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: 0; /* <-- This puts it behind button */
        pointer-events: none;
        transition: all 0.1s ease;
        filter: blur(25px);
        opacity: 0.4;
      }

      @media (max-width: 767px) {
        .glow-effect {
          width: 40px;
          height: 40px;
        }
      }

      .button-border {
        position: absolute;
        top: 50%;
        left: 50%;
        width: calc(100% + 6px);
        height: calc(100% + 6px);
        border-radius: 50px;
        transform: translate(-50%, -50%);
        z-index: -1; /* stays farthest back */
        filter: blur(2px);
      }

      .glow-button:active {
        transform: scale(0.98);
      }

/* Block 24 */
/* vertical accent color; mobile -> white */
      .vertical-accent {
        background-color: #b0fa06;
      }
      @media (max-width: 767px) {
        .vertical-accent {
          background-color: #ffffff;
        }
      }

      .carousel-container {
        overflow: hidden;
        position: relative;
      }
      .carousel-track {
        display: flex;
        gap: 24px;
        will-change: transform;
      }
      .video-item {
        flex-shrink: 0;
        width: 200px;
        height: 340px;
        position: relative;
      }
      @media (min-width: 768px) {
        .video-item {
          width: 225px;
          height: 400px;
        }
      }

      .placeholder {
        background: #dbdbdb;
        border-radius: 8px;
        width: 100%;
        height: 100%;
      }

      .overlay {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        background: rgba(22, 22, 22, 0.35);
        opacity: 0;
        transition: opacity 0.22s ease;
        cursor: pointer;
      }

      /* Show overlay on hover only when video is NOT playing */
      .video-item:hover .overlay {
        opacity: 1;
      }

      /* Hide overlay when video is playing (controlled by JS) */
      .video-item.playing .overlay {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
      }

      /* Ensure overlay shows when video is paused/stopped */
      /* .video-item.paused .overlay {
        opacity: 1;
      } */

      @media (max-width: 767px) {
        .overlay {
          opacity: 1;
          width: 198px;
        }
      }

      .play-button {
        background: white;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
      }
      .play-button:active {
        transform: scale(0.98);
      }

      .bottom-controls {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.25s ease;
        pointer-events: none;
      }
      .bottom-controls.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }

      .fullscreen-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(28, 16, 32, 0.95);
        z-index: 1000;
        align-items: center;
        justify-content: center;
      }
      .fullscreen-modal.show {
        display: flex;
      }
      .fullscreen-video {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 8px;
      }

      /* small fixes to avoid layout bounce */
      .carousel-container,
      .carousel-track,
      .video-item,
      video {
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
      }

      /* prevent accidental text selection on touch drags */
      .carousel-track,
      .carousel-container {
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        touch-action: pan-y;
      }


/* Removed duplicate/incorrect rule - categoryContainer should be visible on desktop */
/* The correct rule is at lines 2043-2047: hide on mobile (max-width: 767px) */
