/* CSS Variables */
:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --accent-primary: #00d9ff;
    --accent-secondary: #7b2cbf;
    --accent-gradient: linear-gradient(135deg, #00d9ff 0%, #7b2cbf 100%);
    --text-primary: #ffffff;
    --text-secondary: #9090a0;
    --success: #00ff88;
    --border-radius: 16px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --glow: 0 0 30px rgba(0, 217, 255, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse at top, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    padding: 40px 0 60px;
}

.logo {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

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

header h1 {
    font-size: 2.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Tools Grid */
main {
    flex: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Tool Card */
.tool-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow), var(--glow);
    border-color: rgba(0, 217, 255, 0.2);
}

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

.tool-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tool-card h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
}

.tool-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 30px 0 40px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 24px;
    }
}
