/* CSS Variables */
:root {
    /* Brand Colors from Symptive Brand Book */
    --black-violet: #080004;
    --violet-femme: #1F143A;
    --misty-winter: #2F2C4D;
    --528-u: #B78AD2;
    --blue-finch: #C0D1E6;
    --rose-quartz: #ECD1D4;
    --off-white: #F9F5FF;

    /* White for backgrounds */
    --white: #FFFFFF;

    /* Solid colors - no gradients */

    --shadow-sm: 0 2px 4px rgba(8, 0, 4, 0.1);
    --shadow-md: 0 4px 12px rgba(8, 0, 4, 0.15);
    --shadow-lg: 0 10px 30px rgba(8, 0, 4, 0.2);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333333; /* Darker color for better readability */
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--528-u);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #5a5a5a; /* Readable gray for subtitles */
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 9999;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    height: 65px;
    width: auto;
    max-width: 250px;
    transition: var(--transition);
}

.logo a:hover svg {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #4a4a4a; /* Slightly darker for nav readability */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--528-u);
}

/* Buttons */
.btn-primary {
    background: var(--528-u);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover:not(:disabled) {
    background: #9f6fc0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--misty-winter);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    top: 70px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    color: var(--misty-winter);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-cta {
    width: 100%;
    margin-top: 1rem;
}

.mobile-menu .btn-primary {
    color: white;
}

/* Hero Section */
.hero {
    margin-top: 85px; /* Height of the fixed header */
    padding: 80px 0 80px;
    background: url('images/hero-bg.png') no-repeat top center;
    background-size: cover;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 0, 4, 0.3); /* Black Violet with opacity */
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.hero-title .accent {
    color: #b78ad2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 1rem;
}

.hero-cta > :first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-block;
    transition: var(--transition);
}

.app-store-badge:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.app-store-badge img {
    height: 50px;
    width: auto;
}

.hero .btn-primary {
    background: white;
    color: var(--528-u);
    font-weight: 700;
}

.hero .btn-primary:hover {
    background: var(--off-white);
    color: #9f6fc0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 0 0 auto;
}


.phone-mockup img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Value Proposition */
.value-prop {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

/* Features Carousel */
.features-carousel {
    padding: 0;
    background: var(--off-white); /* Off-White brand color */
    position: relative;
    z-index: 1;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    background: #f3ebf9;
    min-height: 600px;
}

.carousel-slide {
    display: none;
    padding: 80px 0;
}

.carousel-slide.active {
    display: block;
}

.slide-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 550px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.slide-text h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #052313;
    font-weight: 700;
    line-height: 1.1;
}

.slide-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #b78ad2;
    font-weight: 600;
}

.slide-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6c757d;
}

.carousel-nav {
    position: absolute;
    bottom: 50%;
    right: 40px;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #b78ad2;
    border: 2px solid #b78ad2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: #b78ad2;
    color: white;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(183, 138, 210, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: #b78ad2;
    transform: scale(1.2);
}

/* Science Section */
.science-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--528-u);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--off-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--528-u);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--528-u);
    opacity: 0.3;
}

.stars {
    color: var(--528-u); /* Using 528 U purple instead of yellow */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.author {
    font-weight: 600;
    color: var(--528-u);
    margin-top: 1rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--off-white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--off-white);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #5a5a5a;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--528-u);
    text-align: center;
    color: white;
}

.cta-section .btn-primary {
    background: white;
    color: var(--528-u);
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    background: var(--off-white);
    color: #9f6fc0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-note {
    margin-top: 1rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--misty-winter);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--528-u);
}

.social-links i {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--misty-winter);
    transition: var(--transition);
}

.close:hover {
    color: var(--528-u);
}

.modal h2 {
    margin-bottom: 1rem;
    color: var(--528-u);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal input,
.modal select,
.modal textarea {
    padding: 0.75rem;
    border: 1px solid var(--blue-finch);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.modal textarea {
    resize: vertical;
    min-height: 80px;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--528-u);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #5a5a5a;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-container span {
    line-height: 1.4;
}

.checkbox-container a {
    color: var(--528-u);
    text-decoration: underline;
}

.checkbox-container a:hover {
    color: #9f6fc0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 100px auto 20px;
        padding: 1.5rem;
        width: 95%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-menu {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .phone-mockup {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        background-position: center center;
        background-size: cover;
        min-height: calc(100vh - 70px);
        padding: 40px 0;
    }

    .hero::before {
        background: rgba(8, 0, 4, 0.5); /* Darker overlay for better text readability on mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile Carousel - Card-based layout */
    .carousel-container {
        min-height: auto;
        padding: 40px 0;
    }

    .carousel-slide {
        padding: 0;
        display: none;
    }

    .carousel-slide.active {
        display: block;
    }

    .slide-content {
        display: block;
        padding: 0 20px;
    }

    .slide-image {
        text-align: center;
        margin-bottom: 2rem;
        overflow: hidden;
        height: 200px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .slide-image img {
        width: 50%;
        height: auto;
        object-fit: cover;
        object-position: top;
    }

    .slide-text {
        text-align: center;
        padding: 1.5rem;
        background: white;
        border-radius: 15px;
        box-shadow: var(--shadow-md);
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .slide-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .slide-text h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .slide-text p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-dots {
        position: static;
        transform: none;
        margin-top: 2rem;
        padding-bottom: 1rem;
        display: flex;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}