@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    /* Premium Dark Palette */
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --surface: rgba(0, 0, 0, 0.02);
    --surface-2: rgba(0, 0, 0, 0.04);
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(0, 0, 0, 0.08);
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --accent: #059669;
    --glow: rgba(59, 130, 246, 0.15);

    /* Layout & Sizing */
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 8px 32px rgba(59, 130, 246, 0.08);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.12);
    --container: min(1280px, 92vw);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

p {
    margin: 0;
    color: var(--muted);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ======== TYPOGRAPHY HELPERS ======== */
.mono {
    font-family: 'JetBrains Mono', monospace;
}

.text-muted,
.muted {
    color: var(--muted);
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 6px;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: var(--bg);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-light {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-light:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* ======== INPUTS ======== */
#tool-search,
select,
input[type="text"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 14px 18px;
    outline: none;
    transition: all 0.3s ease;
}

select {
    appearance: none;
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #3f3f46;
}

#tool-search:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: var(--brand);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px var(--glow);
}

textarea {
    max-width: none;
    min-height: 150px;
    resize: vertical;
}

label {
    display: block;
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ======== BADGES ======== */
.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    vertical-align: middle;
    margin-left: 8px;
}

/* ======== INLINE LINK ======== */
.inline-link {
    color: var(--brand-strong);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(59, 130, 246, 0.3);
}

.inline-link:hover {
    text-decoration-color: var(--brand);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    .actions {
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}