/* Global styles */
html {
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f0c29;
    color: #fff;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    z-index: -1;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f0c29;
        color: white;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: white;
        color: white;
    }
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 60px 20px;
}

h1, h2, h3 {
    text-align: center;
    color: white;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: rgb(238, 199, 114);
    box-shadow: 0 0 10px #ffcf59aa;
    color: #000;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.8s ease, transform 0.7s ease;
}

.btn-primary:hover {
    background-color: rgba(252, 188, 57, 0.98);
    box-shadow: 0 0 22px rgba(246, 198, 68, 0.66);
    transform: scale(1.13);
}

.hidden {
    display: none !important;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0c29;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader img {
    width: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    50% {
        transform: scale(1.13);
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
}


/* Header */
.navbar {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.navbar img {
    position: relative;
    top: 60px;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    box-shadow: 0 0 10px #fdfd96;
}

.appstore-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    border: 2px solid #fff;
    color: #fff;
    background-color: #0766dc;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s ease;
}

.appstore-btn:hover {
    background-color: #5696ea;
    color: #000;
}

/* Hero */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #ffcf59;
}

.hero p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Problem section */
.problem-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.problem-item {
    background: #1f1f2e;
    padding: 5px 15px;
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
    text-align: center;
    width: 280px;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: 0.4s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.problem-item .text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 100%;
    text-align: center;
    line-height: 1;
    white-space: normal;
}

.word {
    display: inline-flex;
    white-space: nowrap;
    margin: 0 2px;
}

.letter {
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.letter.disappear {
    opacity: 0;
    transform: translateY(-10px);
}

.letter.appear {
    opacity: 1;
    transform: translateY(10px);
}


/* Fade Text Effect */
.fade-letter {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: pre;
}

.fade-letter.disappear {
    opacity: 0;
    transform: translateY(-10px);
}

.fade-letter.appear {
    opacity: 1;
    transform: translateY(0);
}



.solution {
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
    color: #ffcf59;
}

.card-flip {
    perspective: 1000px;
    width: 100%;
    max-width: 300px;
    height: 160px;
    margin: 0 auto;
    transition: background 0.8s ease, transform 0.7s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-inner,
.card-flip:active .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 16px;
    border-radius: 16px;
    box-sizing: border-box;
    backface-visibility: hidden;
    background-color: #1f1f2e;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.8s ease, transform 0.7s ease;
}

.card-front span {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #ccc;
}

.card-back {
    transform: rotateY(180deg);
    font-size: 0.9rem;
    color: #fff;
    padding: 20px;
}

.card-back .emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.card-back .back-text {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    padding: 0 10px;
}


/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background-color: #1f1f2e;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    min-height: 220px;
}

/* Mockup */
.mockup {
    text-align: center;
}

.mockup img {
    max-width: 300px;
    border-radius: 24px;
    box-shadow: 0 0 20px #ffcf59aa;
}

/* Bonus */
.bonus {
    background-color: rgba(255, 223, 100, 0.1);
    border-radius: 20px;
    text-align: center;
}

#countdown {
    font-size: 1.5rem;
    font-family: monospace;
    color: #ffcf59;
    margin: 20px 0;
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.testimonial {
    background: #1f1f2e;
    padding: 20px;
    border-radius: 12px;
    font-style: italic;
    flex: 1;
    max-width: 300px;
}

/* FAQ */
.faq details {
    background-color: #1f1f2e;
    border-radius: 12px;
    margin: 10px 0;
    padding: 15px 20px;
}

.faq summary {
    font-weight: bold;
    cursor: pointer;
    color: #ffcf59;
}

.faq p {
    margin-top: 10px;
}

/* Subscribe */
.subscribe form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe input {
    padding: 12px 16px;
    width: 100%;
    border-radius: 24px;
    border: none;
    font-size: 1rem;
}

.subscribe button {
    width: 100%;
    padding: 12px 24px;
    border-radius: 24px;
    background-color: #ffcf59;
    color: #000;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.subscribe button:hover {
    background-color: #fcd34d;
}

#response-message {
    text-align: center;
    margin-top: 10px;
}

/* Sticky CTA */
.sticky-cta {
    width: 220px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(238, 199, 114);
    color: #000;
    padding: 12px 24px;
    border-radius: 32px;
    font-weight: bold;
    box-shadow: 0 0 10px #ffcf59aa;
    text-align: center;
    z-index: 999;
    transition: background 0.8s ease, transform 0.7s ease;
}


.sticky-cta:hover, .sticky-cta:focus {
    background-color: rgba(252, 188, 57, 0.98);
    box-shadow: 0 0 22px rgba(246, 198, 68, 0.66);
    transform: translateX(-50%) scale(1.13);
}

/* HERO improvements */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    /*height: 100vh;*/
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 .highlight {
    color: #ffcf59;
}

.glow {
    color: #fff;
    text-shadow: 0 0 20px #ffcf59aa, 0 0 40px #ffcf59aa;
}


/* Horizontal scroll for What's Inside Vibris */
.features-grid {
    display: none;
}

.features-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin-top: 40px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.feature-box {
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #1f1f2e;
    padding: 20px;
    border-radius: 16px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 1rem;
}

.feature-box span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Scrollbar styles */
.problem-scroll::-webkit-scrollbar,
.features-scroll::-webkit-scrollbar {
    height: 6px;
}

.problem-scroll::-webkit-scrollbar-thumb,
.features-scroll::-webkit-scrollbar-thumb {
    background-color: #ffcf59;
    border-radius: 3px;
}

/* Adjusted Features Grid: 4 columns, smaller height */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.card {
    background-color: #1f1f2e;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    transition: background 0.8s ease, transform 0.7s ease;
}

.card span {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #ccc;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px #ffcf59aa;
    transition: 0.7s ease;
}


/* Button AppStore */
.appstore-btn {
    display: inline-flex;
    width: 250px;
    align-items: center;
    background-color: #000;
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 0 12px rgba(255, 216, 107, 0.4);
    border: 1px solid #FFE27A;
    outline: 1px solid #FFF3C2;
    outline-offset: -2px;
    transition: background 0.8s ease, transform 0.7s ease;
}

.appstore-btn:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0 0 22px rgba(246, 198, 68, 0.66);
    transform: scale(1.13);
}

.appstore-btn .icon-apple {
    color: #fff;
    font-size: 46px;
    margin-right: 38px;
    line-height: 1;
}

.appstore-btn .text-line {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.appstore-btn .small-text {
    font-size: 18px;
    color: #ccc;
}

.appstore-btn .store-name {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}


/* ✅ HeatMap Styles */
#heatmap-overlay {
  all: initial;
  pointer-events: none;
  z-index: 99999;
}


/* unsubscribe popup */
.unsubscribe-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(6px);
    z-index: 9998;
}

.unsubscribe-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f1f2e;
    padding: 40px 40px 30px;
    border-radius: 24px;
    box-shadow: 0 0 30px #ffcf5980;
    color: #fff;
    font-size: 1.1rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease-out;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.unsubscribe-popup-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #ffcf59;
    cursor: pointer;
    line-height: 1;
}

.unsubscribe-popup.success { border-left: 6px solid #4caf50; }
.unsubscribe-popup.error   { border-left: 6px solid #f44336; }

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Video Styles */
.video-preview {
    max-width: 290px; width: 100%; height: auto; border-radius: 24px; display: block; margin: 0 auto;
}


/* ✅ Mobile Styles */
@media (max-width: 767px) {
    #preloader img {
        width: 85%;
        animation: pulse 2s infinite ease-in-out;
    }

    .video-preview {
        max-width: 220px; width: 100%; height: auto; border-radius: 24px; display: block; margin: 0 auto;
    }

    .unsubscribe-popup {
        padding: 30px 24px 20px;
        font-size: 1rem;
    }

    .unsubscribe-popup-btn {
        font-size: 24px;
        top: 8px;
        right: 12px;
    }

    .card, .card-front, .card-back {
        padding: 10px !important;
    }

    .card-back .back-text {
        font-size: 0.8rem;
        padding: 0 4px;
    }

    .card-back .emoji {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .testimonials-grid {
        flex-direction: column;
    }

    .hero-content {
        max-width: 300px;
        margin: 0 auto;
    }

    .solution {
        max-width: 280px;
    }

    .bonus {
        padding: 20px;
        width: 78%;
        font-size: 1rem;
        align-items: center;
        margin: 0 auto;
    }

    .problem-item {
        font-size: 0.95rem;
        padding: 20px;
        height: auto;
        min-height: 80px;
    }

    .problem-centered {
        flex-direction: column;
        gap: 12px;
        padding: 0 12px;
    }

    .problem-centered .problem-item {
        width: 100%;
        font-size: 0.95rem;
        padding: 6px;
    }

    h1, h2 {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .card {
        height: auto;
        padding: 20px;
    }

    .mockup img {
        width: 90%;
    }

    .problem-centered {
        flex-direction: column;
        gap: 16px;
    }

    .problem-centered .problem-item {
        margin: 0 auto;
        max-width: 80%;
        align-items: center;
    }

    .subscribe form {
        padding: 0 16px;
    }

    .sticky-cta {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .appstore-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* ✅ Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        max-width: 550px;
        margin: 0 auto;
    }


    .solution {
        max-width: 350px;
    }

    .bonus {
        width: 78%;
        align-items: center;
        margin: 0 auto;
        padding: 30px 40px;
        font-size: 1.1rem;
    }

    .problem-centered {
        gap: 16px;
    }

    .problem-centered .problem-item {
        width: 45%;
        margin: 0 auto;
        align-items: center;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn-primary {
        font-size: 1.05rem;
        padding: 14px 28px;
    }

    .card {
        height: auto;
    }

    .mockup img {
        width: 80%;
    }
}
