:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e6eaf0;
    --soft: #f7f9fc;
    --blue: #3568ff;
    --purple: #7047eb;
    --dark: #101828;
    --white: #ffffff;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(230, 234, 240, .8);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-name {
    font-size: 23px;
    letter-spacing: -.7px;
}

.brand-mark {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 6px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 6px 18px rgba(72, 83, 255, .24);
}

.brand-mark span {
    display: block;
    width: 4px;
    border-radius: 4px;
    background: #fff;
}

.brand-mark span:nth-child(1) {
    height: 8px;
}

.brand-mark span:nth-child(2) {
    height: 14px;
}

.brand-mark span:nth-child(3) {
    height: 19px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.main-nav a,
.login-link {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover,
.login-link:hover {
    color: var(--blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(73, 82, 255, .20);
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(73, 82, 255, .27);
}

.button-small {
    padding: 10px 17px;
    font-size: 14px;
}

/* Homepage */

main section {
    padding: 100px 20px;
}

main section:first-child {
    min-height: 660px;
    padding: 130px 20px 110px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 10%, rgba(80, 91, 255, .13), transparent 34%),
        linear-gradient(180deg, #fbfcff 0%, #fff 100%);
}

main section:first-child > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

main section:first-child > p:first-child {
    display: inline-block;
    padding: 7px 13px;
    margin-bottom: 20px;
    border: 1px solid #dfe5ff;
    border-radius: 999px;
    color: #4b56d2;
    background: #f7f8ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

h1 {
    margin: 0 auto 24px;
    max-width: 900px;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.04;
    letter-spacing: -3.5px;
}

main section:first-child > p:nth-of-type(2) {
    max-width: 720px;
    color: var(--muted);
    font-size: 20px;
}

main section:first-child > p:last-child {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

main section:first-child > p:last-child a {
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
}

main section:first-child > p:last-child a:first-child {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

main section:first-child > p:last-child a:last-child {
    border: 1px solid var(--line);
    background: #fff;
}

#features {
    max-width: 1160px;
    margin: auto;
}

#features > h2 {
    margin: 0 0 50px;
    text-align: center;
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -2px;
}

#features > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#features article {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

#features article h3 {
    margin-top: 0;
    font-size: 20px;
}

#features article p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

main section:nth-of-type(3),
main section:nth-of-type(4) {
    text-align: center;
}

main section:nth-of-type(3) {
    background: var(--soft);
}

main section:nth-of-type(3) > *,
main section:nth-of-type(4) > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

main section:nth-of-type(3) > p:first-child,
main section:nth-of-type(4) > p:first-child {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

main section:nth-of-type(3) h2,
main section:nth-of-type(4) h2,
main section:last-child h2 {
    margin: 10px auto 20px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -2px;
}

main section:nth-of-type(3) p,
main section:nth-of-type(4) p {
    color: var(--muted);
    font-size: 18px;
}

main section:last-child {
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 30% 20%, rgba(101, 86, 255, .45), transparent 38%),
        var(--dark);
}

main section:last-child p {
    color: #cbd5e1;
    font-size: 18px;
}

/* Footer */

.site-footer {
    padding: 70px 0 25px;
    color: #98a2b3;
    background: #0b1220;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 55px;
}

.footer-brand {
    color: #fff;
}

.footer-intro {
    max-width: 360px;
    margin-top: 20px;
    font-size: 14px;
}

.footer-grid h4 {
    margin: 3px 0 18px;
    color: #fff;
    font-size: 14px;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid a:not(.brand) {
    font-size: 14px;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid #1d2939;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    #features > div {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid > div:last-child {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .site-header {
        position: relative;
    }

    .nav-wrap {
        min-height: 68px;
    }

    .login-link {
        display: none;
    }

    .button-small {
        padding: 9px 12px;
        font-size: 12px;
    }

    h1 {
        font-size: 45px;
        letter-spacing: -2.2px;
    }

    main section {
        padding: 75px 18px;
    }

    main section:first-child {
        min-height: auto;
        padding: 95px 18px;
    }

    main section:first-child > p:last-child {
        flex-direction: column;
        max-width: 260px;
    }

    #features > div {
        grid-template-columns: 1fr;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
