:root {
    --bg-dark: #0b0f14;
    --panel-dark: rgba(8, 12, 18, 0.78);
    --panel-soft: rgba(255, 255, 255, 0.08);
    --text-main: #f5f7fa;
    --text-muted: #c7d0dc;
    --text-soft: #9ba8b7;
    --line-soft: rgba(255, 255, 255, 0.18);
    --accent: #8dd6ff;
    --accent-strong: #4fb8ff;
    --warning: #ffd27a;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-dark);
}

body {
    min-height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        linear-gradient(rgba(3, 7, 12, 0.76), rgba(3, 7, 12, 0.88)),
        url("images/background.jpg") center center / cover fixed no-repeat,
        var(--bg-dark);
    line-height: 1.58;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-strong);
}

.site-header {
    border-bottom: 1px solid var(--line-soft);
    background: rgba(5, 8, 13, 0.82);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 720;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 0.84rem;
    color: var(--text-soft);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
}

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

.nav .github-link {
    padding: 8px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

main {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.hero {
    max-width: 860px;
    padding: 42px;
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    background: var(--panel-dark);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--warning);
    font-size: 0.92rem;
    font-weight: 680;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.lede {
    margin: 0;
    max-width: 760px;
    color: var(--text-muted);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 680;
    background: rgba(255, 255, 255, 0.08);
}

.button.primary {
    color: #03111c;
    background: var(--accent);
    border-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: var(--panel-dark);
}

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

.section {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    background: var(--panel-dark);
}

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

.section p:last-child {
    margin-bottom: 0;
}

.notice {
    border-color: rgba(255, 210, 122, 0.46);
    background: rgba(84, 56, 13, 0.34);
}

ul {
    padding-left: 1.3rem;
}

code {
    padding: 0.12rem 0.32rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.site-footer {
    border-top: 1px solid var(--line-soft);
    background: rgba(5, 8, 13, 0.82);
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer-inner p {
    margin: 4px 0;
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero {
        padding: 28px;
    }

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

    main {
        padding-top: 34px;
    }
}
