/* ============================================================================
   INDEX.HTML - MAIN PAGE STYLES
   RenderCAD AI Homepage CSS - Clean, organized, vanilla CSS
   ============================================================================ */

/* --- CUSTOM FONTS --- */
@font-face {
    font-family: 'Proxima Nova Thin';
    src: url('../fonts/proxima-nova-thin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- CSS CUSTOM PROPERTIES (Safari iOS compatible) --- */
@supports (color: color(display-p3 1 1 1)) {
    @property --angle-1 {
        syntax: "<angle>";
        inherits: false;
        initial-value: -75deg;
    }
    @property --angle-2 {
        syntax: "<angle>";
        inherits: false;
        initial-value: -45deg;
    }
}

@supports not (color: color(display-p3 1 1 1)) {
    :root {
        --angle-1: -75deg;
        --angle-2: -45deg;
    }
}

:root {
    --global--size: clamp(0.9rem, 1.8vw, 1.25rem);
    --anim--hover-time: 400ms;
    --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================================================
   BASE LAYOUT
   ============================================================================ */

html, body {
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

body {
    opacity: 1;
}

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

/* Unselectable text by default */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

a, button {
    cursor: pointer;
}

/* ============================================================================
   SITE STRUCTURE
   ============================================================================ */

#site-container {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 1;
}

#main-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 66.66vh;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ============================================================================
   HEADER SECTION
   ============================================================================ */

#header-section {
    position: relative;
    width: 100%;
    min-height: auto;
    z-index: 5;
    display: flex;
    overflow: visible;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: clamp(15px, 2.5vh, 30px) clamp(80px, 8vw, 120px) clamp(5px, 1vh, 10px) clamp(80px, 8vw, 120px);
    margin: 0 0 clamp(5px, 1vh, 10px) 0;
    opacity: 1;
    transition: opacity 2s ease-out;
    max-width: 100%;
}

#header-section.loaded {
    opacity: 1;
}

/* ============================================================================
   NAVIGATION - MOBILE MENU
   ============================================================================ */

.hamburger-menu {
    display: none;
    position: fixed;
    top: clamp(15px, 2.5vh, 30px);
    right: clamp(15px, 2.5vw, 30px);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 21;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    position: absolute;
    top: 80px;
    right: clamp(15px, 2.5vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-item i {
    margin-right: 10px;
}

/* ============================================================================
   NAVIGATION - DESKTOP BUTTONS
   ============================================================================ */

.nav-buttons {
    position: fixed;
    top: clamp(15px, 2.5vh, 30px);
    right: clamp(15px, 2.5vw, 30px);
    display: flex;
    gap: 10px;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.nav-button-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 999vw;
    background: transparent;
    transition: transform var(--anim--hover-time) var(--anim--hover-ease);
    display: inline-block;
    transform: rotate3d(0, 0, 0, 0deg);
}

.nav-button-wrapper .button-shadow {
    --shadow-cuttoff-fix: 1.5em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(1px, 0.1em, 8px));
    overflow: visible;
    pointer-events: none;
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.nav-button-wrapper .button-shadow::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 999vw;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    box-sizing: border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: visible;
    opacity: 1;
}

.nav-button-wrapper button,
.nav-button-wrapper a {
    --border-width: clamp(1px, 0.05em, 3px);
    all: unset;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    pointer-events: auto;
    z-index: 3;
    background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 999vw;
    box-shadow: inset 0 0.1em 0.1em rgba(0, 0, 0, 0.05),
        inset 0 -0.1em 0.1em rgba(255, 255, 255, 0.5),
        0 0.2em 0.1em -0.1em rgba(0, 0, 0, 0.2),
        0 0 0.08em 0.2em inset rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(clamp(1px, 0.1em, 3px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.1em, 3px));
    transition: transform var(--anim--hover-time) var(--anim--hover-ease), box-shadow var(--anim--hover-time) var(--anim--hover-ease);
    width: clamp(100px, 25vw, 140px);
    height: clamp(35px, 8vw, 45px);
    padding: 0;
    display: inline-block;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
    text-decoration: none;
    outline: none;
}

.nav-button-wrapper button:hover,
.nav-button-wrapper a:hover {
    transform: scale(0.975);
    box-shadow: inset 0 0.1em 0.1em rgba(0, 0, 0, 0.05),
        inset 0 -0.1em 0.1em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.08em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.08em inset rgba(255, 255, 255, 0.5);
}

.nav-button-wrapper button:active,
.nav-button-wrapper a:active {
    transform: scale(0.97);
}

.nav-button-wrapper button span,
.nav-button-wrapper a span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    box-sizing: border-box;
    user-select: none;
    font-family: "IBM Plex Sans", sans-serif;
    letter-spacing: -0.01em;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    height: 100%;
    padding-inline: 1em;
}

.nav-button-wrapper button span::after,
.nav-button-wrapper a span::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-radius: 999vw;
    overflow: clip;
    background: linear-gradient(var(--angle-2), rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40% 50%, rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease), --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.nav-button-wrapper button:hover span::after,
.nav-button-wrapper a:hover span::after {
    background-position: 25% 50%;
}

.nav-button-wrapper button:active span::after,
.nav-button-wrapper a:active span::after {
    background-position: 50% 15%;
    --angle-2: -15deg;
}

.nav-button-wrapper button::after,
.nav-button-wrapper a::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 999vw;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    background: conic-gradient(from var(--angle-1) at 50% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 5% 40%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 60% 95%, rgba(0, 0, 0, 0.5)), linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    transition: --angle-1 var(--anim--hover-time) var(--anim--hover-ease);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

.nav-button-wrapper button:hover::after,
.nav-button-wrapper a:hover::after {
    --angle-1: -125deg;
}

.nav-button-wrapper button:active::after,
.nav-button-wrapper a:active::after {
    --angle-1: -75deg;
}

/* Safari iOS hover effects */
@supports selector(:has(*)) {
    .nav-button-wrapper:has(button:hover) .button-shadow,
    .nav-button-wrapper:has(a:hover) .button-shadow {
        filter: blur(clamp(1px, 0.05em, 4px));
    }

    .nav-button-wrapper:has(button:hover) .button-shadow::after,
    .nav-button-wrapper:has(a:hover) .button-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 0.875em);
        opacity: 1;
    }

    .nav-button-wrapper:has(button:active),
    .nav-button-wrapper:has(a:active) {
        transform: rotate3d(1, 0, 0, 20deg);
    }
}

/* Fallback for Safari iOS < 15.4 */
@supports not selector(:has(*)) {
    .nav-button-wrapper:hover .button-shadow {
        filter: blur(clamp(1px, 0.05em, 4px));
    }

    .nav-button-wrapper:hover .button-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 0.875em);
        opacity: 1;
    }

    .nav-button-wrapper:active {
        transform: rotate3d(1, 0, 0, 20deg);
    }
}

/* ============================================================================
   TITLE & BRANDING
   ============================================================================ */

h1 {
    color: white;
    font-size: clamp(50px, 8vw, 75px);
    font-family: 'Proxima Nova Thin', sans-serif;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-align: center;
    min-width: clamp(160px, 40vw, 200px);
    letter-spacing: 1px;
    position: relative;
}

/* TM trademark symbol - on text */
h1 .tm {
    font-size: 0.4em;
    line-height: 0;
    font-family: 'Proxima Nova Thin', sans-serif;
    opacity: 0.9;
    position: absolute;
    top: 0.8em;
    margin-left: 0.15em;
    color: inherit;
}

/* TM on logo icon */
h1 span:first-child > span:first-child .tm {
    position: absolute;
    bottom: 0px;
    right: -4px;
    font-size: 0.35em;
    top: auto;
    margin-left: 0;
    transform: translateY(50%);
    color: #f50057ff;
}

/* Ensure TM to the right of RenderCAD stays white */
h1 span:first-child > .tm:last-child {
    color: inherit;
}

h1 span:last-child {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    position: relative;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(0.3vh, 0.5vh, 1vh);
    width: 100%;
    height: 100%;
    position: relative;
    flex: 0 0 auto;
    overflow: visible;
    min-height: 0;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
    width: auto;
    padding-top: 0;
    margin-top: 0;
    box-sizing: border-box;
}

.title-container {
    display: flex;
    align-items: center;
    transform-origin: left top;
    height: clamp(40px, 6vh, 80px);
    width: auto;
    box-sizing: border-box;
}

.hero-text-content h1 {
    margin: 0;
    padding-bottom: 0;
    text-align: left;
    font-size: clamp(24px, 4vw, 64px);
    line-height: 1.2;
    width: auto;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
}

h1 .logo-icon-wrapper {
    margin-right: clamp(0.1rem, 0.3vw, 0.35rem);
}

.hero-text-content h1 img {
    width: clamp(40px, 6vh, 80px);
    height: clamp(40px, 6vh, 80px);
}

/* ============================================================================
   HEADLINES - FIXED VERSION (No clipping!)
   ============================================================================ */

.hero-headline {
    color: white;
    font-size: clamp(20px, min(5vw, 5vh), 64px);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0.1em 0 0.05em 0; /* Minimal padding - just enough to prevent clipping */
    text-align: center;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.1; /* Tight line height to minimize space */
    max-width: 95vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    min-height: 0;
}

.hero-subheadline {
    color: white;
    font-size: clamp(16px, min(3.5vw, 3.5vh), 36px);
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    margin: 0;
    padding: 0.05em 0 0.1em 0; /* Minimal padding - just enough to prevent clipping */
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    letter-spacing: 0.15px;
    text-transform: none;
    line-height: 1.1; /* Tight line height to minimize space */
    max-width: 95vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    min-height: 0;
}

/* Headlines section container */
.headlines-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3vh, 0.6vh, 1vh);
    padding: clamp(10px, 1.5vh, 25px) clamp(15px, 3vw, 30px);
    margin: 0;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    box-sizing: border-box;
    overflow: visible;
    align-self: center;
}

.headlines-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Small fixed gap between headline and subheadline */
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-height: none;
    overflow: visible; /* Allow headlines to be fully visible */
}

/* ============================================================================
   LOWER CONTENT CONTAINER (Video, Headlines, Carousel)
   ============================================================================ */

.lower-content-container {
    position: fixed;
    top: clamp(100px, 12vh, 180px);
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - clamp(100px, 12vh, 180px));
    max-height: calc(100vh - clamp(100px, 12vh, 180px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(5px, 1vh, 15px);
    z-index: 2;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lower-content-container::-webkit-scrollbar {
    display: none;
}

.lower-content-container > .video-container-top {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lower-content-container > .headlines-section {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lower-content-container #carousel-section {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ============================================================================
   VIDEO CONTAINER
   ============================================================================ */

.video-container-top {
    position: relative;
    left: auto;
    transform: none;
    min-width: 200px;
    max-width: min(60vw, 50vh);
    margin: 0 auto;
    align-self: center;
    overflow: hidden;
    background: transparent;
    border-radius: clamp(12px, 3%, 20px);
    --border-radius: clamp(12px, 3%, 20px);
    box-shadow: 0 clamp(2px, 0.3vh, 6px) clamp(6px, 0.8vh, 12px) rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    visibility: visible;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
    padding: 0;
    cursor: pointer;
    isolation: isolate;
    will-change: transform;
}

.video-container-top:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.video-container-top video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
    opacity: 1;
    visibility: visible;
    transition: none;
    border-radius: inherit;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ============================================================================
   CAROUSEL SECTION
   ============================================================================ */

#carousel-section {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 33.33vh;
    padding-top: 0;
    max-height: 33.33vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 clamp(0.5vh, 1.5vh, 2vh) 0;
    margin: 0;
    isolation: auto;
    overflow: visible;
    box-sizing: border-box;
}

#carousel-section > * {
    max-height: 100%;
    height: 100%;
    overflow: visible;
}

#transformation-carousel .carousel-item {
    max-height: 100%;
}

#transformation-carousel .carousel-divider {
    overflow: visible;
    clip: none;
}

#transformation-carousel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    position: relative;
    overflow: visible;
    z-index: 1;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    opacity: 0;
    transition: opacity 2s ease-out;
    cursor: grab;
    isolation: auto;
}

#transformation-carousel.dragging {
    cursor: grabbing;
}

#transformation-carousel.loaded {
    opacity: 1;
}

#transformation-carousel .carousel-item,
#transformation-carousel .cad-inner,
#transformation-carousel .ai-inner {
    overflow: hidden;
}

#transformation-carousel .carousel-divider,
#transformation-carousel .carousel-divider * {
    overflow: visible;
    clip: none;
    clip-path: none;
}

#carousel-section,
#carousel-section * {
    z-index: 1;
}

#transformation-carousel {
    z-index: 1;
}

#transformation-carousel * {
    z-index: 1;
}

/* ============================================================================
   PRIMARY CTA BUTTON (Prismatic Try Now Button)
   ============================================================================ */

.prismatic-button-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 999vw;
    background: transparent;
    transition: transform var(--anim--hover-time) var(--anim--hover-ease);
    display: inline-block;
    transform: rotate3d(0, 0, 0, 0deg);
}

.prismatic-button-wrapper .button-shadow {
    --shadow-cuttoff-fix: 2em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(2px, 0.125em, 12px));
    overflow: visible;
    pointer-events: none;
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.prismatic-button-wrapper .button-shadow::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 999vw;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    box-sizing: border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: visible;
    opacity: 1;
}

.prismatic-button-wrapper button,
.prismatic-button-wrapper a {
    --border-width: clamp(1px, 0.0625em, 4px);
    all: unset;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    pointer-events: auto;
    z-index: 3;
    background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 999vw;
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    transition: transform var(--anim--hover-time) var(--anim--hover-ease), box-shadow var(--anim--hover-time) var(--anim--hover-ease);
    width: clamp(160px, 40vw, 200px);
    height: clamp(50px, 10vw, 60px);
    padding: 0;
    display: inline-block;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

.prismatic-button-wrapper button:hover,
.prismatic-button-wrapper a:hover {
    transform: scale(0.975);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5);
}

.prismatic-button-wrapper button span,
.prismatic-button-wrapper a span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    box-sizing: border-box;
    user-select: none;
    font-family: "IBM Plex Sans", sans-serif;
    letter-spacing: -0.01em;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    height: 100%;
    padding-inline: 1.5em;
}

.button-logo {
    width: 1.2em;
    height: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.button-logo-small {
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    vertical-align: middle;
}

.prismatic-button-wrapper button span::after,
.prismatic-button-wrapper a span::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-radius: 999vw;
    overflow: clip;
    background: linear-gradient(var(--angle-2), rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40% 50%, rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease), --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.prismatic-button-wrapper button:hover span::after,
.prismatic-button-wrapper a:hover span::after {
    background-position: 25% 50%;
}

.prismatic-button-wrapper button:active span::after,
.prismatic-button-wrapper a:active span::after {
    background-position: 50% 15%;
    --angle-2: -15deg;
}

.prismatic-button-wrapper button::after,
.prismatic-button-wrapper a::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 999vw;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    background: conic-gradient(from var(--angle-1) at 50% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 5% 40%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 60% 95%, rgba(0, 0, 0, 0.5)), linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: --angle-1 var(--anim--hover-time) var(--anim--hover-ease);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

.prismatic-button-wrapper button:hover::after,
.prismatic-button-wrapper a:hover::after {
    --angle-1: -125deg;
}

.prismatic-button-wrapper button:active::after,
.prismatic-button-wrapper a:active::after {
    --angle-1: -75deg;
}

@supports selector(:has(*)) {
    .prismatic-button-wrapper:has(button:hover) .button-shadow,
    .prismatic-button-wrapper:has(a:hover) .button-shadow {
        filter: blur(clamp(2px, 0.0625em, 6px));
    }

    .prismatic-button-wrapper:has(button:hover) .button-shadow::after,
    .prismatic-button-wrapper:has(a:hover) .button-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 0.875em);
        opacity: 1;
    }

    .prismatic-button-wrapper:has(button:active),
    .prismatic-button-wrapper:has(a:active) {
        transform: rotate3d(1, 0, 0, 25deg);
    }

    .prismatic-button-wrapper:has(button:active) button,
    .prismatic-button-wrapper:has(a:active) a {
        box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05), inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5), 0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2), 0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
    }
}

@supports not selector(:has(*)) {
    .prismatic-button-wrapper:hover .button-shadow {
        filter: blur(clamp(2px, 0.0625em, 6px));
    }

    .prismatic-button-wrapper:hover .button-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 0.875em);
        opacity: 1;
    }

    .prismatic-button-wrapper:active {
        transform: rotate3d(1, 0, 0, 25deg);
    }

    .prismatic-button-wrapper:active button,
    .prismatic-button-wrapper:active a {
        box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05), inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5), 0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2), 0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
    }
}

/* Try Now button - 1.6x larger than nav buttons */
.headlines-content #tryNowButton {
    margin-top: clamp(12px, 1.5vh, 20px); /* More space between subheadline and button */
    margin-bottom: clamp(15px, 2vh, 25px);
}

.headlines-content #tryNowButton .button-shadow {
    margin-bottom: 0px;
    --shadow-cuttoff-fix: 2.4em;
}

.headlines-content #tryNowButton button,
.headlines-content #tryNowButton a {
    width: clamp(160px, 40vw, 224px);
    height: clamp(56px, 12.8vw, 72px);
    font-size: 1.36rem;
    --border-width: clamp(1.6px, 0.08em, 4.8px);
    box-shadow: inset 0 0.16em 0.16em rgba(0, 0, 0, 0.05),
        inset 0 -0.16em 0.16em rgba(255, 255, 255, 0.5),
        0 0.32em 0.16em -0.16em rgba(0, 0, 0, 0.2),
        0 0 0.128em 0.32em inset rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(clamp(1.6px, 0.16em, 4.8px));
    -webkit-backdrop-filter: blur(clamp(1.6px, 0.16em, 4.8px));
}

.headlines-content #tryNowButton button span,
.headlines-content #tryNowButton a span {
    font-size: 1.36rem;
    padding-inline: 0.96em;
    gap: 0.8em;
}

.headlines-content #tryNowButton .button-shadow {
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    filter: blur(clamp(1.6px, 0.16em, 12.8px));
}

.headlines-content #tryNowButton .button-shadow::after {
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.4em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.4em);
    top: calc(var(--shadow-cuttoff-fix) - 0.8em);
    left: calc(var(--shadow-cuttoff-fix) - 1.4em);
    padding: 0.2em;
}

.headlines-content #tryNowButton:hover button,
.headlines-content #tryNowButton:hover a {
    transform: scale(0.975);
    box-shadow: inset 0 0.16em 0.16em rgba(0, 0, 0, 0.05),
        inset 0 -0.16em 0.16em rgba(255, 255, 255, 0.5),
        0 0.24em 0.08em -0.128em rgba(0, 0, 0, 0.25),
        0 0 0.08em 0.128em inset rgba(255, 255, 255, 0.5);
}

.headlines-content #tryNowButton:active button,
.headlines-content #tryNowButton:active a {
    transform: scale(0.97);
}

@supports selector(:has(*)) {
    .headlines-content #tryNowButton:has(button:hover) .button-shadow,
    .headlines-content #tryNowButton:has(a:hover) .button-shadow {
        filter: blur(clamp(1.6px, 0.08em, 6.4px));
    }

    .headlines-content #tryNowButton:has(button:hover) .button-shadow::after,
    .headlines-content #tryNowButton:has(a:hover) .button-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 1.4em);
    }

    .headlines-content #tryNowButton:has(button:active),
    .headlines-content #tryNowButton:has(a:active) {
        transform: rotate3d(1, 0, 0, 20deg);
    }
}

@media (hover: hover) {
    .headlines-content #tryNowButton:hover .button-shadow {
        filter: blur(clamp(1.6px, 0.08em, 6.4px));
    }

    .headlines-content #tryNowButton:hover .button-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 1.4em);
    }

    .headlines-content #tryNowButton:active {
        transform: rotate3d(1, 0, 0, 20deg);
    }
}

.headlines-content #tryNowButton .button-logo-small {
    width: clamp(19.2px, 2.4vw, 25.6px);
    height: clamp(19.2px, 2.4vw, 25.6px);
}

/* ============================================================================
   PANEL/TILE COMPONENTS (for modals)
   ============================================================================ */

.panel-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 24px;
    background: transparent;
    transition: transform var(--anim--hover-time) var(--anim--hover-ease);
    display: inline-block;
    transform: rotate3d(0, 0, 0, 0deg);
}

.panel-wrapper .panel-shadow {
    --shadow-cuttoff-fix: 2em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(2px, 0.125em, 12px));
    overflow: visible;
    pointer-events: none;
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.panel-wrapper .panel-shadow::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    box-sizing: border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: visible;
    opacity: 1;
}

@supports selector(:has(*)) {
    .panel-wrapper:has(.panel:hover) .panel-shadow {
        filter: blur(clamp(2px, 0.0625em, 6px));
    }

    .panel-wrapper:has(.panel:hover) .panel-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 0.875em);
        opacity: 1;
    }

    .panel-wrapper:has(.panel:active) {
        transform: rotate3d(1, 0, 0, 25deg);
    }
}

@supports not selector(:has(*)) {
    .panel-wrapper:hover .panel-shadow {
        filter: blur(clamp(2px, 0.0625em, 6px));
    }

    .panel-wrapper:hover .panel-shadow::after {
        top: calc(var(--shadow-cuttoff-fix) - 0.875em);
        opacity: 1;
    }

    .panel-wrapper:active {
        transform: rotate3d(1, 0, 0, 25deg);
    }
}

.panel {
    position: relative;
    width: clamp(150px, 25vw, 180px);
    height: clamp(220px, 35vw, 280px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 24px;
    background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    transition: transform var(--anim--hover-time) var(--anim--hover-ease), box-shadow var(--anim--hover-time) var(--anim--hover-ease);
    cursor: pointer;
    z-index: 3;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

.panel:hover {
    transform: scale(0.975);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5);
}

.panel:active {
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
}

.panel::after {
    --border-width: clamp(1px, 0.0625em, 4px);
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 24px;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    pointer-events: none;
    background: conic-gradient(from var(--angle-1, -75deg) at 50% 50%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 5% 40%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 60% 95%, rgba(0, 0, 0, 0.6)), linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    transition: --angle-1 var(--anim--hover-time) var(--anim--hover-ease);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

.panel:hover::after {
    --angle-1: -125deg;
}

.panel:active::after {
    --angle-1: -75deg;
}

.panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    border-radius: 24px;
    overflow: hidden;
}

.panel-content h3 {
    margin: 0;
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
}

.panel-content::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: clip;
    background: linear-gradient(var(--angle-2, -45deg), rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40% 50%, rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease), --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.panel:hover .panel-content::after {
    background-position: 25% 50%;
}

.panel:active .panel-content::after {
    background-position: 50% 15%;
    --angle-2: -15deg;
}

.panel img {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    margin-bottom: clamp(10px, 3vw, 20px);
    filter: none;
    opacity: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   MODAL STATES
   ============================================================================ */

#site-container.modal-active #header-section,
#site-container.modal-active .lower-content-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#site-container #carousel-section,
#site-container #header-section {
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: all;
    background: none;
}

.modal {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    padding: clamp(40px, 5vw, 60px);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100000;
    background: none;
}

.modal-video-container {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    border-radius: 0;
    clip-path: none;
    -webkit-clip-path: none;
}

.modal-video-container.loaded {
    opacity: 1;
}

.modal-video-container video {
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    height: auto;
    display: block;
    object-fit: contain;
    mask: none;
    -webkit-mask: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    border-radius: 0;
}

/* ============================================================================
   RESPONSIVE - MOBILE & TABLET
   ============================================================================ */

/* Narrow desktop screens */
@media (max-width: 480px) {
    .nav-buttons {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .nav-button-wrapper button,
    .nav-button-wrapper a {
        width: clamp(70px, 18vw, 100px);
        height: clamp(28px, 5.5vw, 36px);
    }

    .nav-button-wrapper button span,
    .nav-button-wrapper a span {
        font-size: 0.7rem;
        padding-inline: 0.6em;
    }

    #header-section h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    #header-section p {
        font-size: 1rem;
    }
}

/* Extra narrow screens */
@media (max-width: 360px) {
    #header-section h1 {
        font-size: 2rem;
    }
}

/* Tablets and larger */
@media (min-width: 768px) {
    #transformation-carousel {
        height: clamp(180px, 55vh, 350px);
    }
}

@media (min-width: 1024px) {
    #transformation-carousel {
        height: clamp(200px, 60vh, 350px);
    }
}

/* Mobile and small tablets */
@media (max-width: 768px) {
    .modal {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        padding: clamp(30px, 5vw, 40px);
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-menu-overlay {
        display: block;
    }

    body,
    html {
        margin: 0;
        padding: 0;
    }

    #site-container {
        margin: 0;
        padding: 0;
    }

    #header-section {
        position: relative;
        padding: clamp(10px, 2vh, 20px) clamp(15px, 3vw, 30px) clamp(15px, 2.5vh, 30px) clamp(15px, 3vw, 30px);
        margin: 0;
        margin-bottom: clamp(15px, 2.5vh, 30px);
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .hamburger-menu {
        top: clamp(10px, 2vh, 20px);
    }

    .hero-section {
        align-items: center;
        width: 100%;
    }

    .hero-text-content {
        align-items: center;
        width: 100%;
    }

    .title-container {
        height: clamp(40px, 6vh, 80px);
        display: flex;
        align-items: center;
        transform: none;
        transform-origin: center top;
    }

    .hero-text-content h1 {
        margin-top: 0;
        text-align: center;
        align-self: center;
        font-size: clamp(32px, 6vw, 52px);
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .hero-text-content h1 img {
        width: clamp(40px, 6vh, 80px);
        height: clamp(40px, 6vh, 80px);
    }

    .hero-text-content h1 .logo-icon-wrapper {
        margin-right: clamp(0.15rem, 0.5vw, 0.4rem);
    }

    body:has(.mobile-menu-overlay.active) .lower-content-container {
        z-index: 1;
    }

    #main-content {
        padding-top: 0;
        margin-top: 0;
        overflow-x: hidden;
    }

    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-text-content {
        margin-top: 0;
        padding-top: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }

    #site-container {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .lower-content-container {
        position: relative;
        top: auto;
        bottom: auto;
        max-height: none;
        min-height: none;
        height: auto;
        transform: none;
        overflow-y: visible;
        overflow-x: hidden;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .video-container-top {
        position: relative;
        margin: clamp(10px, 2vh, 20px) auto 0 auto;
        width: clamp(250px, 95vw, 500px);
        max-width: 98%;
        max-height: calc(66.66vh - clamp(50px, 8vh, 100px));
        height: auto;
        display: block;
        z-index: 1;
    }

    .headlines-section {
        position: relative;
        padding: clamp(10px, 2vh, 25px) clamp(5px, 1vw, 10px);
        margin: 0;
        min-height: auto;
        height: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .headlines-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .hero-headline {
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.1em clamp(2px, 0.5vw, 5px) 0.05em clamp(2px, 0.5vw, 5px);
        font-size: clamp(20px, 5vw, 40px);
        line-height: 1.1;
        white-space: normal; /* Allow wrapping on mobile if needed */
        display: block;
        overflow: visible; /* Don't clip on mobile! */
        text-overflow: clip;
    }

    .hero-subheadline {
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.05em clamp(2px, 0.5vw, 5px) 0.1em clamp(2px, 0.5vw, 5px);
        font-size: clamp(16px, 3.5vw, 28px);
        line-height: 1.1;
        white-space: normal; /* Allow wrapping on mobile if needed */
        display: block;
        overflow: visible; /* Don't clip on mobile! */
        text-overflow: clip;
    }

    .headlines-content #tryNowButton {
        max-width: 100%;
        box-sizing: border-box;
    }

    #transformation-carousel {
        overflow: visible;
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 33.33vh;
    }

    #site-container,
    #main-content {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: hidden;
        box-sizing: border-box;
    }

    .lower-content-container,
    #main-content .lower-content-container,
    #site-container .lower-content-container {
        width: 100vw;
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        left: 0;
        bottom: 0;
        top: auto;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        position: fixed;
        overflow-x: hidden;
        overflow-y: visible;
        box-sizing: border-box;
    }

    .lower-content-container #carousel-section {
        flex: 0 0 33.33vh;
        min-height: 33.33vh;
        max-height: 33.33vh;
        height: 33.33vh;
        width: 100vw;
        max-width: 100vw;
    }

    #carousel-section,
    .lower-content-container #carousel-section,
    #main-content #carousel-section,
    #site-container #carousel-section,
    .lower-content-container > #carousel-section {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
        transform: none;
    }

    #header-section {
        padding-left: clamp(15px, 3vw, 30px);
        padding-right: clamp(15px, 3vw, 30px);
        box-sizing: border-box;
        overflow-x: visible;
    }

    .lower-content-container {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    #transformation-carousel .carousel-divider,
    #transformation-carousel .carousel-divider * {
        overflow: visible;
        clip: none;
        clip-path: none;
    }
}

/* ============================================================================
   END OF INDEX PAGE STYLES
   ============================================================================ */
