/*
    Colors: 
        Teal -> #77e8e3
        Yellow -> #ffefb7

        Orange -> #E86100
        Orange-light -> #FF9100
*/

* {
    box-sizing: border-box;
}

html,
body {
    font-family: 'Poppins';
    font-size: 14px;

    width: 100%;

    padding: 0;
    margin: 0;

    color: rgb(0, 0, 0);
}

body {
    position: relative;

    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 50px 0 0;

    background-color: rgb(255, 255, 255);
}

.shim-bg {
    display: block;
    position: absolute;
    margin: 0; padding: 0;

    z-index: -10;

    width: 100%;
    height: auto;

    pointer-events: none;
    
    overflow-x: hidden;
}

.shim-bg img {
    display: block;
    position: relative;

    left: 50%;
    min-width: 100vw;
}

.shim-bg--header {
    top: -50px;
}

.shim-bg--header img {
    opacity: 0.5;

    height: 585px;
    transform: translateX(-50%);
}

.shim-bg--footer {
    bottom: 0;
}

.shim-bg--footer img {
    opacity: 0.7;

    height: 950px;
    bottom: 0;
    transform: translateX(-50%) rotate(180deg);
}

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9;

    padding: 16px 72px;

    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.10);

    background-color: #0C4D6D;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 50px;

    margin: 0 auto;
    max-width: 1280px;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    gap: 1rem;

    color: white;

    font-size: 1.87rem;
}

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

    height: 50px;
    width: 100%;
    max-width: 1280px;
    padding: 0 80px;
    margin: 0 auto 3rem;

    border-radius: 32px;
    
    background-color: #0C4D6D;
    color: white;
}

footer a {
    color: white;
}

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

    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 20px;
}

.text--center {
    text-align: center;
}

.text--gradient {
    color: rgb(25, 112, 154);

    background: linear-gradient(90deg, rgb(25, 112, 154) 12.66%, rgb(83, 170, 213) 94.55%);
    text-shadow: 0 0 hsla(0, 0%, 100%, 0);
    background-clip: border-box;

    -webkit-text-fill-color: hsla(0, 0%, 100%, 0);
    -webkit-background-clip: text;
}

.button {
    padding: 8px 16px;

    color: white;
    text-decoration: none;

    border-radius: 1000px;

    background: linear-gradient(90deg, #E86100 18.16%, #FF9000 78.81%);
    background-size: 150% 100%;
    background-position-x: 50%;

    transition: all 120ms ease-out;
}

.button:hover {
    background-position-x: 100%;
}

.button:active {
    background-position-x: 20%;
}

.card {
    border-radius: 32px;
    padding: 1rem 1.5rem;
}

.card--link {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.card--background {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 4px 0px;
}

.card--border {
    /* "Border" implemented in ::before pseudo with background so we can gradient */
    /* border: 4px solid rgb(83, 170, 213); */
    background-color: white;
    
    position: relative;
    z-index: 1;

    overflow: hidden;
}

.card--border::before {
    content: '';
    display: block;

    position: absolute;
    z-index: -1;

    top: 4px; bottom: 4px;
    left: 4px; right: 4px;
    
    background: white;

    /* 32px is the actual radius, but -4px inset */
    border-radius: 28px;
}

.card--border::after {
    content: '';
    display: block;

    position: absolute;
    z-index: -2;

    top: 0; bottom: 0;
    left: 0; right: 0;
    
    background: linear-gradient(90deg, #77e8e3, #ffefb7);
}

h1 {
    font-size: 3.45rem;
    text-align: center;
    
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;

    margin: 0;
}

h3 {
    font-size: 1.5rem;
}

h4,
p {
    font-size: 1.1rem;
}

.features {
    display: flex;
    gap: 2.37rem;
    
    margin: 5rem 0;
}

.feature {
    flex: 1;
}

.section {
    display: flex;
    gap: 4rem;

    margin: 0 0 7rem;
}

.section .col > * {
    display: block;
    width: 100%;
}

.section .col img {
    box-shadow: 0 10px 20px -10px #ccc;
}

.section .video-js {
    width: 100%;
    height: auto;

    aspect-ratio: 16 /9;

    background: white;
}

.section .video-js video {
    display: block;

    width: inherit;
    height: auto;
}

.section img {
    max-width: 100%;
    border-radius: 8px;
}

.dashboard-img,
.registry-img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 1em 0;
}

.insights-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 3rem;

    padding-bottom: 5rem;
}

.insights {
    display: flex;

    max-width: 1280px;
    margin: 0 auto;

    gap: 1.75rem;
}

.insights .insights__card {
    display: flex;
    flex-direction: column;
}

.insights__card .read-more {
    font-weight: bold;

    display: flex;
    align-items: flex-end;
    flex-grow: 1;

    margin-bottom: 1rem;
}

.insights > .card {
    flex: 1;

    border: 4px solid rgb(218, 240, 246);
}

.insights > .card:hover {
    border: 4px solid rgb(83, 170, 213);
}

.insights > .card:hover h4,
.insights > .card:hover .read-more {
    background: linear-gradient(90deg, rgb(15, 88, 124) 12.66%, rgb(83, 170, 213) 94.55%);
    text-shadow: 0 0 hsla(0, 0%, 100%, 0);
    background-clip: border-box;

    -webkit-text-fill-color: hsla(0, 0%, 100%, 0);
    -webkit-background-clip: text;
}

@media (max-width: 900px) {
    .features,
    .insights,
    .section {
        flex-direction: column;
    }
}


/* 
------------------
  Util Classes
------------------
*/
.col--10 { flex: 0.1; }
.col--20 { flex: 0.2; }
.col--30 { flex: 0.3; }
.col--40 { flex: 0.4; }
.col--50 { flex: 0.5; }
.col--60 { flex: 0.6; }
.col--70 { flex: 0.7; }
.col--80 { flex: 0.8; }
.col--90 { flex: 0.9; }

/* 
---------
  Fonts 
---------
*/
@font-face {
    font-family: 'Poppins';
    src:
        url('Poppins-Regular.4b4ebe20759bdbf2.ttf') format('truetype'),
        local(Sans-serif);
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src:
        url('Poppins-Medium.a52d0bf095c248da.ttf') format('truetype'),
        local(Sans-serif);
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src:
        url('Poppins-Bold.8001a01b32b71ef5.ttf') format('truetype'),
        local(Sans-serif);
    font-weight: bold;
    font-style: normal;
}
