:root {
    --bg: #0b0d12;
    --surface: #12161d;
    --surface-hover: #181e27;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #9ba6b5;
    --accent: #4da3ff;
    --accent-hover: #72b7ff;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

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

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.95rem;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--surface);
}

/* Hero */

.hero {
    padding: 110px 0 90px;
}

.hero-content {
    max-width: 780px;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 19px;
    border-radius: 10px;
    background: var(--accent);
    color: #07111d;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    background: var(--surface-hover);
}

/* Sections */

.section {
    padding: 80px 0;
}

.section-header {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-header h1,
.section-header h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    border-color: rgba(77, 163, 255, 0.25);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card h2,
.card h3 {
    margin: 0 0 10px;
}

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

.card-link {
    color: var(--accent);
    font-weight: 700;
}

/* Content */

.content {
    max-width: 820px;
}

.content p {
    color: var(--muted);
    font-size: 1.05rem;
}

.content h2 {
    margin-top: 45px;
}

/* Footer */

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: #080a0e;
}

.footer-inner {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer p {
    margin: 5px 0 0;
    color: var(--muted);
}

.footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Mobile */

@media (max-width: 760px) {

    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .header-inner {
        min-height: auto;
        padding: 15px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .hero {
        padding: 70px 0 60px;
    }

    .hero h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section {
        padding: 55px 0;
    }

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

    .footer-inner {
        padding: 35px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}
