@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

:root {
    --moroccan-red: #c1272d;
    --moroccan-green: #006233;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s
}

body {
    margin: 0;
    font-family: "Lato", sans-serif;
    background-color: #f5f5f5;
    color: #333
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: #fff
}

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

.use-cases-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem
}

.text-center {
    text-align: center
}

.mb-2 {
    margin-bottom: 2rem
}

.grid {
    display: grid;
    gap: 2rem
}

.topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))
}

.category-card img,
.topic-preview {
    transition: transform var(--transition-speed)
}

.topic-preview {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.dark-theme .topic-preview {
    background: var(--dark-surface)
}

.topic-preview:hover {
    transform: translateY(-5px)
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 1rem
}

.preview-phrases {
    margin-top: 1rem
}

.phrase-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1)
}

.dark-theme .phrase-mini {
    border-bottom-color: rgba(255, 255, 255, .1)
}

.phrase-counter {
    text-align: center;
    padding: 2rem
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--moroccan-red);
    display: block
}

.dark-theme .counter-number {
    color: #ff9b9b
}

.audio-button {
    background: var(--moroccan-red);
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center
}

.audio-button.loading::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #fff;
    animation: spin 1s linear infinite
}

.category-explorer {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.category-card:hover img {
    transform: scale(1.05)
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    color: #fff
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--moroccan-red);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2)
}

.theme-toggle:hover {
    transform: scale(1.1)
}

.theme-toggle:active {
    transform: scale(.95)
}

.theme-toggle .material-icons {
    font-size: 20px
}

.dark-theme .app-badge.light,
.dark-theme .theme-toggle .sun-icon {
    display: none
}

body:not(.dark-theme) .app-badge.dark,
body:not(.dark-theme) .theme-toggle .moon-icon {
    display: none
}

.dark-theme .theme-toggle {
    background: #666
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem
}

.app-badge {
    height: 40px;
    display: inline-block;
    transition: opacity .2s ease
}

.app-badge:hover {
    opacity: .8
}

.app-badge img {
    height: 100%;
    width: auto
}

.case-card {
    position: relative;
    min-height: 500px
}

.case-bg,
.case-bg::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.case-bg {
    z-index: 1
}

.case-bg::after {
    content: "";
    background: linear-gradient(to bottom, rgba(66, 66, 66, 0.3), rgba(66, 66, 66, 0.919));
    /*border-radius: 2rem*/
}

.dark-theme .case-bg::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .9))
}

.case-bg img,
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.case-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%
}

.dark-theme .case-content {
    color: #fff
}

.case-content * {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .1)
}

.case-content h3 {
    background: rgba(184, 184, 184, .858);
    margin: 1rem 0
}

.scenario {
    background: rgba(184, 184, 184, .858);
    padding: 1rem;
    margin: 0.5rem 0
}

.case-content h3 {
    border-radius: 6px;
    border: 0
}

.dark-theme .case-content h3 {
    background: rgba(69, 69, 69, .858)
}

.case-card h3 {
    margin: 0 0 1rem
}

.cultural-tip .scenario {
    backdrop-filter: blur(15px)
}

.scenario {
    border-radius: 8px;
    color: #000
}

.phrase-item {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    margin-bottom: .5rem;
    border: 0
}

.phrase-item small {
    color: rgba(43, 43, 43, .8)
}

.dark-theme .phrase-item small {
    color: rgba(255, 255, 255, .8)
}

.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    color: #fff;
    overflow: hidden
}

.hero-image,
.hero-image::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.hero-image {
    z-index: -1
}

.hero-image::after {
    content: "";
    background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .6))
}

.hero-content {
    padding-top: 20vh;
    max-width: 800px
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem
}

.benefits {
    padding: 2rem 0
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: calc(3*300px + 2*2rem);
    margin: 0 auto
}

.benefit-card {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    transition: transform .3s ease
}

.dark-theme .benefit-card {
    background: var(--dark-surface)
}

.benefit-card:hover {
    transform: translateY(-5px)
}

.benefit-card .material-icons {
    font-size: 3rem;
    color: var(--moroccan-red);
    margin-bottom: 1rem
}

.features {
    background: #f9f9f9;
    padding: 2rem 0
}

.dark-theme .features,
.dark-theme .social-proof {
    background: var(--dark-surface)
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center
}

@media (max-width:768px) {
    .feature-card {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 2.5rem
    }

    .hero-subtitle {
        font-size: 1.25rem
    }
}

.social-proof {
    padding: 1rem 0;
    background: #f5f5f5
}

.creator-card {
    text-align: center;
    padding: 2rem;
    margin-bottom: 3rem
}

.location-icon,
.other-products h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem
}

.location-icon {
    color: var(--moroccan-red)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: calc(3*1fr + 2*16px)
}

.stat-card {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow)
}

.dark-theme .stat-card {
    background: var(--dark-bg)
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--moroccan-red);
    margin-bottom: .5rem
}

.use-cases {
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

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

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease
}

.dark-theme .case-card {
    background: var(--dark-surface)
}

.case-card:hover {
    transform: translateY(-5px)
}

.case-icon {
    color: var(--moroccan-red)
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary)
}

.case-icon .material-icons {
    font-size: 2rem
}

.dark-theme .scenario {
    background: rgba(69, 69, 69, .858);
    color: #fff
}

.scenario-title {
    font-weight: 700;
    color: var(--moroccan-red)
}

.key-phrases {
    margin-top: 1rem
}

.phrase-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .1)
}

.dark-theme .phrase-item {
    border-bottom-color: rgba(255, 255, 255, .1)
}

.case-screenshot {
    width: 100%;
    height: auto;
    object-fit: cover
}

.cultural-tip {
    background: rgba(143, 189, 167, .812);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--moroccan-green);
    /*margin: 1.5rem 0;*/
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1)
}

.dark-theme .cultural-tip {
    background: rgba(0, 98, 51, .3);
    color: #fff
}

.tip-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--moroccan-green);
    font-weight: 700;
    margin-bottom: .5rem
}

.tip-content {
    font-size: .9rem;
    line-height: 1.4
}

.audio-button.mini {
    width: 30px;
    height: 30px
}

.audio-button.mini .material-icons {
    font-size: 16px
}

@media (max-width:768px) {
    .cases-grid {
        grid-template-columns: 1fr
    }
}

.dark-theme .dark-screenshot {
    display: block
}

.dark-screenshot,
.dark-theme .light-screenshot {
    display: none
}

.pricing {
    padding: 2rem 0;
    background: #f5f5f5
}

.dark-theme .pricing {
    background: var(--dark-surface)
}

.pricing-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto
}

@media (max-width:968px) {
    .value-grid {
        grid-template-columns: 1fr
    }
}

.price-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow)
}

.dark-theme .price-card {
    background: var(--dark-bg)
}

.price-header {
    text-align: center;
    margin-bottom: 2rem
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem
}

.amount,
.appPrice {
    font-size: 3rem;
    font-weight: 700;
    color: var(--moroccan-red)
}

.appPrice {
    color: var(--moroccan-green)
}

.period {
    color: #666;
    font-size: 1.5rem
}

.dark-theme .period,
.dark-theme .saving-item p {
    color: #999
}

.price-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem
}

.feature-item .material-icons {
    color: var(--moroccan-green)
}

.comparison-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow)
}

.dark-theme .comparison-card {
    background: var(--dark-bg)
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--moroccan-red)
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.comparison-list li {
    padding: .5rem 0;
    padding-left: 1.5rem;
    position: relative
}

.comparison-list li::before {
    content: "•";
    color: var(--moroccan-green);
    position: absolute;
    left: 0
}

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

.saving-item {
    text-align: center;
    padding: 1rem
}

.saving-item .material-icons {
    font-size: 2rem;
    color: var(--moroccan-green);
    margin-bottom: .5rem
}

.saving-item h4 {
    margin: .5rem 0
}

.saving-item p {
    font-size: .9rem;
    color: #666
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem
}

.carousel-container {
    display: none
}

@media (max-width:768px) {
    .use-cases-grid {
        display: none
    }

    .carousel-container {
        display: block;
        width: 100%;
        overflow: hidden
    }

    .carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 1rem;
        gap: 1rem
    }

    .carousel::-webkit-scrollbar {
        display: none
    }

    .case-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
        max-width: 300px
    }
}

.other-products {
    padding: 2rem 0;
    background: #f9f9f9
}

.dark-theme .other-products {
    background: var(--dark-surface)
}

.other-products h2 {
    text-align: center
}

.other-products .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem
}

.dark-theme .other-products .subtitle,
.dark-theme .product-card p {
    color: #aaa
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease
}

.dark-theme .product-card {
    background: var(--dark-bg)
}

.product-card:hover {
    transform: translateY(-5px)
}

.product-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem
}

.product-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6
}

.product-links {
    display: flex;
    gap: 1rem;
    justify-content: center
}

.store-link {
    display: inline-block;
    padding: .5rem 1.5rem;
    border-radius: 25px;
    background: var(--moroccan-red);
    color: #fff;
    text-decoration: none;
    transition: background-color .3s ease
}

.store-link:hover {
    background: var(--moroccan-red-dark)
}

@media (max-width:968px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:768px) {
    .other-products h2 {
        font-size: 2rem
    }

    .products-grid {
        grid-template-columns: 1fr
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto
    }

    .use-cases-grid {
        display: none
    }

    .carousel-container {
        display: block;
        width: 100%;
        padding: 0
    }

    .carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem calc((100% - 90vw)/2)
    }

    .case-card {
        scroll-snap-align: center;
        flex: 0 0 90vw;
        min-width: 280px;
        max-width: 400px;
        margin: 0;
        padding: 1.5rem;
        height: auto;
        overflow: visible
    }

    .case-content {
        width: 100%;
        height: auto;
        padding: 0
    }

    .case-card h3,
    .case-card p {
        margin-bottom: 1rem
    }

    .audio-button {
        position: relative;
        margin: .5rem 0
    }
}

.dark-theme .heading-box {
    background: rgba(69, 69, 69, .858)
}

.case-icon .material-icons {
    font-size: 24px;
    width: 24px;
    height: 24px
}

.dark-theme .case-icon {
    background: rgba(255, 255, 255, .8)
}

.case-card h3,
.heading-box h3 {
    margin: 0;
    font-size: 1.5rem
}

.case-icon,
.heading-box {
    display: flex;
    align-items: center
}

.heading-box {
    gap: 1rem;
    background: rgba(184, 184, 184, .858);
    border-radius: 6px;
    /*padding: 1rem;
    margin: 1rem 0;*/
    overflow: hidden
}

.heading-box h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.case-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
    margin: 0.5rem;
    background: rgba(255, 255, 255, .9)
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('fonts.woff2') format('woff2'),
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Default size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

@font-face {
    font-family: 'Lato';
    src: url('Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}