:root {
    --primary: black;
    --secondary: #545454;
    --logo-color: white;
    --text-color: rgba(255, 255, 255, 0.8);
    --text-color-page-1: rgba(0, 0, 0, 0.8);
    --nav-h: 80px; /* space taken by the floating navbar */
    --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
    --seq-length: 1400vh; /* scroll distance of the features frame sequence */
}

@font-face {
    font-family: "Arkitech";
    src: url("/static/fonts/ArkitechLight.woff2") format("woff2"),
        url("/static/fonts/ArkitechLight.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "OrenburgBold";
    src: url("/static/fonts/Orenburg-Bold.woff2") format("woff2"),
        url("/static/fonts/Orenburg-Bold.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Orenburg";
    src: url("/static/fonts/Orenburg.woff2") format("woff2"),
        url("/static/fonts/Orenburg.ttf") format("truetype");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    background-color: rgb(10 10 10);
}

body {
    letter-spacing: 1px;
    background-color: rgb(10 10 10);
    color: var(--text-color);
    /* clip, not hidden: hidden would make body a scroll container and break position: sticky */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
canvas {
    display: block;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== Scrollbar ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #555 #111;
}
*::-webkit-scrollbar {
    width: 12px;
}
*::-webkit-scrollbar-track {
    background: #111;
}
*::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 3px solid #111;
}

/* -------------------------- nav ------------------------ */
/* .navbar is a full-width fixed strip; .container inside it is the floating pill */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 12px 4vw 0;
    font-family: Arkitech;
    letter-spacing: 1px;
    pointer-events: none; /* only the pill itself is interactive */
    transform: translateY(0);
    transition: transform 0.45s var(--ease-out);
}

.navbar--hidden {
    transform: translateY(calc(-100% - 12px));
}

.navbar .container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(1320px, 100%);
    height: 60px;
    padding: 0 8px 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(14, 14, 17, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: height 0.4s var(--ease-out), background-color 0.4s ease,
        border-color 0.4s ease, width 0.4s var(--ease-out);
}

/* compact state once the hero has scrolled away (set by index.js) */
.navbar--compact .container {
    height: 52px;
    width: min(1120px, 100%);
    background: rgba(10, 10, 12, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
}

.navbar .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    font-family: OrenburgBold;
    font-size: 21px;
    letter-spacing: 0.04em;
    color: var(--logo-color);
    text-decoration: none;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo__name {
    font-family: OrenburgBold;
    font-size: 21px;
    letter-spacing: 0.04em;
}
.logo__by {
    margin-top: 3px;
    font-family: Arkitech;
    font-size: 0.46rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.logo > img {
    width: 28px;
    height: 28px;
    transition: transform 0.6s var(--ease-out);
}

.logo:hover #philogo,
.logo:focus-visible #philogo {
    transform: rotate(180deg);
}
.logo:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 6px;
}

.nav-link-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: space-between;
    min-width: 0;
}
.nav-link-buttons > nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar .nav-links a {
    position: relative;
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.navbar .nav-links a::after {
    /* small dot under the active item */
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform 0.3s var(--ease-out);
}

.navbar .nav-links a:hover,
.navbar .nav-links a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.navbar .nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}
.navbar .nav-links a.active::after {
    transform: scale(1);
}
.navbar .nav-links a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    flex: none;
}
.nav-buttons .btn-1 {
    height: 42px;
    min-width: 0;
    padding: 0 20px;
    border-radius: 999px;
    color: #0a0a0a;
    background: #f2f2f2;
    border-color: #f2f2f2;
}
.nav-buttons .btn-1::before {
    background: #fff;
}
.navbar--compact .nav-buttons .btn-1 {
    height: 38px;
}

@media (max-width: 1200px) {
    .navbar .nav-links a {
        padding: 9px 10px;
    }
}

/* mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s ease;
}
.menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: white;
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.menu-toggle.active {
    background: rgba(255, 255, 255, 0.1);
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

#nav {
    display: none;
}

@media (max-width: 880px) {
    .navbar {
        padding: 10px 4vw 0;
    }
    .navbar .container,
    .navbar--compact .container {
        width: 100%;
        height: 56px;
        padding: 0 6px 0 16px;
    }
    .menu-toggle {
        display: flex;
    }
    /* dropdown card under the pill; the pill's backdrop-filter makes it the
       containing block, so the card is positioned against the pill itself */
    #nav {
        pointer-events: auto;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(12, 12, 15, 0.94);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.3s ease, transform 0.35s var(--ease-out),
            visibility 0s 0.35s;
    }
    #nav.show {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.3s ease, transform 0.35s var(--ease-out),
            visibility 0s;
    }
    #nav > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 14px;
        border-radius: 14px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.75);
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    #nav > a:not(.btn-1)::after {
        content: "→";
        font-family: system-ui, sans-serif;
        opacity: 0.35;
        transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
    }
    #nav > a.active,
    #nav > a:not(.btn-1):hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.07);
    }
    #nav > a.active::after {
        opacity: 1;
    }
    #nav > .btn-1 {
        justify-content: center;
        width: 100%;
        height: 50px;
        margin-top: 8px;
        border-radius: 14px;
        color: #0a0a0a;
        background: #f2f2f2;
        border-color: #f2f2f2;
    }
    /* stagger the links in as the card opens */
    #nav > a {
        opacity: 0;
        transform: translateY(-6px);
    }
    #nav.show > a {
        opacity: 1;
        transform: none;
        transition: opacity 0.35s ease, transform 0.35s var(--ease-out),
            color 0.2s ease, background-color 0.2s ease;
    }
    #nav.show > a:nth-child(2) { transition-delay: 30ms; }
    #nav.show > a:nth-child(3) { transition-delay: 60ms; }
    #nav.show > a:nth-child(4) { transition-delay: 90ms; }
    #nav.show > a:nth-child(5) { transition-delay: 120ms; }
    #nav.show > a:nth-child(6) { transition-delay: 150ms; }
}

/* -------------------------- layout helpers ------------------------ */

.heading-texts {
    display: flex;
    gap: 40px;
    flex-direction: column;
    align-items: center;
    font-size: 70px;
    padding: 4%;
}

.sec1-buttons {
    display: flex;
    gap: 20px;
}

/* -------------------------- features frame sequence ------------------------ */

.sec1 {
    position: relative;
    background: #000;
}

.concept-subsection {
    color: #d4d4d4;
    height: var(--seq-length);
    width: 100%;
    background-color: black;
}

.concept-sub-subsection {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: black;
    overflow: hidden;
}

.concept_video {
    width: 100%;
    height: 100%;
    background: #000;
}

/* -------------------------- loader ------------------------ */

#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgb(4, 4, 4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}
#loading-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#loading-overlay > img {
    width: 100px;
    height: 100px;
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* -------------------------- snackbar ------------------------ */

#snackbar {
    position: fixed;
    top: calc(var(--nav-h) + 16px);
    left: 50%;
    z-index: 1500;
    min-width: 250px;
    max-width: calc(100vw - 32px);
    padding: 14px 20px;
    border-radius: 6px;
    background-color: rgba(28, 28, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: #fff;
    text-align: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -12px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out),
        visibility 0s 0.3s;
}
#snackbar.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out),
        visibility 0s;
}
#snackbar[data-type="error"] {
    color: #ff6b5b;
}
#snackbar[data-type="sending"] {
    color: #e5ff00;
}
#snackbar[data-type="success"] {
    color: #4dff6a;
}
