/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: oklch(0.98 0.01 240);
    --foreground: oklch(0.15 0.02 240);
    --card: oklch(1.00 0 0);
    --card-foreground: oklch(0.15 0.02 240);
    --primary: oklch(0.58 0.24 240);
    --primary-foreground: oklch(0.99 0 0);
    --secondary: oklch(0.65 0.22 200);
    --secondary-foreground: oklch(0.99 0 0);
    --muted: oklch(0.94 0.01 240);
    --muted-foreground: oklch(0.45 0.02 240);
    --accent: oklch(0.70 0.26 195);
    --accent-foreground: oklch(0.99 0 0);
    --border: oklch(0.88 0.01 240);
    --radius: 0.75rem;
}

body {
    font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: var(--primary-foreground);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(to right, oklch(0.53 0.24 240), oklch(0.65 0.26 195));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, oklch(0.98 0.024 240 / 0.1), var(--background), oklch(0.98 0.026 195 / 0.05));
    padding: 5rem 0 8rem;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: calc(var(--radius) * 1.5);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.badge .icon {
    color: var(--primary);
}

.badge-text {
    font-weight: 500;
}

.hero-title-wrapper {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.25rem;
    color: oklch(0.45 0.02 240 / 0.8);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border-radius: 9999px;
}

.hero-gradient-right,
.hero-gradient-left {
    position: absolute;
    top: 0;
    width: 33.333%;
    height: 100%;
    pointer-events: none;
}

.hero-gradient-right {
    right: 0;
    background: linear-gradient(to left, oklch(0.70 0.26 195 / 0.1), transparent);
}

.hero-gradient-left {
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, oklch(0.58 0.24 240 / 0.1), transparent);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Main Features Section */
.main-features-section {
    padding: 4rem 0 6rem;
    background: var(--background);
}

.main-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid oklch(0.88 0.01 240 / 0.5);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.feature-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.feature-icon-primary {
    background: linear-gradient(to bottom right, var(--primary), oklch(0.53 0.24 240));
}

.feature-icon-secondary {
    background: linear-gradient(to bottom right, var(--secondary), oklch(0.60 0.22 200));
}

.feature-icon-accent {
    background: linear-gradient(to bottom right, var(--accent), oklch(0.65 0.26 195));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* Additional Features Section */
.additional-features-section {
    padding: 4rem 0 6rem;
    background: oklch(0.94 0.01 240 / 0.3);
}

.additional-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.additional-feature-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid oklch(0.88 0.01 240 / 0.5);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.additional-feature-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.additional-feature-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: oklch(0.70 0.26 195 / 0.1);
    color: var(--accent);
}

.additional-feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.additional-feature-content {
    flex: 1;
}

.additional-feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.additional-feature-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(to bottom right, oklch(0.98 0.024 240 / 0.05), var(--background), oklch(0.98 0.022 200 / 0.05));
}

.cta-card {
    background: linear-gradient(to bottom right, var(--card), oklch(0.94 0.01 240 / 0.2));
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid oklch(0.88 0.01 240 / 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-width: 64rem;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.cta-footer {
    padding-top: 1.5rem;
    border-top: 1px solid oklch(0.88 0.01 240 / 0.3);
    margin-top: 2rem;
}

.cta-footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--foreground);
    color: var(--background);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    padding: 0.5rem;
    background: oklch(0.98 0.01 240 / 0.1);
    border-radius: 0.5rem;
}

.footer-logo svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: var(--background);
}

.footer-brand-text {
    text-align: left;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: oklch(0.98 0.01 240 / 0.7);
}

.footer-info {
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: oklch(0.98 0.01 240 / 0.7);
}

.footer-system {
    font-size: 0.75rem;
    color: oklch(0.98 0.01 240 / 0.5);
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }

    .hero-section {
        padding: 8rem 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .additional-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .main-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .main-features-section {
        padding: 6rem 0;
    }

    .additional-features-section {
        padding: 6rem 0;
    }

    .cta-section {
        padding: 6rem 0;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-info {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .additional-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.875rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
