:root {
    --bg: #0a0a0a;
    --bg-card: #131316;
    --bg-card-hover: #1a1a1f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #fafafa;
    --text-secondary: #8a8a8e;
    --text-muted: #5a5a5e;
    --accent: #cc8a4a;
    --accent-glow: rgba(204, 138, 74, 0.15);
}

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

html, body {
    height: 100%;
}

body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle radial glow behind the header — adds atmosphere without being flashy */
.glow {
    position: fixed;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        var(--accent-glow) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

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

header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.05s forwards;
}

.logo {
    width: 220px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
}

h1 {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

/* ---- Tools section ---- */

.tools {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.25s forwards;
}

.section-label {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.125rem;
}

.tool {
    position: relative;
    display: block;
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.tool:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.tool:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tool-name {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.005em;
}

.tool-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding-right: 2.5rem;
}

.tool-arrow {
    position: absolute;
    top: 50%;
    right: 1.75rem;
    transform: translateY(-50%);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.125rem;
    color: var(--text-muted);
    transition: color 220ms ease, transform 220ms ease;
}

.tool:hover .tool-arrow {
    color: var(--accent);
    transform: translateY(-50%) translateX(4px);
}

/* ---- Animations ---- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Reduce motion preference ---- */

@media (prefers-reduced-motion: reduce) {
    header, .tools {
        animation: none;
        opacity: 1;
    }
    .tool, .tool-arrow {
        transition: none;
    }
}

/* ---- Mobile ---- */

@media (max-width: 480px) {
    main {
        padding: 3rem 1.25rem;
    }
    header {
        margin-bottom: 3.5rem;
    }
    .logo {
        width: 180px;
    }
    h1 {
        font-size: 1.875rem;
    }
    .tool {
        padding: 1.25rem 1.5rem;
    }
    .tool-arrow {
        right: 1.5rem;
    }
    .tool-desc {
        padding-right: 2rem;
    }
}
