:root {
    /* Color Palette */
    --bg-color: #FAFAFC;
    --text-primary: #1A1A24;
    --text-secondary: #6B6B7B;

    /* Dusty Rose / Pink Palette */
    --pink-light: #FCEAEA;
    --pink-primary: #D4A5A5;
    /* 乾枯玫瑰粉 */
    --pink-dark: #B88686;
    --pink-glow: rgba(212, 165, 165, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients (Micro animation aesthetic) */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--pink-glow);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(234, 240, 255, 0.6);
    bottom: 20%;
    left: -150px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, 30px);
    }
}

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

.text-pink {
    color: var(--pink-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--pink-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--pink-primary);
    color: white;
    box-shadow: 0 4px 15px var(--pink-glow);
}

.btn-primary:hover {
    background-color: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 134, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid #E5E5E5;
}

.btn-outline:hover {
    border-color: var(--pink-primary);
    color: var(--pink-primary);
    background-color: var(--pink-light);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-bottom: 4rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--pink-light);
    color: var(--pink-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 165, 165, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #1A1A24;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Hero Visual / Glass Panel Mockup */
.hero-visual {
    perspective: 1000px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.panel-header {
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.dots {
    display: flex;
    gap: 8px;
    margin-right: 1.5rem;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E5E5;
}

.dots span:nth-child(1) {
    background: #FF5F56;
}

.dots span:nth-child(2) {
    background: #FFBD2E;
}

.dots span:nth-child(3) {
    background: #27C93F;
}

.panel-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.panel-body {
    padding: 2rem;
    background: rgba(250, 250, 252, 0.3);
}

.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.msg {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

.msg.ai {
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    animation-delay: 0.2s;
}

.msg.user {
    background: var(--pink-primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    animation-delay: 0.8s;
}

.msg.processing {
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    animation-delay: 1.4s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem 1.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--pink-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Fake UI Skeletons inside panel */
.video-preview-skeleton {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
}

.skeleton-img {
    height: 120px;
    background: #F0F0F5;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 12px;
    background: #F0F0F5;
    border-radius: 6px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 165, 165, 0.3);
    /* Hover時透出一點粉色邊框 */
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(212, 165, 165, 0.15);
    /* 淡淡的粉色陰影 */
}

.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Workflow Section (How It Works) */
.workflow {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pink-primary);
    opacity: 0.5;
    line-height: 1;
}

.step-content {
    flex: 1;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--pink-primary) 0%, transparent 100%);
    margin-left: 20px;
    opacity: 0.3;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item:hover {
    transform: none;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.6rem 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    user-select: none;
}

.faq-item summary:focus-visible {
    outline: 3px solid rgba(212, 165, 165, 0.35);
    outline-offset: 4px;
    border-radius: 14px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(212, 165, 165, 0.25);
    color: var(--pink-dark);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.faq-item[open] summary::after {
    content: "−";
    background: rgba(252, 234, 234, 0.8);
}

.faq-answer {
    padding: 0 1.8rem 1.6rem 1.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent 0%, rgba(252, 234, 234, 0.3) 100%);
}

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

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.7;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author .info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.author .info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0 8rem 0;
    position: relative;
    z-index: 10;
}

.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(252, 234, 234, 0.6) 100%);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer Section */
.footer {
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 250px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--pink-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.animate-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
        /* Hide for mobile momentarily */
    }

    .hero-title {
        font-size: 2.5rem;
    }
}
