@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_thin-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_thin-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_thin-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_thin-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_thin-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_thin-webfont.svg#made_tommy_softthin') format('svg');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_light-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_light-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_light-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_light-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_light-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_light-webfont.svg#made_tommy_softlight') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_regular-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_regular-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_regular-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_regular-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_regular-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_regular-webfont.svg#made_tommy_softregular') format('svg');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_medium-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_medium-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_medium-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_medium-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_medium-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_medium-webfont.svg#made_tommy_softmedium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_bold-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_bold-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_bold-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_bold-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_bold-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_bold-webfont.svg#made_tommy_softbold') format('svg');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_extrabold-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_extrabold-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_extrabold-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_extrabold-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_extrabold-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_extrabold-webfont.svg#made_tommy_softextrabold') format('svg');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tommy Soft';
    src: url('../fonts/made_tommy_soft/made_tommy_soft_black-webfont.eot');
    src: url('../fonts/made_tommy_soft/made_tommy_soft_black-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_black-webfont.woff2') format('woff2'),
        url('../fonts/made_tommy_soft/made_tommy_soft_black-webfont.woff') format('woff'),
        url('../fonts/made_tommy_soft/made_tommy_soft_black-webfont.ttf') format('truetype'),
        url('../fonts/made_tommy_soft/made_tommy_soft_black-webfont.svg#made_tommy_softblack') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tommy Soft", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a, button { -webkit-tap-highlight-color: transparent; }

body {
    background-color: #080a10;
    color: white;
    height: auto;
    /* min-height: 300vh; */
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0;
    position: relative;
}

/* Mobile tint overlay using body pseudo-element (all mobile browsers) */
@media (max-width: 768px) {
    body::after {
        content: '';
        position: fixed;
        top: env(safe-area-inset-top, 0);
        left: 0;
        right: 0;
        bottom: env(safe-area-inset-bottom, 0);
        background-color: var(--tint-color, rgba(0,0,0,0));
        mix-blend-mode: multiply;
        pointer-events: none;
        z-index: 9999;
        /* No transition by default - only when preset-transitioning or contact-popup-active class is on body */
        transition: background-color 0s;
        transform: scale(2);
    }
    
    /* Enable transition when preset is being changed */
    body.preset-transitioning::after {
        transition: background-color 0.3s ease-out;
    }
    
    /* Enable transition when contact popup is active */
    body.contact-popup-active::after {
        transition: background-color 0.3s ease-out !important;
    }
}

/* Desktop tint overlay using body pseudo-element (for contact popup dimming) */
@media (min-width: 769px) {
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background-color: var(--tint-color, rgba(0,0,0,0));
        mix-blend-mode: multiply;
        pointer-events: none;
        z-index: 9999;
        transition: background-color 0.3s ease-out;
        opacity: 1;
    }
    
    /* Show dimming when contact popup is active - opacity is always 1, only background-color changes */
    body.contact-popup-active::after {
        opacity: 1;
    }
}

/* --- GLOBAL TINT LAYER --- */
#global-tint {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-color: rgba(0,0,0,0);
    /* No transition by default - only when preset-transitioning class is on body */
    transition: none;
    mix-blend-mode: multiply; 
}

/* Enable transition when preset is being changed */
body.preset-transitioning #global-tint {
    transition: background-color 0.3s ease-out;
}

/* On mobile, hide global-tint - we use body::after instead */
@media (max-width: 768px) {
    #global-tint {
        display: none !important;
    }
}

/* --- SKY --- */
.sky-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    /* Use explicit height to ensure it extends properly */
    height: 100vh;
    height: 100lvh; /* Dynamic viewport height for mobile browsers */
    min-height: -webkit-fill-available; /* Safari mobile support */
    background-color: #080a10;
    overflow: visible;
    z-index: 0; 
}

canvas#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Prevent stretching - maintain aspect ratio */
    object-fit: contain;
    display: block;
    /* Ensure canvas sits above gradient but doesn't clip it */
    z-index: 1;
}

/* --- CLOUDS (OPTIMIZED) --- */
.cloud-parallax-wrapper { 
    position: fixed; 
    inset: 0; 
    pointer-events: none;
    /* Ensure clouds cover full viewport on mobile */
    height: 100vh;
    height: 100lvh; /* Dynamic viewport height for mobile */
}
.cloud-wrapper-back { z-index: 5; }
.cloud-wrapper-mid  { z-index: 20; }
.cloud-wrapper-front { z-index: 110; }

.cloud-img {
    position: absolute;
    width: 550px; 
    height: auto;
    will-change: transform, opacity;
    transform-origin: center center;
    opacity: 0;
    transition: opacity 0.5s ease;
    
    /* --- PERFORMANCE FIX --- */
    /* Removed the expensive 'filter: drop-shadow' */
    /* Added hardware acceleration hints */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Modern CSS-based cloud animation using CSS custom properties */
    /* All transform values stored as CSS variables for better performance */
    --parallax-speed: 1.3;
    --x-position: 0;
    --scroll-y: 0;
    --flip: 1;
    --base-scale: 1;
    
    /* Single transform using CSS custom properties - computed by browser */
    /* JavaScript updates variables, CSS handles transform computation */
    transform: 
        translate3d(
            calc(var(--x-position) * 1vw),
            calc(var(--scroll-y) * var(--parallax-speed) * -1px),
            0
        )
        scale(var(--base-scale))
        scaleX(var(--flip));
}


/* Layer-specific parallax speeds (will be set per-cloud via JS) */
.cloud-wrapper-back .cloud-img {
    --parallax-speed: 1.3;
}

.cloud-wrapper-mid .cloud-img {
    --parallax-speed: 1.8;
}

.cloud-wrapper-front .cloud-img {
    --parallax-speed: 2.8;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 15; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30vh; 
    /* overflow: hidden;  */
    pointer-events: none;
    will-change: height, padding-bottom; 
}


/* HEADER BACKGROUND */
.header-bg {
    position: absolute;
    inset: 0;
    z-index: -1; 
    background-color: rgb(8, 10, 16);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.4) 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.4) 60%, transparent 100%);
    opacity: 0; 
    will-change: opacity;
    display: block; /* Ensure it's visible by default */
}

.header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.header-blur-bg {
    /* Hide by default on all browsers */
    display: none;
}

/* Hide header-bg only when header has safari-mobile class (set by JavaScript) */
header.safari-mobile .header-bg {
    display: none !important;
}

/* Show header-blur-bg only when header has safari-mobile class */
header.safari-mobile .header-blur-bg {
    display: block;
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        header {
            top: 0px;
        }

        .header-blur-bg {
            width: 118%;
            height: 118%;
            position: absolute;
            border-radius: 25px;
            /* background: rgb(8, 10, 16, 0.2); */
            backdrop-filter: blur(2px);
            mask-image: radial-gradient(rgba(0, 0, 0, 1) 30%, rgba(255, 255, 255, 0) 60%);
            opacity: 0;
            will-change: opacity;
            transition: opacity 0.3s ease;
        }
    }
}


.brand-container {
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: auto; 
    pointer-events: auto; 
}

.logo-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform-origin: center center; 
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* --- LOGO FIXED --- */
.brand-logo-img {
    width: 120px; 
    height: auto;
    margin-right: 30px;
    filter: brightness(1.1) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 30px #D97D54) drop-shadow(0 0 50px #C05638);
    will-change: filter;
    transition: filter 0.4s var(--spring-ease);
}

header.is-sticky .brand-logo-img {
    filter: brightness(1.0) drop-shadow(0 10px 20px rgba(0,0,0,0.5)) !important;
}

.logo {
    margin: 0;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 6.4rem; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    text-align: left;
    white-space: nowrap;
    padding-right: 2px;
}

.tagline {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    color: #E6C9A8;
    text-align: center;
    font-size: 1.28rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    will-change: opacity;
    
    /* FIX FOR OFF-CENTER ISSUE: */
    /* Ensure text can wrap if container gets too small, and width respects viewport */
    white-space: nowrap; 
    width: max-content;
    max-width: 95vw; /* Prevent screen overflow */
}

/* Header App Badge */
.header-app-badge {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 70px; 
    will-change: opacity;
    transition: transform 0.3s var(--spring-card), filter 0.3s var(--spring-card);

    -webkit-user-select: none; /* Safari and Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

.header-app-badge img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,1.0));
}

@media (hover: hover) {
    .header-app-badge:hover {
        transform: translateX(-50%) scale(1.05); 
        filter: brightness(1.2);
    }
}

.header-app-badge:active {
    transform: translateX(-50%) translateY(2px) scale(0.975);
    filter: brightness(0.75);
}

/* --- TRACK & MONITOR --- */
.showcase-track {
    position: relative;
    height: 180vh; 
    z-index: 2;
    margin-top: 100vh; 
    margin-top: 100lvh; /* Dynamic viewport height for mobile */
}

.monitor-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible; 
    padding-top: 0; 
    padding-bottom: 0;
    gap: 2rem;
}

.monitor-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.monitor-bezel {
    width: min(55vw, 60vh); 
    aspect-ratio: 2336 / 1510;
    border-radius: 32px; 
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 100px rgba(192, 86, 56, 0.25);
    position: relative;
    z-index: 10;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.monitor-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px; 
    position: relative;
    overflow: hidden;
}

.monitor-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.monitor-dim-layer {
    position: absolute;
    inset: 0;
    background-color: black;
    opacity: 0; 
    will-change: opacity;
    z-index: 1; 
    transform: scale(1.05);
}

/* --- MONITOR TEXT --- */
.monitor-text {
    text-align: center;
    max-width: 700px; 
    padding: 0 20px;
    z-index: 10;
    margin-top: 1rem; 
}

.monitor-text h2, 
.monitor-text p {
    opacity: 0; 
    transform: translateY(60px);
    will-change: opacity, transform;
}

.monitor-text h2 {
    font-size: 3.25rem; 
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* margin-left: 30px;
    margin-right: 30px; */
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.monitor-text p {
    color: #E6D5C3;
    font-size: 1.6rem; 
    line-height: 1.5;
}

/* --- FEATURES SECTION --- */
.features-section {
    position: relative;
    padding: 0 2rem;
    margin-top: 5vh; 
    z-index: 10;
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.5rem; 
    max-width: 1100px;
    margin: 0 auto;
}

/* --- CARD (PSEUDO-ELEMENT BACKDROP FIX) --- */
.card {
    position: relative; /* Context for pseudo-element */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    
    /* Visuals moved to ::before to prevent stacking context flattening */
    background: transparent;
    border: none;
    box-shadow: none;
    /* backdrop-filter: none;
    -webkit-backdrop-filter: none; */
    
    border-radius: 50px;
    transition: transform 0.3s var(--spring-card);
    z-index: 1;
}

/* The Card Glass Layer */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1; /* Behind content */
    border-radius: 50px;
    
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    
    transition: box-shadow 0.3s var(--spring-card), border-color 0.3s var(--spring-card);
}

@media (hover: hover) {
.card:hover {
    transform: translateY(-5px);
}

.card:hover::before {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(192, 86, 56, 0.3);
    border-color: rgba(217, 125, 84, 0.5);
    }
}

/* Near-center styles for mobile (same as hover) */
.card.near-center {
    transform: translateY(-5px);
}

.card.near-center::before {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(192, 86, 56, 0.3);
    border-color: rgba(192, 86, 56, 0.5);
}

.card.near-center .feature-image-area img {
    transform: scale(1.0);
}

.card.near-center .settings-image-wrapper {
    filter: drop-shadow(0 10px 15px rgba(57, 23, 8, 0.6));
}

.card.near-center .card-icon {
    /* background: rgba(192, 86, 56, 0.15); */
    border-color: rgba(192, 86, 56, 0.5);
}

.card.near-center .app-ui-container::before {
    border-color: rgba(192, 86, 56, 0.15);
}

.card.near-center .app-ui-container-shadow {
    transform: scale(1.02);
}

.card.near-center .card-icon svg {
    fill: rgb(217, 125, 84);
}

.card-content-wrapper {
    padding: 2.5rem;
    padding-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2; /* Sit above glass */
}

.feature-image-area {
    width: 100%;
    padding: 2.5rem;
    /* max-width: 450px; */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* overflow: hidden; */ /* Removing overflow hidden to be safe, relying on masking or border-radius of img/before */
    flex-grow: 1;
    z-index: 2;
}

.feature-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s var(--spring-card);
}

@media (hover: hover) {
.card:hover .feature-image-area img {
    transform: scale(1.03);
    }
}

/* Settings image transition */
.settings-image-wrapper {
    position: relative;
    width: 100%;
    display: block;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
    transition: filter 0.5s var(--spring-card);
}

@media (hover: hover) {
.card:hover .settings-image-wrapper {
    filter: drop-shadow(0 10px 15px rgba(57, 23, 8, 0.6));
    }
}

img.settings-image-default {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s var(--spring-card);
    z-index: 1;
}

img.settings-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s var(--spring-card);
    z-index: 2;
}

.card.near-center .feature-image-area .settings-image-default {
    opacity: 0;
}

.card.near-center .feature-image-area .settings-image-hover {
    opacity: 1;
    transform: scale(1.0);
}

@media (hover: hover) {
    .card:hover .feature-image-area .settings-image-default {
        opacity: 0;
    }

    .card:hover .feature-image-area .settings-image-hover {
    opacity: 1;
    transform: scale(1.03);
    }
}

/* --- UPDATED: INLINE HEADER STYLES --- */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 16px; /* Space between icon and title */
    margin-bottom: 1rem;
}

.card-icon {
    width: 65px;
    height: 65px;
    background: rgba(15, 15, 15, 0.5); 
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(42, 53, 89, 0.5);
    flex-shrink: 0; /* Prevent icon from squashing */
    transition: background 0.5s var(--spring-card), border-color 0.5s var(--spring-card);
}

.card-icon {
    position: relative;
}

.card-icon svg {
    width: 60%;
    fill: #FFF; 
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.card-icon svg.icon-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.card-icon svg.icon-gradient path {
    fill: url(#iconGradient);
}

.card.near-center .card-icon svg:not(.icon-gradient) {
    opacity: 0;
}

.card.near-center .card-icon svg.icon-gradient {
    opacity: 1;
}

@media (hover: hover) {
.card:hover .card-icon {
    /* background: rgba(192, 86, 56, 0.15); */
    border-color: rgba(192, 86, 56, 0.5);
}

    .card:hover .card-icon svg:not(.icon-gradient) {
    opacity: 0;
}

    .card:hover .card-icon svg.icon-gradient {
    opacity: 1;
    }
}

.card-header-row h3 {
    color: #fff;
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    transition: transform 0.5s var(--spring-card);
    transform-origin: left center;
}

.card-header-row h3::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #eccfc1, #D97D54);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card.near-center .card-header-row h3 {
    transform: scale(1.05);
}

.card.near-center .card-header-row h3::after {
    opacity: 1;
}

@media (hover: hover) {
    .card:hover .card-header-row h3 {
        transform: scale(1.05);
    }

    .card:hover .card-header-row h3::after {
        opacity: 1;
    }
}

.card-content p {
    color: #E6D5C3; 
    line-height: 1.5;
    font-size: 1.17rem;
    margin: 0;
}

.bold {
    font-weight: 800;
    color: #D97D54;
    transition: color 0.5s var(--spring-card);
}

.card .bold {
    color: #d48d6f;
}

@media (hover: hover) {
    .card:hover .bold {
        color: #D97D54;
    }
}

.card.near-center .bold {
    color: #D97D54;
}

/* --- UI COMPONENT: APP CONTAINER (PSEUDO-ELEMENT BACKDROP FIX) --- */
.app-ui-container-shadow {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 38px;
    box-shadow: 0 10px 40px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s var(--spring-card); /* Smooth scale transitions */
}

.app-ui-container {
    width: 100%;
    position: relative;
    z-index: 10;
    max-width: 400px;
    overflow: hidden; /* Clip glow to container bounds */
    
    /* Visuals moved to ::before */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    
    border-radius: 38px;
    padding: 20px; 
    
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    /* color: #333; */
    display: flex;
    flex-direction: column;
    gap: 12px; 
    transform-origin: center center;
    
    /* Prevent text/element selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.app-ui-container * {
    /* Prevent text/element selection on all child elements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* The UI Glass Layer */
.app-ui-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 38px;

    border: 1px solid rgba(42, 53, 89, 0.25);
    
    /* The visual styles you requested */
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(5px) saturate(250%);
    -webkit-backdrop-filter: blur(5px) saturate(250%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);

    transition: border-color 0.5s var(--spring-card);
}

@media (hover: hover) {
.card:hover .app-ui-container::before {
    /* background: rgba(217, 125, 84, 0.1); */
        border-color: rgba(192, 86, 56, 0.15);
    }
}

/* The Shine Layer (Gradient Border) */
.app-ui-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 38px;
    padding: 1px; /* Thickness of the shine */
    
    /* Gradient: Bright Top-Left, Transparent Middle, Bright Bottom-Right */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.1));
    
    /* Mask to create border-only effect */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    pointer-events: none;
}

@media (hover: hover) {
.card:hover .app-ui-container-shadow {
        transform: scale(1.02);
    }
}

.ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 2; /* Above glow */
}

.ui-icon {
    width: 30px;
    height: 30px;
    color: #FFF;
    opacity: 0.9;
    position: relative;
    z-index: 2; /* Above glow */
}

img.ui-icon {
    width: 30px;
}

/* --- REDESIGNED SLIDER STYLING --- */
.ui-slider-track {
    flex-grow: 1;
    height: 10px; /* Thinner liquid tube */
    border-radius: 20px;
    position: relative;
    z-index: 2; /* Above glow */
    cursor: pointer;
    display: flex;
    align-items: center;
    
    /* Glass Track Style */
    background: rgb(255 255 255 / 10%); 
    /* box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 1px 1px rgba(255,255,255,0.1); */
    /* backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); */
    /* border: 1px solid rgba(255,255,255,0.08); */
}

/* Remove the old inner track line */
.ui-slider-track::before { display: none; }

.ui-slider-track.small { height: 8px; }

.ui-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    
    /* Liquid Glow */
    background: rgb(255,255,255);
    /* box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 0 8px rgba(217, 125, 84, 0.4); */
    
    /* Snappy transition */
    transition: width 0.05s var(--spring-ease); 
}

.ui-slider-fill.white { 
    background: #FFF;
    /* box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 0 12px rgba(255,255,255,0.6); */
}

.ui-slider-fill.small { top: 0; height: 100%; }

/* The Knob Container (Transparent parent) */
.ui-thumb {
    width: 34px; 
    height: 28px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    
    /* Visuals moved to ::before */
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 16px;
    z-index: 5;
    
    transition: left 0.05s var(--spring-ease);
}

/* The Knob Visual (Solid -> Glassy) */
.ui-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 0.15px solid rgba(255, 255, 255, 0.0);
    
    /* DEFAULT: Solid White */
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    /* border: none; */
    
    transition: background 0.2s var(--spring-ease), transform 0.2s var(--spring-ease), border-color 0.2s var(--spring-ease);
}

/* DRAGGING STATE: Becomes Glassy Bead - Only the dragged thumb */
.ui-thumb.dragging::before {
    background: rgba(255, 255, 255, 0.0);
    /* backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); */
    border-color: rgba(255, 255, 255, 0.75);

    transform: scale(1.25);
    box-shadow: inset 0 0 6px rgba(255,255,255,0.8);
}

/* Smooth transition for preset selection */
.ui-slider-track.preset-transitioning .ui-slider-fill {
    transition: width 0.4s var(--spring-slider) !important;
}

.ui-slider-track.preset-transitioning .ui-thumb {
    transition: left 0.4s var(--spring-slider) !important;
}

/* ZERO LATENCY: Remove movement transitions during drag */
.ui-slider-track.dragging .ui-slider-fill,
.ui-slider-track.dragging .ui-thumb {
    transition: none !important;
}

.ui-thumb.small { width: 27px; height: 22px; }

.ui-label-center {
    text-align: center;
    font-size: 14px; 
    font-weight: 500;
    color: rgb(171, 173, 174);
    margin-top: -8px;
    user-select: none;
    position: relative; z-index: 5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Mouse glow effect - appears over background but behind UI elements */
.mouse-glow {
    position: absolute;
    width: 750px;
    height: 750px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0; /* Above ::before background (z-index: -1) but below UI elements in normal flow */
    opacity: 1; /* Always visible, control visibility via ::before */
    transform: translate(-50%, -50%);
}

.mouse-glow::before {
    content: "";
    position: absolute;
    width: 750px;
    height: 750px;
    inset: 0;
    border-radius: 50%;
    backdrop-filter: brightness(2.2);
    -webkit-mask-image: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 20%, rgba(0, 0, 0, 1) 75%);
    -webkit-mask-mode: luminance;
    mask-image: radial-gradient(circle,rgba(255, 255, 255, 1) 0%, rgb(114, 114, 114) 13%, rgba(43, 43, 43, 1) 32%, rgba(0, 0, 0, 1) 63%);
    mask-mode: luminance;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mouse-glow.active::before {
    opacity: 1;
}
.ui-label-center.small { font-size: 12px; margin-top: -10px; }

.sub-displays-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-display-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 11px 16px;
}

.sub-display-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #FFF;
    margin-bottom: 10px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

img.sub-display-title-icon {
    width: 15px;
    height: 15px;
    opacity: 0.9;
    display: inline-block;
    vertical-align: middle;
}

.sub-display-box .ui-label-center {
    margin-top: 2px;
}

.sub-display-box img.ui-icon {
    width: 24px;
}

.ui-slider-track.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* Presets */
.ui-presets {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    padding-bottom: 15px;
    margin-top: 5px;
    position: relative;
    z-index: 2; /* Above glow */
}

.preset-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
    cursor: pointer;
    transition: transform 0.25s var(--spring-card);
    position: relative;
    z-index: 2; /* Above glow */
}
@media (hover: hover) {
.preset-opt:hover { transform: scale(1.1); }
    .preset-opt:active { transform: scale(1.0); }
}

@media (hover: none) {
    .preset-opt:active { transform: scale(0.9); }
}

.preset-color {
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgb(0 0 0 / 60%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 2px 6px rgba(0,0,0,0.15);
    transition: border 0.2s var(--spring-ease), transform 0.2s var(--spring-ease);
}

.p-neutral {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 0 6px 5px rgb(0 0 0 / 20%)
}

.p-neutral { background: white; }
.p-sepia { background: #fde6a8; }
.p-warm { background: #f5b06e; }
.p-night { background: #ea483b; }

.preset-name {
    font-size: 13px; 
    color: rgb(171, 173, 174);
    font-weight: 500;
}

.preset-opt.active .preset-color {
    border: 3px solid #FFF;
    transform: scale(1.05);
}
.preset-opt.active .preset-name { 
    color: #FFF; 
    font-weight: 600; 
}

/* --- KEYBOARD SHORTCUTS VISUAL (LOOPED ANIMATION) --- */
.shortcuts-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px; 
    width: 100%;
    height: 100%;
    padding-bottom: 30px;
}

.shortcut-icon-container {
    width: 90px; 
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon {
    width: 80px; 
    height: 80px;
    fill: #F2C5A0; 
    filter: drop-shadow(0 0 25px rgba(255, 160, 120, 1.0)); 
}

.keys-container {
    display: flex;
    gap: 18px; 
    perspective: 800px; 
}

.key-cap {
    width: 74px; 
    height: 74px;
    background: linear-gradient(145deg, #3a3a3a, #252525);
    border-radius: 20px; 
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; 
    font-weight: 500;
    color: #ddd;
    transform-style: preserve-3d;
    transition: transform 0.1s var(--spring-ease), box-shadow 0.1s var(--spring-ease);
}

.key-cap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.5);
}

.key-cap.held {
    transform: translateY(3px); 
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
}

.key-cap.action {
    position: relative;
}

/* Action Icon */
svg.key-symbol-icon {
    width: 28px; 
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(217, 125, 84, 0.5));
    fill: #ecf0f1;
}

.key-cap.action .key-symbol-icon {
    /* ROTATION ANIMATION APPLIED HERE */
    animation: arrowFlip 8s infinite;
}

/* --- 8 SECOND ANIMATION LOOP --- */

@keyframes rhythmTap {
    /* Dimming */
    0%, 10% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
    12.5% { transform: translateY(5px); box-shadow: 0 2px 5px rgba(0,0,0,0.4); } /* Tap 1 */
    15%, 22.5% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
    25% { transform: translateY(5px); box-shadow: 0 2px 5px rgba(0,0,0,0.4); } /* Tap 2 */
    27.5%, 35% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
    37.5% { transform: translateY(5px); box-shadow: 0 2px 5px rgba(0,0,0,0.4); } /* Tap 3 */
    40%, 60% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); } /* PAUSE */
    
    /* Brightening */
    62.5% { transform: translateY(5px); box-shadow: 0 2px 5px rgba(0,0,0,0.4); } /* Tap 1 */
    65%, 72.5% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
    75% { transform: translateY(5px); box-shadow: 0 2px 5px rgba(0,0,0,0.4); } /* Tap 2 */
    77.5%, 85% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
    87.5% { transform: translateY(5px); box-shadow: 0 2px 5px rgba(0,0,0,0.4); } /* Tap 3 */
    90%, 100% { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.4); } /* PAUSE */
}

.key-cap.tapping { animation: rhythmTap 8s infinite; }

/* ARROW ROTATION (FLIP) - Updated to be FASTER (6% window instead of 10%) */
@keyframes arrowFlip {
    0%, 45% { transform: rotate(0deg); }  /* Hold Down */
    51% { transform: rotate(180deg); }       /* Finish Flip Up (6% duration) */
    94% { transform: rotate(180deg); }       /* Hold Up */
    100% { transform: rotate(360deg); }      /* Finish Flip Down (6% duration) */
}

/* Sun Dimming/Brightening - Synced Snappy Interpolation */
.sun-anim { animation: sunCycle 8s infinite; }

@keyframes sunCycle {
    /* --- Start Full (Brighter & Larger) --- */
    0% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 30px rgba(255, 180, 140, 1.0)); }

    /* Tap 1 Down (12.5%) -> Snappy Transition (13.5%) */
    12.5% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 30px rgba(255, 180, 140, 1.0)); }
    13.5%, 22.5% { opacity: 0.9; transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(217, 125, 84, 0.8)); }

    /* Tap 2 Down (25%) -> Snappy Transition (26%) */
    25% { opacity: 0.9; transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(217, 125, 84, 0.8)); }
    26%, 35% { opacity: 0.7; transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(217, 125, 84, 0.5)); }

    /* Tap 3 Down (37.5%) -> Snappy Transition (38.5%) -> Hold Low */
    37.5% { opacity: 0.7; transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(217, 125, 84, 0.5)); }
    38.5%, 62.5% { opacity: 0.4; transform: scale(0.85); filter: drop-shadow(0 0 4px rgba(217, 125, 84, 0.3)); }

    /* Tap 4 (62.5%) - Brighten -> Snappy (63.5%) */
    62.5% { opacity: 0.4; transform: scale(0.85); filter: drop-shadow(0 0 4px rgba(217, 125, 84, 0.3)); }
    63.5%, 72.5% { opacity: 0.7; transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(217, 125, 84, 0.5)); }

    /* Tap 5 (75%) -> Snappy (76%) */
    75% { opacity: 0.7; transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(217, 125, 84, 0.5)); }
    76%, 85% { opacity: 0.9; transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(217, 125, 84, 0.8)); }

    /* Tap 6 (87.5%) -> Snappy (88.5%) -> Back to Max */
    87.5% { opacity: 0.9; transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(217, 125, 84, 0.8)); }
    88.5%, 100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 30px rgba(255, 180, 140, 1.0)); }
}

.key-symbol {
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: -apple-system, sans-serif;
}

/* ========== BUTTON ========== */
/* Defs */
@property --angle-1 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -75deg;
}

@property --angle-2 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -45deg;
}

:root {
    --global--size: clamp(2rem, 4vw, 5rem);
    --anim--hover-time: 350ms;
    --anim--hover-ease: cubic-bezier(0.4, 0.0, 0.2, 1); /* Subtle spring animation */
    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* Subtle spring for all animations */
    --spring-card: cubic-bezier(.31,.84,.45,1.47); /* Subtle spring for all animations */
    --spring-slider: cubic-bezier(.31,.84,.45,1.05);
    
    --global--color: rgb(192, 86, 56);
    
    --global--red: 192;
    --global--green: 86;
    --global--blue: 56;
}

/* Header Content Wrapper */
.header-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

/* Button Wrap Container */
.button-wrap {
    position: absolute;
    right: 2%;
    z-index: 2;
    border-radius: 999vw;
    background: transparent;
    pointer-events: none; /* Disabled by default, enabled by JavaScript when visible */
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    opacity: 0; /* Start hidden, JavaScript will animate it */
}

/* Ensure button is not clickable when wrapper is hidden */
.button-wrap:not(.visible) .button-download {
    pointer-events: none !important;
}

/* Button Shadow Container */
.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));
    -webkit-filter: blur(clamp(2px, 0.125em, 12px));
    -moz-filter: blur(clamp(2px, 0.125em, 12px));
    -ms-filter: blur(clamp(2px, 0.125em, 12px));
    overflow: visible;
    pointer-events: none;
}

/* Shadow */
.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;
}

/* ========== BUTTON BASE STYLES ========== */

.button-download {
    /* Basic Styling */
    --border-width: clamp(1px, 0.0625em, 4px);
    border-color: var(--global--color);
    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(var(--global--red), var(--global--green), var(--global--blue), 0.05),
        rgba(var(--global--red), var(--global--green), var(--global--blue), 0.25),
        rgba(var(--global--red), var(--global--green), var(--global--blue), 0.05)
    );
    border-radius: 999vw;
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 1.0em -0.1em rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.2em 0.25em inset rgba(var(--global--red), var(--global--green), var(--global--blue), 0.2),
        0 0 0 0 rgba(var(--global--red), var(--global--green), var(--global--blue), 1);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    -moz-backdrop-filter: blur(2.5px);
    -ms-backdrop-filter: blur(2.5px);
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

@media (hover: hover) {
.button-download:hover {
    transform: scale(0.975);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    -moz-backdrop-filter: blur(1px);
    -ms-backdrop-filter: blur(1px);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0 0 0 rgba(var(--global--red), var(--global--green), var(--global--blue), 1);
    }
}

/* Button Text */
.button-download span {
    position: relative;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    letter-spacing: -0.05em;
    font-weight: 600;
    font-size: 1em;
    color: #E6D5C3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0em 0.25em 0.1em rgba(0, 0, 0, 0.1);
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    padding-inline: 1.25em;
    padding-block: 0.7em;
}

@media (hover: hover) {
.button-download:hover span {
    text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
}

.button-download:hover span::after {
    background-position: 25% 50%;
    }
}

.button-download:active span::after {
    background-position: 50% 15%;
    --angle-2: -15deg;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .button-download span::after,
    .button-download:active span::after {
        --angle-2: -45deg;
    }
}

/* ========== BUTTON OUTLINE ========== */

/* Outline */
.button-download::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: linear-gradient(180deg, rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5), rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5));
    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),
        --angle-1 500ms var(--spring-ease);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5);
}

/* Shadow Hover */
@media (hover: hover) {
.button-wrap:has(button:hover) .button-shadow {
    filter: blur(clamp(2px, 0.0625em, 6px));
    -webkit-filter: blur(clamp(2px, 0.0625em, 6px));
    -moz-filter: blur(clamp(2px, 0.0625em, 6px));
    -ms-filter: blur(clamp(2px, 0.0625em, 6px));
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

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

.button-download:active {
    transform: scale(0.9);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    -moz-backdrop-filter: blur(1px);
    -ms-backdrop-filter: blur(1px);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0 0 0 rgba(var(--global--red), var(--global--green), var(--global--blue), 1);
}

.button-download:active span {
    text-shadow: 0.0 0.0em 0.0em rgba(0, 0, 0, 0.0);
}


/* --- DOWNLOAD SECTION --- */
.download-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    margin-top: 10rem; 
    display: flex;
    justify-content: center;
}

.download-container {
    /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%); */
    /* backdrop-filter: blur(4px); */
    /* filter: blur(4px); */
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    /* border-top: 1px solid rgba(255, 255, 255, 0.15); */
    padding: 4rem 2rem;
    border-radius: 40px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* mask-image: radial-gradient(circle at center, rgb(255, 255, 255) 0%, #000 100%);
    mask-mode: luminance; */
    /* box-shadow: 0 20px 60px rgba(0,0,0,0.4); */
}

.app-icon-large {
    display: inline-block;
    width: 128px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 50px rgba(217, 125, 84, 0.2);
    margin-bottom: 2rem;
    transition: transform 0.3s var(--spring-card), box-shadow 0.3s var(--spring-card), filter 0.3s var(--spring-card);
    text-decoration: none;
    cursor: pointer;
}

.app-icon-large img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

@media (hover: hover) {
.app-icon-large:hover {
        transform: scale(1.05) rotate(-3deg);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 50px rgba(217, 125, 84, 0.5);
    }
}

.app-icon-large.near-center {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 50px rgba(217, 125, 84, 0.5);
}

.app-icon-large:active {
    transform: scale(0.95) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 50px rgba(217, 125, 84, 0.2);
    filter: brightness(0.75);
}

.download-title {
    font-size: 2.65rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    line-height: 1.1;
}

.download-text {
    color: #E6D5C3;
    font-size: 1.28rem;
    margin-bottom: 2.5rem;
    max-width: 400px;
    line-height: 1.5;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s var(--spring-card), filter 0.3s var(--spring-card);

    -webkit-user-select: none; /* Safari and Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

.app-store-badge img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,1.0));
}

@media (hover: hover) {
.app-store-badge:hover {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.app-store-badge:active {
    transform: translateY(2px) scale(0.975); 
    filter: brightness(0.75);
}

/* --- FAQ --- */
.faq-section {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 100px;
    margin-top: 10rem; 
}

.section-title {
    text-align: center;
    font-size: 2.96rem;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-item {
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: 40px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s var(--spring-card), border-color 0.3s var(--spring-card), transform 0.3s var(--spring-card), filter 0.3s var(--spring-card);
}

@media (hover: hover) {
    .faq-item:hover {
        transform: scale(1.025);
        filter: brightness(1.1);
    }
}

.faq-item:active {
    transform: scale(0.975);
    filter: brightness(0.9);
}

.faq-item.active {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(192, 86, 56, 0.3);
    border-color: rgba(217, 125, 84, 0.5);
}

.faq-item.active .faq-question {
    color: #D97D54;
    font-weight: 600;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.35rem 1.7rem;
    background: transparent;
    border: none;
    color: #FFE8D6; 
    font-size: 1.28rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    gap: 25px;
    justify-content: space-between;
    align-items: center;
    transition: color 0.5s var(--spring-card);
}

.faq-question span {
    display: inline-block;
    font-size: 3rem;
    font-weight: 500;
    transition: transform 0.5s var(--spring-card);
    transform-origin: center;
    transform: translateY(-3px);
    line-height: 0;
}

.faq-item.active .faq-question span {
    transform: translateY(-2px) rotate(45deg);
}

.faq-answer-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--spring-card); }
.faq-item.active .faq-answer-wrapper { grid-template-rows: 1fr; }
.faq-answer-content { overflow: hidden; }
.faq-text-padding { 
    padding: 0 1.8rem 0 1.8rem; 
    padding-bottom: 0;
    color: #E6D5C3; 
    line-height: 1.5; 
    font-size: 1.1rem;
    transition: padding-bottom 0.525s var(--spring-card);
}
.faq-item.active .faq-text-padding {
    padding-bottom: 1.8rem;
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 5rem 1.5rem 2rem 1.5rem;
    margin-top: 5rem;
    margin-bottom: 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(5px); */
    background: linear-gradient(0deg,#080a10 25%, rgba(0, 0, 0, 0) 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2.0rem;
}

.footer-links .link {
    font-size: 0.96rem;
}

@media (max-width: 560px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.footer-copyright {
    color: #E6D5C3;
    font-size: 0.96rem;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

/* Footer copyright link: same as contact button (link + SVG underline), width = text only, font matches copyright */
.footer-copyright__link {
    display: inline-block;
    vertical-align: baseline;
    width: fit-content;
    max-width: 100%;
}
.footer-copyright .footer-copyright__link {
    font-size: 0.96rem; /* override .link so it matches © and 2026 */
}

.link {
    cursor: pointer;
    font-size: 1.15rem;
    position: relative;
    white-space: nowrap;
    color: var(--color-text);
    text-decoration: none;
    color: #E6D5C3;
    font-weight: 400;
    transition: all 0.3s var(--spring-card);
}

@media (hover: hover) {
    .link:hover {
        color: #D97D54;
    }

    .link:hover .link__graphic {
        stroke: #D97D54;
    }

    .link:hover .link__graphic--slide {
        transform: translate3d(-66.6%, 0, 0);
    }
}

@media (hover: none) {
    .link:active .link__graphic {
        stroke: #D97D54;
    }
}

.link:active {
    transform: scale(0.95);
    color: #D97D54;
    opacity: 0.6;
}

.link::before,
.link::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}

.link::before {
    content: '';
    /* show by default */
}

.link--iocaste {
    overflow: hidden;
    padding-bottom: 4px;
    text-shadow: 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 
                 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10, 0 0 1px #080a10;
}

.link__graphic {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    fill: none;
    stroke: #E6D5C3;
    stroke-width: 4px;
}

.link__graphic--slide {
    top: -4px;
    stroke-width: 4px;
    transition: transform 0.7s;
    transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
    z-index: -1;
}



/* --- CONTACT POPUP --- */
.contact-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 4rem);
    max-width: 600px;
    max-height: calc(100vh - 4rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    max-height: calc(100dvh - 4rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 100%);
    backdrop-filter: blur(9px) saturate(1.5);
    -webkit-backdrop-filter: blur(9px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 55px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(192, 86, 56, 0.2);
    padding: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in, transform 0.2s ease-in;
    margin: 0;
    box-sizing: border-box;
    /* Ensure proper centering at all sizes */
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.contact-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s ease-out, transform 0.45s var(--spring-card);
}

.contact-popup-header {
    position: relative;
    flex-shrink: 0;
    padding: 2.5rem 2.5rem 0.8rem 2.5rem;
}

.contact-popup-header-content {
    width: 100%;
}

.contact-popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(217, 125, 84, 0.1);
    border-radius: 50%;
    color: #E6D5C3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--spring-ease), background 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 1;
}

@media (hover: hover) {
    .contact-popup-close:hover {
        background: rgba(217, 125, 84, 0.2);
        transform: scale(1.15);
    }
}

.contact-popup-close:active {
    transform: scale(0.9);
    background: rgba(217, 125, 84, 0.05);
}

.contact-popup-close:active .contact-popup-close-icon {
    opacity: 0.5;
}

.contact-popup-scrollable {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 2.5rem;
    min-height: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.contact-popup-footer {
    flex-shrink: 0;
    padding: 1.0rem 2.5rem 2.5rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-popup-close-icon {
    padding: 30%;
    fill: #D97D54;
}

.contact-popup-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-popup-subtitle {
    color: #E6D5C3;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.5;
    padding-right: 0;
    max-width: 100%;
}

.contact-popup-subtitle a {
    color: #D97D54;
    font-weight: 500;
    transition: opacity 0.18s ease-out;
}

@media (hover: hover) {
    .contact-popup-subtitle a:hover {
        opacity: 0.8;
    }
}

.contact-popup-subtitle a:active {
    opacity: 0.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
    padding-top: 1rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}

.contact-form-label {
    color: #E6D5C3;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
    outline: none;
    box-sizing: border-box;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(217, 125, 84, 0.5);
    box-shadow: 0 0 14px 0px rgba(217, 125, 84, 0.25);
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: rgba(230, 213, 195, 0.5);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* File attachment styles */
.contact-file-label-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.contact-file-label {
    display: block;
    cursor: pointer;
    flex-shrink: 0;
}

.contact-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.contact-file-button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.625rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #E6D5C3;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.15s var(--spring-ease), color 0.15s ease-out;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

@media (hover: hover) {
    .contact-file-button:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(217, 125, 84, 0.5);
        box-shadow: 0 0 14px 0px rgba(217, 125, 84, 0.25);
    }
}

.contact-file-button:active {
    background: rgba(255, 255, 255, 0.08);
    color: #8d8378;
    transform: scale(0.95);
    box-shadow: 0 0 8px 0px rgba(217, 125, 84, 0.25);
}

.contact-file-button:active .contact-file-icon {
    stroke: #73432e;
}

.contact-file-icon {
    width: 18px;
    height: 18px;
    stroke: #D97D54;
    flex-shrink: 0;
    transition: stroke 0.15s ease-out;
}

.contact-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    max-height: 75px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 15px;
    min-height: 0;
}

.contact-file-list:empty {
    display: none;
}

.contact-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    font-size: 0.9rem;
}

.contact-file-item:not(.existing):not(.removing) {
    opacity: 0;
    transform: translateY(-10px);
    animation: fileItemFadeIn 0.3s ease-out forwards;
}

.contact-file-item.removing {
    animation: fileItemFadeOut 0.3s ease-out forwards;
}

@keyframes fileItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fileItemFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        border-width: 0;
        min-height: 0;
    }
}

.contact-file-item.removing {
    pointer-events: none;
}

.contact-file-name {
    flex: 1;
    color: #E6D5C3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.contact-file-size {
    color: rgba(230, 213, 195, 0.6);
    font-size: 0.85rem;
    white-space: nowrap;
}

.contact-file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(230, 213, 195, 0.7);
    cursor: pointer;
    transition: background 0.2s ease-out, color 0.2s ease-out, transform 0.15s var(--spring-card);
    flex-shrink: 0;
}

@media (hover: hover) {
    .contact-file-remove:hover {
        /* background: rgba(217, 125, 84, 0.15); */
        color: #D97D54;
    }
}

.contact-file-remove:active {
    transform: scale(0.9);
    color: #73432e;
}

.contact-file-total {
    font-size: 0.85rem;
    color: rgba(230, 213, 195, 0.7);
    white-space: nowrap;
    margin-right: 0;
}

.contact-file-warning {
    font-size: 0.85rem;
    color: #e74c3c;
    margin-left: 0.75rem;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

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

.contact-file-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(217, 125, 84, 0.15);
    border: 1px solid rgba(217, 125, 84, 0.4);
    border-radius: 15px;
    color: #D97D54;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease-out;
}

.contact-file-error svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    stroke: #D97D54;
}

.contact-file-error span {
    flex: 1;
}

.contact-form-submit {
    /* Basic Styling */
    --border-width: clamp(1px, 0.0625em, 4px);
    border-color: var(--global--color);
    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(var(--global--red), var(--global--green), var(--global--blue), 0.05),
        rgba(var(--global--red), var(--global--green), var(--global--blue), 0.25),
        rgba(var(--global--red), var(--global--green), var(--global--blue), 0.05)
    );
    border-radius: 999vw;
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 1.0em -0.1em rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.2em 0.25em inset rgba(var(--global--red), var(--global--green), var(--global--blue), 0.2),
        0 0 0 0 rgba(var(--global--red), var(--global--green), var(--global--blue), 1);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    -moz-backdrop-filter: blur(2.5px);
    -ms-backdrop-filter: blur(2.5px);
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (hover: hover) {
    .contact-form-submit:hover {
        transform: scale(0.975);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        -moz-backdrop-filter: blur(1px);
        -ms-backdrop-filter: blur(1px);
        box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
            inset 0 -0.125em 0.125em rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
            0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
            0 0 0.05em 0.1em inset rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
            0 0 0 0 rgba(var(--global--red), var(--global--green), var(--global--blue), 1);
    }
}

/* Button Text */
.contact-form-submit span {
    position: relative;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    letter-spacing: -0.05em;
    font-weight: 600;
    font-size: 1.25em;
    color: #E6D5C3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0em 0.25em 0.1em rgba(0, 0, 0, 0.1);
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    padding-inline: 1.5em;
    padding-block: 0.75em;
}

@media (hover: hover) {
    .contact-form-submit:hover span {
        text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
    }
}

/* Outline */
.contact-form-submit::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: linear-gradient(180deg, rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5), rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5));
    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),
        --angle-1 500ms var(--spring-ease);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5);
}

.contact-form-submit:active {
    transform: scale(0.9);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    -moz-backdrop-filter: blur(1px);
    -ms-backdrop-filter: blur(1px);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(var(--global--red), var(--global--green), var(--global--blue), 0.5),
        0 0 0 0 rgba(var(--global--red), var(--global--green), var(--global--blue), 1);
}

.contact-form-submit:active span {
    text-shadow: 0.0 0.0em 0.0em rgba(0, 0, 0, 0.0);
}

/* Loading state for submit button */
.contact-form-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .contact-popup {
        border-radius: 50px;
        max-height: calc(100vh - 2.5rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
        max-height: calc(100dvh - 2.5rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    }
    
    .contact-popup-header {
        padding: 2.5rem 2.5rem 0.0rem 2.5rem;
    }
    
    .contact-popup-scrollable {
        padding: 0 2.5rem;
    }
    
    .contact-popup-footer {
        padding: 0.85rem 2.5rem 2.5rem 2.5rem;
    }

    .contact-popup-title {
        font-size: 2rem;
    }

    .contact-popup-subtitle {
        font-size: 1rem;
        line-height: 1.2;
    }

    .contact-popup-close {
        top: 1.25rem;
        right: 1.25rem;
        width: 45px;
        height: 45px;
    }
    .contact-form-submit span {
        font-size: 1.1em;
    }

    .contact-form {
        gap: 1.1rem;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
        border-radius: 18px;
    }

    .contact-file-button {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .contact-form {
        gap: 1.0rem;
    }

    .contact-popup {
        border-radius: 45px;
        width: calc(100% - 3rem);
        max-height: calc(100vh - 3rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
        max-height: calc(100dvh - 3rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    }
    
    .contact-popup-header {
        padding: 2rem 2rem 0rem 2rem;

    }
    
    .contact-popup-scrollable {
        padding: 0 2rem;
    }
    
    .contact-popup-footer {
        padding: 0.75rem 2rem 2rem 2rem;
    }

    .contact-popup-title {
        font-size: 1.75rem;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .contact-file-list {
        max-height: 75px;
    }

    .contact-form-submit {
        /* padding: 0.875rem 1.5rem; */
        font-size: 0.95rem;
    }

    .contact-popup-close {
        width: 42.5px;
        height: 42.5px;
    }
}

@media (max-width: 550px) {
    .contact-form {
        gap: 0.75rem;
    }
    .contact-file-label-wrapper {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .contact-file-warning {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .contact-file-total {
        margin-left: 5px;
    }

    .contact-form-input {
        padding: 0.8rem;
    }
}

@media (max-width: 450px) {
    .contact-popup-header {
        padding: 1.75rem 1.75rem 0rem 1.75rem;
    }

    .contact-popup-scrollable {
        padding: 0 1.75rem;
    }

    .contact-popup-footer {
        padding: 0.75rem 1.75rem 1.75rem 1.75rem;
    }
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; gap: 3rem; }
    .features-section { 
        padding: 0 9rem; 
        margin-top: 3vh; /* Reduced gap on smaller screens */
    }
}

@media (max-height: 800px) {
    .monitor-bezel { width: min(50vw, 45vh); }
    .monitor-text h2 { font-size: 2.65rem; margin-bottom: 0.5rem; }
    .monitor-text p { font-size: 1.28rem; }
    .monitor-sticky-container { gap: 1.5rem; padding-top: 0; }
    @media (max-width: 768px) { .monitor-bezel { width: 85vw; } }
}

@media (max-width: 768px) {
    .button-download span {
        font-size: 1em;
        padding-inline: 1.1em;
        padding-block: 0.7em;
    }

    .button-wrap {
        position: absolute;
        right: 2.5%;
        z-index: 2;
        border-radius: 999vw;
        background: transparent;
        pointer-events: none;
        transition: all var(--anim--hover-time) var(--anim--hover-ease);
    }

    .logo { font-size: 5.1rem; }
    .brand-logo-img { width: 90px; margin-right: 20px; }
    
    /* UPDATED: FIXED TAGLINE SPACING ISSUE */
    .tagline { 
        font-size: 0.98rem; /* Slightly smaller to fit single line */
        margin-top: 10px; 
        width: auto; 
        white-space: nowrap; /* Prevent wrapping */
        max-width: 95vw; /* Ensure it fits screen */
    }
    
    .header-app-badge { margin-top: 50px; }
    .header-app-badge img { height: 44px; }
    .monitor-text h2 { font-size: 2.5rem; line-height: 1.2; }
    .monitor-text p { font-size: 1.24rem; }
    .download-title { font-size: 2rem; font-weight: 600; }
    .section-title { font-size: 2.5rem; margin-bottom: 2.5rem; }
    .monitor-bezel { width: 90vw; border-radius: 32px; padding: 12px; }
    .monitor-sticky-container { gap: 1.5rem; }
    .features-section { 
        padding: 0 1.5rem; 
        margin-top: 2vh; /* Reduced gap on mobile */
    }
    /* .feature-image-area { height: 200px; } */
    .card-header-row h3 { font-size: 1.65rem; }
    .card-content p { font-size: 1.15rem; }
    .card-icon { width: 55px; height: 55px; border-radius: 17px; }
    .card-icon img { width: 60%; }
    .download-section { margin-top: 6rem; padding: 0 1.5rem; }
    .download-container { padding: 3rem 1.5rem; }
    .faq-section { margin-top: 6rem; margin-bottom: 50px; }
    .showcase-track { 
        height: 180vh;
        height: 180lvh; /* Dynamic viewport height for mobile */
        margin-top: 100vh;
        margin-top: 100lvh; /* Use dynamic viewport for better mobile support */
    }
    
    .monitor-sticky-container {
        height: 100vh; /* Full viewport height for proper centering */
        height: 100lvh; /* Dynamic viewport height for mobile */
        padding-top: 0; /* Remove padding to allow proper centering */
        padding-bottom: 0;
    }
    
    /* Ensure sky container extends to cover full screen on mobile */
    .sky-container {
        height: 120vh; /* Extend beyond viewport to cover address bar area */
        height: 120lvh;
    }
    
    
    .footer-content {
        gap: 1rem;
    }
    .site-footer {
        padding: 1.25rem 1.5rem;
        padding: 5rem 1.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 600px) {   
    .logo { font-size: 3.9rem; }
    .brand-logo-img { width: 70px; margin-right: 15px; }
    
    .button-download span {
        font-size: 0.95em;
        padding-inline: 1.0em;
        padding-block: 0.6em;
    }
    
    .card-content-wrapper { padding: 1.5rem; padding-bottom: 0; }
    .feature-image-area { padding: 1.5rem; }
    .card { border-radius: 40px;}
    .card::before { border-radius: 40px;}

    .card-header-row {
        gap: 12px;
    }
    
    /* Make UI elements slightly smaller on mobile */
    .app-ui-container-shadow {
        max-width: 340px;
        border-radius: 32px;
    }
    
    .app-ui-container {
        max-width: 340px;
        padding: 18px;
        gap: 10px;
        border-radius: 32px;
    }
    
    .app-ui-container::before,
    .app-ui-container::after {
        border-radius: 32px;
    }

    .ui-presets {
        padding-bottom: 5px;
    }
    
    .ui-icon {
        width: 25px;
        height: 25px;
    }
    
    img.ui-icon {
        width: 25px;
        height: auto;
    }
    
    .ui-slider-track {
        height: 8px;
    }
    
    .ui-thumb {
        width: 32px;
        height: 27px;
    }
    
    .ui-thumb.small {
        width: 28px;
        height: 24px;
    }

    .ui-thumb::before {
        border-radius: 14px;
    }

    .ui-thumb.small::before {
        border-radius: 12px;
    }
    
    .ui-label-center {
        font-size: 11px;
    }
    
    .ui-label-center.small {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .ui-row {
        gap: 16px;
    }
    
    .preset-color {
        width: 34px;
        height: 34px;
    }
    
    .preset-name {
        font-size: 11px;
    }
    
    .preset-opt {
        gap: 7px;
    }
    
    .sub-displays-container {
        gap: 10px;
    }
    
    .sub-display-box {
        padding: 9px 13px;
    }
    
    .sub-display-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    img.sub-display-title-icon {
        width: 13px;
        height: 13px;
    }
    
    .sub-display-box img.ui-icon {
        width: 20px;
    }
    
    /* Make keycaps slightly smaller on mobile */
    .keys-container {
        gap: 15px;
    }
    
    .key-cap {
        width: 63px;
        height: 63px;
        border-radius: 17px;
        font-size: 25px;
    }

    .key-cap::before {
        border-radius: 17px;
    }
    
    .key-cap.held {
        transform: translateY(2.5px);
    }
    
    svg.key-symbol-icon {
        width: 24px;
        height: 24px;
    }

    .faq-item {
        border-radius: 35px;
    }

    .faq-section {
        padding: 0 1.5rem;
    }

    .faq-question {
        padding: 1.0rem 1.5rem;
    }

    @media (hover: none) {
        img.settings-image-hover, img.settings-image-default {
            transform: scale(0.95);
        }
    }

    .link {
        font-size: 1.05rem;
    }
}

@media (max-width: 400px) {
    /* Header adjustments */
    .header-content {
        padding: 0 1rem;
    }
    
    /* Increase slider knob touch area on mobile */
    .ui-thumb {
        width: 44px;
        height: 40px;
    }
    
    .ui-thumb.small {
        width: 36px;
        height: 32px;
    }

    .logo {
        font-size: 3rem;
    }

    .brand-logo-img {
        width: 55px;
        margin-right: 12px;
    }

    .tagline {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .header-app-badge {
        margin-top: 40px;
    }

    .header-app-badge img {
        height: 38px;
    }

    /* Contact Popup adjustments for very small screens */
    .contact-popup {
        border-radius: 35px;
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0));
        max-height: calc(100vh - 1rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
        max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    }
    
    .contact-popup-header {
        padding: 1.5rem 1.5rem 0rem 1.5rem;
    }
    
    .contact-popup-scrollable {
        padding: 0 1.5rem;
    }
    
    .contact-popup-footer {
        padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    }

    .contact-popup-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .contact-popup-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .contact-popup-close {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    .contact-form-textarea {
        resize: vertical;
        min-height: 100px;
    }

    .contact-form {
        gap: 0.55rem;
    }
    
    .contact-file-list {
        max-height: 60px;
        border-radius: 10px;
    }
    
    .contact-file-button {
        padding: 0.5rem 0.6rem;
        font-size: 0.875rem;
        border-radius: 12px;
    }
    
    .contact-file-label-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .contact-file-warning {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .contact-file-total {
        margin-left: 0;
    }
    
    .contact-file-icon {
        width: 16px;
        height: 16px;
    }
    
    .contact-file-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        border-radius: 10px;
    }
    
    .contact-file-name {
        font-size: 0.85rem;
    }
    
    .contact-file-size {
        font-size: 0.8rem;
    }
    
    .contact-file-remove {
        width: 20px;
        height: 20px;
    }
    
    .contact-file-remove svg {
        width: 14px;
        height: 14px;
    }
    
    .contact-file-total {
        font-size: 0.8rem;
    }
    
    .contact-file-warning {
        font-size: 0.8rem;
    }
    
    .contact-file-error {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
        gap: 0.625rem;
        border-radius: 10px;
    }
    
    .contact-file-error svg {
        width: 16px;
        height: 16px;
    }

    .contact-popup-subtitle {
        line-height: 1.1;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
        border-radius: 13px;
    }

    .contact-form-submit span {
        font-size: 1em;
        padding-inline: 1.25em;
        padding-block: 0.65em;
    }

    .button-wrap {
        right: 1.5%;
    }

    .button-download span {
        font-size: 0.8em;
        padding-inline: 0.9em;
        padding-block: 0.6em;
    }

    /* Monitor section */
    .monitor-text h2 {
        font-size: 1.7rem;
    }

    .monitor-text p {
        font-size: 1.01rem;
    }

    .monitor-bezel {
        width: 95vw;
        border-radius: 30px;
        padding: 10px;
    }

    .monitor-content-group {
        gap: 0;
    }

    /* Features section */
    .features-section {
        padding: 0 1rem;
    }

    .card-content-wrapper {
        padding: 1.25rem;
        padding-bottom: 0;
    }

    .feature-image-area {
        padding: 1.25rem;
    }

    .card-header-row h3 {
        font-size: 1.42rem;
    }

    .card-content p {
        font-size: 1.02rem;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        border-radius: 15px;
    }

    /* App UI container */
    .app-ui-container-shadow {
        max-width: 280px;
    }

    .app-ui-container {
        max-width: 280px;
        padding: 16px;
        gap: 8px;
    }

    .ui-label-center {
        margin-top: 0px;
    }

    .ui-icon {
        width: 20px;
        height: 20px;
    }

    img.ui-icon {
        width: 20px;
        height: auto;
    }

    .ui-row {
        gap: 18px;
    }

    .key-cap {
        width: 60px;
        height: 60px;
        font-size: 23px;
    }

    .shortcut-icon-container {
        width: 75px;
        height: 75px;
    }

    .sun-icon {
        width: 65px;
        height: 65px;
    }

    .keys-container {
        gap: 12px;
    }

    /* Download section */
    .download-section {
        padding: 0 1rem;
        margin-top: 5rem;
    }

    .download-container {
        padding: 2.5rem 1.25rem;
    }

    .app-icon-large {
        width: 100px;
        margin-bottom: 1.5rem;
    }

    .download-title {
        font-size: 1.7rem;
        margin-bottom: 0.75rem;
    }

    .download-text {
        font-size: 1.13rem;
        margin-bottom: 2rem;
    }

    .app-store-badge img {
        height: 44px;
    }

    /* FAQ section */
    .faq-section {
        padding: 0 1rem;
        margin-top: 5rem;
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        font-size: 1.13rem;
        padding: 1.0rem 1.4rem;
        gap: 10px;
    }

    .faq-question span {
        font-size: 2.75rem;
    }

    .faq-text-padding {
        padding: 0 1.25rem 0 1.25rem;
        padding-bottom: 0;
        font-size: 1.08rem;
    }

    .faq-item {
        border-radius: 32px;
    }

    .faq-item.active .faq-text-padding {
        padding-bottom: 1.5rem;
    }

    /* Footer */
    .site-footer {
        padding: 1rem 1rem;
        margin-top: 8rem;
    }

    .link {
        font-size: 0.96rem;
    }
}

/* --- PRIVACY PAGE --- */
/* Override global body: no 300vh min-height, so page height = content (no extra scroll on mobile) */
/* Use overflow-x: clip instead of hidden - clip doesn't break position: sticky */
body.privacy-page {
    background: #080a10;
    overflow-x: clip;
    width: 100%;
}

/* Contain overflow within content sections */
.privacy-page .privacy-content,
.privacy-page .site-footer {
    overflow-x: clip;
    max-width: 100%;
}

/* Hide the global body::after tint overlay on privacy so it doesn't affect layout/gap */
body.privacy-page::after {
    display: none !important;
}

/* Override global header (fixed full-viewport) so page header behaves as a normal bar */
.page-header {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    z-index: 100;
    display: block;
    align-items: unset;
    justify-content: unset;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: auto;
    will-change: unset;
    /* No overflow clip here - it can interfere with button taps */
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.page-header__inner {
    position: relative;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Keep logo centered in header while button sits on the right */
.page-header__inner .page-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.page-header__cta {
    margin-left: auto;
}

.page-header__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.page-header__logo img {
    width: 42px;
    height: auto;
    display: block;
}

.page-header__title {
    font-weight: 700;
    letter-spacing: -1px;
    font-size: 2.25rem;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header__back {
    font-size: 0.96rem;
}

/* Download button in privacy header: visible and in flow (override .button-wrap defaults) */
.page-header__cta.button-wrap {
    position: relative;
    right: auto;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden; /* Contain the button shadow - this doesn't affect button tap area */
}

@media (max-width: 600px) {
    .page-header__logo img {
        width: 34px;
    }
    .page-header__title {
        font-size: 1.85rem;
    }
    .page-header__inner {
        padding: 0.55rem 1rem;
    }
}

@media (max-width: 400px) {
    .page-header__logo img {
        width: 28px;
    }
    .page-header__title {
        font-size: 1.5rem;
    }
    .page-header__inner {
        padding: 0.55rem 0.75rem;
    }
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    color: #E6D5C3;
}

.privacy-content__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-content__updated {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.privacy-section p,
.privacy-section ul {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.privacy-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.35rem;
}

.privacy-content a {
    color: #D97D54;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-content a:hover {
    color: #E6D5C3;
}


