:root {
    --white: #fff;
    --black: #000;

    --main-bg-color: #242737;
    --dark-bg-color: #141726;

    --accent-yellow: #FFDE67;
    --accent-orange: #FF8E65;
    --accent-gradient: linear-gradient(90deg, rgba(255,161,101,1) 0%, rgba(255,218,103,1) 100%);

    --text-main: #B4B9DA;
    --text-dark: #2F344A;

    --shadow-default: rgba(114, 118, 47, 0.25) 0px 0px 24px;
    --shadow-active: rgba(197, 177, 64, 0.389) 0px 0px 28px;
    --shadow-device: #091328 0px 12px 60px;
}

/* Font size initial set made 62.5% to ensure 1rem=10px for ease of use */
/* DEFAULTS RESET */
html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--main-bg-color);
}
*, *:before, *:after {
    box-sizing: inherit;
    font-family: "Noto Sans", sans-serif;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul, figure, a {
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 130%;
}
ol, ul {
    list-style: none;
}




/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    word-break: break-word;
    line-height: 135%;
    text-align: center;
}
h1 {
    font-size: 10rem;
    font-weight: 900;
}
h2 {
    font-size: 6rem;
}
h3 {
    font-size: 2.8rem;
}
h4 {
    font-size: 2.2rem;
}
h5 {
    font-size: 1.8rem;
}
h6 {
    font-size: 1.6rem;
    color: var(--text-main);
}
p, label, input, textarea {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 400;
    line-height: 135%;
}

/* ELEMENTS */
img {
    object-fit: contain;
}
.blog-preview {
    max-width: 32rem;
    border-radius: 1.2rem;
    box-shadow: var(--shadow-device);
}
button {
    font-size: 2.2rem;
    font-weight: 500;
    padding: 1.2rem 3.2rem;
    border: none;
    border-radius: 99rem;
    background-color: var(--accent-yellow);
    box-shadow: var(--shadow-default);
    transition: ease-in-out 0.3s;
}
button:hover {
    cursor: pointer;
    background-color: var(--accent-orange);
    box-shadow: var(--shadow-active);
}
a {
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--accent-yellow);
    transition: ease-in-out 0.3s;
}
a:hover {
    color: var(--accent-orange);
    text-shadow: var(--shadow-active);
}
input {
    width: 100%;
    max-width: 42rem;
    padding: 1.6rem 2.4rem;
    border: none;
    border-radius: 99rem;
    background-color: var(--dark-bg-color);
    transition: ease-in-out 0.3s;
}
input:focus {
    outline: 0.2rem solid var(--accent-yellow);
    box-shadow: var(--shadow-active);
}

/* LAYOUTS */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0rem 2rem;
    margin: 5rem 0rem;
    max-width: 130rem;
    z-index: 999;
}
nav, .links-block {
    display: flex;
    gap: 3.2rem;
}
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    padding: 0rem 2rem;
}
form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}
article {
    display: flex;
    gap: 4.2rem;
    width: 100%;
    max-width: 94rem;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 4.2rem;
    width: 100%;
    max-width: 94rem;
}
.text-block {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
    justify-content: center;
}
.text-block>p {
    width: 100%;
}
.counter-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}
.features-block {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    width: 100%;
    max-width: 30rem;
}
.waitlist-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.copyright-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    width: 100%;
}
.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    width: 100%;
}
.blog-card>* {
    text-align: left;
}
.six-column {
    max-width: 94rem;
}
.four-column {
    max-width: 62rem;
}
.full-height {
    min-height: 90vh;
}
.dialog-container {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay effect */
    justify-content: center;
    align-items: center;
}
.dialog {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 32rem;
    background-color: var(--dark-bg-color);
    padding: 2.8rem 3.2rem; 
    border-radius: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

/* STATES */
.visible {
    opacity: 1;
    transition: ease-in-out 0.5s;
}
.hidden {
    opacity: 0;
    transition: ease-in-out 0.5s;
}
.restricted {
    display: none;
}
.mobile-only {
    display: none;
}
.desktop-only {
    display: block;
}
.hero-subheadline {
    font-size: 2.8rem;
}
.centered-text {
    text-align: center;
}
.medium-text {
    font-weight: 500;
}
.regular-text {
    font-weight: 400;
}
.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--shadow-active);
}
.black-text {
    color: var(--black);
}
.dark-text {
    color: var(--text-dark);
}
.hero-pattern {
    display: inline;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -999;
}
.device {
    box-shadow: var(--shadow-device);
    width: 100%;
    max-width: 34rem;
    border-radius: 5.8rem;
}
.two-devices {
    width: 100%;
    max-width: 46rem;
}
.mate-section {
    background: var(--accent-yellow);
    padding-top: 10rem;
    padding-bottom: 6rem;
}
.science-section {
    background: var(--dark-bg-color);
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.mate-meet {
    margin-bottom: -8rem;
    z-index: 2;
}
.footer-section {
    background: var(--dark-bg-color);
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.default-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.extra-padding {
    padding-top: 14rem;
    padding-bottom: 14rem;
}
.blogpost-preview-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.horizontal-section {
    flex-direction: row;
    gap: 6rem;
}

/* ADAPTIVES */
@media screen and (max-width: 1000px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none;
    }
    .horizontal-section {
        justify-content: space-around;
        align-items: start;
    }
    .two-devices {
        margin-bottom: 8rem;
    }
    .hero-pattern {
        display: none;
    }
}


@media screen and (max-width: 620px) {
    h1 {
        font-size: 6rem;
    }
    h2 {
        font-size: 4rem;
    }
    h3 {
        font-size: 2.4rem;
    }
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        gap: 1.4rem;
    }
    nav>a {
        font-size: 1.4rem;
    }
    article {
        flex-direction: column;
        align-items: center;
    }
    .blog-preview {
        max-width: 100%;
    }
    .extra-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .links-block {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .horizontal-section {
        flex-direction: column;
        justify-content: space-around;
        align-items: start;
        gap: 5rem;
    }
    .features-block {
        display: flex;
        flex-direction: column;
        gap: 5rem;
        max-width: 100%;
    }
    .device {
        max-width: 30rem;
    }
    .two-devices {
        max-width: 30rem;
        width: 30rem;
        height: 47rem;
    }
}
