/* Nomora Landing Page Styles - Based on Nomora Design System */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #FF5A5F;
    --primary-hover: #FF7478;

    /* Neutral Colors */
    --white: #FFFFFF;
    --surface-gray: #F7F7F7;
    --border-gray: #DDDDDD;

    /* Text Colors */
    --text-primary: #222222;
    --text-secondary: #717171;
    --text-muted: #B0B0B0;

    /* Semantic Colors */
    --success: #00A870;
    --warning: #FFA500;
    --error: #D93025;
    --info: #1976D2;

    /* Spacing (8-point grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius: 12px;

    /* Shadows - Basic (Legacy) */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Advanced Depth Shadow System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-depth-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-depth-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-depth-lg: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-depth-xl: 0 12px 24px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-depth-2xl: 0 24px 48px rgba(0, 0, 0, 0.2), 0 16px 32px rgba(0, 0, 0, 0.15);
    --shadow-depth-3xl: 0 32px 64px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.18);

    /* Colored Shadows for Depth */
    --shadow-red-sm: 0 4px 12px rgba(255, 90, 95, 0.15);
    --shadow-red-md: 0 8px 24px rgba(255, 90, 95, 0.2);
    --shadow-red-lg: 0 16px 40px rgba(255, 90, 95, 0.25);

    /* Glassmorphism Properties */
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-background-hover: rgba(255, 255, 255, 0.85);
    --glass-background-strong: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-strong: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(24px);
    --glass-blur-medium: blur(20px);
    --glass-blur-light: blur(12px);
    --glass-blur-strong: blur(40px);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.text-primary {
    color: var(--primary-color);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.feature-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Utility Classes ===== */

/* Glassmorphism Effects */
.glass {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-strong {
    background: var(--glass-background-strong);
    backdrop-filter: var(--glass-blur-strong) saturate(200%);
    -webkit-backdrop-filter: var(--glass-blur-strong) saturate(200%);
    border: 1px solid var(--glass-border-strong);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur-medium) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur-medium) saturate(180%);
    border-radius: 20px;
    border: none;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {

    .glass,
    .glass-strong,
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* 3D Transform Utilities */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Floating Animations */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-reverse {
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Gradient Utilities */
.gradient-mesh {
    background:
        radial-gradient(at 0% 0%, rgba(255, 90, 95, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 116, 120, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 90, 95, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 116, 120, 0.06) 0px, transparent 50%);
}

.gradient-animated {
    background: linear-gradient(-45deg,
            #FF4A4F,
            #FF5A5F,
            #FF6B70,
            #FF7478);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    height: 2em;
    width: auto;
}

.logo-wordmark {
    height: 1.35em;
    width: auto;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.nav-cta {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(255, 90, 95, 0.2);
}

.nav-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

/* ===== Carousel System ===== */

/* Carousel Container */
.carousel-container {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
    /* Safari fix: force GPU layer isolation */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

/* Remove old hero padding for carousel */
.carousel-slide.hero {
    padding-top: 0;
    background-color: transparent !important;
    position: absolute;
}

/* Ensure feature slides fill viewport */
.carousel-slide.feature {
    padding: 0;
    margin-top: 0;
    background-color: transparent !important;
    position: absolute;
}

/* Background Crossfade System - extends beyond carousel */
.carousel-background-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.carousel-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

/* Pre-blurred layer for performance (use ::before) */
.carousel-bg-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.carousel-bg-layer.blurring::before {
    opacity: 1;
}

/* White overlay for crossfade */
.carousel-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

/* Background Images */
.carousel-bg-layer[data-bg="hero"] {
    background-image: url('../images/backgrounds/hero.png');
}

.carousel-bg-layer[data-bg="restaurant"] {
    background-image: url('../images/backgrounds/restaurant.png');
}

.carousel-bg-layer[data-bg="menu"] {
    background-image: url('../images/backgrounds/menu.png');
}

.carousel-bg-layer[data-bg="food"] {
    background-image: url('../images/backgrounds/food.png');
}

.carousel-bg-layer[data-bg="search"] {
    background-image: url('../images/backgrounds/search.png');
}

.carousel-bg-layer[data-bg="map"] {
    background-image: url('../images/backgrounds/map.png');
}

.carousel-bg-layer[data-bg="fav"] {
    background-image: url('../images/backgrounds/fav.png');
}

/* Navigation Arrows */
.carousel-arrow {
    display: none;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(1.0);
}

.carousel-arrow:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.carousel-arrow-left {
    left: 15%;
}

.carousel-arrow-right {
    right: 15%;
}

.carousel-arrow svg {
    width: 72px;
    height: 72px;
    stroke-width: 3;
}

/* Navigation Icons */
.carousel-nav {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 20px;
    padding: 0;
    background: transparent;
}

.nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 14px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-icon:hover svg {
    stroke: rgba(255, 255, 255, 0.9);
}

.nav-icon:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-icon.active {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 0 40px 20px rgba(255, 255, 255, 0.5),
        0 0 70px 40px rgba(255, 255, 255, 0.3);
}

.nav-icon.active svg {
    stroke: var(--text-secondary);
}

/* Active slide is visible */
.carousel-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    z-index: 10 !important;
}

/* Content elements transition */
.carousel-slide .feature-content,
.carousel-slide .feature-image,
.carousel-slide .hero-content,
.carousel-slide .hero-image {
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transform: translateX(100px) translateZ(0);
    transform: translateX(100px) translateZ(0);
    opacity: 0;
    /* Safari fix: force GPU layer isolation */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Active slide content is visible and animates in from right */
.carousel-slide.active .feature-content,
.carousel-slide.active .feature-image,
.carousel-slide.active .hero-content,
.carousel-slide.active .hero-image {
    -webkit-transform: translateX(0) translateZ(0);
    transform: translateX(0) translateZ(0);
    opacity: 1;
}

/* Slide out to left - only applied during transition */
.carousel-slide.slide-out-left {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 9 !important;
    /* Safari fix: ensure clean layer during exit */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-slide.slide-out-left .feature-content,
.carousel-slide.slide-out-left .feature-image,
.carousel-slide.slide-out-left .hero-content,
.carousel-slide.slide-out-left .hero-image {
    transition-duration: 1.5s;
    transform: translateX(-100px);
    opacity: 0;
    /* Safari fix: prevent ghost layers */
    -webkit-transform: translateX(-100px) translateZ(0);
    transform: translateX(-100px) translateZ(0);
}

/* Slide out to right - for reverse direction (going back) */
.carousel-slide.slide-out-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 9 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-slide.slide-out-right .feature-content,
.carousel-slide.slide-out-right .feature-image,
.carousel-slide.slide-out-right .hero-content,
.carousel-slide.slide-out-right .hero-image {
    transition-duration: 1.5s;
    transform: translateX(100px);
    opacity: 0;
    -webkit-transform: translateX(100px) translateZ(0);
    transform: translateX(100px) translateZ(0);
}

/* Enter from left - for reverse direction (going back) */
.carousel-slide.enter-from-left .feature-content,
.carousel-slide.enter-from-left .feature-image,
.carousel-slide.enter-from-left .hero-content,
.carousel-slide.enter-from-left .hero-image {
    -webkit-transform: translateX(-100px) translateZ(0);
    transform: translateX(-100px) translateZ(0);
    opacity: 0;
}

.carousel-slide.enter-from-left.active .feature-content,
.carousel-slide.enter-from-left.active .feature-image,
.carousel-slide.enter-from-left.active .hero-content,
.carousel-slide.enter-from-left.active .hero-image {
    -webkit-transform: translateX(0) translateZ(0);
    transform: translateX(0) translateZ(0);
    opacity: 1;
}


/* ===== Hero Section ===== */
.hero {
    padding-top: calc(80px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* Backgrounds now handled by fixed carousel-background-system */

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative !important;
    z-index: 100 !important;
}

.hero-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    border-radius: 24px;
    padding: var(--space-3xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out;
    position: relative !important;
    z-index: 20 !important;
    transform: translateZ(0);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    margin-bottom: var(--space-lg);
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.hero-image {
    position: relative !important;
    perspective: 1500px;
    transform-style: preserve-3d;
    /* Animation removed - now handled by carousel transitions */
    z-index: 20 !important;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    transform-style: preserve-3d;
    position: relative !important;
    z-index: 20 !important;
}

.phone-frame {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    padding: var(--space-sm);
    background: var(--text-primary);
    border-radius: 40px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* All phone frames now have consistent 3D appearance */
    transform: rotateY(-15deg) rotateX(5deg) translateZ(40px);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        -20px 0 40px rgba(255, 90, 95, 0.1);
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(5deg) translateZ(40px) translateY(0);
    }

    50% {
        transform: rotateY(-15deg) rotateX(5deg) translateZ(40px) translateY(-20px);
    }
}

/* Phone frames on red backgrounds (odd) - tilt to the RIGHT */
.feature:nth-child(odd) .phone-frame {
    transform: rotateY(15deg) rotateX(5deg) translateZ(40px);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        20px 0 40px rgba(255, 90, 95, 0.1);
    /* Shadow on right side */
    animation: floatPhoneRight 6s ease-in-out infinite;
}

@keyframes floatPhoneRight {

    0%,
    100% {
        transform: rotateY(15deg) rotateX(5deg) translateZ(40px) translateY(0);
    }

    50% {
        transform: rotateY(15deg) rotateX(5deg) translateZ(40px) translateY(-20px);
    }
}

/* Phone frames on white backgrounds (even) - tilt to the LEFT (default) */
.feature:nth-child(even) .phone-frame {
    /* Uses default .phone-frame styles */
}

/* Ensure phone frames are visible above the background layers */
.phone-frame {
    z-index: 50 !important;
    position: relative !important;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateZ(30px);
    position: relative !important;
    z-index: 60 !important;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        0 4px 12px rgba(255, 90, 95, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow:
        0 8px 20px rgba(255, 90, 95, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(255, 90, 95, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Ripple effect on button click */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ===== Features Section ===== */
.features {
    padding: 0;
}

/* Base Feature Styling for Background Images */
.feature {
    position: relative;
    overflow: visible;
    background-color: transparent;
    padding: var(--space-2xl) 0;
    margin-top: -1px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure no pixel gaps */

    /* Cinematic Vignette Blend */
    box-shadow:
        inset 0px 120px 100px -60px rgba(0, 0, 0, 0.5),
        /* Top Shadow */
        inset 0px -120px 100px -60px rgba(0, 0, 0, 0.5);
    /* Bottom Shadow */
    /* z-index removed - managed by carousel-slide parent */
}

/* Ensure contents stay above the vignette shadow */
.feature-container {
    position: relative !important;
    z-index: 100 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    gap: var(--space-3xl);
    align-items: center;
}

/* Backgrounds now handled by fixed carousel-background-system */

@keyframes meshFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Removed Special USP sections background enhancement to unify theme */

/* Removed Geometric pattern overlay for USP sections */

/* Removed Floating dots pattern for USP sections */

@keyframes floatPattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Alternate image positions */
/* Feature 1, 3, 5: Image LEFT, Content RIGHT (need to reverse HTML order) */
.feature:nth-child(odd) .feature-container {
    flex-direction: row-reverse;
}

/* Feature 2, 4: Image RIGHT, Content LEFT (keep HTML order) */
.feature:nth-child(even) .feature-container {
    flex-direction: row;
}

/* Unified Glassmorphism Card Style (Matching Hero Section) */
.feature-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    padding: var(--space-xl);
    /* Adjusted padding */
    border-radius: 24px;
    /* Matches Hero */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative !important;
    z-index: 20 !important;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    transform: translateZ(0);
}

/* Hover Effect for Unified Cards */
.feature-content:hover {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque on hover */
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Ensure no override by nth-child selectors */
.feature:nth-child(odd) .feature-content,
.feature:nth-child(even) .feature-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.feature:nth-child(odd) .feature-content:hover,
.feature:nth-child(even) .feature-content:hover {
    background: rgba(255, 255, 255, 0.85);
}

.feature-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* Reset text colors since we're using cards now */
.feature:nth-child(odd) .feature-title {
    color: var(--text-primary);
}

.feature:nth-child(odd) .feature-description {
    color: var(--text-secondary);
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 16px;
    color: var(--text-primary);
}

.feature:nth-child(odd) .highlight {
    color: var(--text-primary);
}

.highlight-icon {
    font-size: 20px;
}

/* ===== USP Highlighting ===== */
.usp-card {
    position: relative;
    overflow: visible !important;
    contain: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 60px 30px rgba(255, 255, 255, 0.7),
        0 0 100px 60px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.06);
}

.usp-card:hover {
    box-shadow:
        0 0 70px 35px rgba(255, 255, 255, 0.8),
        0 0 120px 70px rgba(255, 255, 255, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.08);
}

.usp-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    z-index: 100;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===== Why Nomora Section Removed ===== */

/* ===== Signup Section ===== */
.signup {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Black transparent background overlay */
.signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Separation line/shadow at the top */
.signup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.signup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 10;
}

.signup-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: var(--space-2xl);
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.signup-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signup-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.signup-form {
    margin-bottom: var(--space-lg);
}

.beta-downloads {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.beta-download-image {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 52px;
}

.beta-download-image-apple {
    max-height: 44px;
}

.form-group {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.signup-input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.signup-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.signup-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.signup-form .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    white-space: nowrap;
}

.signup-form .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

.signup-success {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-xl);
    border-radius: var(--radius);
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto var(--space-md);
}

.signup-success h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.signup-success p {
    color: rgba(255, 255, 255, 0.9);
}

.signup-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.lock-icon {
    font-size: 16px;
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/backgrounds/footer.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: var(--space-lg);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-content p {
    flex: 1;
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-md);
}

.cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.cookie-accept {
    background: var(--primary-color);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--primary-hover);
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-gray);
}

.cookie-decline:hover {
    background: var(--surface-gray);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {

    /* Prevent horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden;
    }

    /* Reduce blur intensity on mobile for performance */
    .glass,
    .feature-content {
        backdrop-filter: blur(12px) saturate(150%);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    .glass-strong {
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }

    .hero-content {
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        padding: var(--space-xl);
    }

    /* Disable 3D transforms and animations on mobile for performance */
    .phone-frame {
        transform: none !important;
        animation: none !important;
    }

    /* Simpler hover effects on mobile */
    .feature-content:hover,
    .benefit:hover {
        transform: translateY(-4px) !important;
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: var(--space-xl);
    }

    .feature-container {
        flex-direction: column;
    }

    .feature:nth-child(even) .feature-container {
        flex-direction: column;
    }

    .feature:nth-child(odd) .feature-container {
        flex-direction: column;
    }

    /* On mobile, image comes FIRST, then text card */
    .feature-content {
        order: 2;
    }

    .feature-image {
        order: 1;
        margin-top: 0;
        margin-bottom: var(--space-md);
    }

    /* Override for reversed sections on mobile - same order */
    .feature-reversed .feature-content {
        order: 2;
    }

    .feature-reversed .feature-image {
        order: 1;
    }

    /* Hero section mobile - image first */
    .hero-container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-top: 0;
        margin-bottom: var(--space-md);
    }

    .feature-content {
        width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }

    /* Carousel mobile optimizations */
    .carousel-container {
        overflow: visible;
        height: auto;
        min-height: 100vh;
        transition: min-height 0.3s ease;
    }

    .carousel-slide {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }

    .carousel-slide .feature-content,
    .carousel-slide .feature-image,
    .carousel-slide .hero-content,
    .carousel-slide .hero-image {
        transition-duration: 0.5s !important;
    }

    /* Reduced blur intensity for performance */
    .carousel-bg-layer::before {
        filter: blur(10px);
    }

    /* Arrows on mobile */
    .carousel-arrow {
        width: 80px;
        height: 80px;
    }

    .carousel-arrow-left {
        left: 5%;
    }

    .carousel-arrow-right {
        right: 5%;
    }

    .carousel-arrow svg {
        width: 52px;
        height: 52px;
    }

    /* Mobile carousel nav - fixed below navbar, above phone image */
    .carousel-nav {
        position: fixed;
        top: 60px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 12px;
        gap: 10px;
        justify-content: center;
        background: transparent;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        z-index: 1000;
        pointer-events: none;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
        padding: 9px;
        border-radius: 50%;
        background: rgba(128, 128, 128, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: none;
        pointer-events: auto;
    }

    .nav-icon svg {
        stroke: rgba(255, 255, 255, 0.7);
    }

    .nav-icon.active {
        background: rgba(255, 255, 255, 0.9);
    }

    .nav-icon.active svg {
        stroke: var(--text-secondary);
    }

    /* Carousel slide mobile layout */
    .carousel-slide {
        padding-top: 90px; /* Space for navbar */
        padding-bottom: 80px; /* Space for fixed nav at bottom */
        height: auto;
        min-height: auto;
        overflow-y: visible;
    }

    .carousel-slide .feature-container,
    .carousel-slide .hero-container {
        flex-direction: column !important;
        padding: var(--space-md);
        padding-top: 140px;
        padding-bottom: var(--space-md);
        min-height: auto;
        justify-content: flex-start;
        gap: var(--space-xl);
        align-items: center;
    }

    /* Mobile layout: image first, then card */
    .carousel-slide .feature-image,
    .carousel-slide .hero-image {
        order: 1;
        flex-shrink: 0;
        height: 66vh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .carousel-slide .feature-image .phone-frame,
    .carousel-slide .hero-image .phone-frame {
        height: 100%;
        width: auto;
        max-width: 75%;
        padding: 8px;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .carousel-slide .feature-image .phone-frame .app-screenshot,
    .carousel-slide .hero-image .phone-frame .app-screenshot {
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 20px;
    }

    .carousel-slide .feature-content,
    .carousel-slide .hero-content {
        order: 2;
        flex-shrink: 0;
        width: 100%;
        padding: var(--space-lg);
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        overflow: hidden;
    }

    /* Space between carousel content and signup section */
    .signup {
        margin-top: 0;
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    /* Keep the primary beta CTA visible on mobile */
    .hero-actions {
        display: block;
    }

    .signup-form .btn-primary {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }

    /* Hide arrows on mobile */
    .carousel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: var(--space-sm) var(--space-md);
        flex-wrap: nowrap;
        justify-content: center;
        gap: var(--space-md);
    }

    .logo {
        font-size: 18px;
        flex: 0 0 auto;
        gap: var(--space-sm);
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        object-fit: contain;
        aspect-ratio: 1 / 1;
    }

    .logo-text {
        height: 16px;
        object-fit: contain;
    }

    .nav-actions {
        gap: var(--space-sm);
        flex-wrap: nowrap;
    }

    .language-switcher {
        padding: var(--space-xs) var(--space-sm);
        font-size: 13px;
    }

    /* Hide the CTA button on small mobile */
    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: calc(60px + var(--space-2xl));
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: 16px;
    }

    .phone-frame {
        max-width: 280px;
    }

    /* Mobile optimizations for features */
    .feature {
        padding: var(--space-2xl) 0;
    }

    .feature-content {
        padding: var(--space-lg);
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-description {
        font-size: 16px;
    }

    .feature-highlights {
        font-size: 14px;
    }

    /* USP badge on mobile */
    .usp-badge {
        display: block;
        top: -12px;
        right: 16px;
        font-size: 10px;
        padding: 5px 12px;
    }

    /* Benefits grid mobile */
    .benefit {
        padding: var(--space-lg);
    }

    .benefit-icon {
        font-size: 36px;
    }

    /* Signup section mobile */
    .signup-title {
        font-size: 24px;
    }

    .signup-subtitle {
        font-size: 16px;
    }

    .beta-downloads {
        flex-direction: column;
    }

    /* Footer mobile */
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    /* Cookie consent on mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .cookie-content p {
        font-size: 13px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 140px;
        font-size: 13px;
        padding: var(--space-sm) var(--space-md);
    }
}

/* ===== Loading State ===== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .phone-frame {
        animation: none !important;
    }

    .hero::before,
    .hero::after,
    .feature:nth-child(odd)::before {
        animation: none !important;
    }

    .float,
    .float-slow,
    .float-reverse {
        animation: none !important;
    }

    .benefit,
    .feature-content {
        transition: opacity 0.2s ease !important;
    }

    /* Carousel-specific reduced motion */
    .carousel-slide,
    .carousel-bg-layer,
    .carousel-bg-overlay {
        transition-duration: 0.1s !important;
    }

    .carousel-bg-layer::before {
        transition-duration: 0.1s !important;
    }

    .carousel-slide .feature-content,
    .carousel-slide .feature-image,
    .carousel-slide .hero-content,
    .carousel-slide .hero-image {
        transition-duration: 0.1s !important;
    }
}

/* GPU Acceleration for Performance */
.feature-content,
.benefit,
.hero-content,
.btn-primary {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Phone frames have fixed 3D transform - no will-change needed */
.phone-frame {
    backface-visibility: hidden;
}

/* Reduce paint on hover */
.btn-primary,
.feature-content,
.benefit {
    contain: layout style paint;
}
