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

:root {
    --bg: #0a0d12;
    --surface: #11161e;
    --surface-hover: #171e28;
    --border: #242c38;
    --text: #f1f5f9;
    --muted: #8994a3;
    --accent: #7c3aed;
    --accent-hover: #8b5cf6;
    --danger: #ef4444;
    --success: #22c55e;
    --tag: #1e293b;
    --tag-text: #a5b4fc;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(124, 58, 237, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(59, 130, 246, 0.08),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    padding: 48px;
    display: flex;
    flex-direction: column;
}

body > * {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Hero */

.hero {
    padding: 32px 0 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 999px;
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 20px;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    color: var(--muted);
    line-height: 1.6;
    font-size: 17px;
    max-width: 640px;
}

/* Tools section */

.tools-section {
    margin-top: 44px;
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.tool-card {
    position: relative;
    display: block;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.25s ease;
    overflow: hidden;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, #3b82f6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    color: var(--text);
}

.tool-card p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14.5px;
    margin-bottom: 16px;
}

.tool-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--tag);
    color: var(--tag-text);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-hover);
    font-size: 13.5px;
    font-weight: 650;
    transition: gap 0.2s ease;
}

.tool-card:hover .tool-cta {
    gap: 10px;
}

/* Footer */

footer {
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.credits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.credit-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.credit-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

.credit-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.credit-item a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.copy {
    color: #566170;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 700px) {
    body {
        padding: 24px;
    }

    h1 {
        font-size: 32px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
