:root {
    --primary-yellow: #FFB300;
    --background-yellow: #FFF8E1;
    --light-yellow: #FFF9C4;
    --dark-brown: #403b1c;
    --medium-brown: #6D5C42;
    --light-brown: #8D6E63;
    --white: #FFFFFF;
    --grey: #6B7280;
    --light-grey: #E5E5E5;
    --success-green: #4CAF50;
    --error-red: #F44336;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-brown);
    background-color: #FFF2C2; /* Card yellow from mobile app */
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    overflow-y: scroll;
}

.hero-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Language Switch */
.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--background-yellow);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--medium-brown);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--primary-yellow);
}

.lang-btn.active {
    color: var(--primary-yellow);
    font-weight: 700;
}

.language-switch .divider {
    color: var(--light-grey);
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
    display: flex;
    justify-content: center;
}

.header-table {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cell {
    display: flex;
    flex-direction: column;
}

.logo-cell {
    flex-shrink: 0;
}

.text-cell {
    text-align: left;
    justify-content: center;
}

.main-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 6px var(--shadow-light));
    animation: pulse 2s infinite;
}

.main-title {
    font-size: 3rem;
    color: var(--dark-brown);
    text-shadow: 2px 2px 4px var(--shadow-light);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--medium-brown);
    margin: 5px 0 0 0;
    font-weight: 300;
    font-style: italic;
}

/* Tabs */
.tabs-container {
    width: 100%;
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    background-color: #FFF2C2;
    border-bottom: 1px solid var(--light-grey);
    justify-content: center;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--grey);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-button:hover {
    color: var(--medium-brown);
}

.tab-button.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.tab-content {
    display: none;
    padding: 10px 0;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 600px;
}

.tab-content.active {
    display: block;
}

.content-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--medium-brown);
}

.purpose-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
}

.purpose-text {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.purpose-text h2 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-weight: 700;
}

.purpose-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--dark-brown);
    margin: 0;
}

.purpose-layout .carousel-container {
    flex-shrink: 0;
    flex: 1;
}

.features-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.phone-mockup {
    position: relative;
    flex-shrink: 0;
    width: 300px;
}

.phone-frame {
    width: 100%;
    height: auto;
    display: block;
}

.phone-screen {
    position: absolute;
    top: 60px;
    left: 20px;
    width: calc(100% - 45px);
    height: auto;
    object-fit: contain;
}

.features-list-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background-color: var(--background-yellow);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.feature-item.active {
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 1rem;
    color: var(--medium-brown);
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 780px;
    height: 520px;
    margin: 30px auto 10px;
    border-radius: 20px;
    overflow: visible;
    background: transparent;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-yellow);
}

.indicator.active {
    background: var(--primary-yellow);
    transform: scale(1.2);
}

/* Testimonials */
.testimonials-container {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 30px;
    background: transparent;
    border-radius: 15px;
    position: relative;
}

.testimonial-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
}

.testimonial {
    position: absolute;
    width: 100%;
    left: 0;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--dark-brown);
    font-style: italic;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    padding: 0 20px;
    text-align: center;
    will-change: opacity;
}

.testimonial.visible {
    opacity: 1;
}

.testimonial-inner {
    display: block;
    transform: translateY(0);
}

.testimonial.visible .testimonial-inner {
    animation: floatTestimonial 6s ease-in-out infinite;
}

@keyframes floatTestimonial {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Download section */
.download-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-brown);
    text-align: center;
    margin-bottom: 30px;
}

/* App Store Badge */
.app-store-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin: 20px 0 50px 0;
}

.store-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.app-store-badge {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.app-store-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.app-store-badge.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-store-badge.disabled:hover {
    transform: none;
    filter: none;
}

.coming-soon {
    font-size: 0.9rem;
    color: var(--grey);
    font-style: italic;
    margin: 0;
}

/* Guru Section */
.guru-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.guru-image {
    flex-shrink: 0;
}

.guru-image img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.guru-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guru-text h2 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.guru-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-brown);
    margin: 0;
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--light-grey);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--medium-brown);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.divider {
    color: var(--grey);
    margin: 0 5px;
}

.copyright {
    color: var(--grey);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-table {
        flex-direction: column;
        gap: 10px;
    }

    .text-cell {
        text-align: center;
    }

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

    .subtitle {
        font-size: 1.2rem;
    }

    .carousel-container {
        max-width: 520px;
        height: 390px;
        margin-bottom: 30px;
    }

    .testimonial {
        font-size: 1.1rem;
    }

    .main-logo {
        width: 90px;
        height: 90px;
    }

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

    .purpose-layout {
        flex-direction: column;
        gap: 30px;
    }

    .features-layout {
        flex-direction: column;
        gap: 30px;
    }

    .guru-layout {
        flex-direction: column;
        gap: 30px;
    }

    .guru-image img {
        width: 250px;
    }

    .phone-mockup {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .carousel-container {
        max-width: 390px;
        height: 325px;
    }

    .testimonial {
        font-size: 1rem;
        padding: 0 10px;
    }

    .testimonials-container {
        min-height: 100px;
        padding: 20px;
    }
}