:root {
    color-scheme: light;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #171717;
    background: #fff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
    background: #fff;
}

body.modal-open {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #555;
    outline-offset: 4px;
}

.landing-hero {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.gallery-plane {
    position: absolute;
    top: 36%;
    left: 50%;
    width: max-content;
    transform: translate(-50%, -50%) rotate(18deg) scale(1.1);
    transform-origin: center;
    pointer-events: none;
}

.motion-toggle {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    color: #171717;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.gallery-track,
.gallery-loop {
    display: flex;
    width: max-content;
    gap: 16px;
}

.gallery-track {
    gap: 0;
    animation: gallery-marquee 26s linear infinite;
    will-change: transform;
}

.gallery-loop {
    padding-right: 16px;
}

.gallery-column {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 16px;
}

.gallery-column:nth-child(even) {
    transform: translateY(58px);
}

.gallery-card {
    width: 192px;
    height: 256px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 22px rgb(0 0 0 / 10%);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fade {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 66vh;
    pointer-events: none;
    background: linear-gradient(to top, #fff 0%, #fff 32%, rgb(255 255 255 / 98%) 46%, rgb(255 255 255 / 88%) 60%, rgb(255 255 255 / 65%) 75%, rgb(255 255 255 / 30%) 88%, rgb(255 255 255 / 8%) 96%, transparent 100%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 64px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 16px;
    text-align: center;
}

.hero-copy h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(2.25rem, 7.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.hero-copy h1 span {
    display: block;
}

.hero-copy p {
    max-width: 576px;
    margin: 12px 0 0;
    color: #737373;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.pill-button {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pill-button:active {
    transform: scale(0.985);
}

.pill-button-primary {
    color: #fff;
    background: #000;
    box-shadow: 0 12px 18px rgb(0 0 0 / 14%);
}

.pill-button-primary:hover {
    background: #262626;
    box-shadow: 0 16px 24px rgb(0 0 0 / 20%);
}

.pill-button-secondary {
    border-color: #d4d4d4;
    color: #171717;
    background: #fff;
}

.pill-button-secondary:hover {
    border-color: #171717;
    background: #f5f5f5;
}

.continue-button {
    width: 100%;
    max-width: 320px;
    min-height: 60px;
    margin-top: 22px;
    font-size: 16px;
    font-weight: 600;
}

.landing-footer,
.auth-footer {
    color: #a3a3a3;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

.landing-footer {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 12px;
    left: 16px;
    margin: 0;
}

.auth-modal {
    position: fixed;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow-y: auto;
    padding: 24px 24px 20px;
    color: #171717;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 240ms ease, visibility 0s;
}

.auth-topbar {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 8px;
}

.close-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #525252;
    background: transparent;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
    background: #f5f5f5;
}

.close-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.shop-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    color: #525252;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.shop-link:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-dasharray: 3 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.auth-content {
    display: flex;
    width: 100%;
    max-width: 448px;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
    padding: 48px 0;
    text-align: center;
}

.brandify-wordmark {
    display: block;
    width: auto;
    height: 56px;
    margin: 0 auto 32px;
    object-fit: contain;
}

.auth-content h2 {
    margin: 0 0 32px;
    color: #171717;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.auth-content h2 span {
    display: block;
    white-space: nowrap;
}

.auth-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 14px;
}

.auth-actions .pill-button {
    width: 100%;
}

.auth-footer {
    width: 100%;
    max-width: 384px;
    margin: 0;
    padding-bottom: 4px;
    color: #737373;
}

@keyframes gallery-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 640px) {
    .gallery-loop,
    .gallery-column {
        gap: 24px;
    }

    .gallery-track { gap: 0; }

    .gallery-loop { padding-right: 24px; }

    .gallery-card {
        width: 240px;
        height: 320px;
        border-radius: 24px;
    }

    .gallery-column:nth-child(even) { transform: translateY(72px); }
    .hero-fade { height: 62vh; }
    .hero-copy { bottom: 40px; padding-bottom: 16px; }
    .hero-copy h1 { font-size: clamp(3rem, 6vw, 3.75rem); }
    .hero-copy h1 span { display: inline; }
    .hero-copy p { margin-top: 16px; font-size: 16px; }
    .continue-button { max-width: 340px; margin-top: 28px; }
    .auth-modal { padding-top: 40px; padding-bottom: 40px; }
    .auth-topbar { padding: 0 24px; }
    .shop-link { font-size: 14px; }
    .brandify-wordmark { height: 64px; margin-bottom: 40px; }
    .auth-content h2 { margin-bottom: 40px; font-size: 36px; }
    .auth-actions { gap: 16px; }
    .auth-actions .pill-button { min-height: 58px; font-size: 16px; }
    .auth-footer { font-size: 12px; }
}

@media (min-width: 768px) {
    .gallery-plane { transform: translate(-50%, -50%) rotate(18deg) scale(1.25); }
    .gallery-card { width: 288px; height: 384px; }
    .gallery-column:nth-child(even) { transform: translateY(88px); }
    .hero-copy h1 { font-size: 60px; }
    .continue-button { max-width: 360px; }
    .brandify-wordmark { height: 80px; }
    .auth-content h2 { font-size: 48px; }
}

@media (min-width: 1024px) {
    .gallery-plane { transform: translate(-50%, -50%) rotate(18deg) scale(1.3); }
    .hero-fade { height: 440px; }
    .hero-copy { bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .motion-toggle { display: inline-flex; }

    body[data-gallery-motion="on"] .gallery-track {
        animation-duration: 26s !important;
        animation-iteration-count: infinite !important;
    }
}
