/* ===================================
   RESET
=================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    background: #05060b;
    color: #e5e7eb;
    overflow-x: hidden;
}

/* ===================================
   BACKGROUND
=================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(120,80,255,0.18), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,120,255,0.18), transparent 55%);
    filter: blur(120px);
}

/* ===================================
   CONTAINER
=================================== */

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

/* ===================================
   HEADER
=================================== */

header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 42px;
}

.brand h1 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: .95rem;
    transition: .25s ease;
}

nav a:hover {
    color: #c7d2fe;
}

/* ===================================
   HERO
=================================== */

.hero {
    padding: 90px 0 60px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 18px;
    background: linear-gradient(90deg,#ffffff,#a5b4fc,#7c7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #9ca3af;
    max-width: 650px;
    margin: auto;
    line-height: 1.7;
}

/* ===================================
   TOOLS GRID
=================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 60px 0 100px;
}

.tool-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px;
    transition: .3s ease;
}

.tool-card:hover {
    border-color: rgba(120,80,255,.4);
    transform: translateY(-4px);
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #e0e7ff;
}

.tool-desc {
    font-size: .9rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* ===================================
   INPUTS
=================================== */

.input-label {
    display: block;
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.45);
    color: #ffffff;
    margin-bottom: 16px;
    font-family: inherit;
    transition: .2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 3px rgba(88,101,242,0.25);
}

/* ===================================
   BUTTONS
=================================== */

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: linear-gradient(135deg,#5865f2,#4338ca);
    color: #ffffff;
    transition: .25s ease;
    margin-bottom: 12px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(88,101,242,.4);
}

/* ===================================
   RESULTS
=================================== */

.results-box {
    margin-top: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    min-height: 60px;
    font-size: .9rem;
    word-break: break-word;
}

.results-placeholder {
    color: #6b7280;
}

/* ===================================
   FOOTER
=================================== */

footer {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===================================
   RESPONSIVE BREAKPOINTS
=================================== */

/* Tablet */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {

    .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0 80px;
    }

    .tool-card {
        padding: 22px;
    }

    .btn {
        padding: 16px;
        font-size: 1rem;
    }
}