:root {
    --bg-dark: #070708;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.2);
    --accent-color: #ffffff;
    --accent-muted: #888888;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --line-green: #76B900;
    --line-green-hover: #6BA821;
    --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 80px; /* Space for mobile sticky CTA */
}

.inline-block-phrase {
    display: inline-block;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 8, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: 10px;
}

.logo-text {
    font-family: 'Bodoni Moda', 'Didot', 'Bodoni MT', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.15rem;
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-cta {
    background: #fff;
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #fff;
}

.nav-cta:hover {
    background: transparent;
    color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 7, 8, 0.4) 0%, rgba(7, 7, 8, 0.85) 80%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 900px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.hero-title span {
    background: linear-gradient(135deg, #ffffff 40%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: #e0e0e0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    word-break: break-all;
    overflow-wrap: break-word;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
}

.btn:hover::after {
    left: 125%;
    opacity: 1;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-white {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background: transparent;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

.btn-line {
    background: var(--line-green);
    color: #ffffff;
    border: 2px solid var(--line-green);
}

.btn-line:hover {
    background: var(--line-green-hover);
    border-color: var(--line-green-hover);
    box-shadow: 0 10px 30px rgba(118, 185, 0, 0.4);
}

/* ==========================================================================
   Container & Section Common
   ========================================================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

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

/* ==========================================================================
   AI Video Production Workflow Section
   ========================================================================== */
.workflow-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255, 255, 255, 0.01) 50%, var(--bg-dark) 100%);
    scroll-margin-top: 80px;
}

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

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.workflow-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry animation delays */
.workflow-card:nth-child(1) { transition-delay: 0.05s; }
.workflow-card:nth-child(2) { transition-delay: 0.15s; }
.workflow-card:nth-child(3) { transition-delay: 0.25s; }
.workflow-card:nth-child(4) { transition-delay: 0.35s; }
.workflow-card:nth-child(5) { transition-delay: 0.45s; }
.workflow-card:nth-child(6) { transition-delay: 0.55s; }

.workflow-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(118, 185, 0, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(118, 185, 0, 0.08);
}



.workflow-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.workflow-card h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.workflow-card:hover h4::before {
    background: var(--line-green);
    box-shadow: 0 0 8px var(--line-green);
}

.workflow-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Showcase Video
   ========================================================================== */
.video-section {
    padding-top: 2rem;
    scroll-margin-top: 80px;
}

.video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background-color: #111;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.video-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Embedded Google Form Section
   ========================================================================== */
.form-section {
    scroll-margin-top: 80px;
}

.iframe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: #ffffff; /* Forms are bright, so setting a clean background is standard */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    min-height: 1050px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    background: rgba(255, 255, 255, 0.005);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    padding: 1.5rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.15);
}

.faq-answer-inner {
    padding: 0 1.8rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 4rem 1.5rem 6rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Sticky Bottom CTA for Mobile
   ========================================================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px;
    background: rgba(7, 7, 8, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.hidden {
    transform: translateY(100%);
}

.sticky-btn-line {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--line-green);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.sticky-btn-line:hover {
    background: var(--line-green-hover);
}

.sticky-btn-form {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.sticky-btn-form:hover {
    background: #e0e0e0;
}

.sticky-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Material Preparation Section
   ========================================================================== */
.material-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255, 255, 255, 0.01) 50%, var(--bg-dark) 100%);
    scroll-margin-top: 80px;
}

.material-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .material-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.material-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.material-card.show {
    opacity: 1;
    transform: translateY(0);
}

.material-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.03);
}

.drive-steps li .step-text {
    flex: 1;
}

.material-card:nth-child(1) { transition-delay: 0.05s; }
.material-card:nth-child(2) { transition-delay: 0.15s; }

.step-badge {
    align-self: flex-start;
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.material-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.material-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-sub-desc {
    margin-bottom: 1.2rem !important;
}

.material-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    margin-top: auto;
    cursor: pointer;
}

.material-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.drive-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.drive-steps li {
    font-size: 0.95rem;
    color: #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.6;
}

.drive-steps li span {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.text-note {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #ffffff;
    padding: 1.2rem;
    border-radius: 4px 12px 12px 4px;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.material-footer-note {
    text-align: center;
    margin-top: 3.5rem;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
}

.material-footer-note.show {
    opacity: 1;
    transform: translateY(0);
}

.material-footer-note p {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

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

    .hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 3rem 1rem 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .container {
        padding: 3rem 1rem;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .iframe-container {
        border-radius: 12px;
        min-height: 1200px; /* Google form takes more height on mobile due to wrap */
    }
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }

    .sticky-cta {
        display: none;
    }
}

/* ==========================================================================
   Language Toggle (中 / EN)
   ========================================================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.1);
}

.lang-opt {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-opt.active {
    background: #ffffff;
    color: #000000;
}

/* English mode: use normal word wrapping for Latin text
   (word-break: break-all is meant for Chinese and would split English words) */
body.lang-en .hero-description {
    word-break: normal;
}

/* English mode, desktop: keep the hero title on a single line.
   The title string is 16.4em wide in Inter Black; available width is
   min(900px, 100vw) - 48px padding, so the font scales with the viewport
   and caps at 50px (16.4em x 50px = 820px, fits within 852px). */
@media (min-width: 769px) {
    body.lang-en .hero-title {
        font-size: clamp(2rem, calc((100vw - 48px) / 16.9), 50px);
    }
}

/* English mode, mobile: the title breaks into two balanced phrases
   ("Video production?" / "Leave it to us." via inline-block-phrase spans).
   The longer phrase is 9.31em wide, so on very narrow phones the font
   shrinks just enough to keep each phrase on its own single line. */
@media (max-width: 768px) {
    body.lang-en .hero-title {
        font-size: min(2rem, calc((100vw - 32px) / 9.7));
    }
}

/* ==========================================================================
   SaaS Premium Visual Upgrade — NVIDIA palette (black / white / #76B900)
   ========================================================================== */

::selection {
    background: rgba(118, 185, 0, 0.35);
    color: #ffffff;
}

/* --- Header: deeper glassmorphism --- */
.header {
    background: rgba(5, 5, 6, 0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link:hover {
    color: var(--line-green);
}

/* --- Header layout hardening (long English labels must not break mid-word) --- */
.logo-link {
    flex-shrink: 0;
}

.logo-text {
    white-space: nowrap;
}

.nav-link {
    white-space: nowrap;
}

.header-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.header-right nav {
    min-width: 0;
}

/* If space ever runs out, whole items flow to a tidy right-aligned second row
   instead of breaking words inside the labels */
.nav-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.4rem;
}

/* Mid-width desktop: compress the menu so one line still fits */
@media (min-width: 769px) and (max-width: 1120px) {
    .nav-menu { gap: 1.1rem; }
    .nav-link { font-size: 0.88rem; }
    .logo-text { font-size: 1rem; }
    .header-right { gap: 1.2rem; }
}

/* --- Hero: green aurora glow rising from below --- */
.hero-overlay {
    background:
        radial-gradient(ellipse 900px 420px at 50% 96%, rgba(118, 185, 0, 0.09), transparent 60%),
        linear-gradient(to bottom, rgba(7, 7, 8, 0.45) 0%, rgba(7, 7, 8, 0.85) 80%, var(--bg-dark) 100%);
}

/* --- Section headers: green accent bar + gradient titles --- */
.section-header::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 0 auto 1.3rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--line-green), rgba(118, 185, 0, 0.15));
    box-shadow: 0 0 12px rgba(118, 185, 0, 0.45);
}

.section-title {
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 55%, #9a9a9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Cards: hairline top highlight (turns green on hover) --- */
.faq-item {
    position: relative;
}

.workflow-card::after,
.material-card::after,
.faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    pointer-events: none;
}

.workflow-card:hover::after,
.material-card:hover::after,
.faq-item:hover::after {
    background: linear-gradient(90deg, transparent, rgba(118, 185, 0, 0.55), transparent);
}

/* --- NVIDIA-style buttons: green with black text --- */
.btn-line {
    color: #000000;
    box-shadow: 0 0 28px rgba(118, 185, 0, 0.22);
}

.btn-line:hover {
    color: #000000;
    box-shadow: 0 10px 40px rgba(118, 185, 0, 0.45);
}

.sticky-btn-line {
    color: #000000;
}

.step-badge {
    background: var(--line-green);
    color: #000000;
    box-shadow: 0 0 18px rgba(118, 185, 0, 0.3);
}

.material-btn:hover {
    background: var(--line-green);
    border-color: var(--line-green);
    color: #000000;
    box-shadow: 0 10px 24px rgba(118, 185, 0, 0.3);
}

/* --- FAQ: green when active --- */
.faq-item.active {
    border-color: rgba(118, 185, 0, 0.35);
}

.faq-item.active .faq-arrow {
    color: var(--line-green);
}

/* --- Showcase video: green edge light on hover --- */
.video-container:hover {
    border-color: rgba(118, 185, 0, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(118, 185, 0, 0.1);
}

/* ==========================================================================
   Form Spotlight — "Fill this form first" premium animation
   ========================================================================== */

/* The form section keeps the badge as its focus cue; hide the accent bar */
.form-section .section-header::before {
    display: none;
}

/* "Step 1" floating pill badge with live pulse dot */
.form-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(118, 185, 0, 0.08);
    border: 1px solid rgba(118, 185, 0, 0.35);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    box-shadow: 0 0 24px rgba(118, 185, 0, 0.15), inset 0 0 12px rgba(118, 185, 0, 0.06);
    animation: badgeFloat 3.2s ease-in-out infinite;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-green);
    flex-shrink: 0;
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(118, 185, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(118, 185, 0, 0); }
}

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

/* Guide arrows: cascade downward from the badge/title to the form */
.form-section .section-header {
    margin-bottom: 1.2rem;
}

.form-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 1.4rem;
    color: var(--line-green);
}

.form-arrow svg {
    display: block;
    filter: drop-shadow(0 0 6px rgba(118, 185, 0, 0.5));
    animation: arrowCascade 1.8s ease-in-out infinite;
}

.form-arrow svg:nth-child(1) { animation-delay: 0s; }
.form-arrow svg:nth-child(2) { animation-delay: 0.2s; margin-top: -6px; }
.form-arrow svg:nth-child(3) { animation-delay: 0.4s; margin-top: -6px; }

@keyframes arrowCascade {
    0%, 60%, 100% { opacity: 0.2; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(4px); }
}

/* Form container: breathing green halo + rotating energy ring */
@property --form-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.iframe-container {
    border: 1px solid rgba(118, 185, 0, 0.28);
    /* 重要：此元素同時掛著 .fade-in-up（初始 opacity: 0，靠動畫進場變可見），
       所以必須把 fadeInUp 一起列進來，呼吸光暈等進場結束後才開始 */
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               formBreath 4s ease-in-out 0.8s infinite;
}

.iframe-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--form-angle),
        rgba(118, 185, 0, 0) 0deg,
        rgba(118, 185, 0, 0.9) 40deg,
        rgba(255, 255, 255, 0.6) 58deg,
        rgba(118, 185, 0, 0) 120deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: formRing 6s linear infinite;
}

@keyframes formRing {
    to { --form-angle: 360deg; }
}

@keyframes formBreath {
    0%, 100% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 32px rgba(118, 185, 0, 0.08); }
    50%      { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 55px rgba(118, 185, 0, 0.16); }
}

/* ==========================================================================
   Two Services Section
   ========================================================================== */
.services-section {
    scroll-margin-top: 80px;
}

/* 手機版：13 個全形字的長標題自動微縮，維持單行不折行
   （「兩種服務，第一步都是填表單」「專業剪輯服務：素材準備流程」）
   英文版標題有空格可自然換行，恢復原字級即可 */
@media (max-width: 768px) {
    .services-section .section-title,
    .material-section .section-title {
        font-size: min(1.8rem, calc((100vw - 32px) / 13.4));
    }

    body.lang-en .services-section .section-title,
    body.lang-en .material-section .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(118, 185, 0, 0.4);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(118, 185, 0, 0.08);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    pointer-events: none;
}

.service-card:hover::after {
    background: linear-gradient(90deg, transparent, rgba(118, 185, 0, 0.55), transparent);
}

.service-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(118, 185, 0, 0.1);
    border: 1px solid rgba(118, 185, 0, 0.3);
    color: var(--line-green);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.service-for {
    font-size: 0.9rem;
    color: var(--line-green);
    background: rgba(118, 185, 0, 0.08);
    border: 1px solid rgba(118, 185, 0, 0.25);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    align-self: flex-start;
}

.service-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.service-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-steps .step-num {
    background: var(--line-green);
    color: #000000;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 3px;
}

.service-steps .step-text {
    flex: 1;
}

.flow-note {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem 1.8rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
}

.flow-note.show {
    opacity: 1;
    transform: translateY(0);
}

.flow-note p {
    color: #ffffff;
    font-size: 1.05rem;
    margin: 0;
}

.flow-note strong {
    color: var(--line-green);
    font-weight: 700;
}

.service-cta {
    text-align: center;
    margin-top: 2.2rem;
}

/* ==========================================================================
   Form CTA Attention Animation（立即填寫表單）
   - 綠色聲納光環脈動 + 週期性光澤掃過
   - hover 時暫停脈動，恢復原本的懸停效果
   ========================================================================== */
.cta-attention {
    animation: ctaGlow 2.4s ease-in-out infinite;
}

.cta-attention:hover {
    animation: none;
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(118, 185, 0, 0), 0 0 22px rgba(118, 185, 0, 0.18);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(118, 185, 0, 0.13), 0 0 46px rgba(118, 185, 0, 0.42);
    }
}

/* 週期性光澤掃過（.btn 系列本身就有 ::after 光澤層，改為自動播放） */
.btn.cta-attention::after {
    animation: ctaShine 3.2s ease-in-out infinite;
}

.btn.cta-attention:hover::after {
    animation: none;
}

@keyframes ctaShine {
    0%     { left: -50%; opacity: 0; }
    8%     { opacity: 1; }
    30%    { left: 125%; opacity: 1; }
    30.1%  { left: 125%; opacity: 0; }
    100%   { left: 125%; opacity: 0; }
}

/* Accessibility: honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .form-step-badge,
    .pulse-dot,
    .iframe-container::after,
    .cta-attention,
    .cta-attention::after,
    .form-arrow svg {
        animation: none;
    }

    /* 進場動畫必須保留（結束時 opacity 才會是 1），只停掉光暈循環 */
    .iframe-container {
        animation: fadeInUp 0.01s forwards;
    }
}

/* ==========================================================================
   Hero Trust Badges
   ========================================================================== */
.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.8rem;
    margin-top: 1.8rem;
    color: #c9c9c9;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.trust-item::before {
    content: '✓';
    color: var(--line-green);
    font-weight: 700;
}
