:root {
    --bg-color: #f1f3f5; /* Slightly deeper light gray to reduce glare */
    --bg-secondary: #ffffff; /* Crisp White for sections */
    --text-primary: #000000; /* Pure Black for max reading contrast */
    --text-secondary: #333333; /* Very Dark Gray for paragraphs */
    --accent-primary: #000000; /* Headings set to Pure Black */
    --accent-secondary: #5A0A9D; /* Deep Corporate Purple (Elegant, not glaring) */
    --accent-dark: #3F0673; /* Darker Purple for Hover States */
    --hover-bg: #e5e7eb;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-primary);
}

p { color: var(--text-secondary); }

a { text-decoration: none; color: inherit; }

/* 導覽列 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent-secondary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

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

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

.nav-links a:hover { color: var(--accent-secondary); }

/* 語言切換器 */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: 1px solid var(--card-border);
    padding-left: 1.5rem;
    margin-left: 1.5rem;
}

.lang-switch a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.lang-switch a:hover { color: var(--accent-secondary); }

.lang-switch a.active {
    color: var(--accent-primary);
    font-weight: 700;
}

/* 按鈕系統 */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 4px; /* Corporate sharp corners */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-secondary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background-color: rgba(17, 24, 39, 0.05);
}

.btn-outline {
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background-color: var(--accent-secondary);
    color: white;
}

/* Navbar Waitlist CTA — pill shaped, top-funnel primary */
.btn-primary-header {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #8B2FC9 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 12px rgba(90, 10, 157, 0.3);
    transition: all 0.2s ease;
    margin-left: 1rem;
    white-space: nowrap;
}

.btn-primary-header:hover {
    box-shadow: 0 4px 20px rgba(90, 10, 157, 0.55);
    transform: translateY(-1px);
    color: white;
}

/* Book a Call — secondary in navbar, add spacing */
.navbar-book-call {
    margin-left: 0.5rem;
}

/* 英雄首屏 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 5% 3rem;
    position: relative;
    background: var(--bg-color);
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(161, 0, 255, 0.08); /* Light Purple background */
    border: 1px solid rgba(161, 0, 255, 0.3);
    border-radius: 50px;
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.8rem; /* Slightly smaller to fit one line */
    line-height: 1.1;
    margin-bottom: 2.2rem;
    letter-spacing: -2px;
    color: var(--text-primary);
    white-space: nowrap; /* Force one line */
}

@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
        white-space: normal; /* Allow wrap on mobile */
    }
}

.gradient-text {
    color: var(--accent-secondary); /* Solid Accenture Purple */
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

/* 通用區塊設定 */
.section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    letter-spacing: -1px;
    color: var(--accent-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-secondary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 卡片設計 (Corporate Style) */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    min-width: 0;
    word-break: break-word;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(161, 0, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    min-height: 3.6rem; /* Ensures alignment across 1 and 2 line titles */
    display: flex;
    align-items: center;
}

.card p {
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
}

.card strong {
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 數據指標區塊 */
.metrics-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    background: var(--accent-secondary);
    color: white;
    padding: 4rem 5%;
    margin-top: 0;
}

.metric {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.metric h2 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.metric p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1.1rem;
}

/* 預約 CTA 區塊 */
.cta-section {
    text-align: center;
    background-color: var(--bg-color);
}

.cta-subtitle {
    margin-bottom: 4rem;
    font-size: 1.3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calendly-container {
    max-width: 800px;
    margin: 0 auto;
}

.placeholder-booking {
    padding: 4rem 2rem;
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.placeholder-booking:hover {
    border-color: var(--accent-secondary);
    background-color: rgba(161, 0, 255, 0.02);
}

.placeholder-booking h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.placeholder-booking p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-secondary);
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    background: white;
}

/* 個人名片區塊 */
.profile-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 4rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.profile-container:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(90, 10, 157, 0.3);
}

.profile-img-wrapper {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-dark));
    box-shadow: var(--shadow-md);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: white;
    border: 4px solid white;
}

.profile-content {
    flex: 1;
}

.profile-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.profile-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 1.2rem;
}

/* 簡單動畫 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RWD */
@media (max-width: 900px) {
    .metrics-section { gap: 2rem; }
    .metric h2 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 8rem 5% 2rem; }
    .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 2rem; }
    .navbar { padding: 1rem 5%; gap: 0.5rem; }
    .logo { font-size: 1.1rem; flex: 1; white-space: nowrap; }
    .lang-switch { padding-left: 0.5rem; margin-left: 0; border-left: none; gap: 0.3rem; }
    .lang-switch a { font-size: 0.8rem; }
    .navbar .btn-outline { padding: 0.5rem 0.8rem; font-size: 0.85rem; margin-left: 0 !important; white-space: nowrap; }
    .navbar-book-call { display: none; } /* Book a Call visible in hero on mobile */
    .btn-primary-header { padding: 0.45rem 0.9rem; font-size: 0.78rem; margin-left: 0.5rem; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; gap: 0.8rem; align-items: stretch; }
    .section { padding: 2.5rem 5% !important; margin-top: 1rem !important; margin-bottom: 1.5rem !important; }
    .section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .cards-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-hero-container { gap: 2rem; padding: 0 !important; }
    .testimonials-carousel { padding-top: 0 !important; padding-bottom: 1rem !important; }
    .card { padding: 2rem 1.5rem; }
    .card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
    .card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; min-height: auto; }
    .metrics-section { padding: 3rem 5%; gap: 1.5rem; }
    .metric h2 { font-size: 2.5rem; }
    .profile-container { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; gap: 2rem; }
    .profile-img-wrapper { width: 160px; height: 160px; }
    .cta-subtitle { margin-bottom: 2rem; font-size: 1.1rem; }
    .placeholder-booking { padding: 2.5rem 1.5rem; }
    footer { padding: 2rem 5%; }
}

/* Digital Product Hero Section */
.product-hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
}
@media (max-width: 900px) {
    .product-hero-container {
        flex-direction: column;
        gap: 2rem;
    }
}
.product-visual {
    flex: 1;
    position: relative;
    padding: 2rem;
}
.layered-mockup {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}
.mockup-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(90,10,157,0.15) 0%, rgba(90,10,157,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.mockup-img-layer {
    position: absolute;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #333;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.layer-1 {
    width: 100%;
    height: 90%;
    top: 5%;
    left: 0%;
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.layered-mockup:hover .layer-1 {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}
.mockup-header {
    background: #2d2d2d;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}
.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    margin-left: 4px;
}
.dots span:nth-child(1){ background: #ff5f56; }
.dots span:nth-child(2){ background: #ffbd2e; }
.dots span:nth-child(3){ background: #27c93f; }
.mockup-body {
    display: flex;
    flex: 1;
    background: #121212;
}
.mockup-sidebar {
    width: 60px;
    background: #1e1e1e;
    border-right: 1px solid #333;
}
.mockup-grid {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.grid-row {
    height: 20px;
    background: #2a2a2a;
    border-radius: 4px;
}
.grid-row.header { height: 30px; background: #3a3a3a; margin-bottom: 1rem; }

.product-info {
    flex: 1;
}
.product-features {
    list-style: none;
    margin-top: 1.5rem;
}
.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.product-features ion-icon {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.btn-glowing {
    box-shadow: 0 0 15px rgba(90, 10, 157, 0.4);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}
.btn-glowing:hover {
    box-shadow: 0 0 25px rgba(90, 10, 157, 0.8);
}

/* Testimonials Carousel Section */
.testimonials-carousel {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 2rem 0;
    scrollbar-width: none; /* Firefox */
}
.testimonials-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    width: max-content;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2rem;
    width: 380px;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.testimonial-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-header h4 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}
.testimonial-header span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.social-icon {
    margin-left: auto;
    font-size: 1.5rem;
}
.testimonial-card p {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.stars {
    color: #ffb400;
    font-size: 1.1rem;
}

/* Verified Credentials Section */
.trust-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 3rem 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.65;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: default;
}

.trust-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-2px);
}

.trust-item img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Reforge badge is portrait – needs more height */
.trust-item img[alt="Reforge"] {
    height: 44px;
    max-width: 44px;
}

@media (max-width: 768px) {
    .carousel-track {
        margin: 0;
        padding: 1rem 5%;
        justify-content: flex-start;
    }
    .testimonial-card {
        width: 320px;
    }
    /* Trust bar: 2×2 grid — one logo per cell, always centered */
    .trust-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        place-items: center;
        gap: 1.5rem;
        padding: 2rem 5%;
    }
    .trust-item {
        flex-shrink: unset;
        width: 100%;
        justify-content: center;
    }
    .trust-item img {
        height: 22px;
        max-width: 120px;
    }
    .trust-item img[alt="Reforge"] {
        height: 38px;
        max-width: 38px;
    }
}
