/*
Theme Name: Moralis
Author: Aileen
Description: Simple custom WordPress theme for HTML-first content pages.
Version: 1.0.0
Text Domain: moralis
*/

@import url("./assets/css/variables.css");

@font-face {
    font-family: "Gottak";
    src: url("./assets/fonts/gottak/Gottak-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "Gottak";
    src: url("./assets/fonts/gottak/Gottak-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "Inter";
    src: url("./assets/fonts/inter/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: optional;
}

:root {
    --font-headline: "Gottak", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width-wide: 1400px;
    --container-width: 1240px;
    --nav-height: 72px;
    --nav-height-mobile: 75px;
    --page-padding: 20px;
    --color-text: #000;
    --color-bg: #fff;
    --color-link: #000;
    --color-border: #e5e5e5;
    --color-muted: #666;
    --color-neutral-gray-20: #E3E5E8;
    --color-neutral-gray-30: #CACFD3;
    --color-neutral-gray-50: #78838F;
    --color-neutral-gray-60: #4F5760;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    min-height: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.headline {
    color: #000;
    font-family: var(--font-headline) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    margin-block-start: 0;
    margin-block-end: 0;
    font-style: normal;
}

.h80 {
    text-align: center;
    text-shadow: 0 0 14px #FFF;
    font-size: 5rem;
    line-height: 107%;
    letter-spacing: -0.05rem;
}

.h74 {
    text-align: center;
    text-shadow: 0 0 14px #FFF;
    font-size: 4.625rem;
    line-height: 107%;
    letter-spacing: -0.046rem;
}

.h64 {
    text-align: center;
    text-shadow: 0 0 14px #FFF;
    font-size: 4rem;
    line-height: 107%;
    letter-spacing: -0.046rem;
}

.h60 {
    font-size: 3.75rem;
    line-height: normal;
    letter-spacing: -0.15rem;
}

.h56 {
    font-size: 3.5rem;
    line-height: 107%;
    letter-spacing: -0.035rem;
}

.h48 {
    font-size: 3rem;
    line-height: normal;
    letter-spacing: -0.12rem;
}

.h30 {
    font-size: 1.875rem;
    font-weight: 400 !important;
    line-height: 140%;
    letter-spacing: -0.022rem;
}

.h32 {
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 0.022rem;
}

.h20 {
    font-size: 1.25rem;
    font-weight: 400 !important;
    line-height: 140%;
    letter-spacing: -0.059rem;
}

.h18 {
    font-family: var(--font-body) !important;
    font-size: 1rem;
    font-weight: 500 !important;
    line-height: 144.444%;
    letter-spacing: -0.059rem;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: calc(var(--nav-height) + 10px);
}

p,
a,
button,
.btn {
    font-family: var(--font-body);
    font-weight: 300;
}

p {
    margin: 0 !important;
    font-size: 1.125rem;
    font-style: normal;
    line-height: 140%;
    letter-spacing: -0.011rem;
}

.p22 {
    font-size: 1.375rem;
    line-height: 140%;
    letter-spacing: -0.014rem;
}

.p16 {
    font-size: 1rem;
    line-height: 140%;
    letter-spacing: -0.01rem;
}

.p15 {
    font-size: 0.938rem;
    line-height: 140%;
    letter-spacing: -0.01rem;
}

.p14 {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: -0.009rem;
}

.p12 {
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 140%;
}

strong {
    font-weight: 700;
}

a {
    display: inline-flex;
    align-items: center;
    color: var(--color-link);
    text-decoration: none;
}

a,
button,
.btn,
.btn:after,
svg path {
    -webkit-transition-duration: .3s;
    -o-transition-duration: .3s;
    transition-duration: .3s;
}

button,
.btn {
    display: flex;
    height: 48px;
    padding: 15px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    border-radius: 6px;
    background: #000;
    color: #FFF;
    border: 1px solid #000;
}

button:hover,
.btn:hover {
    cursor: pointer;
    background: #202020 !important;
    border: 1px solid #202020 !important;
}

.btn--sm {
    height: 40px;
    padding: 12px;
    font-size: 0.75rem;
}

.btn--secondary {
    background: #FFF;
    color: #000;
}

.btn--secondary:hover {
    background: rgba(0, 0, 0, 0.10) !important;
}

.btn.btn--arrow-right:hover:after {
    margin-right: -2px;
    margin-left: 2px;
}

.btn.btn--arrow-right:after {
    content: "";
    min-width: 13.99px;
    width: 13.99px;
    height: 12.02px;
    background-image: url(./assets/img/arrow-right-ffffff.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
}

.btn--secondary.btn--arrow-down:after {
    content: "";
    min-width: 12.02px;
    width: 12.02px;
    height: 14.02px;
    background-image: url(./assets/img/arrow-down-000000.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
}

.btn--secondary.btn--arrow-down:hover:after {
    margin-bottom: -2px;
    margin-top: 2px;
}

.text--color-neutral-gray-50 {
    color: var(--color-neutral-gray-50);
}

.text--color-neutral-gray-60 {
    color: var(--color-neutral-gray-60);
}


ul {
    margin-block-start: 0;
    margin-block-end: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header,
.site-main,
.site-footer {
    width: 100%;
}

.site-header__inner,
.site-footer__inner,
.section__inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

/* state after scroll */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    height: var(--nav-height);
    max-width: unset !important;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.site-brands {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
}

.site-brand[aria-label="Moralis"] {
    width: 36.215px;
    opacity: 0.3;
    transition: .3s;
    overflow: hidden;
}

.site-brand[aria-label="Moralis"]:hover {
    width: 116.77px;
    opacity: 1;
}

.site-brand[aria-label="Moralis"] img{
    max-width: unset;
}


.site-brand__logo--mobile {
    display: none;
}

.site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.1;
}

.site-description {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.site-nav-toggle {
    display: none;
}

.site-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.site-nav a {
    padding: 8px;
}

.page-header-html,
.page-footer-html {
    display: none;
}

.site-main {
    margin-top: calc(-1 * var(--nav-height));
}

/* JS guard: content stays visible if JS does not run */
.site-main>section:not(:first-child) {
    opacity: 1;
    transform: none;
}

/* Only apply animation setup when JS is enabled */
html.js .site-main>section:not(:first-child) {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    will-change: opacity, transform;
}

/* Visible state */
html.js .site-main>section:not(:first-child).is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.site-main__inner {
    padding-top: 32px;
    padding-bottom: 32px;
}

.section__inner {
    scroll-margin-top: calc(var(--nav-height) + 30px);
}

.hero {
    padding-top: calc(var(--nav-height) + 34px);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.cta__actions {
    display: flex;
    gap: 16px;
    align-self: center;
}

.site-footer {
    padding: 60px 0;
    background: #000;
}

.site-footer__inner {
    max-width: 1320px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    color: #78838F;
    align-items: end;
}

.site-footer__col-1,
.site-footer__col-2,
.site-footer__col-3 {
    width: 33%;
}

.site-footer__col-1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__col-2 {
    display: flex;
    justify-content: center;
}

.security-link {
    display: flex;
    gap: 8px;
    padding: 7px 0;
}

.security-link .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-link .label {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 0.75rem;
    color: var(--color-neutral-gray-50) !important;
    transition: .3s all;
    max-width: 100px;
}

.security-link:hover svg .shield {
    fill: #3396F3
}

.security-link:hover svg .check {
    fill: #8AC3F8;
}

.security-link:hover .label,
.footer-list li a:hover  {
    color: #FFF !important;
}

.footer-list,
.footer-social {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 24px;
}

.footer-list li a {
    color: var(--color-neutral-gray-50) !important;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.25rem;
    letter-spacing: -0.009rem;
}

.footer-col--social a:hover svg path {
    fill: #FFFFFF;
}

.site-footer__col-3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: end;
}

.footer-logos {
    display: flex;
    gap: 8.6px;
}

.footer-separator {
    display: flex;
    justify-content: center;
}

.footer-copy,
#copyright-year {
    color: var(--color-neutral-gray-50) !important;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 142.857% ;
    letter-spacing: -0.009rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 24px 32px 48px 32px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 0;
    justify-self: right;
    padding: 4px;
    height: auto;
    margin-bottom: 20px;
}

.modal-close:hover {
    border: 0 !important;
}

.modal-close:hover svg path {
    fill: #ffffff;
}

#modal-form-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-sub {
    color: #999999;
}

.modal-field {
    margin-bottom: 1.25rem;
}

.modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 700;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #C3D0DB;
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-neutral-gray-60);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.25rem;
    letter-spacing: -0.009rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.modal-field input:focus,
.modal-field textarea:focus {
    border-color: #111111;
}

.modal-field textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-submit {
    width: 100%;
    padding: 0.8rem;
    border: 0;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.modal-submit:hover {
    opacity: 0.85;
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-success {
    padding: 2rem 0;
    text-align: center;
}

.modal-success .checkmark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    font-size: 1.5rem;
}

.modal-success h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-success p {
    margin: 0;
    font-size: 0.88rem;
    color: #999999;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark .headline,
.dark a,
.dark p,
.dark span {
    color: #fff;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html.js .site-main>section:not(:first-child) {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1024px) {
    .site-footer {
        padding: 40px 0;
    }

    .site-footer__inner {
        flex-wrap: wrap;
    }

    .site-footer__col-1 {
        order: 1;
        width: 382px;
    }

    .site-footer__col-2 {
        order: 3;
        width: 100%;
    }

    .site-footer__col-3 {
        order: 2;
        width: 272px;
    }
}

@media (max-width: 767px) {
    .site-brand__logo--desktop {
        display: none;
    }

    .site-brand__logo--mobile {
        display: block;
    }

    .site-brand[aria-label="Moralis"]:hover {
        width: 37px;
    }

    .site-header__inner {
        height: var(--nav-height-mobile);
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 8px;
    }

    .site-nav {
        gap: 20px;
        justify-content: space-between;
    }

    .site-main {
        margin-top: calc(-1 * var(--nav-height-mobile));
    }

    .hero {
        padding-top: calc(var(--nav-height-mobile) + 24px);
    }

    section,
    .section__inner {
        scroll-margin-top: calc(var(--nav-height-mobile) + 20px);
    }

    .cta__actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .cta__actions .btn {
        width: 100%;
    }

    .site-footer__col-1,
    .site-footer__col-3 {
        width: 100%;
    }

    .site-footer__col-1 {
        align-items: center;
    }

    .site-footer__col-2 {
        order: 2;
        align-items: center;
    }

    .site-footer__col-3 {
        order: 3;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .modal {
        padding: 1.5rem;
    }
}