:root {
    --primary: #F12850;
    --black: #000000;
    --bg: #F4F4F0;
    --font-logo: 'Satoshi', sans-serif;
    --font-main: 'Satoshi', sans-serif;
    --font-accent: 'Caveat', cursive;
}

/* - CSS RESET & BASE STYLES - */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overscroll-behavior: none;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: var(--font-main);
    color: var(--black);
}

body {
    display: flex;
    flex-direction: column;
}

/* - SPLASH SCREEN - */
#splash-screen {
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-logo {
    font-family: var(--font-logo);
    font-size: 38px;
    font-weight: 600;
    color: #000 !important;
    opacity: 0;
    transform: scale(0.96);
}

.splash-logo.animate {
    animation: logoFadeIn 1.2s forwards cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-logo .lens {
    color: var(--primary);
}

.splash-tagline {
    font-size: 16px;
    color: #000000;
    margin-top: 4px;
    opacity: 0;
}

.splash-tagline.animate {
    animation: fadeIn 1.2s forwards ease-out 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .splash-logo {
        font-size: 58px;
    }

    .splash-tagline {
        font-size: 24px;
    }
}

/* - RESPONSIVE LANDING CONTAINER - */
#landing-screen {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px max(48px, env(safe-area-inset-right, 48px)) 60px max(48px, env(safe-area-inset-left, 48px));
    /* Increased top and bottom padding */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#landing-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

/* - LAYER ENFORCEMENT - */
.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.p1 {
    top: 95px;
    left: 20px;
    transform: rotate(-8deg) translateZ(0);
    animation-delay: 0s;
}

.p2 {
    top: 100px;
    right: 20px;
    transform: rotate(6deg) translateZ(0);
    animation-delay: 1.2s;
}

.p3 {
    bottom: 100px;
    left: 30px;
    transform: rotate(-6deg) translateZ(0);
    animation-delay: 2.5s;
}

.p4 {
    bottom: 70px;
    right: 20px;
    transform: rotate(8deg) translateZ(0);
    animation-delay: 0.8s;
}

/* Mobile Specific Overrides */
@media (max-width: 767px) {

    /* Removed fixed body constraints to allow natural viewport scaling */

    /* - Hamburger Menu & Side Drawer now handled by shared/header.css - */

    .watermark {
        display: none !important;
    }

    #landing-screen {
        padding: calc(72px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 20px)) max(40px, calc(env(safe-area-inset-bottom, 0px) + 32px)) max(20px, env(safe-area-inset-left, 20px)) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: 100dvh !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Hide scrollbar visually but keep it functional */
    #landing-screen::-webkit-scrollbar {
        display: none;
    }

    #landing-screen {
        scrollbar-width: none;
    }

    .main-content {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-group {
        margin-top: 16px;
        margin-bottom: 24px;
        text-align: center;
        flex-shrink: 0;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(30px, 8vw, 44px) !important;
        margin-bottom: 6px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        letter-spacing: -0.04em !important;
        white-space: nowrap !important;
        text-wrap: nowrap !important;
    }

    .hero-title .accent {
        font-size: 1.3em !important;
        transform: translateY(2px) rotate(-2deg) !important;
    }

    .hero-sub {
        font-size: clamp(14px, 3.5vw, 17px) !important;
        color: #000000 !important;
        line-height: 1.45 !important;
        font-weight: 500 !important;
    }

    .cards-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-width: 480px;
        width: 100%;
        margin-top: 8px;
        box-sizing: border-box;
        /* Padding to prevent pseudo-element shadows from clipping at container edge */
        padding: 4px 4px 8px 4px;
    }

    .card-wrap {
        width: 100%;
        flex: 0 0 auto;
        display: flex;
        /* Clip the neo-brutalist shadow pseudo-elements on mobile to prevent
           them from appearing as thick random strokes at card edges */
        overflow: hidden;
        border-radius: 14px;
    }

    .card-main {
        padding: 16px 20px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        border-radius: 14px !important;
        width: 100% !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }

    .join-booth-section {
        width: 100%;
        max-width: 100%;
        margin-top: 20px !important;
    }

    .join-input-row {
        width: 100% !important;
        margin-top: 10px !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .join-input-row input {
        height: 44px !important;
        font-size: 15px !important;
    }

    .join-input-row button {
        height: 44px !important;
        padding: 0 18px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .top-bar {
        display: none !important;
    }
}

/* Desktop bounds */
@media (min-width: 900px) {
    .main-content {
        margin-top: 0;
    }
}

/* - TOP BAR - */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
}

/* Logo styles moved to shared/header.css */





/* - TYPOGRAPHY HEADER GROUP - */
.header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 480px;
    margin-bottom: 48px;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 52px !important;
    }

    .hero-sub {
        font-size: 24px !important;
    }

    .hero-title .accent {
        font-size: 72px !important;
    }

    .card-title {
        font-size: 24px !important;
    }

    .card-desc {
        font-size: 16px !important;
    }

    .card-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .card-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .join-input-row input {
        font-size: 15px !important;
        height: 40px !important;
    }

    .join-input-row button {
        font-size: 15px !important;
        height: 40px !important;
    }
}

.hero-title {
    font-family: var(--font-logo);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 12px;
    color: var(--black);
}

.hero-title .accent {
    font-family: var(--font-accent);
    color: var(--primary);
    font-size: 72px !important;
    font-weight: 700;
    margin-left: 0;
    margin-right: 0.12em;
    display: inline-block;
    transform: translateY(3px) rotate(-2deg);
}

.hero-sub {
    font-size: clamp(15px, 3vw, 23px);
    font-weight: 500;
    color: #000000;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-br {
        display: none;
    }

    #landing-screen {
        padding-top: 140px !important;
        padding-bottom: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .header-group {
        max-width: 900px !important;
        width: 100% !important;
        margin-inline: auto !important;
        margin-bottom: 48px !important;
    }

    .hero-title {
        font-family: var(--font-main) !important;
        font-size: clamp(56px, 8vw, 82px) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.045em !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin-bottom: 28px !important;
        white-space: normal !important;
        /* Allow wrap for centering */
        text-wrap: balance !important;
        width: 100% !important;
    }

    .hero-sub {
        font-family: var(--font-main) !important;
        font-size: clamp(23px, 3.2vw, 34px) !important;
        /* Upscaled */
        line-height: 1.45 !important;
        font-weight: 500 !important;
        max-width: 42ch !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
        white-space: normal !important;
        margin-bottom: 48px !important;
        /* Unified tablet spacing */
    }
}


.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 480px;
    z-index: 10;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .cards-container {
        flex-direction: row;
        max-width: 1000px;
        /* Increased from 900px */
        gap: 40px;
        /* Increased from 24px */
    }
}

.card-wrap {
    position: relative;
    flex: 1;
    z-index: 100;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.card-wrap::before,
.card-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid #000;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

.card-wrap::before {
    background-color: #FFC701;
    transform: translate(0px, 0px);
    z-index: -1;
}

.card-wrap::after {
    background-color: var(--primary);
    transform: translate(0px, 0px);
    z-index: -2;
}

.card-main {
    padding: 30px 24px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 12px;
    font-family: var(--font-main);
    position: relative;
    z-index: 1;
    transition: transform 0.15s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--black);
    flex-shrink: 0;
    color: #000;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

.card-wrap:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 2px 2px 0px var(--black);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-main);
    margin-bottom: 6px;
}

.card-desc {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
}

@media (hover: hover) {
    .card-wrap:hover .card-main {
        transform: translate(-4px, -4px);
    }

    .card-wrap:hover::before {
        transform: translate(4px, 4px);
    }

    .card-wrap:hover::after {
        transform: translate(8px, 8px);
    }

    .card-wrap:active .card-main,
    .card-wrap:active::before,
    .card-wrap:active::after {
        transform: translate(0px, 0px);
        transition: transform 0.1s ease-out;
    }
}

@media (hover: none) {
    .card-wrap:active .card-main {
        transform: translate(-3px, -3px);
        transition: transform 0.05s;
    }

    .card-wrap:active::before {
        transform: translate(3px, 3px);
        transition: transform 0.05s;
    }

    .card-wrap:active::after {
        transform: translate(6px, 6px);
        transition: transform 0.05s;
    }
}

/* Ensure join card matches other cards' cursor but keep it non-clickable in JS */
.join-card {
    cursor: pointer;
}

/* - FIXED FOOTER WATERMARK - */
.watermark {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #000000;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 20;
}

.hidden {
    display: none !important;
}

/* - NEW JOIN SECTION STYLES - */
.join-booth-section {
    width: 100%;
    max-width: 480px;
    margin-top: clamp(48px, 10vh, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

@media (max-width: 900px) {
    .join-booth-section {
        margin-top: 24px !important;
    }
}

.join-title-new {
    font-size: 19px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.join-icon-box {
    width: 28px;
    height: 28px;
    background: rgba(241, 40, 80, 0.1);
    /* Light pink bg */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F12850;
    /* Brand red icon color */
}

.join-icon-box svg {
    opacity: 0.8;
    width: 14px;
    height: 14px;
}

.join-sub-new {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: clamp(16px, 2vh, 20px);
    text-align: center;
}

.join-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    justify-content: center;
    margin-top: 12px;
    align-items: center;
}

.join-input-row input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s ease;
}

.join-input-row input:focus {
    border-color: #000;
}

.join-input-row button {
    height: 36px;
    padding: 0 20px;
    background: #FFF0F3;
    /* Solid light pink */
    color: #F12850;
    /* Brand red text */
    border-radius: 8px;
    border: 1.5px solid rgba(241, 40, 80, 0.2);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.join-input-row button:hover {
    background: #F12850;
    color: #fff;
    border-color: #F12850;
    transform: translateY(-1px);
}

.join-input-row button:active {
    transform: scale(0.96);
    opacity: 0.8;
}


/* ══════════════════════════════════════════════════
           MOBILE & TABLET RESPONSIVE TYPOGRAPHY SYSTEM
           ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    h1,
    .hero-title,
    .section-title,
    .about-hero-title,
    .mission-title,
    .about-cta-title,
    .stats-title,
    .showcase-title,
    .faq-title {
        font-family: var(--font-main) !important;
        font-size: clamp(34px, 8vw, 56px) !important;
        line-height: 1.08 !important;
        font-weight: 600 !important;
        letter-spacing: -0.04em !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        max-width: min(92vw, 700px) !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
    }

    .hero-title {
        white-space: nowrap !important;
        text-wrap: nowrap !important;
    }

    h2,
    .hero-sub,
    .section-sub,
    .about-hero-sub,
    .stats-subtitle,
    .about-cta-sub {
        font-family: var(--font-main) !important;
        font-size: clamp(16px, 3.8vw, 20px) !important;
        line-height: 1.45 !important;
        font-weight: 500 !important;
        max-width: min(92vw, 640px) !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: pretty !important;
    }

    h3,
    .mission-title,
    .contact-card-title, .card-title,
    .value-title,
    .booth-card-title,
    .faq-q {
        font-size: clamp(18px, 4vw, 24px) !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    p,
    .mission-body,
    .story-body,
    .value-desc,
    .sec p,
    .sec ul li,
    .faq-a, .card-desc,
    .booth-card-desc {
        font-size: clamp(14px, 3vw, 16px) !important;
        line-height: 1.6 !important;
        font-weight: 500 !important;
        margin-bottom: 14px !important;
    }

    small,
    .eyebrow,
    .about-eyebrow,
    .mission-label,
    .contact-card-label,
    .mission-stat-label,
    .badge {
        font-size: clamp(12px, 2.5vw, 14px) !important;
        line-height: 1.4 !important;
    }

    button,
    .btn-main,
    .about-cta-btn,
    .contact-card-action,
    .join-input-row button,
    .nav-cta,
    .booth-card-btn {
        font-size: clamp(14px, 3vw, 16px) !important;
        font-weight: 600 !important;
    }

    span.accent,
    h1 .accent,
    h2 .accent,
    h3 .accent,
    p .accent,
    .hero-title .accent,
    .about-hero-title .accent,
    .output-title .accent,
    .output-mobile-header .output-title .accent,
    .section-title .accent,
    .about-cta-title .accent,
    .stats-title .accent,
    .showcase-title .accent,
    .faq-title .accent,
    .story-quote .accent {
        font-family: "Caveat", cursive !important;
        font-size: 1.32em !important;
        line-height: 0.8 !important;
        font-weight: 700 !important;
        display: inline-block !important;
        transform: translateY(4px) rotate(-2deg) !important;
        white-space: nowrap !important;
        margin: 0 !important;
        margin-right: 0.1em !important;
        letter-spacing: -0.01em !important;
    }
}

@media (max-width: 480px) {

    span.accent,
    h1 .accent,
    h2 .accent,
    h3 .accent,
    p .accent,
    .hero-title .accent,
    .about-hero-title .accent,
    .output-title .accent,
    .output-mobile-header .output-title .accent,
    .section-title .accent,
    .about-cta-title .accent,
    .stats-title .accent,
    .showcase-title .accent,
    .faq-title .accent,
    .story-quote .accent {
        transform: translateY(4px) rotate(-2deg) !important;
    }
}

/* --- TABLET HARDENING (768px - 1024px) ONLY --- */
@media (min-width: 768px) and (max-width: 1024px) {
    #landing-screen {
        padding: 120px 48px 80px 48px !important;
    }


    .hero-title {
        font-size: clamp(54px, 7.5vw, 78px) !important;
        font-weight: 700 !important;
        line-height: 1.05 !important;
        letter-spacing: -0.045em !important;
        max-width: none !important;
        margin-inline: auto !important;
        white-space: nowrap !important;
        margin-bottom: 24px !important;
    }

    .hero-title .accent {
        font-size: 1.3em !important;
        display: inline-block !important;
        transform: translateY(4px) rotate(-2deg) !important;
    }

    .hero-sub {
        font-family: var(--font-main) !important;
        font-size: clamp(22px, 3vw, 32px) !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
        max-width: 38ch !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
        white-space: normal !important;
        margin-bottom: 56px !important;
        /* Unified H2->content tablet spacing */
    }

    .cards-container {
        flex-direction: row !important;
        max-width: 860px !important;
        gap: 32px !important;
        margin-top: 0 !important;
        margin-inline: auto !important;
    }

    .card-wrap {
        flex: 1 !important;
    }

    .card-main {
        padding: 40px 32px !important;
        min-height: 280px !important;
    }

    .card-title {
        font-size: 26px !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }

    .card-desc {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    .card-icon {
        width: 52px !important;
        height: 52px !important;
    }

    .card-icon svg {
        width: 26px !important;
        height: 26px !important;
    }

    .join-booth-section {
        margin-top: 64px !important;
        max-width: 560px !important;
        margin-inline: auto !important;
        padding: 40px 0 !important;
        background: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .join-title-new {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .join-sub-new {
        font-size: 17px !important;
    }

    .join-input-row {
        margin-top: 24px !important;
    }

    .join-input-row input {
        height: 54px !important;
        font-size: 16px !important;
    }

    .join-input-row button {
        height: 54px !important;
        padding: 0 32px !important;
        font-size: 16px !important;
    }
}
