:root {
    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-soft: #f1f3f8;
    --border: #e4e7ee;
    --text: #171a21;
    --muted: #6b7280;
    --primary: #635bff;
    --primary-dark: #5148e5;
    --code-bg: #151821;
    --code-text: #d8deea;
    --success: #168a5b;
    --shadow: 0 20px 50px rgba(20, 25, 40, .08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 80% -10%,
            rgba(99, 91, 255, .12),
            transparent 35%
        ),
        var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

header {
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(228, 231, 238, .7);
    background: rgba(247, 248, 252, .75);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #635bff, #8a83ff);
    box-shadow: 0 8px 20px rgba(99, 91, 255, .25);
    font-size: 16px;
    font-weight: 800;
}

.brand span {
    font-size: 16px;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 14px;
}

nav a:hover {
    color: var(--text);
}

/* Hero */

.hero {
    padding: 92px 0 72px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #dddfff;
    border-radius: 999px;
    background: #f1f0ff;
    color: #554de5;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35b779;
    box-shadow: 0 0 0 4px rgba(53, 183, 121, .12);
}

h1 {
    margin: 0 auto;
    max-width: 800px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 750;
}

.hero p {
    max-width: 650px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: .2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 25, 40, .08);
}

.button-primary {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 70px;
}

.stat {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.stat-label {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

/* Sections */

section {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 7px;
}

h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -.035em;
}

.section-description {
    margin: 7px 0 0;
    color: var(--muted);
}

/* Installation */

.install-card {
    overflow: hidden;
    background: var(--code-bg);
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(20, 24, 35, .16);
}

.code-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #9ba3b4;
    font-size: 12px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555b69;
}

.copy-button {
    border: 0;
    background: rgba(255, 255, 255, .07);
    color: #c7ccda;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
}

.copy-button:hover {
    background: rgba(255, 255, 255, .12);
}

pre {
    margin: 0;
    padding: 26px;
    overflow-x: auto;
    color: var(--code-text);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.75;
}

.xml-tag {
    color: #8fa7ff;
}

.xml-value {
    color: #a7d6b5;
}

/* Tools */

.tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool {
    padding: 22px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    transition: .2s ease;
}

.tool:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--surface-soft);
    margin-bottom: 15px;
    font-weight: 800;
}

.tool h3 {
    margin: 0;
    font-size: 16px;
}

.tool p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Artifacts */

.artifact-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.search {
    width: 100%;
    max-width: 360px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--surface);
    font-size: 14px;
}

.search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .1);
}

.artifact-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.artifact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    transition: background .15s ease;
}

.artifact:last-child {
    border-bottom: 0;
}

.artifact:hover {
    background: #fafbfe;
}

.artifact-name {
    font-weight: 650;
    font-size: 14px;
}

.artifact-path {
    margin-top: 2px;
    color: var(--muted);
    font-family: monospace;
    font-size: 12px;
}

.artifact-version {
    padding: 5px 9px;
    border-radius: 7px;
    background: #eef8f3;
    color: var(--success);
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.artifact-loading,
.artifact-empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.artifact-error {
    padding: 28px;
    text-align: center;
}

.artifact-error-title {
    color: #b42318;
    font-weight: 600;
    margin-bottom: 5px;
}

.artifact-error-message {
    color: var(--muted);
    font-family: monospace;
    font-size: 12px;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--muted);
    font-size: 13px;
}

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

/* Responsive */

@media (max-width: 760px) {

    nav {
        display: none;
    }

    .hero {
        padding: 65px 0 55px;
    }

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

    .artifact {
        align-items: flex-start;
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}