@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--white-color);
    border: 1px solid var(--Neutral-N400-color);
    border-radius: 999px;

    box-shadow: 0px 10px 18px 0px #3A4C921A;

    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--Neutral-N800-color);
    
    margin-bottom: 16px;
    z-index: 1;
}

.pill-icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 6px;
    padding: 8px 16px;

    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    z-index: 1;
}

.pattern img
{
    height: 100%;
}

section
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.title{
    font-family: 'Jost', sans-serif;
    font-weight: bold;
    font-size: 36px;
    color: var(--Neutral-dark-color);
    margin-bottom: 16px;
}
.title-nowrap
{
    width: fit-content;
    text-wrap-mode: nowrap;
}

.subtitle{
    font-family: 'Jost', sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: var(--Neutral-N800-color);
}

/* hreo section */
.hero-section-pattern
{    
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.pattern-tile-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pattern-tile {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.pattern-tile img {
    position: absolute;
}

/* First image - top right */
.pattern-tile .tile-1 {
    top: 28%;
    right: -1%;
    opacity: 0.46;
}

/* Second image - below the first */
.pattern-tile .tile-2 {
    top: 60%;
    right: -8%;
}

/* Third image - to the left of the second */
.pattern-tile .tile-3 {
    top: 67%;
    right: 9%;
    opacity: 0.46;
}


.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.hero-title {
    font-size: 42px;
}

.hero-subtitle {
    margin-bottom: 36px;
}


/* our products section */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 80%;
}

.product-text-wrapper {
    display: block;
    text-align: left;
    width: min-content;
}

/* Video Section Container */
.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-card {
    position: relative;
    width: 100%;
    height: fit-content;
    /* background: var(--primary-color); */
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease; /* smooth transitions */
}

/* overlays default visible */
.video-card::before,
.video-card::after {
    pointer-events: none;
    transition: opacity 0.3s ease; /* smooth fade */
}

.video-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to right,
        rgba(255, 255, 255, 0.1) 0,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 100px
    ),
    repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 100px
    );
    z-index: 1;
}

.video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, #FFFFFF66, transparent 150px),
                radial-gradient(circle at 70% 20%, #FFFFFF99, transparent 80px),
                radial-gradient(circle at 30% 80%, #FFFFFF99, transparent 100px),
                radial-gradient(circle at 90% 90%, #FFFFFF99, transparent 120px),
                radial-gradient(circle at 50% 50%, #FFFFFF66, transparent 50px);
    z-index: 1;
}

/* hide overlays when playing */
.video-card.playing::before,
.video-card.playing::after {
    opacity: 0;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.play-button i {
    color: var(--primary-color);
    font-size: 22px;
    margin-left: 2px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* hide play button / startVideo when playing */
.video-card.playing #startVideo {
    opacity: 0;
    pointer-events: none;
}



/* Modal base */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

/* Modal content */
.modal-content {
  position: relative;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content video {
  border-radius: 8px;
  display: block;
  width: 100%;
}

.close {
  position: absolute;
  top: 2px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1;
}

/* our strategies section */
.strategy-section-pattern
{    
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

.strategy-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80%;
}

.strategy-text-wrapper {
    display: block;
    width: min-content;
    margin-bottom: 48px;
}

.features-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.feature-card {
    flex: 1;
    /* min-width: 360px; */
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    text-align: start;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white-color);
    z-index: 1;
    border: 1px solid var(--primary-color);
    box-shadow: 0px 2px 6px 0px #2FB4BD75;
    box-shadow: 0px 13px 12px 0px #2FB4BD1C;

}

.feature-icon {
    width: 32px;
    height: 32px;
}

.feature-title {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--Neutral-dark-color);
    margin-bottom: 12px;
}

.feature-text {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--Neutral-N800-color);
    line-height: 1.5;
}

/* help section */
.help-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
    width: 80%;
}

/* Top Row */
.help-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.help-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.help-title {
    max-width: 480px;
    line-height: 1.2;
    
}

.help-subtitle {
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 480px;
}

.help-image {
    flex: 1;
    text-align: center;
}

.laptop-img {
    max-width: 100%;
    height: auto;
}

.help-card {
    position: relative;
    width: 94%;
    margin: 24px 16px;
    display: flex;
    background: var(--primary-color);
    border-radius: 32px;
    padding: 60px;
    gap: 40px;

}

.help-card-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: url('/assets/images/analyze-win-pattern.png') no-repeat center center;
    background-size: cover;
}

.help-card-left {
    flex: 1;
    display: flex;
}

.card-title {
    font-family: "DM Sans", sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--white-color);
    text-wrap-mode: nowrap;
}

.help-card-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    max-width: 381px;
    height: fit-content;

    display: flex;
    gap: 12px;
    border-radius: 16px;
    border-width: 1px;

    background: var(--DarkOverlayElement-DO10, #FFFFFF1A);
    border: 1px solid var(--DarkOverlayElement-DO20, #FFFFFF33);
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.help-icon-container {
display: flex;
    align-items: center;
    width: 48px;
    height: 50%;
    gap: 8px;
    opacity: 1;
    border-radius: 12px;
    padding: 12px;
    background: var(--DarkOverlayElement-DO10, #FFFFFF1A);
    align-self: center;

}

.help-icon {  
    width: 24px;
    height: 24px;
}

.mini-card-text {
    overflow: hidden;
    text-align: left;
}

.mini-card h3 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--white-color);
    margin-bottom: 0px;
}

.mini-card p {
    /* -webkit-line-clamp: 2; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--DarkOverlayElement-DO70, #FFFFFFB2);
    padding-right: 4px;
    margin-bottom: 0px;
}


/* our services section */
.service-section-pattern
{    
    position: absolute;
    top: -48%;
    left: 0;
    height: 100%;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 95%;
}

.service-text-wrapper {
    display: block;
    width: min-content;
    margin-bottom: 36px;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.service-card {
    /* height: 222px;
    min-width: 292px; */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--Neutral-N400-color);
    text-align: start;

    background-color: var(--white-color);
    z-index: 1;
}

.service-card.active {
    border: 1px solid var(--primary-color);
    box-shadow: 0px 2px 6px 0px #2FB4BD75;
    box-shadow: 0px 13px 12px 0px #2FB4BD1C;

}

.service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.service-card-title {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--Neutral-dark-color);
    margin-bottom: 2px;
}

.service-text {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--Neutral-N800-color);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* FAQ section */
.faq-section {
    text-align: left;
}

.faq-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    gap: 40px;
    width: 95%;
}

.faq-text-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.faq-title {
    max-width: 380px;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    
}

.faq-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 380px;
}

.faq-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;

}

.faq-item {
    background: var(--white-color);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--Neutral-N200, #ECEEF4);
    overflow: hidden;
}

.faq-question {
    padding: 0 20px 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--Neutral-dark-color);
    transition: background-color 0.2s ease;
}

.chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--Neutral-N600-color);
}

.chevron.rotated {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
    padding: 0 20px 20px 0;
    border-bottom: 1px solid var(--Neutral-N400, #B6BCCD);
}

.faq-answer p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;

    color: var(--Neutral-N800-color);
}

.question-wrapper
{
    display: flex;
    align-items: center;
    gap: 16px;
}

.vertical-line {
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 1439px) {
    .hero-content {
        width: 90%;
    }
    .product-content {
        width: 90%;
    }
    .strategy-content {
        width: 90%;
    }
    .help-container {
        width: 90%;
    }
    .help-card {
        width: 100%;
        padding: 32px;
        gap: 24px;
        margin: 0;
    }
    /* .video-card {
        height: 400px;
    } */
}

@media (max-width: 1023px) {
    section{
        padding: 60px 20px;
    }

    .pattern-tile img {
        height: 15%;
    }
    .pattern-tile .tile-2 {
        top: 50%;
        right: -8%;
    }
    /* .video-card {
        height: 300px;
    } */
    .strategy-content {
        width: 95%;
    }
    .features-container {
        gap: 16px;
    }
    .feature-card {
        padding: 16px 12px;
    }

    .help-card
    {
        flex-direction: column;
    }
    .help-card-background {
        width: 60%;
        height: 70%;
    }
    .help-card-right {
        align-items: flex-end;
    }

    .services-container {
        gap: 16px;
    }
    .service-card {
        padding: 16px;
    }

    .faq-content{
        flex-direction: column;
    }

    .service-text-wrapper {
        width: auto;
    }
    .service-title {
        text-wrap-mode: wrap;
    }

    .faq-subtitle
    {
        max-width: none;
    }

    .pattern {
        display: flex;
        align-items: center;
    }
    .pattern img {
        height: 70%;
    }
    .service-section-pattern img{
        width: 60%;
    }
}

@media (max-width: 767px) {
    section {
        padding: 40px 20px;
    }

    .pattern-tile-container {
        display: none;
    }
    .hero-content {
        width: 95%;
    }
    .product-content {
        width: 95%;
    }
    .strategy-content {
        width: 95%;
    }
    .help-container {
        width: 95%;
    }
    .features-container {
        flex-direction: column;
    }
    .help-top {
        flex-direction: column;
    }
    .services-container {
        flex-direction: column;
    }

    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 14px;
    }

    .product-text-wrapper {
        width: 100%;
    }
    .product-title {
        font-size: 28px;
    }
    .strategy-text-wrapper {
        width: 100%;
    }
    .title-nowrap {
        text-wrap: wrap;
    }
    .card-title {
        text-wrap: wrap;
    }

    .strategy-text-wrapper {
        margin-bottom: 32px;
    }
    .help-top {
        margin-bottom: 40px;
        gap: 48px;
    }

    .strategy-section{
        overflow: hidden;
    }
    .strategy-section-pattern {
        justify-content: end;
        top: 140px;
        width: 50%;
    }

    .strategy-section-pattern img {
        height: 40%;
    }
    .faq-text-wrapper {
        min-width: unset;
    }

    .pattern img {
        height: 70%;
        width: 85%;
    }
    .service-section-pattern {
        top: -52%;
    }
}

@media (max-width: 375px)
{
    .title {
        font-size: 30px;
    }
    .help-content {
        min-width: unset;
    }
    .help-card
    {
        padding: 24px;
    }
}
