:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.8);
    --border: #334155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Glassmorphism */
header {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex; align-items: center;
}

/* Hero Section */
.hero { padding: 100px 0 60px; text-align: center; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }

/* Search Box */
.search-wrapper {
    position: relative; max-width: 600px; margin: 40px auto;
}
#tool-search {
    width: 100%; padding: 18px 25px; border-radius: 50px;
    border: 2px solid var(--border); background: var(--bg-white);
    font-size: 1.1rem; outline: none; transition: var(--transition);
    box-shadow: var(--shadow);
}
#tool-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
kbd {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    background: var(--bg-light); padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border);
}

/* Tool Cards */
.tool-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; margin-top: 40px;
}
.tool-card {
    background: var(--bg-white); padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--border); transition: var(--transition);
    cursor: pointer; position: relative; overflow: hidden;
    text-decoration: none; color: inherit;
}
.tool-card:hover {
    transform: translateY(-5px); border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.tool-card .icon { font-size: 2rem; margin-bottom: 15px; display: block; }
.tool-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.tool-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Badges */
.badge {
    background: rgba(99, 102, 241, 0.1); color: var(--primary);
    padding: 5px 15px; border-radius: 20px; font-weight: 600; font-size: 0.8rem;
    display: inline-block; margin-bottom: 15px;
}

/* FAQ Accordion */
.faq-item { background: var(--bg-white); border: 1px solid var(--border); margin-bottom: 10px; border-radius: var(--radius); }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: var(--transition); color: var(--text-muted); }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 200px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tool-card { animation: fadeIn 0.5s ease forwards; }

/* Dark Mode Toggle Switch Styling ... */
