:root {
    /* Primary Colors - 更輕盈的藍灰色調 */
    --primary-light: #FAFBFC;    /* 極淺灰白 */
    --primary-medium: #F1F5F9;   /* 淺藍灰 */
    --primary-blue: #475569;     /* 專業藍灰 */
    --primary-dark: #1E293B;     /* 深藍灰 */
    
    /* Extended Palette - 精簡且一致的色彩 */
    --accent-color: #0EA5E9;     /* 清新藍色 */
    --secondary-color: #64748B;  /* 中性灰藍 */
    --success-color: #10B981;    /* 現代綠色 */
    --warning-color: #F59E0B;    /* 清晰橙色 */
    --danger-color: #EF4444;     /* 純淨紅色 */
    
    /* Text Colors - 層次分明 */
    --text-primary: #0F172A;     /* 主文字 - 深色但不會過重 */
    --text-secondary: #475569;   /* 次要文字 */
    --text-tertiary: #64748B;    /* 輔助文字 */
    --text-muted: #94A3B8;       /* 提示文字 */
    --text-disabled: #CBD5E1;    /* 禁用狀態 */
    
    /* Background Colors - 清晰層次 */
    --bg-primary: #FFFFFF;       /* 主背景 - 純白 */
    --bg-secondary: #F8FAFC;     /* 次背景 - 極淺灰 */
    --bg-tertiary: #F1F5F9;      /* 第三層背景 */
    --bg-card: #FFFFFF;          /* 卡片背景 */
    --bg-hover: #F8FAFC;         /* 懸停背景 */
    --bg-overlay: rgba(15, 23, 42, 0.04);  /* 遮罩層 */
    
    /* Border Colors - 精細邊框 */
    --border-light: #F1F5F9;     /* 極淺邊框 */
    --border-default: #E2E8F0;   /* 預設邊框 */
    --border-medium: #CBD5E1;    /* 中等邊框 */
    --border-focus: #0EA5E9;     /* 焦點邊框 */
    
    /* Shadows - 現代陰影系統 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius - 現代圓角 */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    /* Spacing Scale - 8pt 網格系統 */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    
    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Transitions - 流暢動畫 */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-all: all 200ms ease;
    
    /* Claude Theme Integration - 保持兼容性 */
    --claude-orange: var(--accent-color);
    --claude-orange-light: #38BDF8;
    --claude-orange-dark: #0284C7;
    --claude-bg-primary: var(--bg-primary);
    --claude-bg-secondary: var(--bg-secondary);
    --claude-bg-tertiary: var(--bg-tertiary);
    --claude-text-primary: var(--text-primary);
    --claude-text-secondary: var(--text-secondary);
    --claude-text-muted: var(--text-muted);
    --claude-border: var(--border-default);
    --claude-border-light: var(--border-light);
    --claude-shadow-sm: var(--shadow-sm);
    --claude-shadow: var(--shadow-md);
    --claude-shadow-lg: var(--shadow-lg);
    --claude-radius: var(--radius-lg);
    --claude-radius-lg: var(--radius-xl);
}

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

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(219, 226, 239, 0.1) 50%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-accent {
    color: var(--primary-medium) !important;
}

/* Tool Cards */
.tool-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(17, 45, 78, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-overlay) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 45, 78, 0.15);
    border-color: var(--primary-blue);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.chronodrive {
    border-left: 5px solid var(--primary-blue);
}

.tool-card.snapstamp {
    border-left: 5px solid var(--accent-color);
}

.tool-card.snapid {
    border-left: 5px solid var(--secondary-color);
}

/* Tool Icons - 修正為適合 PNG 圖片 */
.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tool-icon.chronodrive { 
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-color)); 
}

.tool-icon.snapstamp { 
    background: linear-gradient(45deg, var(--accent-color), var(--primary-medium)); 
}

.tool-icon.snapid { 
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-blue)); 
}

/* 新增的圖標圖片樣式 */
.tool-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* 移除濾鏡，保持 PNG 圖片原始顏色 */
}

/* Hover 效果 */
.tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.tool-card:hover .tool-icon-img {
    transform: scale(1.1);
}

/* Buttons */
.btn-tool {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-tool:hover::before {
    left: 100%;
}

.btn-chronodrive {
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-color));
    color: white;
}

.btn-chronodrive:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-blue));
    color: white;
}

.btn-snapstamp {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-medium));
    color: var(--text-primary);
}

.btn-snapstamp:hover {
    background: linear-gradient(45deg, var(--primary-medium), var(--accent-color));
    color: var(--text-primary);
}

.btn-snapid {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-blue));
    color: white;
}

.btn-snapid:hover {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-color));
    color: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(17, 45, 78, 0.08);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(17, 45, 78, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--primary-dark);
    color: white;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(63, 114, 175, 0.1) 50%, transparent 70%);
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(63, 114, 175, 0.1);
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: rgba(219, 226, 239, 0.15);
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(90, 155, 212, 0.08);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(120deg); 
    }
    66% { 
        transform: translateY(-10px) rotate(240deg); 
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Bootstrap Overrides */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-color));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-blue));
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-medium);
    color: var(--primary-blue);
}

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

.text-primary {
    color: var(--primary-blue) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Footer Styles - Compatible with both themes */
footer.bg-dark {
    background: var(--primary-dark) !important;
}

/* Footer hover effects for links - using Claude theme variables for consistency */
footer a.text-light:hover {
    color: var(--claude-orange) !important;
}

/* reCAPTCHA badge styling */
.grecaptcha-badge {
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .tool-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .tool-icon {
        width: 64px;
        height: 64px;
    }
    
    .tool-icon-img {
        width: 36px;
        height: 36px;
    }
    
    .floating-element {
        display: none;
    }

    /* Footer responsive styles */
    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .btn-tool {
        font-size: 0.85rem;
        padding: 10px 25px;
    }
    
    .tool-icon {
        width: 56px;
        height: 56px;
    }
    
    .tool-icon-img {
        width: 32px;
        height: 32px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .tool-card,
    .feature-item,
    .btn-tool::before {
        animation: none;
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .tool-card {
        border-width: 3px;
    }
    
    .btn-tool {
        border: 2px solid currentColor;
    }
}
