:root {
    --primary: #3E9F8F;      /* 護胰知性綠 */
    --primary-dark: #004C74; /* 權威深藍 */
    --primary-light: #eef7f5;
    --accent: #D4B872;       /* 點綴金 */
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 76, 116, 0.1);
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-title {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.btn-join-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #06C755; /* Line Green */
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-join-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(62, 159, 143, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 76, 116, 0.1);
    bottom: -50px;
    left: -100px;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(62, 159, 143, 0.1);
    color: var(--primary);
    border: 1px solid rgba(62, 159, 143, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #06C755;
    color: white;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.25);
}

.btn-primary:hover {
    background-color: #05b34c;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(6, 199, 85, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
    background-color: var(--primary-dark);
    color: white;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-indicators p {
    font-size: 14px;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatars img, .avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatar-more {
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

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

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--accent);
}

.badge-top-right {
    top: 40px;
    right: -20px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 60px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

.placeholder-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    opacity: 0.9;
}

.feature-icon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.feature-title {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    margin-top: 20px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 15px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="white"/></svg>') 0 0/50px 50px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-btn-glow {
    background-color: white !important;
    color: var(--primary-dark) !important;
    font-size: 18px;
    padding: 16px 36px;
}

.cta-btn-glow:hover {
    background-color: var(--primary-light) !important;
    box-shadow: 0 0 20px rgba(255,255,255,0.4) !important;
}

.cta-qr {
    position: relative;
    z-index: 1;
}

.qr-wrapper {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--primary-dark);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: rotate(2deg);
}

.qr-img {
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qr-wrapper p {
    font-weight: 700;
    font-size: 14px;
}

/* Footer */
.footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-desc {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .cta-content {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .badge-top-right, .badge-bottom-left {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
