:root {
    --green: #5B9E8F;
    --green-dark: #478C7C;
    --purple: #6C63AC;
    --purple-dark: #574E99;
    --coral: #D4775C;
    --coral-dark: #C0624A;
    --pink: #C47E8A;
    --pink-dark: #B06A76;
    --bg-warm: #F7F4F0;
    --bg-warm2: #EBE7E2;
    --text-dark: #2C3E50;
    --text-gray: #5D6D7E;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Utilities */
.bg-warm {
    background: linear-gradient(135deg, var(--bg-warm), var(--bg-warm2), var(--bg-warm));
}

.bg-green-grad {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.bg-purple-grad {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.bg-coral-grad {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
}

.bg-pink-grad {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
}

.bg-cta {
    background: linear-gradient(135deg, var(--green), var(--green-dark), var(--green));
}

.bg-footer-grad {
    background: linear-gradient(135deg, #2D3436, #1A1D1F);
}

.text-green {
    color: var(--green) !important;
}

.text-purple {
    color: var(--purple) !important;
}

.text-coral {
    color: var(--coral) !important;
}

.text-muted-custom {
    color: var(--text-gray) !important;
}

.gradient-text {
    background: linear-gradient(90deg, var(--green), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Rounded */
.rounded-3 {
    border-radius: 16px !important;
}

.rounded-4 {
    border-radius: 24px !important;
}

.rounded-5 {
    border-radius: 40px !important;
}

/* Buttons */
.btn-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(91, 158, 143, .3);
    transition: all .3s;
}

.btn-green:hover {
    box-shadow: 0 15px 40px rgba(91, 158, 143, .45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(108, 99, 172, .3);
    transition: all .3s;
}

.btn-purple:hover {
    box-shadow: 0 15px 40px rgba(108, 99, 172, .45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-coral {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(212, 119, 92, .3);
    transition: all .3s;
}

.btn-coral:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 15px 40px rgba(212, 119, 92, .4);
}

.btn-pink {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(196, 126, 138, .3);
    transition: all .3s;
}

.btn-pink:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 15px 40px rgba(196, 126, 138, .4);
}

.btn-outline-green {
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 16px;
    padding: 12px 30px;
    font-weight: 600;
    background: transparent;
    transition: all .3s;
}

.btn-outline-green:hover {
    background: var(--green);
    color: #fff;
}

/* Icon Box */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    color: #fff;
}

.icon-box-lg {
    width: 64px;
    height: 64px;
}

.icon-box-xl {
    width: 80px;
    height: 80px;
}

/* Cards */
.card-custom {
    border-radius: 24px;
    border: 2px solid var(--bg-warm);
    transition: all .3s;
    background: #fff;
}

.card-custom:hover {
    border-color: rgba(91, 158, 143, .35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .08);
    transform: translateY(-5px);
}

/* Animations */
@keyframes float {

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

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

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.float {
    animation: float 4s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}

.float-reverse {
    animation: float 6s ease-in-out infinite reverse;
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Blob */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .2;
    pointer-events: none;
    z-index: 0;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-card {
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .1);
}

.info-row {
    background: var(--bg-warm);
    border-radius: 16px;
    padding: 14px 18px;
}

/* Sophie */
.sophie-box {
    background: linear-gradient(90deg, rgba(184, 161, 227, .1), rgba(168, 143, 211, .1));
    border: 2px solid rgba(184, 161, 227, .2);
    border-radius: 24px;
    padding: 20px;
}

/* Pillar tabs */
.pillar-tab {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    border: 2px solid var(--bg-warm2);
    background: #fff;
    cursor: pointer;
    transition: all .3s;
    display: inline-block;
}

.pillar-tab:hover {
    border-color: rgba(91, 158, 143, .35);
}

.pillar-tab.active-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(91, 158, 143, .3);
}

.pillar-tab.active-purple {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(108, 99, 172, .3);
}

/* Step number */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    position: absolute;
    top: -28px;
    left: 24px;
    z-index: 2;
}

/* Testimonial */
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    cursor: pointer;
    transition: all .3s;
}

.testimonial-avatar.active {
    outline: 4px solid var(--green);
    outline-offset: 4px;
}

.testimonial-card {
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
}

/* Stat card */
.stat-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    text-align: center;
}

/* CTA form */
.cta-glass {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    overflow: hidden;
}

.cta-form .form-control {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    padding: 14px 20px;
    color: #fff;
}

.cta-form .form-control::placeholder {
    color: rgba(255, 255, 255, .5);
}

.cta-form .form-control:focus {
    border-color: rgba(255, 255, 255, .6);
    box-shadow: none;
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

/* Disclaimer */
.disclaimer-box {
    background: var(--bg-warm);
    border-left: 4px solid var(--coral);
    border-radius: 16px;
    padding: 20px;
}

.disclaimer-box-pink {
    background: var(--bg-warm);
    border-left: 4px solid var(--pink);
    border-radius: 12px;
    padding: 20px;
}

/* Test illustration */
.test-illustration {
    background: linear-gradient(135deg, #E8E5F5, #F0EDF7);
    border-radius: 32px;
    padding: 48px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    box-shadow: 0 20px 50px rgba(108, 99, 172, .3);
}

/* Footer */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-2px);
}

/* Wave */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Star fill */
.star-fill {
    color: var(--coral);
}

/* ============================================
   NAVBAR & MOBILE MENU
   ============================================ */
.navbar-carely {
    background: transparent;
}

/* Hamburger button */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--text-dark);
    transition: all .3s ease;
}

.hamburger-icon span:nth-child(1) {
    width: 28px;
}

.hamburger-icon span:nth-child(2) {
    width: 20px;
}

.hamburger-icon span:nth-child(3) {
    width: 24px;
}

.navbar-toggler:hover .hamburger-icon span {
    background: var(--green);
}

.navbar-toggler:hover .hamburger-icon span:nth-child(2) {
    width: 28px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Offcanvas mobile menu */
.offcanvas-mobile {
    width: 300px !important;
    border-left: none !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
    z-index: 1055 !important;
}

.offcanvas-mobile .offcanvas-header {
    padding: 20px 24px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--bg-warm2);
}

.offcanvas-mobile .offcanvas-body {
    padding: 24px;
}

/* Close button mobile menu */
.btn-close-mobile {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-gray);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    cursor: pointer;
}

.btn-close-mobile:hover {
    background: rgba(224, 122, 95, .1);
    color: var(--coral);
}

/* Mobile nav links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: all .25s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: linear-gradient(135deg, rgba(91, 158, 143, .12), rgba(91, 158, 143, .05));
    color: var(--green);
    transform: translateX(4px);
}

.mobile-nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    color: var(--text-gray);
    transition: color .25s;
}

.mobile-nav-link:hover i {
    color: var(--green);
}

/* Scroll animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
    /* .hero-right-col { display: none; } */

    .hero-section {
        min-height: auto;
    }

    .hero-section .container {
        padding-top: 40px !important;
        padding-bottom: 100px !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .pillar-tab {
        padding: 10px 16px;
        font-size: .85rem;
    }

    .testimonial-card {
        border-radius: 24px !important;
        padding: 2rem !important;
    }

    #tContent {
        font-size: 1.1rem !important;
    }

    .cta-glass {
        border-radius: 24px;
    }

    .stat-card {
        padding: 20px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 575px)
   ============================================ */
@media (max-width: 575px) {

    /* General */
    section {
        /* padding-top: 3rem !important;  */
        padding-bottom: 3rem !important;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Buttons smaller on mobile */
    .btn-green,
    .btn-purple,
    .btn-coral,
    .btn-pink {
        padding: 12px 20px;
        font-size: .9rem;
    }

    .btn-lg {
        padding: 12px 24px !important;
        font-size: .95rem !important;
    }

    /* Hero */
    .hero-section {
        min-height: auto;
    }

    .hero-section .container {
        padding-top: 24px !important;
        padding-bottom: 80px !important;
    }

    /* Hero stats: wrap and smaller */
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px !important;
    }

    .hero-stats .vr {
        display: none;
    }

    .hero-stats>div {
        text-align: center;
        flex: 1;
        min-width: 80px;
    }

    .hero-stats h4 {
        font-size: 1.3rem !important;
    }

    /* Hero buttons stack */
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sophie box */
    .sophie-box {
        padding: 14px;
        border-radius: 16px;
    }

    .sophie-box .icon-box-lg {
        width: 48px;
        height: 48px;
    }

    /* Pillar tabs: stack vertically */
    .pillar-tabs-wrap {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .pillar-tabs-wrap .pillar-tab {
        display: block;
        text-align: center;
        padding: 12px 14px;
        font-size: .8rem;
        margin: 0 !important;
    }

    /* Cards */
    .card-custom {
        border-radius: 16px;
        padding: 16px !important;
    }

    .card-custom:hover {
        transform: none;
    }

    /* Features icon-box margin fix */
    .card-custom .icon-box {
        margin-bottom: 12px;
    }

    /* How it works steps */
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        top: -22px;
        left: 16px;
        border-radius: 12px;
    }

    /* Test illustration */
    .test-illustration {
        padding: 24px;
        aspect-ratio: auto;
        min-height: 200px;
        border-radius: 20px;
    }

    .brain-circle {
        width: 100px;
        height: 100px;
        font-size: 2.8rem;
    }

    /* Mental health test section illustration */
    .mh-test-illustration {
        padding: 24px !important;
    }

    .mh-test-illustration .brain-circle {
        width: 100px;
        height: 100px;
        font-size: 2.8rem;
    }

    .mh-test-illustration [style*="min-height:280px"] {
        min-height: 180px !important;
    }

    .mh-test-illustration .position-absolute {
        transform: scale(.7);
    }

    /* Testimonials */
    .testimonial-card {
        border-radius: 20px !important;
        padding: 1.25rem !important;
    }

    #tContent {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .testimonial-avatar {
        width: 44px;
        height: 44px;
        font-size: .9rem;
        border-radius: 12px;
    }

    .testimonial-avatar.active {
        outline-width: 3px;
        outline-offset: 3px;
    }

    /* Stat cards */
    .stat-card {
        padding: 16px;
        border-radius: 16px;
    }

    .stat-card h3 {
        font-size: 1.5rem !important;
    }

    /* CTA section */
    .cta-glass {
        border-radius: 20px;
        padding: 20px !important;
    }

    .cta-glass .position-absolute {
        display: none;
    }

    /* hide floating gift on mobile */
    .cta-form .form-control {
        padding: 12px 16px;
        font-size: .9rem;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Disclaimer */
    .disclaimer-box,
    .disclaimer-box-pink {
        padding: 14px;
        border-radius: 12px;
    }

    /* Footer */
    .bg-footer-grad .d-flex.gap-4 {
        flex-wrap: wrap;
        gap: 12px !important;
    }

    /* Rounded overrides for mobile */
    .rounded-5 {
        border-radius: 20px !important;
    }

    /* Wave smaller */
    .wave-divider svg {
        height: 40px;
    }

    /* Blob smaller on mobile */
    .blob {
        width: 200px !important;
        height: 200px !important;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 375px)
   ============================================ */
@media (max-width: 375px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    .btn-green,
    .btn-purple,
    .btn-coral,
    .btn-pink {
        padding: 10px 16px;
        font-size: .85rem;
    }

    .icon-box {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .icon-box i {
        font-size: 1.1rem !important;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: .8rem;
    }
}