/* CSS Variables & Theme Setup */
:root {
    --color-primary: #FF5269;
    --color-primary-dark: #E6475D;
    /* Light Theme Defaults */
    --color-bg: #FFFFFF;
    --color-surface: #F3F4F6;
    --color-text: #1A1A2E;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    
    --container-width: 1200px;
    --container-padding: 20px;
    --header-height: 80px;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0F0F1A;
        --color-surface: #1A1A2E;
        --color-text: #F9FAFB;
        --color-text-muted: #9CA3AF;
        --color-border: #374151;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Material Icons Override */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
  vertical-align: middle;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.highlight {
    color: var(--color-primary);
}

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(var(--color-bg), 0.8);
    background-color: var(--color-bg); /* Fallback */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@supports (color: color-mix(in srgb, var(--color-bg), transparent 20%)) {
    .header {
        background-color: color-mix(in srgb, var(--color-bg), transparent 20%);
    }
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
}

.logo img {
    border-radius: 10px; /* Rounded corners for the icon */
}

.nav__list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav__link:hover, .nav__link.active {
    color: var(--color-primary);
}

.nav__social {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: color var(--transition-speed), transform 0.2s;
}

.nav__social:hover {
    color: #E1306C;
    transform: scale(1.1);
}

.header__controls {
    display: none; /* Hidden by default on desktop, flex on mobile */
    align-items: center;
    gap: 16px;
}

.header__social-mobile {
    display: flex; /* Ensure it is flex to center SVG */
    color: var(--color-text);
    transition: color 0.3s;
}

.header__social-mobile:hover {
    color: #E1306C;
}

/* Store Buttons Sizing */
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-button img {
    height: 50px;
    width: auto;
    transition: transform 0.2s;
}

/* Reduce Google Play height slightly to match App Store width visually */
.store-button:last-child img {
    height: 48px;
}

@media (max-width: 480px) {
    .hero__buttons {
        gap: 12px;
    }

    .store-button img {
        height: auto;
        width: 160px; /* Consistent width for vertical stack */
        max-width: 100%;
    }
    
    .store-button:last-child img {
        width: 160px; /* Ensure exact width match on mobile */
        height: auto;
    }
}

.nav__link--cta {
    background-color: var(--color-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: background-color var(--transition-speed);
}

.nav__link--cta:hover {
    background-color: var(--color-primary-dark);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-bg);
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    z-index: 999;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu.active {
    height: 240px;
}

.mobile-menu__list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-menu__link {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
}

.store-button img {
    height: 50px;
    width: auto;
    transition: transform 0.2s;
}

.store-button:hover img {
    transform: translateY(-2px);
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image img {
    max-height: 600px;
    height: auto; /* CRITICAL: Maintain aspect ratio */
    width: auto;  /* Ensure width adjusts naturally */
    max-width: 100%; /* Prevent overflow */
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.hero__bg-shape {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,82,105,0.1) 0%, rgba(255,82,105,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Features Section (Cards) */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--color-surface);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon .material-symbols-outlined {
    font-size: 3.5rem;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--color-text-muted);
}

/* Detailed Features Section (Grid) */
.detailed-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 20px;
}

.detailed-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px;
}

.detailed-icon {
    font-size: 2.5rem !important;
    color: var(--color-primary);
    background: var(--color-surface);
    padding: 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.detailed-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.detailed-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Screenshots Section */
.swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.swiper-slide {
    width: 280px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.swiper-slide img {
    width: 100%;
    height: auto;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--color-primary) !important;
}

/* CTA Section */
.cta__container {
    background-color: var(--color-surface);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.cta__buttons {
    justify-content: center;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer__brand img {
    border-radius: 8px;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__bg-shape {
        display: none;
    }

    .detailed-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header__controls {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__description {
        margin: 0 auto 30px;
    }

    .hero__buttons {
        justify-content: center;
    }

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

    /* Detailed features mobile */
    .detailed-features__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .detailed-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

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

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* FAQ Section */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq__item {
    background-color: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.faq__item:hover {
    border-color: var(--color-primary);
}

.faq__question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    transition: color var(--transition-speed);
}

.faq__question:hover {
    color: var(--color-primary);
}

.faq__icon {
    flex-shrink: 0;
    transition: transform var(--transition-speed);
    color: var(--color-primary);
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding: 0 24px 24px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq__answer strong {
    color: var(--color-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq__question {
        font-size: 1rem;
        padding: 20px;
    }

    .faq__answer p {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
}
