:root {
    --primary: #ef4444;
    --primary-glow: rgba(239, 68, 68, 0.3);
    --accent: #f87171;
    --bg: #0b0f1a;
    --surface: rgba(20, 26, 42, 0.6);
    --surface-hover: rgba(30, 41, 59, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    background: var(--nav-bg);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    backdrop-filter: var(--glass);
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero span.highlight {
    color: var(--primary);
    position: relative;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Grid Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card:hover {
    transform: translateY(-8px);
    background: var(--surface-hover);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.tool-icon {
    font-size: 2.5rem;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

    .main-header {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav ul {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0.8rem;
    z-index: 2000;
    margin-top: 10px;
    backdrop-filter: var(--glass);
    grid-template-columns: 1fr;
    gap: 5px;
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-content a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* Content Pages (About/FAQ) */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 30px;
    backdrop-filter: var(--glass);
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}