:root {
    --light-gray: #e1e1e1;
    --black: #121212;

    --font-body: "Rubik";
    --font-logo: "Young Serif";

    --space-xs: 3px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 90px;
    --page-gutter: 100px;

    --radius-pill: 999px;
    --nav-gap: 6px;

    --bg: #ffffff;
    --text: var(--black);
    --muted-text: rgba(18, 18, 18, 0.65);
    --button-bg: var(--black);
    --button-text: #ffffff;
    --button-hover: #2a2a2a;
    --soft-bg: #EAE2FF;
    --soft-hover: #D4C4FF;
    --active-bg: #D4C4FF;
    --outline: #EAE2FF;
    --icon-color: var(--black);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none !important;
}

::selection {
    background: #5e17eb;
    color: #ffffff;
}

::-moz-selection {
    background: #5e17eb;
    color: #ffffff;
}

body {
    margin: 0;
    padding: 0 var(--page-gutter);
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
}


nav {
    position: fixed;
    top: clamp(16px, 3dvh, 32px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--page-gutter) * 1.6);

    z-index: 100;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--nav-gap) var(--nav-gap) var(--nav-gap) clamp(16px, 3vw, 24px);
    background: var(--bg);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 100px;
    font-size: 13px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

nav.is-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

nav.is-open {
    z-index: 100;
}

nav.is-open .logo {
    color: var(--text);
}

nav.is-open .mobile-nav-actions .button-outline {
    color: var(--text);
    border-color: var(--outline);
}

.logo {
    color: var(--text);
    font-family: var(--font-logo);
    font-size: clamp(20px, 4vw, 26px);
    line-height: 1;
    text-decoration: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 64px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--muted-text);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-actions .button {
    padding: 6px 12px;
    font-size: 15.6px;
}

.nav-cta-button {
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid rgba(128, 128, 128, 0.25) !important;
    padding: 10px 20px !important;
    border-radius: 100px;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.2s ease, opacity 0.15s ease !important;
}

.nav-cta-button.cta-active {
    background: var(--button-bg) !important;
    color: var(--button-text) !important;
    border-color: var(--button-bg) !important;
}

.cta-text {
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: inline-block;
}





main {
    padding-top: 0;
    text-align: center;
}

section[id] {
    scroll-margin-top: clamp(120px, 18dvh, 180px);
}

.hero-viewport {
    margin-top: clamp(85px, 12dvh, 125px);
    padding-top: clamp(60px, 8dvh, 90px);
    padding-bottom: clamp(60px, 8dvh, 90px);
    background-color: #f9f6ff;
    border-radius: 32px;
    box-sizing: border-box;
    margin-left: calc(-0.2 * var(--page-gutter));
    margin-right: calc(-0.2 * var(--page-gutter));
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 var(--page-gutter);
    box-sizing: border-box;
    width: 100%;
}

.hero-pill {
    background-color: var(--bg);
    color: var(--text);
    padding: 6px 6px 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: -28px;
    margin-bottom: clamp(20px, 4dvh, 32px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: none;
    z-index: 2;
}

.hero-pill a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.hero-pill a:active {
    background: #f5f5f5;
    border-color: rgba(128, 128, 128, 0.4);
    transform: scale(0.95);
}

.pill-caret {
    width: 15px;
    height: 15px;
    margin-left: 1.5px;
    transition: transform 0.2s ease;
}

@media (hover: hover) {
    .hero-pill a:hover {
        background: #f5f5f5;
        border-color: rgba(128, 128, 128, 0.35);
    }

    .hero-pill a:hover .pill-caret {
        transform: translateX(2px);
    }
}

.pill-highlight {
    color: #5e17eb;
    font-weight: 500;
}

.top-hero-image {
    max-width: 100%;
    width: clamp(280px, 20vw + 12dvh, 420px);
    height: clamp(140px, 10vw + 6dvh, 210px);
    object-fit: contain;
    margin-bottom: clamp(32px, 5dvh, 64px);
    display: inline-block;
}



h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

h1 {
    width: 100%;
    max-width: clamp(320px, 40vw + 30dvh, 800px);
    margin: 0 auto;
    font-size: clamp(1.75rem, 2vw + 2.5dvh, 3.25rem);
    font-weight: 500;
    line-height: 1.25;
}

.hero-title-accent {
    color: #5e17eb;
}

p {
    width: 100%;
    max-width: clamp(280px, 35vw + 20dvh, 600px);
    margin: clamp(16px, 2.5dvh, 32px) auto clamp(24px, 4.5dvh, 48px);
    color: var(--muted-text);
    font-size: clamp(1.125rem, 1.25vw + 1.25dvh, 1.6rem);
    line-height: 1.5;
}

.button {
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    background: var(--button-bg);
    color: var(--button-text);
    border: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

@media (hover: hover) {
    .button:hover {
        background: var(--button-hover);
    }
}

.button:active {
    background: var(--button-hover);
    transform: scale(0.97);
}

.button-outline {
    background: #ffffff;
    color: var(--text);
    border: 1px solid rgba(128, 128, 128, 0.2);
}

@media (hover: hover) {
    .button-outline:hover {
        background: #f5f5f5;
    }
}

.button-outline:active {
    background: #f5f5f5;
    transform: scale(0.97);
}

.button-large {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 32px;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.button-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.button-soft {
    background: #ffffff;
    color: var(--text);
    border: none;
}

@media (hover: hover) {
    .button-soft:hover {
        background: #f5f5f5;
    }
}

.button-soft:active {
    background: #f5f5f5;
    transform: scale(0.97);
}

.button-soft .button-icon {
    filter: none;
}

.hero-cta-button {
    background: #5e17eb;
}

@media (hover: hover) {
    .hero-cta-button:hover {
        background: #4a10c4;
    }
}

.hero-cta-button:active {
    background: #4a10c4;
    transform: scale(0.97);
}




@media (max-width: 900px) {
    :root {
        --page-gutter: 48px;
    }

    .hero-viewport {
        margin-top: 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        padding-top: 130px;
        padding-bottom: 50px;
        border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    }


    .hero-pill {
        margin-bottom: 18px;
    }

    .top-hero-image {
        height: clamp(174px, 26dvh, 280px);
        width: auto;
        max-width: calc(100% - 2 * var(--page-gutter));
        margin-bottom: 14px;
    }

    .hero-content p {
        margin: 12px auto 24px auto;
    }



    .nav-links {
        display: none;
    }

    .marquee-container {
        margin-left: 0;
        margin-right: 0;
    }

    .social-proof-text {
        margin-bottom: clamp(48px, 6dvh, 72px);
    }


}

@media (max-width: 515px) {
    :root {
        --page-gutter: 26px;
    }



    .signup-main {
        justify-content: flex-start;
    }

    .logo {
        font-size: 22px;
    }

    .mobile-panel {
        padding: 120px var(--page-gutter) 32px var(--page-gutter);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    .value-prop-section {
        margin-top: 72px;
    }

    .v2-header {
        margin-bottom: 40px;
    }

    .v2-header h2 {
        margin-bottom: 20px;
    }

    .feature-content p {
        font-size: 17px;
    }

    .faq-question {
        gap: 16px;
        font-size: 17px;
    }

    .final-cta {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        padding: 48px 24px 80px 24px;
    }

    .final-cta p {
        margin-bottom: 24px;
    }

    .final-cta-image-wrapper {
        margin: 24px auto 56px auto;
    }

    .main-footer {
        margin-top: 0;
    }

}

/* Social Proof Logos */
.social-proof { margin-top: clamp(48px, 8dvh, 120px); padding-bottom: 0; margin-bottom: 0; text-align: center; width: 100%; }
.social-proof-text { font-size: clamp(14px, 1.2vw + 1dvh, 18px); color: rgba(18, 18, 18, 0.45); letter-spacing: 0.05em; margin-bottom: clamp(48px, 6dvh, 72px); margin-top: 0; text-transform: uppercase; font-weight: 500; max-width: 100%; line-height: 1.6; }
.marquee-logo { height: clamp(48px, 4vw + 4dvh, 72px); width: auto; object-fit: contain; padding: 4px; box-sizing: content-box; }
.marquee-container { width: 100%; user-select: none; padding-bottom: 24px; }
.marquee-track { display: contents; }
.marquee-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(56px, 10vw, 96px);
    column-gap: clamp(48px, 8vw, 80px);
    align-items: center;
    justify-items: center;
    width: 100%;
}
.logo-item { display: flex; align-items: center; justify-content: center; user-select: none; position: relative; }
.logo-item img { filter: grayscale(100%); opacity: 0.5; transition: all 0.3s ease; cursor: pointer; will-change: filter, opacity; }
.logo-item img:hover { filter: grayscale(0%); opacity: 1; }
.logo-tooltip { position: absolute; top: 100%; left: 50%; transform: translate3d(-50%, 8px, 0); background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 4px; font-size: 13px; font-weight: 400; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 10; border: 1px solid var(--outline); will-change: transform, opacity; }
.logo-item:hover .logo-tooltip { opacity: 1; transform: translate3d(-50%, 12px, 0); }

@media (max-width: 599px) {
    .social-proof-text {
        margin-bottom: 80px;
    }
}

@media (min-width: 600px) {
    .marquee-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .marquee-group {
        grid-template-columns: repeat(6, 1fr);
        gap: clamp(64px, 8vw, 120px);
        justify-content: space-between;
    }
}

/* VALUE PROP SECTION */
.value-prop-section {
    max-width: 1200px;
    margin: 140px auto 160px auto;
    padding: 0 120px;
    text-align: left;
}

.v2-header {
    text-align: center;
    margin-bottom: 120px;
}
.v2-header h2 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 500;
    margin: 0 0 40px 0;
    line-height: 1.3;
}
.v2-header p {
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.6;
}
.highlight-text {
    font-family: var(--font-logo);
    background: linear-gradient(
        -60deg,
        #5e17eb 40%,
        #d1bdf9 50%,
        #5e17eb 60%
    );
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
    display: inline-block;
}

@keyframes textShimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-top: 160px;
    margin-left: -80px;
    margin-right: -80px;
}
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: clamp(48px, 8vw, 120px);
    padding: clamp(32px, 5vw, 56px);
    background: #f9f6ff;
    border-radius: 32px;
    box-sizing: border-box;
}
.feature-content {
    flex: 0 1 360px;
    padding: clamp(8px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.feature-content svg {
    display: none;
}
.feature-content h3 {
    margin: 0 0 16px 0;
    font-size: 36px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}
.feature-content p {
    margin: 0;
    font-size: 16.2px;
    line-height: 1.6;
    color: var(--muted-text);
}
.feature-image-placeholder {
    flex: 0 1 480px;
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.feature-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1170px) {
    .value-prop-section {
        padding: 0 40px;
        margin-bottom: 40px;
    }
    .feature-rows {
        margin-top: 32px;
        gap: 28px;
        margin-left: 0;
        margin-right: 0;
    }
    .feature-row {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: clamp(22px, 6vw, 36px);
        border-radius: 28px;
    }
    .feature-row.text-first {
        flex-direction: column-reverse;
    }
    .feature-content {
        flex-basis: auto;
        width: 100%;
        max-width: 450px;
        padding: 0;
        text-align: left;
    }
    .feature-content h3 {
        margin-bottom: 12px;
        font-size: 28px;
    }
    .feature-content svg {
        display: none;
    }
    .feature-image-placeholder {
        flex-basis: auto;
        width: 100%;
        height: auto;
        max-width: 450px;
        border-radius: 20px;
    }
}

@media (max-width: 650px) {
    .value-prop-section {
        padding: 0;
    }
}

/* FINAL CTA SECTION */
.final-cta {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    border-radius: 0;
    border: none;
    text-align: center;
    padding: 80px 20px 100px 20px;
    background: #f9f6ff;
    margin-top: 100px;
    margin-bottom: 0;
}
.final-cta h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    margin: 0 0 24px 0;
    line-height: 1.3;
}
.final-cta p {
    font-size: 18px;
    color: var(--muted-text);
    margin: 0 auto 40px auto;
}
.final-cta .button {
    padding: 18px 48px;
    font-size: 24px;
}

.final-cta-image-wrapper {
    margin: 32px auto 64px auto;
    text-align: center;
}

.final-cta-image {
    max-height: 250px;
    pointer-events: none;
}

/* FAQ Section */
.faq {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 120px;
    text-align: left;
}

@media (max-width: 900px) {
    .faq {
        padding: 0;
    }
}

.faq h2 {
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.faq-item {
    background: transparent;
    border: none;
    border-top: 1px solid var(--outline);
    border-radius: 0;
    overflow: hidden;
    transition: none;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--outline);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default triangle */
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide in Safari */
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0;
    transition: transform 0.4s ease;
    will-change: transform;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text);
    transition: transform 0.4s ease;
    border-radius: 2px;
}

/* Horizontal line */
.faq-icon::before {
    width: 14px;
    height: 2px;
}

/* Vertical line */
.faq-icon::after {
    width: 2px;
    height: 14px;
}

.faq-item[open]:not(.is-closing) .faq-icon::after {
    transform: scaleY(0);
}

.faq-item.is-closing .faq-icon::after {
    transform: scaleY(1);
}

.faq-answer {
    padding: 0 0 32px 0;
    color: var(--muted-text);
    line-height: 1.6;
    text-align: left;
    overflow: hidden;
}

.faq-item[open]:not(.is-closing) .faq-answer {
    animation: slideDown 0.4s ease forwards;
}

.faq-item.is-closing .faq-answer {
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        max-height: 0;
        padding-bottom: 0;
    }
    100% {
        opacity: 1;
        max-height: 200px;
        padding-bottom: 32px;
    }
}

@keyframes slideUp {
    0% {
        opacity: 1;
        max-height: 200px;
        padding-bottom: 32px;
    }
    100% {
        opacity: 0;
        max-height: 0;
        padding-bottom: 0;
    }
}

.faq-answer p {
    margin: 0;
}

/* Half Cut Footer */
.footer-wrapper {
    margin-top: 100px;
}

.footer-copyright {
    text-align: center;
    padding: 0 0 16px 0;
    font-size: 14px;
    color: var(--muted-text);
}

/* Sign Up Page */
body:has(.signup-main) {
    padding-bottom: 0 !important;
    overflow: hidden;
}

.signup-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100dvh;
    box-sizing: border-box;
    padding-top: clamp(140px, 18dvh, 240px);
}

.leaderboard-main {
    display: flex;
    flex-direction: column;
    padding: clamp(140px, 18dvh, 240px) 0 60px 0;
    min-height: 100dvh;
    box-sizing: border-box;
}

.leaderboard-header {
    width: 100%;
    text-align: left;
    margin-bottom: 32px;
}

.leaderboard-title {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
}

.leaderboard-subtext {
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted-text);
    margin: 8px 0 0 0;
}

.leaderboard-card {
    background: transparent;
    border: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 40px 2fr 1.5fr 1fr 100px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--outline);
    gap: 16px;
    min-width: 700px;
}

.leaderboard-item.header-row {
    color: var(--muted-text);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--outline);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-weight: 400;
    color: var(--muted-text);
}

.leaderboard-user {
    font-weight: 400;
    color: var(--text);
}

.leaderboard-uni, .leaderboard-uploads {
    color: var(--muted-text);
    font-size: 14px;
}

.leaderboard-score {
    font-family: var(--font-mono);
    color: var(--text);
    background: var(--soft-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
    justify-self: end;
}



.signup-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.signup-card h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.signup-card p {
    color: var(--muted-text);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signup-form input {
    background: #ffffff;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--text);
}

.signup-footer {
    margin: 24px auto 0 auto !important;
    text-align: center !important;
    font-size: 14px !important;
    color: var(--muted-text) !important;
    max-width: none !important;
    line-height: 1.5 !important;
}

.signup-footer a {
    color: #5e17eb !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

@media (hover: hover) {
    .signup-footer a:hover {
        text-decoration: underline !important;
    }
}

/* Auth Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
    background: var(--bg);
    border: none;
    border-radius: clamp(16px, 2.5vw, 24px);
    padding: clamp(24px, 4vw, 40px);
    width: calc(100% - 32px);
    max-width: 420px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.is-visible .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

@media (hover: hover) {
    .modal-close:hover {
        opacity: 1;
        background: var(--soft-bg);
    }
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header .logo {
    font-size: clamp(20px, 4vw, 26px);
    font-family: var(--font-logo);
    margin-bottom: 16px;
    display: inline-block;
    color: var(--text);
    text-decoration: none;
}

.modal-header h1 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 8px 0;
    color: var(--text);
}

.modal-header p {
    color: var(--muted-text);
    font-size: clamp(14px, 1.2vw, 15px);
    line-height: 1.5;
    margin: 0;
}

/* Premium Black Footer */
.main-footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.65);
    padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px) 0;
    padding-bottom: calc(clamp(24px, 4vw, 40px) + env(safe-area-inset-bottom));
    margin-top: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    box-sizing: border-box;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-brand-column .footer-logo {
    color: #ffffff !important;
    font-size: 28px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-links-column h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .footer-links-column a:hover {
        color: #ffffff;
    }
}

.footer-bottom {
    max-width: 1200px;
    margin: clamp(40px, 5vw, 60px) auto 0 auto;
    padding: 24px var(--page-gutter) 0 var(--page-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
}

/* Desktop & Mobile Navbar buttons layout adjustments */
.nav-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(128, 128, 128, 0.25);
    background: transparent;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.1s ease;
    box-sizing: border-box;
}

@media (hover: hover) {
    .nav-signin-btn:hover {
        background: rgba(128, 128, 128, 0.05);
        border-color: rgba(128, 128, 128, 0.4);
        color: var(--text);
    }
}

.nav-signin-btn:active {
    background: rgba(128, 128, 128, 0.05);
    border-color: rgba(128, 128, 128, 0.4);
    color: var(--text);
    transform: scale(0.97);
}

@media (min-width: 601px) {
    .nav-cta-button {
        background: var(--button-bg) !important;
        color: var(--button-text) !important;
        border-color: var(--button-bg) !important;
    }
}

@media (max-width: 600px) {
    .nav-signin-btn {
        display: none;
    }
}
