/* =========================================================
   JJLE INNOVATIONS
   Modern App Portfolio Layout

   The home page only. The Mail Assistant pages use style.css.
   ========================================================= */


/* =========================================================
   DESIGN VARIABLES
   ========================================================= */

:root {
    --background: #f8faff;
    --background-secondary: #f2f6ff;

    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.92);

    --text: #071127;
    --text-secondary: #4f607a;
    /* Was #718096 (3.7:1 on the page). #5e6c84 is 4.9:1, AA for the
       13px footer text that uses it. */
    --text-muted: #5e6c84;

    --blue: #1264ed;
    --blue-light: #20b7ff;
    --blue-dark: #073e9d;

    --violet: #7957ff;

    --border: rgba(31, 86, 170, 0.13);
    --border-strong: rgba(38, 101, 209, 0.2);

    --shadow-small:
        0 8px 30px rgba(35, 72, 128, 0.08);

    --shadow-medium:
        0 20px 60px rgba(42, 76, 137, 0.12);

    --shadow-large:
        0 30px 100px rgba(31, 76, 150, 0.15);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --container-width: 1160px;
}


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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);

    -webkit-font-smoothing: antialiased;

    background:
        radial-gradient(
            circle at 82% 6%,
            rgba(68, 165, 255, 0.17),
            transparent 30%
        ),

        radial-gradient(
            circle at 4% 75%,
            rgba(53, 156, 255, 0.13),
            transparent 27%
        ),

        radial-gradient(
            circle at 96% 84%,
            rgba(121, 87, 255, 0.10),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #fbfdff 0%,
            #f5f8ff 48%,
            #f2f7ff 100%
        );

    background-attachment: fixed;

    overflow-x: hidden;
}

a {
    color: inherit;
}


/* =========================================================
   DECORATIVE PAGE BACKGROUND
   ========================================================= */

.page-background {
    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: -1;
}


/* Very subtle tech/grid texture */

.page-background::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.16;

    background-image:
        linear-gradient(
            rgba(40, 100, 190, 0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(40, 100, 190, 0.025) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5),
            transparent 78%
        );
}


/* Floating blurred glow objects */

.background-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(2px);
}


.orb-one {
    width: 420px;
    height: 420px;

    left: -270px;
    top: 55%;

    background:
        radial-gradient(
            circle,
            rgba(45, 154, 255, 0.16),
            rgba(45, 154, 255, 0)
        );
}


.orb-two {
    width: 520px;
    height: 520px;

    right: -360px;
    top: 58%;

    background:
        radial-gradient(
            circle,
            rgba(117, 86, 255, 0.14),
            rgba(117, 86, 255, 0)
        );
}


.orb-three {
    width: 340px;
    height: 340px;

    left: 48%;
    top: -240px;

    background:
        radial-gradient(
            circle,
            rgba(0, 168, 255, 0.10),
            transparent 70%
        );
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.site-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;

    padding:
        20px
        0
        45px;
}


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

.site-header {
    min-height: 64px;

    padding:
        10px
        22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    position: sticky;

    top: 14px;

    z-index: 100;

    background:
        rgba(255, 255, 255, 0.72);

    border:
        1px solid
        rgba(255, 255, 255, 0.8);

    border-radius: 18px;

    box-shadow:
        0 10px 40px
        rgba(58, 88, 145, 0.08);

    backdrop-filter:
        blur(22px)
        saturate(150%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(150%);
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;
}


.brand-logo {
    width: 39px;
    height: 39px;

    object-fit: contain;
}


.brand-name {
    font-size: 16px;

    font-weight: 700;

    letter-spacing: -0.2px;
}


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

.main-nav {
    display: flex;

    align-items: center;

    gap: 30px;
}


.nav-link {
    position: relative;

    padding:
        10px
        0;

    font-size: 15px;

    font-weight: 500;

    text-decoration: none;

    color: #39475e;

    transition:
        color 180ms ease;
}


.nav-link:hover {
    color: var(--blue);
}


.nav-link.active {
    color: var(--blue);

    font-weight: 650;
}


.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 3px;

    height: 2px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--blue-light)
        );
}


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

.hero {
    position: relative;

    min-height: 220px;

    display: flex;

    align-items: center;

    padding:
        50px
        15px
        30px;

    overflow: hidden;
}


.hero-content {
    position: relative;

    z-index: 5;

    max-width: 690px;
}


.hero h1 {
    margin:
        0
        0
        10px;

    font-size:
        clamp(
            42px,
            5vw,
            62px
        );

    line-height: 1.02;

    letter-spacing: -2.8px;

    font-weight: 760;
}


/* The "Apps that make a difference" line, between the title and the
   tagline: clear of the title's descenders, a little air before the tagline. */

.hero h1 + .section-eyebrow {
    margin:
        4px
        0
        12px;
}


.hero-tagline {
    margin: 0;

    max-width: 665px;

    color: var(--text-secondary);

    font-size:
        clamp(
            18px,
            2vw,
            23px
        );

    line-height: 1.42;

    letter-spacing: -0.3px;
}


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

.hero-watermark {
    position: absolute;

    right: -10px;

    top: 38px;

    width: 330px;

    opacity: 0.10;

    pointer-events: none;

    filter:
        saturate(130%);
}


.hero-watermark img {
    display: block;

    width: 100%;

    height: auto;
}


/* =========================================================
   APPS SECTION
   ========================================================= */

.apps-section {
    position: relative;

    z-index: 10;
}


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


.section-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--blue);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.section-heading h2 {
    margin: 0;

    font-size: 27px;

    letter-spacing: -0.6px;
}


/* =========================================================
   APP CARD
   ========================================================= */

.app-card {
    position: relative;

    overflow: hidden;

    padding: 32px;

    border-radius: var(--radius-large);

    border:
        1px solid
        rgba(62, 120, 210, 0.18);

    /* A light tint of the Mail Assistant icon's own blues: its sky-blue
       highlight (#3DB0FB) top-left, its core blue (#004ACA) bottom-right. */
    background:
        linear-gradient(
            135deg,
            rgba(224, 242, 254, 0.94),
            rgba(219, 230, 248, 0.90)
        );

    backdrop-filter:
        blur(30px)
        saturate(150%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(150%);

    box-shadow:
        var(--shadow-large);
}


/* Faint blue card highlight */

.app-card::before {
    content: "";

    position: absolute;

    inset:
        0
        0
        auto;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(70, 154, 255, 0.55),
            transparent
        );
}


.app-card-glow {
    position: absolute;

    width: 500px;
    height: 350px;

    top: -230px;
    right: -180px;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(43, 152, 255, 0.14),
            transparent 68%
        );
}


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

.app-header {
    position: relative;

    display: flex;

    align-items: center;

    gap: 24px;

    z-index: 2;
}


.app-icon-wrapper {
    flex:
        0
        0
        auto;

    position: relative;
}


.app-icon-wrapper::after {
    content: "";

    position: absolute;

    inset: 12px;

    border-radius: 28px;

    z-index: -1;

    background:
        rgba(14, 111, 255, 0.32);

    filter: blur(25px);
}


.app-icon {
    display: block;

    width: 104px;
    height: 104px;

    object-fit: cover;

    border-radius: 25px;

    filter:
        drop-shadow(
            0 14px 18px
            rgba(0, 75, 190, 0.20)
        );
}


.app-heading {
    flex: 1;
}


.app-title-row {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;
}


.app-heading h3 {
    margin:
        0
        0
        7px;

    font-size: 32px;

    letter-spacing: -1px;

    line-height: 1.1;
}


.app-platform {
    padding:
        5px
        10px;

    border-radius: 99px;

    background:
        rgba(29, 111, 244, 0.08);

    border:
        1px solid
        rgba(29, 111, 244, 0.12);

    color: var(--blue);

    font-size: 12px;

    font-weight: 700;
}


.app-summary {
    margin: 0;

    /* A shade under --blue: 17px bold on the blue card needs 4.5:1,
       and --blue there is 4.1:1. This is 5.1:1. */
    color: #0b55d6;

    font-size: 17px;

    line-height: 1.45;

    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.app-description {
    margin:
        24px
        0
        26px;

    max-width: 960px;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.7;
}


.app-description p {
    margin: 0;
}


/* =========================================================
   FEATURE GRID
   ========================================================= */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.feature-card {
    padding:
        20px
        18px;

    display: flex;

    align-items: flex-start;

    gap: 14px;

    min-height: 175px;

    border:
        1px solid
        rgba(62, 113, 187, 0.12);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.58);

    box-shadow:
        0 6px 24px
        rgba(56, 91, 144, 0.04);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}


.feature-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(39, 111, 229, 0.22);

    box-shadow:
        0 16px 38px
        rgba(54, 95, 157, 0.09);
}


.feature-icon {
    width: 46px;
    height: 46px;

    flex:
        0
        0
        46px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #e9f2ff,
            #dae9ff
        );

    color: var(--blue);
}


.feature-icon.violet {
    color: var(--violet);

    background:
        linear-gradient(
            145deg,
            #f1edff,
            #e5deff
        );
}


.feature-icon svg {
    width: 23px;
    height: 23px;

    fill: currentColor;
}


.feature-card h4 {
    margin:
        2px
        0
        6px;

    font-size: 15px;

    line-height: 1.3;
}


.feature-card p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13.5px;

    line-height: 1.55;
}


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

.app-footer {
    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(58, 103, 171, 0.11);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   BADGES
   ========================================================= */

.app-badges {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.badge {
    min-height: 38px;

    padding:
        8px
        14px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border-radius: 99px;

    color: #28496f;

    /* White, so the pills still stand off the blue card. */
    background:
        rgba(255, 255, 255, 0.62);

    border:
        1px solid
        rgba(59, 121, 211, 0.08);

    font-size: 12px;

    font-weight: 650;
}


.badge svg {
    width: 16px;
    height: 16px;

    fill: currentColor;
}


.badge-icon {
    color: var(--blue);
}


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

.app-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    flex:
        0
        0
        auto;
}


.button {
    min-height: 46px;

    padding:
        10px
        22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 99px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}


.button svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
}


.button-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            #0d79ff,
            #195de8
        );

    box-shadow:
        0 12px 28px
        rgba(17, 105, 242, 0.28);
}


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

    box-shadow:
        0 17px 35px
        rgba(17, 105, 242, 0.36);
}


.button-secondary {
    color: #344c70;

    border:
        1px solid
        rgba(55, 107, 187, 0.21);

    background:
        rgba(255, 255, 255, 0.68);
}


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

    background:
        white;
}


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

.site-footer {
    margin-top: 32px;

    padding:
        18px
        4px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: var(--text-muted);

    font-size: 13px;
}


.footer-links {
    display: flex;

    align-items: center;

    gap: 18px;
}


.footer-links a {
    color: inherit;

    text-decoration: none;
}


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


/* =========================================================
   SITE ADDITIONS
   Pieces the page needs that the layout above does not cover.
   ========================================================= */

/* The Apple trademark notice, under the footer row. */

.footer-note {
    margin: 0;

    padding:
        0
        4px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.5;
}


/* Keyboard users need to see where they are. */

a:focus-visible {
    outline: 3px solid var(--blue-light);

    outline-offset: 3px;

    border-radius: 8px;
}


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

    html {
        scroll-behavior: auto;
    }

    .feature-card,
    .button,
    .nav-link {
        transition: none;
    }

    .feature-card:hover,
    .button-primary:hover,
    .button-secondary:hover {
        transform: none;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero-watermark {
        width: 260px;

        right: -80px;

        opacity: 0.07;
    }


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


    .feature-card {
        min-height: auto;
    }


    .app-footer {
        flex-direction: column;

        align-items: stretch;
    }


    .app-actions {
        justify-content: flex-start;
    }

}


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

@media (max-width: 650px) {

    .site-container {
        width:
            min(
                calc(100% - 24px),
                var(--container-width)
            );

        padding-top: 12px;
    }


    .site-header {
        top: 8px;

        padding:
            9px
            13px;

        border-radius: 15px;
    }


    .brand-name {
        display: none;
    }


    .main-nav {
        gap: 18px;
    }


    .nav-link {
        font-size: 13px;
    }


    .hero {
        min-height: 205px;

        padding:
            46px
            5px
            25px;
    }


    .hero h1 {
        font-size: 40px;

        letter-spacing: -1.8px;
    }


    .hero-tagline {
        font-size: 18px;
    }


    .hero-watermark {
        width: 200px;

        right: -85px;

        top: 30px;

        opacity: 0.055;
    }


    .app-card {
        padding:
            22px
            18px;

        border-radius: 22px;
    }


    .app-header {
        align-items: flex-start;

        gap: 16px;
    }


    .app-icon {
        width: 72px;
        height: 72px;

        border-radius: 18px;
    }


    .app-heading h3 {
        font-size: 25px;
    }


    .app-summary {
        font-size: 15px;
    }


    .app-description {
        font-size: 15px;

        line-height: 1.65;
    }


    .feature-card {
        padding: 17px;
    }


    .app-actions {
        display: grid;

        grid-template-columns: 1fr;
    }


    .button {
        width: 100%;
    }


    .site-footer {
        flex-direction: column;

        align-items: flex-start;
    }

}
