/* Site-wide responsive hardening for VageChain static pages. */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
button,
div {
    overflow-wrap: anywhere;
}

header {
    gap: 1rem;
}

header nav {
    min-width: 0;
}

.mobile-menu-button {
    display: none;
}

.text-headline-xl {
    font-size: clamp(2.25rem, 6vw, 3rem) !important;
    line-height: 1.08 !important;
}

.text-headline-lg {
    font-size: clamp(1.75rem, 4vw, 2rem) !important;
}

.footer {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem) !important;
    border-top: 1px solid #eef0f3;
}

.footer-main-content,
.footer-img-container {
    width: 100%;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-main-content {
    padding-left: clamp(1rem, 4vw, 2rem) !important;
    padding-right: clamp(1rem, 4vw, 2rem) !important;
}

.footer-inner {
    display: grid !important;
    grid-template-columns: minmax(16rem, 1.35fr) minmax(9rem, 0.75fr) minmax(9rem, 0.75fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem) !important;
    margin-bottom: 0 !important;
}

.footer-inner > * {
    min-width: 0;
}

.footer-title {
    max-width: 24rem;
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
    line-height: 1.08;
}

.footer-nav-section {
    gap: 0.75rem !important;
}

.footer-nav-section a {
    width: fit-content;
    max-width: 100%;
    line-height: 1.35;
}

.footer-img-container {
    margin-top: clamp(2rem, 5vw, 3.25rem) !important;
    padding-left: clamp(1rem, 4vw, 2rem) !important;
    padding-right: clamp(1rem, 4vw, 2rem) !important;
    padding-bottom: 0.25rem;
    overflow: visible;
    clear: both;
}

.footer-vagechain {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    white-space: nowrap;
    font-size: clamp(3rem, 13.2vw, 13.5rem) !important;
    line-height: 1.05;
    letter-spacing: -0.08em !important;
    transform: none;
}

.ticker-track,
.ticker-track-anim {
    will-change: transform;
}

@media (max-width: 1024px) {
    header {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .px-margin {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .footer-img-container {
        margin-top: 2rem !important;
    }
}

@media (max-width: 767px) {
    header {
        align-items: center !important;
        flex-wrap: wrap !important;
        padding: 0.875rem 1rem !important;
        white-space: normal !important;
    }

    header > a {
        flex-shrink: 0;
    }

    header nav {
        order: 2;
        width: 100%;
        display: none !important;
        flex-direction: column;
        gap: 1rem !important;
        overflow: visible;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid rgba(173, 181, 189, 0.35);
    }

    header.mobile-nav-open nav {
        display: flex !important;
    }

    header nav a {
        width: 100%;
        padding: 0.6rem 0;
    }

    .mobile-menu-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid rgba(173, 181, 189, 0.45);
        border-radius: 0.5rem;
        background: #ffffff;
        color: #111827;
        cursor: pointer;
        transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .mobile-menu-button:hover,
    .mobile-menu-button:focus-visible {
        border-color: #842bd2;
        color: #842bd2;
        outline: none;
    }

    .mobile-menu-button .material-symbols-outlined {
        font-size: 24px;
        line-height: 1;
    }

    main {
        max-width: 100%;
    }

    section {
        max-width: 100%;
    }

    .px-margin {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .gap-\[80px\] {
        gap: 3rem !important;
    }

    .gap-24 {
        gap: 3.5rem !important;
    }

    .my-20 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }

    .mt-40 {
        margin-top: 5rem !important;
    }

    .rounded-\[3\.5rem\] {
        border-radius: 1.5rem !important;
    }

    .grid-cols-12 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    [class*="col-span-"] {
        grid-column: span 1 / span 1 !important;
    }

    [class*="col-start-"] {
        grid-column-start: auto !important;
    }

    .min-w-\[220px\] {
        min-width: min(220px, 78vw) !important;
    }

    .max-w-\[240px\] {
        max-width: 78vw !important;
    }

    .w-\[600px\] {
        width: min(600px, 120vw) !important;
    }

    .w-\[300px\] {
        width: min(300px, 78vw) !important;
    }

    .h-\[300px\] {
        height: min(300px, 78vw) !important;
    }

    .w-\[240px\] {
        width: min(240px, 64vw) !important;
    }

    .h-\[240px\] {
        height: min(240px, 64vw) !important;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem !important;
    }

    .footer-inner > * {
        width: 100%;
    }

    .footer-nav-section {
        gap: 0.75rem !important;
    }

    .footer-vagechain {
        justify-content: flex-start !important;
        font-size: clamp(3rem, 17vw, 7rem) !important;
        letter-spacing: -0.07em !important;
    }

    #blogModalContent,
    #agent-modal .relative,
    #youtube-dialog > div {
        max-height: 92vh !important;
        width: min(100%, 42rem) !important;
    }

    #modalPosterSide {
        min-height: 220px !important;
    }

    #modalHeroImage {
        max-height: 260px !important;
        width: auto !important;
    }

    [data-parallax-x],
    [data-parallax-y] {
        transform: none !important;
        opacity: 1 !important;
    }

    [data-parallax-x] img,
    [data-parallax-y] img {
        transform: none !important;
        max-height: 260px;
        object-fit: contain;
    }

    .md\:-space-x-48 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0 !important;
    }

    .ticker-track,
    .ticker-track-anim {
        gap: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .text-headline-xl {
        font-size: clamp(2rem, 12vw, 2.5rem) !important;
    }

    .text-body-lg,
    .text-body-md {
        font-size: 0.98rem !important;
    }

    button,
    a {
        min-height: 44px;
    }

    .footer-vagechain {
        font-size: clamp(2.35rem, 15.5vw, 3.4rem) !important;
        letter-spacing: -0.06em !important;
    }

    .p-8 {
        padding: 1.25rem !important;
    }

    .px-8 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .py-12 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (hover: none) {
    .glass-panel:hover,
    .builder-cta-card:hover,
    .stat-card:hover,
    .problem-card:hover,
    .solution-card:hover {
        transform: none !important;
    }
}

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