/* =========================================================
   NORVALIS LANDING PAGE
   ========================================================= */

:root {
    --background: #ffffff;
    --text: #111827;
    --text-soft: #8992a1;
    --text-muted: #737d8d;
    --line: #e8ebf0;

    --button: #172333;
    --button-hover: #243247;

    --blue-soft: #eef5ff;
    --purple-soft: #f4efff;
    --green-soft: #eef9f4;

    --max-width: 1280px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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


/* =========================================================
   PAGE
   ========================================================= */

.page {
    width: min(100%, var(--max-width));
    min-height: 100vh;

    margin: 0 auto;
    padding: 0 56px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    padding-top: 36px;

    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
}

.brand-name {
    font-size: 30px;
    font-weight: 500;

    letter-spacing: 0.27em;
    line-height: 1;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.24em;

    color: var(--text-soft);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    /*
       This is intentionally a minimum rather than a fixed height.
       The content is allowed to determine the final height.
    */
    min-height: 465px;

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

    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;

    width: min(100%, 800px);

    text-align: center;

    padding: 20px 20px 15px;
}


/* =========================================================
   DECORATIVE GRADIENT
   ========================================================= */

.hero-glow {
    position: absolute;

    width: 560px;
    height: 560px;

    right: -70px;
    top: 54%;

    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 35%,
            rgba(210, 225, 255, 0.55),
            rgba(226, 218, 255, 0.35) 42%,
            rgba(255, 225, 215, 0.20) 68%,
            transparent 72%
        );

    filter: blur(2px);

    pointer-events: none;
}


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

.eyebrow {
    margin-bottom: 22px;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 0.25em;

    color: var(--text);

    animation: fade-up 0.8s ease both;
}

.hero h1 {
    margin-bottom: 12px;

    font-size: clamp(64px, 7vw, 100px);
    font-weight: 500;

    letter-spacing: -0.055em;
    line-height: 0.98;

    color: #101827;

    animation: fade-up 0.8s 0.05s ease both;
}

.hero-subtitle {
    margin: 0 auto 20px;

    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 400;

    letter-spacing: -0.025em;
    line-height: 1.22;

    color: var(--text-soft);

    animation: fade-up 0.8s 0.1s ease both;
}

.hero-description {
    width: min(100%, 720px);

    margin: 0 auto;

    font-size: 19px;
    font-weight: 400;

    line-height: 1.7;

    color: var(--text-muted);

    animation: fade-up 0.8s 0.15s ease both;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-wrapper {
    margin-top: 28px;

    display: flex;
    flex-direction: column;
    align-items: center;

    animation: fade-up 0.8s 0.2s ease both;
}

.cta-button {
    width: min(310px, 100%);

    min-height: 64px;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    border-radius: 10px;

    background: var(--button);
    color: #ffffff;

    font-size: 19px;
    font-weight: 500;

    box-shadow:
        0 12px 28px rgba(20, 32, 50, 0.12);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.cta-button:hover {
    background: var(--button-hover);

    transform: translateY(-2px);

    box-shadow:
        0 16px 34px rgba(20, 32, 50, 0.17);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(74, 115, 180, 0.35);
    outline-offset: 4px;
}

.arrow {
    font-size: 27px;
    font-weight: 300;
    position: absolute;
    right:32px;

    transition: transform 0.25s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.cta-url {
    margin-top: 14px;

    font-size: 16px;

    color: var(--text-soft);
}


/* =========================================================
   HIGHLIGHTS
   ========================================================= */

.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-bottom: 1px solid var(--line);

    padding: 28px 0 56px;
}

.highlight {
    min-height: 110px;

    padding: 0 34px;

    display: flex;
    align-items: center;

    gap: 22px;
}

.highlight + .highlight {
    border-left: 1px solid var(--line);
}

.highlight:first-child {
    padding-left: 0;
}

.highlight:last-child {
    padding-right: 0;
}


/* =========================================================
   HIGHLIGHT ICONS
   ========================================================= */

.highlight-icon {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    border-radius: 18px;
}

.highlight-icon svg {
    width: 31px;
    height: 31px;
}

.icon-blue {
    background: var(--blue-soft);
    color: #1a2b48;
}

.icon-purple {
    background: var(--purple-soft);
    color: #33254d;
}

.icon-green {
    background: var(--green-soft);
    color: #19382c;
}


/* =========================================================
   HIGHLIGHT TEXT
   ========================================================= */

.highlight h2 {
    margin-bottom: 8px;

    font-size: 20px;
    font-weight: 500;

    letter-spacing: -0.025em;
}

.highlight p {
    max-width: 230px;

    font-size: 16px;
    line-height: 1.5;

    color: var(--text-muted);
}


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

.site-footer {
    min-height: 82px;

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

    gap: 30px;

    font-size: 14px;

    color: var(--text-soft);
}

.site-footer span {
    color: #596474;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1600px) {

    :root {
        --max-width: 1440px;
    }

    .page {
        padding-left: 72px;
        padding-right: 72px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .hero-glow {
        width: 620px;
        height: 620px;

        right: -70px;
        top: 54%;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) {

    .page {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-glow {
        width: 480px;
        height: 480px;

        right: -140px;

        opacity: 0.75;
    }

    .hero-description {
        font-size: 17px;
    }

    .highlight {
        padding-left: 20px;
        padding-right: 20px;

        gap: 15px;
    }

    .highlight-icon {
        flex-basis: 58px;

        width: 58px;
        height: 58px;

        border-radius: 15px;
    }

    .highlight-icon svg {
        width: 26px;
        height: 26px;
    }

    .highlight h2 {
        font-size: 17px;
    }

    .highlight p {
        font-size: 14px;
    }
}


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

@media (max-width: 640px) {

    .page {
        width: 100%;

        padding-left: 22px;
        padding-right: 22px;
    }


    /* -------------------------
       Header
       ------------------------- */

    .site-header {
        padding-top: 28px;
    }

    .brand {
        gap: 9px;
    }

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

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 0.18em;
    }


    /* -------------------------
       Hero
       ------------------------- */

    .hero {
        min-height: auto;

        align-items: flex-start;

        overflow: hidden;
    }

    .hero-content {
        width: 100%;

        padding: 78px 0 58px;
    }

    .hero-glow {
        width: 340px;
        height: 340px;

        top: 260px;
        right: -185px;

        transform: none;

        opacity: 0.60;
    }

    .eyebrow {
        margin-bottom: 20px;

        font-size: 10px;

        letter-spacing: 0.20em;
    }

    .hero h1 {
        margin-bottom: 16px;

        font-size: clamp(48px, 15vw, 68px);

        letter-spacing: -0.06em;
    }

    .hero-subtitle {
        margin-bottom: 22px;

        font-size: 23px;

        line-height: 1.3;
    }

    .desktop-break {
        display: none;
    }

    .hero-description {
        width: 100%;

        font-size: 16px;
        line-height: 1.65;
    }


    /* -------------------------
       CTA
       ------------------------- */

    .cta-wrapper {
        width: 100%;

        margin-top: 32px;
    }

    .cta-button {
        width: 100%;

        min-height: 60px;

        padding-left: 30px;
        padding-right: 30px;

        font-size: 17px;
    }

    .cta-url {
        margin-top: 12px;

        font-size: 14px;
    }


    .cta-arrow {
        right: 28px;
    }



    /* -------------------------
       Highlights
       ------------------------- */

    .highlights {
        display: flex;
        flex-direction: column;

        gap: 0;

        padding: 0 0 28px;
    }

    .highlight,
    .highlight:first-child,
    .highlight:last-child {
        min-height: 100px;

        padding: 20px 0;

        gap: 18px;
    }

    .highlight + .highlight {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .highlight-icon {
        flex: 0 0 58px;

        width: 58px;
        height: 58px;

        border-radius: 16px;
    }

    .highlight-icon svg {
        width: 26px;
        height: 26px;
    }

    .highlight h2 {
        margin-bottom: 5px;

        font-size: 17px;
    }

    .highlight p {
        max-width: none;

        font-size: 14px;
        line-height: 1.45;
    }


    /* -------------------------
       Footer
       ------------------------- */

    .site-footer {
        min-height: auto;

        padding: 24px 0 30px;

        flex-direction: column;
        align-items: flex-start;

        gap: 8px;

        font-size: 12px;
        line-height: 1.5;
    }

    .site-footer .project-credit {
        display: block;
        margin-top: 4px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-content {
        padding-top: 68px;
        padding-bottom: 52px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .hero-description {
        font-size: 15px;
    }

    .highlight-icon {
        flex-basis: 52px;

        width: 52px;
        height: 52px;
    }

    .highlight h2 {
        font-size: 16px;
    }

    .highlight p {
        font-size: 13px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}