/* Modern CSS for Capture Website - Inspired by WebBrain */

/* Reset and Base Styles */
:root {
    --primary-color: #027FE5;
    --primary-dark: #0165B7; /* Darker shade of primary for hover states */
    --primary-light: #6EBFF2;
    --secondary-color: #6EBFF2;
    --accent-color: #D17DFF;
    
    /* Theme colors */
    --bg-dark: #000000;
    --bg-dark-lighter: #1E1E1E;
    --bg-dark-card: #252525;
    --bg-dark-hover: #303030;
    
    --text-primary: #F6F7F8;
    --text-secondary: #FFFFFF;
    --text-light: #5D5961;
    --background-light: var(--bg-dark);
    --background-white: var(--bg-dark-lighter);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 15px rgba(2, 127, 229, 0.3);
    --glow-secondary: 0 0 15px rgba(110, 191, 242, 0.3);
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--spacing-2xl); /* Added to account for sticky header */
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background-light);
    font-size: 16px;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px; /* 增加最大寬度 */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-full);
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;    
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-normal);
}

.header .container {
    display: flex;
    justify-content: space-between; /* 改回space-between */
    align-items: center;
    position: relative; /* For mobile nav positioning */
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* logo不壓縮 */
}

.logo img {
    width: 42px; /* 縮小logo */
    height: auto;
    border-radius: var(--border-radius-md);
    display: block;
}

.main-nav { /* Navigation container */
    display: flex; /* Show on desktop */
    align-items: center;
    justify-content: center; /* 導航項目居中 */
    flex: 1; /* 佔據剩餘空間 */
    max-width: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.7rem; /* 增加間距，因為項目變少了 */
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap; /* 強制不換行 */
    justify-content: center; /* 導航項目居中 */
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: flex !important;
    align-items: center;
    white-space: nowrap !important; /* 防止中日英自動換行 */
    min-width: 0;
    flex-shrink: 0 !important; /* 防止壓縮 */
    margin: 0;
    padding: 0;
    flex-direction: row !important; /* 強制水平佈局 */
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap !important; /* 強制防止中日英自動換行 */
    overflow: visible; /* 允許文本可見 */
    padding: 0.35rem 0.6rem; /* 稍微增加 padding */
    max-width: none; /* 移除最大寬度限制 */
    display: inline-block; /* 改為 inline-block */
    line-height: 1.2; /* 稍微放寬行高 */
    font-size: 0.9rem; /* 稍微增加字體大小 */
    text-align: center;
    min-width: fit-content; /* 根據內容自適應寬度 */
    margin: 0;
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(2, 127, 229, 0.15);
}

.main-nav .cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.main-nav .cta-button:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

/* Language Switcher Styling */
#language-switcher {
    flex-shrink: 0; /* 語言切換器不壓縮 */
    margin-left: var(--spacing-sm); /* 適當間距 */
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; 
    order: initial; /* Reset order for desktop, display:none makes it irrelevant */
}

.hamburger-menu-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition-normal);
}

.hamburger-menu.active .hamburger-menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-menu-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(175deg, var(--bg-dark) 50%, #121A29 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:        radial-gradient(circle at 20% 30%, rgba(2, 127, 229, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(110, 191, 242, 0.15) 0%, transparent 20%);
    opacity: 0.6;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-dark-lighter);
    object-fit: cover;
    aspect-ratio: 3/2;
}

.hero-image img:hover {
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Buttons */
.primary-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    text-align: center;
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-light);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.secondary-button:hover {
    background-color: rgba(2, 127, 229, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm), var(--glow-primary);
}

/* Sections */
section {
    padding: var(--spacing-2xl) 0;
}

section:nth-child(even) {
    background-color: var(--bg-dark-lighter);
}

/* Cards and Grids */
.features-grid, .solutions-grid, .tech-grid, .case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card, .solution-card, .tech-card, .case-study-card {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover, .solution-card:hover, .tech-card:hover, .case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(2, 127, 229, 0.3);
}

.feature-icon, .solution-icon, .step-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;    background-color: rgba(2, 127, 229, 0.15);
    border-radius: var(--border-radius-full);
    padding: var(--spacing-sm);
}

.feature-icon img, .solution-icon img, .step-icon img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.tech-section .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.tech-content {
    flex: 1;
}

.tech-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tech-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Workflow Section */
.workflow-container {
    margin-bottom: var(--spacing-2xl);
}

.workflow-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.workflow-step {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    flex: 1;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -30px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-light);
    z-index: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    border-radius: var(--border-radius-full);
    margin-bottom: var(--spacing-sm);
}

.workflow-image {
    width: 100%;
    max-width: 600px; /* Smaller size for all workflow images */
    margin: 0 auto;
    margin-bottom: var(--spacing-xl); /* Add extra gap between all images and workflow steps */
    display: block;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Business Model */
.business-cards {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line on smaller screens */
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) auto;
    max-width: 1200px;
}

.business-card {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    flex: 1; /* Distributes space equally among cards */
    min-width: 280px; /* Minimum width for a card before wrapping */
    margin: 1rem; /* Adjust margin as needed */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--primary-color);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(2, 127, 229, 0.3);
}

.business-card:nth-child(1) {    background: linear-gradient(180deg, rgba(2, 127, 229, 0.15), var(--bg-dark-card));
}

.business-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(2, 127, 229, 0.1), var(--bg-dark-card));
}

.business-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(2, 127, 229, 0.05), var(--bg-dark-card));
}

.business-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    margin-top: auto; /* Pushes the button to the bottom */
    font-size: 0.9rem;
    margin-top: var(--spacing-md);
}

.business-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.business-description {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
}

/* ROI Section */
.roi-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.stat-card {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(2, 127, 229, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-dark-card); /* Existing background color for comparison table */
}

.comparison-table th, .comparison-table td {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
    border-top-left-radius: var(--border-radius-lg);
}

.comparison-table th:last-child {
    border-top-right-radius: var(--border-radius-lg);
}

.comparison-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--border-radius-lg);
}

.comparison-table tr:last-child td:last-child {
    border-bottom-right-radius: var(--border-radius-lg);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-note {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
}

/* Case Studies */
.case-study-gallery {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.case-study-image {
    flex: 0 0 220px;
    height: 200px;
    background-color: transparent;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.case-study-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.case-study-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.case-study-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    filter: brightness(1.1);
    border-radius: 12px;
    border: none;
}

/* --- 導覽列多語言單行顯示優化 --- */
.main-nav ul li {
    display: flex;
    align-items: center;
    white-space: nowrap; /* 防止中日英自動換行 */
    min-width: 0;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap; /* 防止中日英自動換行 */
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    max-width: 180px;
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(2, 127, 229, 0.15);
}

.main-nav .cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.main-nav .cta-button:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

@media (max-width: 1024px) {
    .main-nav ul {
        gap: 0.5rem; /* 平板上的間距 */
    }
    .main-nav a {
        padding: 0.3rem 0.45rem; /* 平板上的 padding */
        font-size: 0.8rem; /* 平板上的字體 */
    }
    .container {
        max-width: 100%; /* 平板上使用全寬 */
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .main-nav ul li {
        white-space: normal; /* 手機版允許換行，日文長詞也不會溢出 */
        flex-shrink: 1; /* 手機版允許壓縮 */
    }
    .main-nav a {
        max-width: 100%;
        white-space: normal !important; /* 手機版允許換行 */
        text-overflow: unset;
        overflow: visible;
    }
}
/* --- END 導覽列多語言單行顯示優化 --- */

/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark-card); /* Changed background color */
}

.faq-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-section .section-title {
    margin-bottom: 50px;
    color: #e0e0e0; /* Light color for title on dark background */
}

.faq-list .faq-item {
    background-color: #2c2c2c; /* Darker card background */
    border: 1px solid #444; /* Subtle border for dark theme */
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 0; /* Remove padding from container */
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Adjusted shadow for dark theme */
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* Ensure clean borders */
}

.faq-list .faq-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-size: 16px; /* Changed font size */
    color: #61dafb; /* Accent color for questions (e.g., light blue) */
    padding: 25px;
    text-align: left;
    cursor: pointer; /* Indicate it's clickable */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.faq-question:hover {
    background-color: rgba(97, 218, 251, 0.1);
}

.faq-icon {
    font-size: 1.2em;
    font-weight: bold;
    color: #e0e0e0; /* Light color for indicator */
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 25px 25px;
    display: none; /* Hide answers by default */
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    color: #cccccc; /* Light grey for answer text */
    margin: 0;
}

.faq-list .faq-item p a {
    color: #61dafb; /* Link color consistent with question accent */
    text-decoration: none;
}

.faq-list .faq-item p a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for FAQ section */
@media (max-width: 768px) {
    .faq-section .container {
        padding: 0 20px;
    }

    .faq-list .faq-item h4 {
        font-size: 1.2em;
    }

    .faq-list .faq-item p {
        font-size: 0.95em;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(175deg, var(--bg-dark) 0%, #121A29 100%);
    text-align: center;
    padding: var(--spacing-3xl) 0 var(--spacing-3xl); /* Increased bottom padding */
    position: relative;
    min-height: 100vh; /* Ensure it covers full viewport height */
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;    background-image: 
        radial-gradient(circle at 20% 30%, rgba(2, 127, 229, 0.15) 0%, transparent 15%),
        radial-gradient(circle at 80% 70%, rgba(110, 191, 242, 0.15) 0%, transparent 15%);
}

.cta-steps {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.cta-step {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(2, 127, 229, 0.3);
}

.cta-description {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
}

/* Form Styling */
.cta-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

input, textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 127, 229, 0.2);
    background-color: rgba(2, 127, 229, 0.05);
}

button[type="submit"] {
    width: 100%;
    margin-top: var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

button[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

/* Footer */
.footer {
    background-color: #0A0A0A;
    color: #e5e7eb;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: auto;
}

.footer-logo {
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-xs);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.social-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* Audience Section Styles */
.audience-section {
    background-color: var(--bg-dark-lighter);
    padding: var(--spacing-3xl) 0;
}

.audience-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.audience-content {
    margin-top: var(--spacing-2xl);
}

.audience-section .tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.audience-section .tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.audience-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
}

.audience-feature {
    background: linear-gradient(145deg, var(--bg-dark-card), rgba(37, 37, 37, 0.8));
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.audience-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0.8;
}

.audience-feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(2, 127, 229, 0.15);
    border-color: rgba(2, 127, 229, 0.4);
}

.audience-feature:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px rgba(2, 127, 229, 0.6);
}

.audience-feature:nth-child(1) {
    background: linear-gradient(145deg, rgba(2, 127, 229, 0.12), var(--bg-dark-card));
}

.audience-feature:nth-child(2) {
    background: linear-gradient(145deg, rgba(110, 191, 242, 0.08), var(--bg-dark-card));
}

.audience-feature:nth-child(3) {
    background: linear-gradient(145deg, rgba(2, 127, 229, 0.05), var(--bg-dark-card));
}

.audience-feature .feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 127, 229, 0.2), rgba(110, 191, 242, 0.1));
    border-radius: var(--border-radius-full);
    padding: var(--spacing-md);
    box-shadow: 0 8px 16px rgba(2, 127, 229, 0.2);
    transition: all var(--transition-normal);
}

.audience-feature:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(2, 127, 229, 0.3);
}

.audience-feature .feature-icon img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.2) contrast(1.1);
}

.audience-feature h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.audience-feature p {
    color: rgba(246, 247, 248, 0.85);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 280px;
}

/* Tab enhancement for audience section */
.audience-section .tabs {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    background: linear-gradient(145deg, var(--bg-dark-card), rgba(37, 37, 37, 0.9));
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.audience-section .tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(2, 127, 229, 0.05) 0%, 
        rgba(110, 191, 242, 0.03) 50%, 
        rgba(2, 127, 229, 0.05) 100%);
    pointer-events: none;
}

.audience-section .tab {
    flex: 1;
    border-radius: var(--border-radius-lg);
    margin: 0;
    border: none;
    background: transparent;
    color: rgba(246, 247, 248, 0.7);
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-lg);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.audience-section .tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(2, 127, 229, 0.4);
    transform: scale(1.02);
}

.audience-section .tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.audience-section .tab:not(.active):hover {
    background: linear-gradient(135deg, rgba(2, 127, 229, 0.15), rgba(110, 191, 242, 0.08));
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(2, 127, 229, 0.2);
}

/* Additional audience feature animation styles */
.audience-feature {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.audience-features .audience-feature:nth-child(1) {
    transition-delay: 0.1s;
}

.audience-features .audience-feature:nth-child(2) {
    transition-delay: 0.25s;
}

.audience-features .audience-feature:nth-child(3) {
    transition-delay: 0.4s;
}

/* Accessibility improvements for tabs */
.audience-section .tab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.audience-section .tab[aria-selected="true"]:focus {
    outline-color: white;
}

/* Smoother tab content transitions */
.audience-section .tab-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.audience-section .tab-content:not(.active) {
    pointer-events: none;
}

.audience-section .tab-content.active {
    pointer-events: auto;
}

/* Responsive adjustments for audience section */
@media (max-width: 768px) {
    .audience-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .audience-section .section-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .audience-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-sm);
        margin-top: var(--spacing-xl);
    }
    
    .audience-feature {
        padding: var(--spacing-xl);
        margin: 0 auto;
        max-width: 400px;
    }
    
    .audience-feature .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-md);
    }
    
    .audience-feature h4 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .audience-feature p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .audience-section .tabs {
        flex-direction: row;
        max-width: none;
        margin: 0 var(--spacing-sm) var(--spacing-xl);
        padding: var(--spacing-xs);
    }
    
    .audience-section .tab {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .audience-section .tabs {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .audience-section .tab {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    .audience-features {
        gap: var(--spacing-lg);
    }
    
    .audience-feature {
        padding: var(--spacing-lg);
    }
    
    .audience-feature h4 {
        font-size: 1.2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark-lighter);
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.testimonials-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonials-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Force horizontal layout on larger screens */
@media (min-width: 992px) {
    .testimonials-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(2, 127, 229, 0.3);
}

.testimonial-card .card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(2, 127, 229, 0.15);
    border-radius: var(--border-radius-full);
    flex-shrink: 0;
}

.testimonial-card .card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(4456%) hue-rotate(201deg) brightness(97%) contrast(93%);
}

.testimonial-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Responsive Design for Testimonials */
@media (max-width: 768px) {
    .testimonials-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .testimonials-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section .container,
    .tech-section .container {
        flex-direction: column;
    }
    
    .hero-image, .tech-image {
        margin-top: var(--spacing-lg);
    }
    
    .workflow-steps {
        flex-direction: column;
    }
      .workflow-step:not(:last-child)::after {
        display: none;
    }

    .business-cards {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .business-card {
        min-width: auto;
        margin: 0;
    }

    .main-nav {
        display: none; /* Hide main nav items for mobile, rely on hamburger */
        order: initial; /* Order not relevant for absolute positioned mobile menu */
        position: absolute;
        top: 100%; 
        left: 0;
        right: 0; 
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98); 
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000; 
    }

    .main-nav.active {
        display: flex; /* Show when hamburger is clicked */
    }

    .main-nav ul {
        flex-direction: column; /* Stack nav items vertically in mobile dropdown */
        gap: var(--spacing-sm);
        width: 100%;
        text-align: center;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav a {
        padding: var(--spacing-sm);
        display: block; 
        width: 100%;
    }
    
    .main-nav .cta-button {
        margin-top: var(--spacing-sm);
        width: auto; 
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .logo {
        order: 1; /* Mobile: Logo first */
        margin-right: auto; /* Pushes switcher and hamburger to the right */
    }
    
    #language-switcher {
        order: 2; /* Mobile: Language switcher second */
        margin-left: 0; /* Reset desktop margin */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on medium screens */
        order: 3; /* Mobile: Hamburger third (far right) */
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
    }
}

/* 強制導航單行顯示 - 特殊處理 */
@media (min-width: 769px) {
    .main-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        width: auto !important;
        min-width: fit-content !important;
    }
    
    .main-nav ul li {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        width: auto !important;
        min-width: fit-content !important;
    }
    
    .main-nav a {
        display: inline-block !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: auto !important;
        min-width: fit-content !important;
        flex-shrink: 0 !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Delayed Animation Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Card Layout and Navigation */
.card-section {
    display: none; /* Hide all sections by default */
    min-height: 100vh; /* Ensure each card takes full viewport height */
    padding-top: 60px; /* Adjust as needed to avoid overlap with fixed header */
    padding-bottom: 80px; /* Adjust as needed to avoid overlap with fixed card navigation */
}

.active-card {
    display: block; /* Show active section */
}

.card-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.card-navigation button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
}

.dots-container {
    display: flex;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}
