/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a2540;
    --secondary-color: #00d4a1;
    --accent-color: #f6e05e;
    --text-color: #333;
    --light-gray: #f7fafc;
    --white: #ffffff;
    --font-primary: 'Noto Sans TC', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-secondary);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #00b88a;
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 26px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}


/* --- Header & Navigation --- */
#header {
    background: var(--white);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-button {
    font-size: 0.9rem;
    padding: 8px 20px;
}


/* --- Hero Section --- */
#hero {
    background-image: linear-gradient(rgba(10, 37, 64, 0.7), rgba(10, 37, 64, 0.7)), url('https://images.unsplash.com/photo-1599351542842-297f68908339?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


/* --- Features Section --- */
#features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}


/* --- How It Works Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-gray);
    position: relative;
    border-radius: 6px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}


/* --- Testimonial Section --- */
.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.before-after-card {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.image-container {
    display: flex;
    gap: 1rem;
}

.image-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
}

.testimonial-text {
    flex: 1;
}

.testimonial-text p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-text cite {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Purchase Section --- */
#purchase {
    background-color: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.price-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-card.popular {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.price-card h3 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 1.3rem;
}

.price-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
}

.price-card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.price-card ul li {
    margin-bottom: 0.5rem;
}

.price-card ul li .fa-check {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
}


/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
}


/* --- Footer --- */
#footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
}


/* --- Responsive Design --- */
@media(max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        margin-bottom: 2rem;
    }

    .price-card.popular {
        transform: scale(1);
    }
}


@media(max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-menu {
        /* Basic responsive nav, can be improved with JS for a hamburger menu */
        flex-direction: column;
        display: none;
    }

    .before-after-card {
        flex-direction: column;
        text-align: center;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-item::after {
        left: 10px;
    }

    /* Stack product images on tablets/phones */
    .product-images {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-image {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }
}


/* --- NEW HERO SECTION STYLES --- */
#hero {
    background-color: #F0FAF8;
    /* Light mint green background */
    height: auto;
    /* Override earlier height: 100vh to prevent clipping */
    min-height: 100vh;
    /* Fallback */
    min-height: 100dvh;
    /* Better on mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 4rem;
    /* Add padding for header */
    overflow: hidden;
    background-image: radial-gradient(circle at 80% 50%, #e0f2ef 0%, #F0FAF8 40%);
}

.hero-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1 1 20%;
    /* Takes up 55% of the space */
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #E6F6F3;
    color: #14B8A6;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #ccece6;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-primary);
    font-size: 3.8rem;
    font-weight: 700;
    color: #0F4C3A;
    /* Darker, more saturated green */
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #556662;
    max-width: 500px;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #556662;
    margin-bottom: 1rem;
}

.checkmark {
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #14B8A6;
    color: white;
}

.btn-primary:hover {
    background-color: #10a08e;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    border-color: #14B8A6;
    color: #14B8A6;
}

.info-bar {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.9rem;
}

/* --- Right Image Column --- */
.hero-image-column {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-mockup {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.mockup-bg {
    background: linear-gradient(145deg, #1DD1A1, #14B8A6);
    border-radius: 40px;
    padding-bottom: 100%;
    /* Creates a square aspect ratio */
    position: relative;
    z-index: 1;
}

.mockup-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: #1DD1A1;
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(10px);
}

.product-card {
    border: 20px solid #14B8A6;
    background: white;
    width: 85%;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-image {
    object-fit: cover;
    max-width: 260px;
    height: 200px;
    display: block;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.product-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 1rem;
}

.product-box {
    background: linear-gradient(145deg, #1DD1A1, #14B8A6);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    width: 60%;
    margin: 1rem auto 2rem;
    padding: 2.5rem 1rem;
    border-radius: 20px;
}

.product-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.product-spec {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.recommendation-tag {
    display: inline-block;
    background-color: rgba(20, 184, 166, 0.15);
    color: #0F4C3A;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
}


/* --- Responsive Adjustments for New Hero Section --- */
@media(max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .btn-group,
    .info-bar {
        justify-content: center;
    }

    .hero-image-column {
        width: 100%;
        margin-top: 3rem;
    }

    /* Make product card flow naturally on tablets */
    .product-card {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .mockup-bg {
        display: none;
    }

    /* Allow hero content to extend fully on smaller screens */
    #hero {
        overflow: visible;
    }
}

@media(max-width: 480px) {
    #hero {
        padding-top: 80px;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stack product images vertically on mobile */
    .product-images {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}