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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(145deg, #f0f4fc 0%, #e9eef5 100%);
    min-height: 100vh;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e2a3a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #2c7da0;
    border-radius: 10px;
}

.navbar {
    background: #0b1c2c;
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 2px solid #2c7da0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.ethical-logo {
    background: #1f6392;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.ethical-logo span {
    font-size: 26px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    font-family: monospace;
}
.logo-text h1 {
    font-size: 1.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #7bc6e6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.logo-text p {
    font-size: 0.7rem;
    color: #9bb7d4;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #eef4ff;
    font-size: 1rem;
    transition: 0.2s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover {
    color: #5bc0ff;
    border-bottom-color: #5bc0ff;
}

.menu-btn {
    background: #1f6392;
    border: none;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.menu-btn:hover {
    background: #0f4b6e;
    transform: scale(0.97);
}
.menu-icon {
    font-size: 1.2rem;
}

.mobile-menu-icon {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.tools-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 20, 33, 0.96);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}
.tools-overlay.open {
    visibility: visible;
    opacity: 1;
}
.tools-container {
    background: #102433;
    width: 90%;
    max-width: 1300px;
    max-height: 85vh;
    border-radius: 2rem;
    padding: 1.8rem 2rem;
    overflow-y: auto;
    box-shadow: 0 25px 45px rgba(0,0,0,0.5);
    border: 1px solid #2c7da0;
    position: relative;
}
.close-menu {
    position: absolute;
    top: 1rem;
    right: 1.8rem;
    background: #c44536;
    border: none;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-menu:hover {
    background: #a13325;
    transform: rotate(90deg);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.tool-category {
    background: #0e1a2b;
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    border-left: 5px solid #2c7da0;
}
.tool-category h3 {
    color: #ffd966;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2c5a7a;
    display: inline-block;
}
.tool-list {
    list-style: none;
    margin-top: 0.6rem;
}
.tool-list li {
    margin: 0.7rem 0;
}
.tool-list a {
    color: #cae9ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    transition: 0.2s;
    background: rgba(44,125,160,0.2);
    width: 100%;
}
.tool-list a:hover {
    background: #2c7da0;
    color: white;
    padding-left: 15px;
}

.main-content {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1.5rem 2rem;
}

.tool-detail {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.tool-detail h1 {
    color: #1f6392;
    margin-bottom: 1rem;
    font-size: 2rem;
}
.tool-detail h3 {
    margin: 1.8rem 0 0.8rem 0;
    color: #0f2c3d;
    border-left: 4px solid #1f6392;
    padding-left: 12px;
}
.tool-detail pre {
    background: #1e2a3a;
    color: #eef4ff;
    padding: 1rem;
    border-radius: 0.8rem;
    overflow-x: auto;
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    background: #1f6392;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.back-link:hover {
    background: #0f4b6e;
    transform: scale(0.98);
}
.badge {
    display: inline-block;
    background: #eef2fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    color: #1f6392;
}

.ad-container {
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e7f0;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #2c5a6e;
    font-size: 0.8rem;
    border-top: 1px solid #d0dbe8;
    margin-top: 2rem;
}

@media (max-width: 780px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }
    .logo-text h1 {
        font-size: 1.3rem;
    }
    .tools-container {
        padding: 1rem;
    }
    .tool-detail {
        margin: 1rem;
        padding: 1.2rem;
    }
    .tool-detail h1 {
        font-size: 1.5rem;
    }
    pre {
        font-size: 0.7rem;
    }
}

button {
    font-family: inherit;
}