@font-face
{
    font-family: "Determination Sans";
    src: url("fonts/determination.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root
{
    --black: #000000;
    --near-black: #080808;
    --panel: #101010;
    --panel-hover: #151515;

    --white: #ffffff;
    --gray: #b3b3b3;
    --dark-gray: #343434;

    --purple: #c94cdb;
    --purple-dark: #752982;

    --content-width: 1040px;
}

*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body
{
    margin: 0;

    overflow-x: hidden;

    background-color: var(--black);
    color: var(--white);

    font-family:
        "Determination Sans",
        "Courier New",
        monospace;

    line-height: 1.55;
}

img
{
    display: block;

    max-width: 100%;
}

a
{
    color: inherit;
}

::selection
{
    color: var(--black);
    background-color: var(--purple);
}

/*
    TOP NAVIGATION
*/

.topbar
{
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    min-height: 72px;

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

    padding: 0 38px;

    background-color: rgba(0, 0, 0, 0.97);
    border-bottom: 2px solid #242424;

    transition:
        min-height 0.2s ease,
        border-color 0.2s ease;
}

.topbar.scrolled
{
    min-height: 64px;

    border-bottom-color: var(--purple-dark);
}

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

    color: var(--white);

    font-size: 17px;
    letter-spacing: 2px;

    text-decoration: none;
}

.nav-heart
{
    color: var(--purple);

    font-size: 14px;
}

.navigation
{
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation a
{
    position: relative;

    padding: 8px 0 6px;

    color: var(--gray);

    border-bottom: 2px solid transparent;

    font-size: 15px;
    letter-spacing: 1px;

    text-decoration: none;

    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.navigation a:hover
{
    color: var(--white);
}

.navigation a.active
{
    color: var(--white);

    border-bottom-color: var(--purple);
}

/*
    HIDDEN COMPLETION LINK
*/

.navigation .completion-link
{
    width: 104px;

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

    color: var(--black);

    border-bottom-color: transparent;

    user-select: none;
}

.completion-text
{
    opacity: 0;

    color: var(--purple);

    transition:
        opacity 0.15s ease,
        color 0.15s ease;
}

.navigation .completion-link:hover .completion-text,
.navigation .completion-link:focus-visible .completion-text
{
    opacity: 1;
}

.navigation .completion-link:hover
{
    border-bottom-color: var(--purple);
}

/*
    HERO
*/

.hero
{
    position: relative;

    min-height: 100vh;

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

    padding: 130px 24px 115px;

    overflow: hidden;

    text-align: center;
}

.hero::before
{
    content: "";

    position: absolute;
    top: 72px;
    left: 50%;

    width: min(900px, 88%);
    height: 1px;

    background-color: #171717;

    transform: translateX(-50%);
}

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

    width: min(850px, 100%);

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

    transform: translateY(-55px);
}

.logo
{
    width: min(760px, 94%);
    height: auto;

    image-rendering: pixelated;
}

.tagline
{
    margin: 28px 0;

    color: var(--gray);

    font-size: 21px;
    letter-spacing: 1px;
}

.hero-buttons
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/*
    BUTTONS
*/

.menu-button
{
    min-width: 185px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    padding: 10px 18px;

    color: var(--white);
    background-color: var(--black);

    border: 3px solid var(--white);

    font-size: 17px;
    letter-spacing: 1px;

    text-decoration: none;

    transition:
        color 0.12s ease,
        background-color 0.12s ease,
        border-color 0.12s ease;
}

.button-heart
{
    display: none;

    color: var(--purple);
}

.menu-button:hover
{
    color: var(--purple);

    border-color: var(--purple);
}

.menu-button:hover .button-heart
{
    display: inline;
}

.menu-button:focus-visible,
.navigation a:focus-visible,
.site-name:focus-visible,
.text-link:focus-visible,
.scroll-indicator:focus-visible,
summary:focus-visible
{
    outline: 2px solid var(--purple);
    outline-offset: 4px;
}

/*
    SCROLL PROMPT
*/

.scroll-indicator
{
    position: absolute;
    bottom: 48px;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    color: #707070;

    font-size: 12px;
    letter-spacing: 2px;

    text-decoration: none;

    transform: translateX(-50%);

    transition:
        color 0.15s ease,
        opacity 0.2s ease;
}

.scroll-indicator:hover
{
    color: var(--white);
}

.scroll-arrow
{
    animation: arrow-bob 1.35s steps(2, end) infinite;
}

body.has-scrolled .scroll-indicator
{
    opacity: 0;

    pointer-events: none;
}

/*
    GENERAL SECTIONS
*/

.content-section
{
    position: relative;

    padding: 110px 30px;

    border-top: 2px solid #1e1e1e;
}

.section-inner
{
    width: min(var(--content-width), 100%);

    margin: 0 auto;
}

.section-heading
{
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 28px;
}

.section-marker
{
    color: var(--purple);

    font-size: 16px;
    letter-spacing: 2px;
}

.section-marker::after
{
    content: ".";

    color: var(--white);
}

h2
{
    margin: 0;

    font-size: clamp(38px, 7vw, 68px);
    letter-spacing: 3px;
    line-height: 1;
}

h3
{
    margin-top: 0;

    font-size: 26px;
    line-height: 1.25;
}

.section-intro
{
    max-width: 760px;

    margin: 0 0 46px 52px;

    color: var(--gray);

    font-size: 20px;
}

.small-label
{
    margin: 0 0 12px;

    color: var(--purple);

    font-size: 14px;
    letter-spacing: 2px;
}

/*
    ABOUT
*/

.about-section
{
    background-color: var(--near-black);
}

.about-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;

    margin-left: 52px;
}

.info-box
{
    padding: 28px;

    background-color: var(--panel);

    border-top: 3px solid var(--white);
    border-right: 1px solid var(--dark-gray);
    border-bottom: 1px solid var(--dark-gray);
    border-left: 1px solid var(--dark-gray);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.info-box:hover
{
    background-color: var(--panel-hover);

    border-right-color: #505050;
    border-bottom-color: #505050;
    border-left-color: #505050;
}

.info-box h3
{
    margin-bottom: 18px;
}

.info-box p:last-child
{
    margin-bottom: 0;

    color: var(--gray);

    font-size: 18px;
}

.project-box
{
    grid-column: 1 / -1;

    border-top-color: var(--purple);
}

/*
    DEMO
*/

.demo-section
{
    background-color: var(--black);
}

.demo-layout
{
    display: grid;
    grid-template-columns:
        minmax(260px, 0.8fr)
        minmax(360px, 1.2fr);

    gap: 55px;
    align-items: center;

    margin-top: 48px;
    margin-left: 52px;
}

.demo-copy h3
{
    margin-bottom: 18px;

    font-size: 34px;
}

.demo-copy > p:not(.small-label)
{
    color: var(--gray);

    font-size: 18px;
}

.status-line
{
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 30px 0 24px;
    padding: 12px 0;

    color: #8c8c8c;

    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;

    font-size: 15px;
    letter-spacing: 1px;
}

.status-heart
{
    color: var(--purple);
}

.text-link
{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--white);

    font-size: 16px;
    letter-spacing: 1px;

    text-decoration: none;
}

.text-link span
{
    color: var(--purple);

    transition: transform 0.15s ease;
}

.text-link:hover span
{
    transform: translateX(4px);
}

.demo-screen
{
    width: 100%;
    height: auto;
    min-height: 0;

    padding: 0;

    overflow: hidden;

    background-color: #050505;

    border: 4px solid var(--white);
}

.demo-image
{
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    image-rendering: pixelated;
}

/*
    FAQ
*/

.faq-section
{
    background-color: var(--near-black);
}

.faq-layout
{
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(250px, 0.65fr);

    gap: 34px;

    margin-top: 45px;
    margin-left: 52px;
}

.faq-list
{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

details
{
    background-color: #0b0b0b;

    border: 2px solid #303030;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

details:hover
{
    background-color: #101010;

    border-color: #505050;
}

details[open]
{
    background-color: #101010;

    border-color: var(--white);
}

summary
{
    position: relative;

    padding: 19px 55px 19px 22px;

    font-size: 18px;

    cursor: pointer;

    list-style: none;
}

summary::-webkit-details-marker
{
    display: none;
}

summary::before
{
    content: "*";

    margin-right: 12px;

    color: var(--purple);
}

summary::after
{
    content: "+";

    position: absolute;
    top: 50%;
    right: 21px;

    color: #777777;

    font-size: 24px;

    transform: translateY(-50%);
}

details[open] summary::after
{
    content: "−";

    color: var(--white);
}

details p
{
    margin: 0;

    padding: 0 26px 22px 49px;

    color: var(--gray);

    font-size: 17px;
}

.contact-panel
{
    align-self: start;

    padding: 27px;

    background-color: var(--black);

    border: 2px solid var(--white);
}

.contact-panel h3
{
    margin-bottom: 15px;
}

.contact-panel > p:not(.small-label)
{
    margin-bottom: 25px;

    color: var(--gray);

    font-size: 17px;
}

.contact-button
{
    width: 100%;
    min-width: 0;
}

/*
    FOOTER
*/

footer
{
    padding: 50px 25px;

    color: #707070;
    background-color: var(--black);

    border-top: 2px solid #222222;

    text-align: center;
}

footer p
{
    margin: 4px 0;

    font-size: 14px;
}

.copyright
{
    margin-top: 18px;
}

/*
    ANIMATIONS
*/

@keyframes arrow-bob
{
    0%,
    100%
    {
        transform: translateY(0);
    }

    50%
    {
        transform: translateY(5px);
    }
}

/*
    TABLET
*/

@media (max-width: 850px)
{
    html
    {
        scroll-padding-top: 100px;
    }

    .topbar
    {
        min-height: 92px;

        flex-direction: column;
        justify-content: center;
        gap: 8px;

        padding: 12px 20px;
    }

    .topbar.scrolled
    {
        min-height: 84px;
    }

    .navigation
    {
        gap: 18px;
    }

    .navigation a
    {
        font-size: 13px;
    }

    .navigation .completion-link
    {
        width: 90px;
    }

    .hero
    {
        padding-top: 150px;
    }

    .hero-content
    {
        transform: translateY(-35px);
    }

    .section-intro,
    .about-grid,
    .demo-layout,
    .faq-layout
    {
        margin-left: 0;
    }

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

    .project-box
    {
        grid-column: auto;
    }

    .demo-layout,
    .faq-layout
    {
        grid-template-columns: 1fr;
    }

    .demo-layout
    {
        gap: 36px;
    }

    .contact-panel
    {
        width: min(470px, 100%);
    }
}

/*
    PHONE
*/

@media (max-width: 520px)
{
    .topbar
    {
        padding-right: 14px;
        padding-left: 14px;
    }

    .site-name
    {
        font-size: 14px;
    }

    .navigation
    {
        width: 100%;

        justify-content: space-between;
        gap: 4px;
    }

    .navigation a
    {
        padding-bottom: 4px;

        font-size: 10px;
        letter-spacing: 0;
    }

    .navigation .completion-link
    {
        width: 68px;
    }

    .hero
    {
        min-height: 94vh;

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

    .hero-content
    {
        transform: translateY(-20px);
    }

    .tagline
    {
        margin-top: 22px;

        font-size: 17px;
    }

    .hero-buttons
    {
        width: 100%;
    }

    .menu-button
    {
        width: 100%;
    }

    .content-section
    {
        padding: 85px 20px;
    }

    .section-heading
    {
        gap: 11px;
    }

    .section-marker
    {
        font-size: 13px;
    }

    h2
    {
        font-size: 38px;
    }

    .section-intro
    {
        font-size: 18px;
    }

    .info-box
    {
        padding: 23px;
    }

    summary
    {
        font-size: 16px;
    }
}

/*
    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;
    }
}