/* WipeSmith Redesigned Landing Page Styles */
/* Brand Colors: Fresh Blue #0E387C, Refreshing Pink #FFC7C7 */

:root {
    /* Brand Colors */
    --fresh-blue: #0E387C;
    --refreshing-pink: #FFC7C7;
    --soft-pink: #FFE6E6;
    --clean-white: #FFFFFF;

    /* Extended */
    --blue-dark: #0A2854;
    --blue-hover: #1A4FA0;
    --pink-light: #FFF0F0;
    --gray-text: #333333;
    --gray-light: #F8F8FA;

    /* Typography */
    --font-main: 'Outfit', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 7.5rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-text);
    background: var(--clean-white);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility - Skip to main */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fresh-blue);
    color: var(--clean-white);
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    z-index: 2000;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
}

.skip-to-main:focus {
    top: 0;
    outline: 2px solid var(--refreshing-pink);
    outline-offset: 2px;
}

.skip-to-main:hover {
    background: var(--blue-hover);
}

/* SEO Breadcrumb */
.breadcrumb {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--fresh-blue);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: var(--space-xl);
    letter-spacing: 0.05em;
}

.text-accent {
    color: var(--refreshing-pink);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--soft-pink);
    will-change: transform;
    contain: layout style paint;
}

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

.nav-logo {
    height: 32px;
}

.logo-mark {
    height: 100%;
    width: auto;
    color: var(--fresh-blue);
}

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

.nav-link {
    color: var(--fresh-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--refreshing-pink);
}

.nav-cta {
    background: var(--fresh-blue);
    color: var(--clean-white);
    padding: var(--space-xs) var(--space-md);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
}

.nav-cta:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: calc(var(--space-3xl) + 60px) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--clean-white) 0%, var(--pink-light) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--soft-pink);
    color: var(--fresh-blue);
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.star-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 24px;
    overflow: visible; /* Changed to show sparkles outside */
    background: var(--soft-pink);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 20px 40px rgba(14, 56, 124, 0.2),
        0 40px 80px rgba(255, 199, 199, 0.15),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
}


/* 3D Frame Effect */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(135deg,
        var(--fresh-blue) 0%,
        var(--refreshing-pink) 50%,
        var(--fresh-blue) 100%);
    z-index: 0;
    opacity: 0.6;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Floating Sparkles Container */
.sparkle-container {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    pointer-events: none;
    z-index: 2;
}

/* Individual Sparkle */
.floating-sparkle {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    animation: floatSparkle 12s ease-in-out infinite;
}

.floating-sparkle img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px currentColor);
}

.floating-sparkle.pink {
    color: var(--refreshing-pink);
}

.floating-sparkle.blue {
    color: var(--fresh-blue);
}

/* Position sparkles around the image */
.floating-sparkle:nth-child(1) {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
    animation-duration: 10s;
}

.floating-sparkle:nth-child(2) {
    top: 30%;
    right: -25px;
    animation-delay: 1.5s;
    animation-duration: 12s;
    transform: scale(1.3);
}

.floating-sparkle:nth-child(3) {
    bottom: 20%;
    left: -15px;
    animation-delay: 3s;
    animation-duration: 11s;
    transform: scale(0.8);
}

.floating-sparkle:nth-child(4) {
    bottom: 10%;
    right: -20px;
    animation-delay: 4.5s;
    animation-duration: 13s;
}

.floating-sparkle:nth-child(5) {
    top: -10px;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 10.5s;
    transform: scale(1.2);
}

.floating-sparkle:nth-child(6) {
    bottom: -15px;
    left: 40%;
    animation-delay: 7.5s;
    animation-duration: 12.5s;
}

.floating-sparkle:nth-child(7) {
    top: -20px;
    right: 30%;
    animation-delay: 9s;
    animation-duration: 11.5s;
    transform: scale(0.9);
}

.floating-sparkle:nth-child(8) {
    top: 50%;
    left: -25px;
    animation-delay: 10.5s;
    animation-duration: 14s;
    transform: scale(1.1);
}

@keyframes floatSparkle {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg) scale(0);
    }
    10% {
        opacity: 0.3;
        transform: translateY(10px) rotate(90deg) scale(0.5);
    }
    30% {
        opacity: 0.8;
        transform: translateY(0) rotate(180deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) rotate(360deg) scale(1.1);
    }
    70% {
        opacity: 0.8;
        transform: translateY(0) rotate(540deg) scale(1);
    }
    90% {
        opacity: 0.3;
        transform: translateY(10px) rotate(630deg) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(20px) rotate(720deg) scale(0);
    }
}

/* Glow Corner Accents */
.corner-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.corner-glow.top-left {
    top: -40px;
    left: -40px;
    background: radial-gradient(circle,
        rgba(255, 199, 199, 0.4) 0%,
        rgba(255, 199, 199, 0) 70%);
    animation: pulse 10s ease-in-out infinite;
}

.corner-glow.bottom-right {
    bottom: -40px;
    right: -40px;
    background: radial-gradient(circle,
        rgba(14, 56, 124, 0.4) 0%,
        rgba(14, 56, 124, 0) 70%);
    animation: pulse 10s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Hero Wave Animation Canvas */
.hero-wave-animation {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(14, 56, 124, 0.15);
    display: block;
    object-fit: contain;
}

/* Buttons */
.btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 160px;
    text-decoration: none;
}

.btn-primary {
    background: var(--fresh-blue);
    color: var(--clean-white);
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 56, 124, 0.2);
}

.btn-secondary {
    background: var(--clean-white);
    color: var(--fresh-blue);
    border: 2px solid var(--fresh-blue);
}

.btn-secondary:hover {
    background: var(--soft-pink);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    min-width: 200px;
}

/* Brand Promise Section */
.brand-promise {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 2;
}

.promise-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.promise-card {
    background: var(--clean-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.promise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(14, 56, 124, 0.15);
}

.card-image {
    position: relative;
    height: 240px;
    background: var(--soft-pink);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--soft-pink);
    border-radius: 50%;
    margin-bottom: var(--space-md);
}

.card-icon img {
    width: 24px;
    height: 24px;
}

.promise-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--fresh-blue);
}

.promise-card p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Visual Break - Soft Interlude */
.visual-break {
    position: relative;
    height: 400px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 250, 250, 0.3) 15%,
        rgba(255, 245, 245, 0.4) 50%,
        rgba(255, 250, 250, 0.3) 85%,
        rgba(255, 255, 255, 0) 100%);
}

.visual-break::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background:
        radial-gradient(ellipse 900px 400px at 30% 50%, rgba(255, 199, 199, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 800px 350px at 70% 50%, rgba(255, 230, 230, 0.15) 0%, transparent 55%),
        radial-gradient(circle 500px at 50% 30%, rgba(14, 56, 124, 0.03) 0%, transparent 50%);
    animation: gentleDrift 30s ease-in-out infinite;
}

.visual-break::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle 400px at 40% 60%, rgba(255, 240, 240, 0.08) 0%, transparent 50%),
        radial-gradient(circle 350px at 60% 40%, rgba(255, 199, 199, 0.06) 0%, transparent 45%);
    animation: softPulse 20s ease-in-out infinite;
}

@keyframes gentleDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(20px, -10px) scale(1.02);
        opacity: 0.9;
    }
    66% {
        transform: translate(-15px, 5px) scale(0.98);
        opacity: 0.95;
    }
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.pattern-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

/* Soft star accents - minimal and elegant */
.pattern-container::before,
.pattern-container::after {
    content: '✦';
    position: absolute;
    font-size: 18px;
    color: rgba(255, 199, 199, 0.15);
    animation: subtleGlow 8s ease-in-out infinite;
}

.pattern-container::before {
    top: 30%;
    left: 25%;
    animation-delay: 0s;
    font-size: 16px;
}

.pattern-container::after {
    bottom: 30%;
    right: 25%;
    animation-delay: 4s;
    font-size: 20px;
    color: rgba(255, 230, 230, 0.12);
}

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.visual-break-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 3;
}

/* Additional subtle star elements */
.visual-break-sparkles::before,
.visual-break-sparkles::after {
    content: '·';
    position: absolute;
    font-size: 24px;
    color: rgba(255, 199, 199, 0.2);
    animation: gentleFloat 12s ease-in-out infinite;
}

.visual-break-sparkles::before {
    top: 35%;
    left: 40%;
    animation-delay: 1s;
}

.visual-break-sparkles::after {
    bottom: 35%;
    right: 40%;
    font-size: 28px;
    animation-delay: 6s;
    color: rgba(14, 56, 124, 0.05);
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    20%, 80% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.5;
    }
}

/* Clean up unused star-sparkle styles */

/* Features Grid */
.features {
    padding: var(--space-3xl) 0;
    position: relative;
}

.features-background {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.features-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    scale: 1.1;
    filter: blur(3px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 2;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    margin-bottom: var(--space-md);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--soft-pink);
    border-radius: 50%;
}

.icon-circle img {
    width: 30px;
    height: 30px;
}

.feature-item .feature-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.feature-item p {
    color: var(--gray-text);
}

/* Lifestyle Gallery */
.lifestyle-gallery {
    padding: var(--space-3xl) 0;
    background: var(--gray-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--soft-pink);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-label {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: var(--clean-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fresh-blue);
}

/* Brand Story */
.brand-story {
    padding: 100px 0;
    background: white;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.story-text {
    padding: 0;
}

.story-text .section-title {
    text-align: left;
    line-height: 0.95;
    margin-bottom: 48px;
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.story-text .section-title .text-accent {
    display: block;
    margin-top: 0.05em;
    font-size: 1.05em;
}

.story-lead {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--fresh-blue);
    margin-bottom: 24px;
    line-height: 1.4;
    text-align: left;
}

.story-lead p {
    margin: 0;
}

.story-text > p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #6b7280;
    margin-bottom: 56px;
    text-align: left;
}

.brand-values {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateX(8px);
    box-shadow: none;
    border-color: none;
}

.value-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(255, 230, 230, 0.8) 0%,
        var(--soft-pink) 100%);
    color: var(--fresh-blue);
    font-size: 1.125rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 199, 199, 0.3);
}

.value-item div {
    flex: 1;
}

.value-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fresh-blue);
    margin-bottom: 4px;
    text-align: left;
}

.value-item p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.story-visual {
    position: relative;
    height: 480px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(255, 230, 230, 1) 0%,
        rgba(255, 199, 199, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(14, 56, 124, 0.08);
}

/* Add decorative bubbles in visual area */
.story-visual::before,
.story-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(14, 56, 124, 0.1) 0%,
        rgba(255, 255, 255, 0.5) 100%);
}

.story-visual::before {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.story-visual::after {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}

/* Early Access CTA */
.early-access {
    padding: var(--space-3xl) 0;
    background:
        radial-gradient(ellipse 1200px 800px at 25% 0%, rgba(255, 230, 230, 0.6) 0%, transparent 40%),
        radial-gradient(ellipse 1000px 600px at 75% 100%, rgba(255, 199, 199, 0.7) 0%, transparent 45%),
        radial-gradient(circle 800px at 90% 20%, rgba(14, 56, 124, 0.06) 0%, transparent 50%),
        radial-gradient(circle 600px at 10% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        linear-gradient(135deg,
            #FFE6E6 0%,
            #FFD8D8 20%,
            #FFC7C7 40%,
            #FFD4E0 60%,
            #FFE0E6 80%,
            #FFF0F0 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.early-access::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    right: -200px;
    bottom: -200px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 70% 70%, rgba(255, 199, 199, 0.1) 0%, transparent 40%);
    animation: floatGradient 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatGradient {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -20px) scale(1.02);
    }
}

.cta-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-background::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
        rgba(255, 199, 199, 0.3) 0%,
        rgba(255, 230, 230, 0.15) 30%,
        transparent 60%);
    border-radius: 50%;
    animation: pulseGlow 10s ease-in-out infinite;
}

.cta-background::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(14, 56, 124, 0.05) 0%,
        rgba(255, 199, 199, 0.1) 30%,
        transparent 60%);
    border-radius: 50%;
    animation: pulseGlow 10s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
    position: relative;
}

/* High-contrast CTA title - blue on pink background for maximum legibility */
.cta-title .text-accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg,
        var(--fresh-blue) 0%,
        #1e5ba8 50%,
        var(--fresh-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--fresh-blue);
    letter-spacing: 0.02em;
    font-weight: 900;
    text-shadow:
        0 2px 4px rgba(14, 56, 124, 0.1),
        0 4px 8px rgba(14, 56, 124, 0.05);
    animation: subtlePulse 4s ease-in-out infinite;
}

/* Subtle pulse animation for visual interest */
@keyframes subtlePulse {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.05);
        transform: scale(1.01);
    }
}

/* Decorative underline accent - using blue for consistency */
.cta-title .text-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--fresh-blue) 20%,
        var(--fresh-blue) 80%,
        transparent 100%);
    transform: scaleX(0);
    transform-origin: center;
    animation: underlineReveal 0.8s ease-out 0.3s forwards;
    opacity: 0.8;
}

@keyframes underlineReveal {
    to {
        transform: scaleX(1);
    }
}

/* Floating soap bubbles */
.soap-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    contain: layout;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 199, 199, 0.2) 40%,
        rgba(14, 56, 124, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0.7;
    animation: floatUp 15s infinite;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 70%);
    border-radius: 50%;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 25px;
    height: 25px;
    left: 25%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 35px;
    height: 35px;
    left: 40%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 55%;
    animation-duration: 14s;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    width: 20px;
    height: 20px;
    left: 65%;
    animation-duration: 16s;
    animation-delay: 8s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 75%;
    animation-duration: 20s;
    animation-delay: 10s;
}

.bubble:nth-child(7) {
    width: 28px;
    height: 28px;
    left: 85%;
    animation-duration: 13s;
    animation-delay: 3s;
}

.bubble:nth-child(8) {
    width: 38px;
    height: 38px;
    left: 90%;
    animation-duration: 17s;
    animation-delay: 7s;
}

@keyframes floatUp {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0.7;
    }
    20% {
        opacity: 0.8;
        transform: translateX(20px) scale(1.1);
    }
    40% {
        transform: translateX(-15px) scale(0.95);
    }
    60% {
        opacity: 0.7;
        transform: translateX(25px) scale(1.05);
    }
    80% {
        opacity: 0.5;
        transform: translateX(-10px) scale(0.9);
    }
    100% {
        bottom: calc(100% + 100px);
        transform: translateX(30px) scale(0.8);
        opacity: 0;
    }
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: var(--space-xl);
}

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

.form-row {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.form-input {
    flex: 1;
    max-width: 400px;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--fresh-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-hover);
    background: var(--clean-white);
    box-shadow: 0 0 0 3px rgba(14, 56, 124, 0.1);
}


.form-note {
    font-size: 0.875rem;
    color: var(--gray-text);
}

.form-success {
    background: var(--clean-white);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow: 0 10px 40px rgba(14, 56, 124, 0.1);
}

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

.success-icon img {
    width: 40px;
    height: 40px;
}

/* Footer */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--fresh-blue);
    color: var(--clean-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-logo .logo-mark {
    height: 40px;
    width: auto;
    color: var(--clean-white);
}

.footer-tagline {
    margin-bottom: var(--space-lg);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--refreshing-pink);
    transform: translateY(-2px);
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(68%) saturate(2517%) hue-rotate(203deg) brightness(95%) contrast(101%);
}

.footer-links h3 {
    color: var(--refreshing-pink);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    color: var(--clean-white);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--refreshing-pink);
}

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

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    color: var(--clean-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
}

/* Image Placeholders - Temporary */
.image-placeholder,
.hero-image-placeholder,
.pattern-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hide by default when image loads */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-pink), var(--refreshing-pink));
    color: var(--fresh-blue);
    font-weight: 600;
    text-align: center;
    padding: var(--space-lg);
    font-size: 0.875rem;
}

/* Show placeholder when image fails to load */
.hero-image-wrapper img:not([src]),
.hero-image-wrapper img[src=""] {
    display: none;
}

.hero-image-wrapper img:not([src]) ~ .hero-image-placeholder,
.hero-image-wrapper img[src=""] ~ .hero-image-placeholder {
    display: flex;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--color-fresh-blue);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 0 60px rgba(255, 199, 199, 0.3),
                0 0 120px rgba(14, 56, 124, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

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

/* Custom Video Player Styles */
.custom-video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.video-display {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    overflow: hidden;
}

.video-coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.video-logo {
    width: 240px;
    height: auto;
    margin-bottom: 24px;
    fill: white;
    opacity: 0.9;
}

.video-coming-soon h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
    letter-spacing: -0.5px;
}

.video-coming-soon p {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.video-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.video-sparkles img {
    position: absolute;
    width: 24px;
    height: 24px;
}

.video-sparkles .sparkle-1 {
    top: 20%;
    left: 15%;
    animation: float 8s infinite ease-in-out;
}

.video-sparkles .sparkle-2 {
    top: 25%;
    right: 20%;
    animation: float 10s infinite ease-in-out reverse;
}

.video-sparkles .sparkle-3 {
    bottom: 30%;
    left: 25%;
    animation: float 12s infinite ease-in-out;
}

/* YouTube-style Play Button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 3;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* YouTube-style Controls Bar */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 12px 12px;
}

.video-progress-bar {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    cursor: pointer;
}

.video-progress-loaded {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: rgba(255, 255, 255, 0.4);
}

.video-progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #FF0000;
}

.video-controls-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.control-btn:hover {
    opacity: 0.7;
}

.video-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    margin-left: 8px;
}

.video-controls-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(5px) rotate(240deg); }
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        padding: 3px;
    }

    .video-modal-close {
        top: -45px;
        right: 0;
        width: 36px;
        height: 36px;
    }

    .video-wrapper {
        border-radius: 16px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Ensure consistent text alignment at tablet sizes */
    .hero-content,
    .hero-title,
    .hero-subtitle,
    .hero-badge {
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .brand-promise .container,
    .promise-header,
    .promise-text {
        text-align: center;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        padding: 0 var(--space-lg);
    }

    .story-text {
        text-align: center;
        max-width: 100%;
    }

    .story-text .section-title {
        text-align: center;
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .story-lead {
        text-align: center;
    }

    .story-text > p {
        text-align: center;
    }

    .brand-values {
        gap: 24px;
    }

    .story-visual {
        height: 400px;
    }

    .promise-cards,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-header {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: var(--space-sm);
    }

    .nav-link {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .promise-cards,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .brand-values {
        gap: 20px;
    }

    .value-item h3 {
        text-align: left;
    }

    .value-item p {
        text-align: left;
    }

    .story-visual {
        height: 300px;
    }

    .story-text .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 32px;
    }

    .brand-story {
        padding: 60px 0;
    }

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

    .form-input {
        max-width: 100%;
    }

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

    .visual-break {
        height: 350px;
        margin: 0;
    }
}

/* Prevent horizontal overflow on mobile devices */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Only apply viewport constraints on mobile */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
    }

    section,
    .hero,
    .hero-content,
    .features-grid,
    .transformations-grid,
    .testimonials-grid,
    .cta-section {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Fix any absolute positioned elements that might overflow */
.sparkle,
.floating-element,
.hero-image,
.card-image {
    max-width: 100%;
}

/* Ensure images don't overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Fix grid layouts on mobile to prevent overflow */
@media (max-width: 768px) {
    .features-grid,
    .transformations-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        word-wrap: break-word;
    }

    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .section-header {
        font-size: clamp(2rem, 6vw, 3rem);
        padding: 0 1rem;
        word-wrap: break-word;
    }

    /* Ensure cards don't overflow */
    .feature-card,
    .transformation-card,
    .testimonial {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}