:root {
    --bg: #07080c;
    --bg-soft: #0b0d13;

    --surface: rgba(15, 18, 27, 0.78);
    --surface-hover: #151925;

    --border: rgba(255, 255, 255, 0.085);
    --border-hover: rgba(167, 139, 250, 0.30);

    --text: #f5f7fb;
    --text-soft: #c8ceda;
    --muted: #7f899b;

    --accent: #8b6cff;
    --accent-light: #b19cff;

    --green: #55d98a;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 11px;

    --max-width: 1160px;
    --mono: "JetBrains Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;

    color: var(--text);
    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(107, 78, 218, 0.13),
            transparent 30rem
        ),
        radial-gradient(
            circle at 0% 35%,
            rgba(68, 83, 174, 0.07),
            transparent 28rem
        ),
        var(--bg);

    font-family: "Inter", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    opacity: 0.5;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 64px 64px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );
}

::selection {
    color: white;
    background: rgba(139, 108, 255, 0.35);
}

a {
    color: inherit;
}

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

/* =========================
   NAVIGATION
   ========================= */

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 100;

    width: min(var(--max-width), calc(100% - 32px));
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: rgba(7, 8, 12, 0.72);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transform: translateX(-50%);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.22);
}

.logo {
    color: var(--text);
    text-decoration: none;

    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 600;

    letter-spacing: -0.035em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    padding: 8px 12px;

    border-radius: 9px;

    color: var(--muted);
    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

/* =========================
   TYPOGRAPHY
   ========================= */

.eyebrow,
.section-label {
    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 9px 0 0;

    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.05;

    letter-spacing: -0.045em;
}

.muted {
    color: var(--muted);
}

/* =========================
   BUTTONS
   ========================= */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 16px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

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

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

    box-shadow:
        0 12px 32px rgba(139, 108, 255, 0.20);
}

.button.primary:hover {
    background: #997fff;
}

.button.secondary {
    color: var(--text-soft);

    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.button.secondary:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================
   CARDS
   ========================= */

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

/* =========================
   SECTIONS
   ========================= */

.section {
    padding: 100px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading p {
    max-width: 620px;

    margin: 14px 0 0;

    color: var(--muted);

    font-size: 0.92rem;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-family: var(--mono);
    font-size: 0.67rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

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

.arrow {
    display: inline-block;

    transition:
        transform 0.2s ease;
}

a:hover .arrow {
    transform: translateX(4px);
}

/* =========================
   MOBILE
   ========================= */

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

    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }

    .nav-links a {
        padding-inline: 8px;
    }

    .nav-links a:nth-child(2) {
        display: none;
    }

    .section {
        padding: 75px 0;
    }

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

        padding: 28px 0;
    }
}
