@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e5e7eb;
}

/* ---------- Layout ---------- */

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

/* ---------- Glass Card ---------- */

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    padding: 30px;
}

/* ---------- Header ---------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #22c55e;
}

.nav a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.nav a:hover {
    color: #22c55e;
}

/* ---------- Forms ---------- */

.search-box {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 16px;
}

.search-box button {
    padding: 14px 26px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 700;
    cursor: pointer;
}

.search-box button:hover {
    opacity: 0.9;
}

/* ---------- Results ---------- */

.results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.1);
}

.card b {
    color: #22c55e;
}

/* ---------- Landing Tools ---------- */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.tool-card {
    text-decoration: none;
    color: #e5e7eb;
    transition: 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
}

.tool-card .glass {
    height: 100%;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tool-desc {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* ---------- Errors ---------- */

.error {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(127,29,29,0.6);
    color: #fecaca;
}
