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

:root {
    --background: 0, 0%, 100%;
    --foreground: 229.2, 46.3%, 21.2%;
    --card: 0, 0%, 100%;
    --card-foreground: 229.2, 46.3%, 21.2%;
    --primary: 22.6, 89.7%, 54.1%;
    --primary-foreground: 0, 0%, 100%;
    --primary-hover: 22.6, 89.7%, 48.1%;
    --secondary: 85.8, 54.2%, 51.2%;
    --secondary-foreground: 0, 0%, 100%;
    --muted: 0, 0%, 96%;
    --muted-foreground: 222, 12%, 45%;
    --accent: 197.9, 100.0%, 40.8%;
    --accent-foreground: 0, 0%, 100%;
    --border: 229.2, 46.3%, 21.2%;
    --radius: 0.5rem;
    /* Brand Colors */
    --orange: 22.6, 89.7%, 54.1%;
    --green: 85.8, 54.2%, 51.2%;
    --dark-blue: 229.2, 46.3%, 21.2%;
    --light-blue: 197.9, 100.0%, 40.8%;
    --teal: 184.7, 48.1%, 69.0%;
    /* Soft Accent Colors */
    --peach: 19.0, 90.7%, 74.7%;
    --mint: 89.3, 42.6%, 80.2%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Navigation */
header {
    border-bottom: none;
    background-color: transparent;
    backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: none;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--dark-blue));
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-box {
    width: 2rem;
    height: 2rem;
    background-color: hsl(var(--orange));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Nunito', 'Fredoka', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: hsl(var(--orange));
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-family: 'Nunito', 'Fredoka', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: hsl(var(--dark-blue));
    color: #FFFFFF;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: hsl(var(--orange));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border: 2px solid hsl(var(--orange));
    background-color: transparent;
    color: hsl(var(--orange));
    padding: 0.625rem 1.5rem;
}

.btn-outline:hover {
    background-color: hsl(var(--orange));
    color: #FFFFFF;
    border-color: hsl(var(--orange));
    transform: scale(1.05);
}

.btn-ghost {
    padding: 0.625rem 1.5rem;
    color: hsl(var(--foreground));
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 1);
    color: hsl(var(--orange));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    height: 3rem;
    padding: 0 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 250px;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Nunito', 'Fredoka', sans-serif;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: colors 0.2s;
}

.badge-secondary {
    background-color: hsl(var(--orange));
    color: #FFFFFF;
}

.badge-outline {
    border: 1px solid hsl(var(--orange));
}

/* Card */
.card {
    border-radius: 0.5rem;
    border: 1px solid hsla(229, 46.3%, 21.2%, 0.1);
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 8px 16px -2px rgba(14, 100%, 57%, 0.15);
    transform: translateY(-2px) !important;
}

.card-no-border {
    border: none;
}

/* Hero Section */
.hero {
    padding: 3rem 1rem 2rem;
    text-align: center;
    background: transparent;
}

.hero-banner-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    flex-wrap: nowrap;
}

.banner-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex: 0 0 auto;
    animation: float 6s ease-in-out infinite;
}

.banner-img-1 {
    transform: rotate(-5deg);
    animation: bounceFloat1 6s ease-in-out infinite;
    animation-delay: 0s;
}

.banner-img-2 {
    transform: rotate(3deg);
    animation: bounceFloat2 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.banner-img-3 {
    transform: rotate(-2deg);
    animation: bounceFloat3 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

.banner-img-4 {
    transform: rotate(4deg);
    animation: bounceFloat4 5.5s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Bouncing animation for image 1 - moves left and right while floating */
@keyframes bounceFloat1 {
    0%, 100% {
        transform: translate(0px, 0px) rotate(-5deg);
    }
    25% {
        transform: translate(-15px, -15px) rotate(-5deg);
    }
    50% {
        transform: translate(0px, -20px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, -15px) rotate(-5deg);
    }
}

/* Bouncing animation for image 2 - moves right and left while floating */
@keyframes bounceFloat2 {
    0%, 100% {
        transform: translate(0px, 0px) rotate(3deg);
    }
    25% {
        transform: translate(15px, -15px) rotate(3deg);
    }
    50% {
        transform: translate(0px, -20px) rotate(3deg);
    }
    75% {
        transform: translate(-15px, -15px) rotate(3deg);
    }
}

/* Bouncing animation for image 3 - moves in a circular pattern */
@keyframes bounceFloat3 {
    0%, 100% {
        transform: translate(0px, 0px) rotate(-2deg);
    }
    25% {
        transform: translate(10px, -18px) rotate(-2deg);
    }
    50% {
        transform: translate(-10px, -20px) rotate(-2deg);
    }
    75% {
        transform: translate(-10px, -15px) rotate(-2deg);
    }
}

/* Bouncing animation for image 4 - moves in opposite circular pattern */
@keyframes bounceFloat4 {
    0%, 100% {
        transform: translate(0px, 0px) rotate(4deg);
    }
    25% {
        transform: translate(-10px, -18px) rotate(4deg);
    }
    50% {
        transform: translate(10px, -20px) rotate(4deg);
    }
    75% {
        transform: translate(10px, -15px) rotate(4deg);
    }
}

.banner-img:hover {
    transform: scale(1.05) rotate(0deg) !important;
    animation-play-state: paused;
}

.hero-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: hsl(var(--dark-blue));
    text-shadow: none;
}

.hero-title .highlight-orange {
    color: hsl(var(--orange));
}

.hero-tagline {
    font-family: 'Nunito', 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: hsl(var(--foreground));
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.hero-tagline strong {
    color: hsl(var(--orange));
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-banner-images {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem;
    }
    
    .banner-img {
        width: 180px;
        height: 180px;
        flex: 0 0 auto;
    }
    
    .banner-img-1 {
        transform: rotate(-3deg);
        animation: bounceFloat1Mobile 6s ease-in-out infinite;
        animation-delay: 0s;
    }
    
    .banner-img-2 {
        transform: rotate(2deg);
        animation: bounceFloat2Mobile 5s ease-in-out infinite;
        animation-delay: 1.5s;
    }
    
    
    .banner-img-3 {
        transform: rotate(-1deg);
        animation: bounceFloat3Mobile 7s ease-in-out infinite;
        animation-delay: 0.5s;
    }
    
    .banner-img-4 {
        transform: rotate(2deg);
        animation: bounceFloat4Mobile 5.5s ease-in-out infinite;
        animation-delay: 2s;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mobile bouncing animations with smaller movement ranges */
@keyframes bounceFloat1Mobile {
    0%, 100% {
        transform: translate(0px, 0px) rotate(-3deg);
    }
    25% {
        transform: translate(-10px, -12px) rotate(-3deg);
    }
    50% {
        transform: translate(0px, -15px) rotate(-3deg);
    }
    75% {
        transform: translate(10px, -12px) rotate(-3deg);
    }
}

@keyframes bounceFloat2Mobile {
    0%, 100% {
        transform: translate(0px, 0px) rotate(2deg);
    }
    25% {
        transform: translate(10px, -12px) rotate(2deg);
    }
    50% {
        transform: translate(0px, -15px) rotate(2deg);
    }
    75% {
        transform: translate(-10px, -12px) rotate(2deg);
    }
}

@keyframes bounceFloat3Mobile {
    0%, 100% {
        transform: translate(0px, 0px) rotate(-1deg);
    }
    25% {
        transform: translate(8px, -14px) rotate(-1deg);
    }
    50% {
        transform: translate(-8px, -15px) rotate(-1deg);
    }
    75% {
        transform: translate(-8px, -12px) rotate(-1deg);
    }
}

@keyframes bounceFloat4Mobile {
    0%, 100% {
        transform: translate(0px, 0px) rotate(2deg);
    }
    25% {
        transform: translate(-8px, -14px) rotate(2deg);
    }
    50% {
        transform: translate(8px, -15px) rotate(2deg);
    }
    75% {
        transform: translate(8px, -12px) rotate(2deg);
    }
}

    
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Hero Subsection */
.hero-subsection {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, hsl(var(--teal), 0.15) 0%, hsl(var(--mint), 0.2) 100%);
}

.hero-subsection .hero-subtitle {
    color: hsl(var(--dark-blue));
}

.hero-subsection .trust-indicators {
    color: hsl(var(--dark-blue));
}

.hero-content {
    position: relative;
    z-index: 10;
}

h1 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: hsl(var(--dark-blue));
}

h2 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--dark-blue));
}

h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--dark-blue));
}

h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    color: hsl(var(--dark-blue));
}

.hero-subtitle {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* How It Works Section */
.how-it-works-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .how-it-works-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.how-it-works-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.how-it-works-step.animate-in {
    animation: stepFadeIn 0.6s ease-out forwards;
}

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

.how-it-works-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px hsl(var(--orange), 0.2);
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--orange)) 0%, hsl(var(--orange), 0.8) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px hsl(var(--orange), 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--orange)) 0%, hsl(var(--green)) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.how-it-works-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px hsl(var(--orange), 0.4);
}

.how-it-works-step:hover .step-number::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

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

.step-number-inner {
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--dark-blue));
}

.step-content p {
    color: hsl(var(--foreground));
    line-height: 1.6;
    font-size: 1rem;
}

/* Preserve Memories Section - Layered Boxes */
.preserve-memories-section {
    position: relative;
    overflow: hidden;
}

.preserve-memories-layered {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
    min-height: auto;
}

.preserve-stack-container {
    position: relative;
    width: 100%;
    max-width: 64rem; /* Increased to accommodate text starting at middle of screen */
    height: 350px;
    perspective: 1000px;
}

/* Preserve Card Group - Container for individual boxes */
.preserve-card-group {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

/* Individual Item Box - Each image or text content */
.preserve-item-box {
    background: linear-gradient(135deg, hsl(var(--teal), 0.15) 0%, hsl(var(--mint), 0.2) 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image boxes - auto-size based on image dimensions with overlap */
.preserve-item-image {
    display: inline-block;
    width: auto;
    height: auto;
    position: relative;
    margin-right: -30px; /* Overlap images by 30px (negative margin pulls next image over) */
    z-index: 1;
    transition: transform 0.3s ease;
}

.preserve-item-image:last-of-type {
    margin-right: 0; /* Last image doesn't need negative margin */
}

.preserve-item-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 240px;
    object-fit: contain;
}

/* Stagger heights and angles for 3 images (Share card) */
.preserve-card-share .preserve-item-image:nth-child(1) {
    transform: translateY(0) rotate(-5deg);
    align-self: flex-start;
    margin-top: 0;
    z-index: 1;
}

.preserve-card-share .preserve-item-image:nth-child(2) {
    transform: translateY(-15px) rotate(3deg);
    align-self: flex-start;
    margin-top: 40px;
    z-index: 2;
}

.preserve-card-share .preserve-item-image:nth-child(3) {
    transform: translateY(-30px) rotate(-2deg);
    align-self: flex-start;
    margin-top: 100px;
    z-index: 3;
}

/* Stagger heights and angles for 2 images (Organize and Connect cards) */
.preserve-card-organize .preserve-item-image:nth-child(1),
.preserve-card-connect .preserve-item-image:nth-child(1) {
    transform: translateY(0) rotate(-4deg);
    align-self: flex-start;
    margin-top: 0;
    z-index: 1;
}

.preserve-card-organize .preserve-item-image:nth-child(2),
.preserve-card-connect .preserve-item-image:nth-child(2) {
    transform: translateY(-20px) rotate(4deg);
    align-self: flex-start;
    margin-top: 90px;
    z-index: 2;
}

/* Content box - auto-size based on text, aligned at fixed position (middle of screen at minimum) */
.preserve-item-content {
    padding: 2rem;
    background: linear-gradient(135deg, hsl(var(--teal), 0.15) 0%, hsl(var(--mint), 0.2) 100%);
    width: auto;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    margin-left: 5%; /* Fixed position to align text starting from middle of screen */
    z-index: 2;
}

/* Share card: 3 images on left, text on right */
.preserve-card-share {
    flex-direction: row;
    align-items: flex-start;
}

.preserve-card-share .preserve-item-image {
    flex: 0 0 auto;
}

.preserve-card-share .preserve-item-content {
    flex: 0 0 auto;
}

/* Organize card: 2 images on left, text on right */
.preserve-card-organize {
    flex-direction: row;
    align-items: flex-start;
}

.preserve-card-organize .preserve-item-image {
    flex: 0 0 auto;
}

.preserve-card-organize .preserve-item-content {
    flex: 0 0 auto;
}

/* Connect card: 2 images on left, text on right */
.preserve-card-connect {
    flex-direction: row;
    align-items: flex-start;
}

.preserve-card-connect .preserve-item-image {
    flex: 0 0 auto;
}

.preserve-card-connect .preserve-item-content {
    flex: 0 0 auto;
}

/* Layer positioning and z-index - Initial stacked state */
.preserve-box-layer-3 {
    z-index: 1;
    transform: translate(0, 0) scale(0.95);
    opacity: 0;
    visibility: hidden;
}

.preserve-box-layer-2 {
    z-index: 2;
    transform: translate(8px, -8px) scale(0.97);
    opacity: 0;
    visibility: hidden;
}

.preserve-box-layer-1 {
    z-index: 3;
    transform: translate(16px, -16px) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Timer-based continuous animation - Cards reveal left/right/left, then loop */
/* 18s total cycle: 6s per card (3s move + 3s hold) - Slowed down for smoother transition */
.preserve-box-layer-1 {
    animation: cardCycle1 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.preserve-box-layer-2 {
    animation: cardCycle2 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.preserve-box-layer-3 {
    animation: cardCycle3 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Card 1: Starts on top, moves LEFT, returns to bottom, comes back to top */
@keyframes cardCycle1 {
    /* 0-2s: Start on top */
    0%, 16.66% {
        transform: translate(16px, -16px) scale(1);
        opacity: 1;
        visibility: visible;
        z-index: 3;
    }
    /* 2-4s: Move LEFT and away */
    33.33% {
        transform: translate(-120%, -16px) rotate(-12deg) scale(0.85);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1;
    }
    /* 4-8s: Stay hidden at bottom */
    50%, 66.66% {
        transform: translate(0, 0) scale(0.95);
        opacity: 0;
        visibility: hidden;
        z-index: 1;
    }
    /* 8-10s: Move to middle */
    83.33% {
        transform: translate(8px, -8px) scale(0.97);
        opacity: 0;
        visibility: hidden;
        z-index: 2;
    }
    /* 10-12s: Move back to top */
    100% {
        transform: translate(16px, -16px) scale(1);
        opacity: 1;
        visibility: visible;
        z-index: 3;
    }
}

/* Card 2: Starts in middle, moves to top, moves RIGHT, returns to bottom */
@keyframes cardCycle2 {
    /* 0-2s: Start in middle */
    0%, 16.66% {
        transform: translate(8px, -8px) scale(0.97);
        opacity: 0;
        visibility: hidden;
        z-index: 2;
    }
    /* 2-4s: Move to top */
    33.33% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        visibility: visible;
        z-index: 3;
    }
    /* 4-6s: Move RIGHT and away */
    50% {
        transform: translate(120%, 0) rotate(12deg) scale(0.85);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1;
    }
    /* 6-10s: Stay hidden at bottom */
    66.66%, 83.33% {
        transform: translate(0, 0) scale(0.95);
        opacity: 0;
        visibility: hidden;
        z-index: 1;
    }
    /* 10-12s: Move back to middle */
    100% {
        transform: translate(8px, -8px) scale(0.97);
        opacity: 0;
        visibility: hidden;
        z-index: 2;
    }
}

/* Card 3: Starts at bottom, moves to middle, moves to top, moves LEFT, returns */
@keyframes cardCycle3 {
    /* 0-2s: Start at bottom */
    0%, 16.66% {
        transform: translate(0, 0) scale(0.95);
        opacity: 0;
        visibility: hidden;
        z-index: 1;
    }
    /* 2-4s: Move to middle */
    33.33% {
        transform: translate(8px, -8px) scale(0.97);
        opacity: 0;
        visibility: hidden;
        z-index: 2;
    }
    /* 4-6s: Move to top */
    50% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        visibility: visible;
        z-index: 3;
    }
    /* 6-8s: Move LEFT and away */
    66.66% {
        transform: translate(-120%, 0) rotate(-12deg) scale(0.85);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1;
    }
    /* 8-12s: Return to bottom and stay */
    83.33%, 100% {
        transform: translate(0, 0) scale(0.95);
        opacity: 0;
        visibility: hidden;
        z-index: 1;
    }
}


.preserve-item-content h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--dark-blue));
    transition: color 0.3s ease;
}

.preserve-box-layer-2:hover .preserve-item-content h3,
.preserve-box-layer-3:hover .preserve-item-content h3 {
    color: hsl(var(--orange));
}

.preserve-item-content p {
    color: hsl(var(--foreground));
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.preserve-item-content p:last-of-type {
    margin-bottom: 1.25rem;
}

.preserve-item-content strong {
    color: hsl(var(--dark-blue));
    font-weight: 600;
}

/* Preserve Memories Intro */
.preserve-memories-intro {
    text-align: center;
    margin: 2rem 0 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.preserve-memories-intro .intro-text {
    font-family: 'Nunito', 'Fredoka', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--dark-blue));
    line-height: 1.7;
}

/* Preserve Features List */
.preserve-features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preserve-features-list li {
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.preserve-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--green));
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .preserve-memories-layered {
        min-height: auto;
        padding: 1rem;
        overflow: hidden; /* Prevent horizontal scroll from overlapping images */
    }
    
    .preserve-stack-container {
        height: auto;
        max-width: 100%;
        overflow: hidden; /* Prevent horizontal scroll from overlapping images */
    }
    
    .preserve-memories-intro {
        margin: 1.5rem 0 2rem;
    }
    
    .preserve-memories-intro .intro-text {
        font-size: 1rem;
    }
    
    /* On mobile, show card groups in a vertical stack without overlay */
    .preserve-card-group {
        position: relative !important;
        margin-bottom: 2rem;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: auto !important;
        pointer-events: auto !important;
        flex-direction: row !important; /* Row for images to overlap horizontally */
        flex-wrap: wrap !important; /* Allow content to wrap to next line */
        align-items: flex-start !important;
        /* Animations restored - can be edited based on behavior */
    }
    
    .preserve-card-group:last-child {
        margin-bottom: 0;
    }
    
    /* Restore layer animations on mobile - can be edited based on behavior */
    .preserve-box-layer-1,
    .preserve-box-layer-2,
    .preserve-box-layer-3 {
        /* Animations restored - transform and opacity controlled by animations */
        position: relative !important;
    }
    
    /* On mobile, display card groups vertically but images overlap horizontally within each card */
    .preserve-card-share,
    .preserve-card-organize,
    .preserve-card-connect {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }
    
    /* Create overlapping tile effect for images on mobile */
    .preserve-item-image {
        margin-right: -25px !important; /* Overlap images by 25px on mobile for tighter tiling */
        position: relative;
        flex-shrink: 0;
    }
    
    .preserve-item-image:last-of-type {
        margin-right: 0 !important;
    }
    
    /* Stagger images with slight rotations for tiled effect on mobile */
    .preserve-card-share .preserve-item-image:nth-child(1) {
        transform: translateY(0) rotate(-3deg) !important;
        margin-top: 0 !important;
        z-index: 1;
    }
    
    .preserve-card-share .preserve-item-image:nth-child(2) {
        transform: translateY(-10px) rotate(2deg) !important;
        margin-top: 20px !important;
        z-index: 2;
    }
    
    .preserve-card-share .preserve-item-image:nth-child(3) {
        transform: translateY(-20px) rotate(-2deg) !important;
        margin-top: 40px !important;
        z-index: 3;
    }
    
    /* Organize and Connect cards - 2 images with overlap */
    .preserve-card-organize .preserve-item-image:nth-child(1),
    .preserve-card-connect .preserve-item-image:nth-child(1) {
        transform: translateY(0) rotate(-3deg) !important;
        margin-top: 0 !important;
        z-index: 1;
    }
    
    .preserve-card-organize .preserve-item-image:nth-child(2),
    .preserve-card-connect .preserve-item-image:nth-child(2) {
        transform: translateY(-10px) rotate(2deg) !important;
        margin-top: 20px !important;
        z-index: 2;
    }
    
    .preserve-item-image img {
        max-width: 140px !important; /* Slightly larger for better mobile visibility */
        max-height: 160px !important;
        width: auto !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 0.5rem !important;
    }
    
    .preserve-item-content {
        padding: 1.5rem !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-top: 1.5rem !important; /* Add space above content after images */
        order: 999 !important; /* Ensure content appears after all images */
    }
    
    .preserve-item-content h3 {
        font-size: 1.25rem;
    }
    
    .preserve-item-content p {
        font-size: 0.875rem;
    }
    
    .preserve-features-list {
        font-size: 0.875rem;
    }
    
    .preserve-features-list li {
        padding-left: 1.25rem;
    }
}

/* Trust Badges Grid */
.trust-badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trust-badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-badge-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-badge-item h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--dark-blue));
}

.trust-badge-item p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, hsl(var(--teal), 0.15) 0%, hsl(var(--mint), 0.2) 100%);
}

.testimonials-carousel {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-slide {
    display: none;
    animation: fadeInSlide 0.6s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card-enhanced {
    padding: 3rem 2rem;
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px hsl(var(--orange), 0.2);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.25rem;
}

.testimonial-text {
    color: hsl(var(--dark-blue));
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    gap: 0.5rem;
}

.testimonial-author strong {
    color: hsl(var(--dark-blue));
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.125rem;
}

.testimonial-author span {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid hsl(var(--orange));
    background-color: #FFFFFF;
    color: hsl(var(--orange));
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background-color: hsl(var(--orange));
    color: #FFFFFF;
    transform: scale(1.1);
}

.testimonial-btn:active {
    transform: scale(0.95);
}

.testimonial-dots {
    display: flex;
    gap: 0.75rem;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: hsl(var(--orange));
    transform: scale(1.3);
}

.testimonial-dots .dot:hover {
    background-color: hsl(var(--orange), 0.8);
    transform: scale(1.2);
}

/* Testimonials Grid (for other sections) */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: 2rem;
}

.testimonial-card .testimonial-stars {
    color: #FFD700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    color: hsl(var(--dark-blue));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .testimonial-author {
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    gap: 0.25rem;
}

.testimonial-card .testimonial-author strong {
    color: hsl(var(--dark-blue));
    font-family: 'Fredoka', 'Nunito', sans-serif;
}

.testimonial-card .testimonial-author span {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* User Stories */
.user-stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .user-stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.user-story-card {
    padding: 2rem;
    text-align: center;
}

.user-story-icon {
    margin-bottom: 1rem;
}

.user-story-icon svg {
    color: hsl(var(--orange)) !important;
}

.user-story-card h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--dark-blue));
}

.user-story-card p {
    color: hsl(var(--foreground));
    line-height: 1.6;
}

/* Video Tour */
.video-tour-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .video-tour-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.video-tour-card {
    text-align: center;
}

.video-placeholder {
    background: linear-gradient(135deg, hsl(var(--dark-blue)) 0%, hsl(var(--dark-blue), 0.8) 100%);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px hsl(var(--orange), 0.3);
}

.video-placeholder p {
    color: #FFFFFF;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.video-placeholder svg {
    color: hsl(var(--orange));
}

.video-tour-card h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--dark-blue));
}

.video-tour-card p {
    color: hsl(var(--foreground));
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background-color: hsl(var(--dark-blue));
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.875rem;
}

.comparison-table th:first-child {
    width: 30%;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--dark-blue), 0.1);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted));
}

.comparison-table td:first-child {
    font-weight: 600;
    color: hsl(var(--dark-blue));
}

.comparison-table td:nth-child(2) {
    color: hsl(var(--dark-blue));
    font-weight: 500;
}

.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
    color: hsl(var(--foreground));
}

/* Educational Cards */
.educational-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .educational-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.educational-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    align-items: center;
}

.educational-icon {
    margin-bottom: 1rem;
}

.educational-card h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--dark-blue));
}

.educational-card p {
    color: hsl(var(--foreground));
    line-height: 1.6;
    flex: 1;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    color: hsl(var(--dark-blue));
    margin-bottom: 2rem;
    text-shadow: none;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.icon-check {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: hsl(var(--green));
}

/* Sections */
section {
    padding: 5rem 1rem;
}

.section-bg {
    background-color: hsl(var(--muted));
}

.section-bg h2 {
    color: hsl(var(--dark-blue));
}

.section-bg .section-subtitle {
    color: hsl(var(--foreground));
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
}

.section-subtitle {
    font-family: 'Nunito', 'Fredoka', sans-serif;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For the "One Home For All Your Memories" section - center boxes in each row */
#everything-you-need .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

#everything-you-need .grid .card {
    flex: 0 1 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    #everything-you-need .grid.grid-2 .card {
        flex: 0 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (min-width: 1024px) {
    #everything-you-need .grid.grid-3 .card {
        flex: 0 1 calc(33.333% - 1.34rem);
        max-width: calc(33.333% - 1.34rem);
        min-width: 280px;
    }
}

/* Feature Showcase */
.features-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .features-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-showcase-item {
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-showcase-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-showcase-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-showcase-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-showcase-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px hsl(var(--orange), 0.2);
}

.feature-showcase-content h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--dark-blue));
}

.feature-showcase-content p {
    color: hsl(var(--foreground));
    line-height: 1.7;
    font-size: 1rem;
}

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

/* Feature Card */
.feature-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .feature-card {
    transform: translateY(-4px);
}

.feature-card h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    color: hsl(var(--dark-blue));
    transition: color 0.3s ease;
}

.card:hover .feature-card h3 {
    color: hsl(var(--orange));
}

.feature-card p {
    color: hsl(var(--foreground));
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: hsl(var(--orange), 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: hsl(var(--orange));
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: hsl(var(--orange), 0.2);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
    flex: 0 0 auto;
}

/* Badge Grid */
.badge-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Pricing Cards */
.pricing-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    height: 100%;
}

.pricing-card h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    color: hsl(var(--dark-blue));
}

.pricing-card {
    color: hsl(var(--foreground));
}

.pricing-card.popular {
    outline: 3px solid hsl(var(--orange));
    transform: scale(1.05);
    box-shadow: 0 8px 24px hsl(var(--orange), 0.2);
}

.pricing-price {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.875rem;
    font-weight: 600;
}

.pricing-storage {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.pricing-features svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: hsl(var(--green));
}

.pricing-card .btn {
    margin-top: auto;
}

/* FAQ */
.faq-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-question {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--dark-blue));
}

.faq-answer {
    color: hsl(var(--foreground));
}

/* Collapsible styling only for FAQ items */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0.75rem;
}

.faq-item .faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.faq-item .faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* Footer */
footer {
    border-top: 1px solid hsla(229, 46.3%, 21.2%, 0.1);
    padding: 3rem 1rem;
    background-color: hsl(var(--background));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: hsl(var(--orange));
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Contact form embed - responsive, no internal scroll */
.contact-form-wrapper {
    display: flex;
    justify-content: center;
}
.contact-form-embed {
    width: 100%;
    max-width: 720px;
    height: 720px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 0;
}

@media (max-width: 640px) {
    .contact-form-embed {
        height: 600px;
    }
}

/* Page Load Fade-in */
body {
    animation: pageFadeIn 0.6s ease-out;
    opacity: 1; /* Ensure content is visible even if animation doesn't play */
}

@keyframes pageFadeIn {
    from {
        opacity: 0.95;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section Staggered Animations */
.hero-title {
    opacity: 0;
    animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-tagline {
    opacity: 0;
    animation: heroFadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: heroFadeInUp 0.8s ease-out 0.4s forwards;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Active State */
.btn:active {
    transform: scale(0.98) !important;
}

/* Slide-in from Sides for Feature Cards */
.grid .card.scroll-reveal:nth-child(odd) {
    transform: translateX(-50px) translateY(50px);
}

.grid .card.scroll-reveal:nth-child(even) {
    transform: translateX(50px) translateY(50px);
}

.grid .card.scroll-reveal.revealed:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out forwards;
}

.grid .card.scroll-reveal.revealed:nth-child(even) {
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Social Media Icons Bounce Animation */
footer a {
    display: inline-block;
}

footer a:hover svg {
    animation: iconBounce 0.5s ease;
    transform-origin: center;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Decorative Background Elements (restricted to User Stories section) */
.user-stories-section {
    position: relative;
    overflow: hidden;
}

.decorative-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.user-stories-section .container {
    position: relative;
    z-index: 1;
}

.decorative-element {
    position: absolute;
    opacity: 0.28;
    color: hsl(22.6, 89.7%, 48%);
    animation: float 6s ease-in-out infinite;
    filter: blur(0.3px);
}

.decorative-element:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.decorative-element:nth-child(2) {
    top: 20%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.decorative-element:nth-child(3) {
    top: 40%;
    left: 3%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.decorative-element:nth-child(4) {
    top: 50%;
    right: 5%;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.decorative-element:nth-child(5) {
    top: 65%;
    left: 10%;
    animation-delay: 0.5s;
    animation-duration: 7s;
}

.decorative-element:nth-child(6) {
    top: 75%;
    right: 12%;
    animation-delay: 2.5s;
    animation-duration: 9s;
}

.decorative-element:nth-child(7) {
    top: 30%;
    left: 50%;
    animation-delay: 1.2s;
    animation-duration: 8s;
}

.decorative-element:nth-child(8) {
    top: 80%;
    left: 45%;
    animation-delay: 0.8s;
    animation-duration: 7s;
}

.decorative-element:nth-child(9) {
    top: 15%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.decorative-element:nth-child(10) {
    top: 55%;
    right: 25%;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.decorative-element:nth-child(11) {
    top: 25%;
    left: 15%;
    animation-delay: 0.3s;
    animation-duration: 7s;
}

.decorative-element:nth-child(12) {
    top: 60%;
    left: 20%;
    animation-delay: 1.8s;
    animation-duration: 9s;
}

.decorative-element:nth-child(13) {
    top: 35%;
    right: 15%;
    animation-delay: 0.7s;
    animation-duration: 8s;
}

.decorative-element:nth-child(14) {
    top: 70%;
    right: 20%;
    animation-delay: 2.2s;
    animation-duration: 7s;
}

.decorative-element:nth-child(15) {
    top: 45%;
    left: 8%;
    animation-delay: 0.4s;
    animation-duration: 9s;
}

.decorative-element:nth-child(16) {
    top: 18%;
    right: 10%;
    animation-delay: 1.3s;
    animation-duration: 8s;
}

.decorative-element:nth-child(17) {
    top: 62%;
    left: 65%;
    animation-delay: 0.6s;
    animation-duration: 7s;
}

.decorative-element:nth-child(18) {
    top: 28%;
    left: 75%;
    animation-delay: 1.9s;
    animation-duration: 9s;
}

.decorative-element:nth-child(19) {
    top: 72%;
    left: 55%;
    animation-delay: 0.9s;
    animation-duration: 8s;
}

.decorative-element:nth-child(20) {
    top: 38%;
    right: 30%;
    animation-delay: 2.4s;
    animation-duration: 7s;
}

.decorative-element:nth-child(21) {
    top: 52%;
    left: 35%;
    animation-delay: 1.1s;
    animation-duration: 9s;
}

.decorative-element:nth-child(22) {
    top: 22%;
    right: 35%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.decorative-element:nth-child(23) {
    top: 68%;
    right: 40%;
    animation-delay: 1.7s;
    animation-duration: 7s;
}

.decorative-element:nth-child(24) {
    top: 42%;
    left: 25%;
    animation-delay: 2.1s;
    animation-duration: 9s;
}

.decorative-element:nth-child(25) {
    top: 58%;
    right: 18%;
    animation-delay: 0.8s;
    animation-duration: 8s;
}

.decorative-element:nth-child(26) {
    top: 32%;
    left: 85%;
    animation-delay: 1.4s;
    animation-duration: 7s;
}

.decorative-element:nth-child(27) {
    top: 48%;
    right: 45%;
    animation-delay: 0.2s;
    animation-duration: 9s;
}

/* Ensure decorative elements are contained within section */
.user-stories-section .container {
    position: relative;
    z-index: 1;
}

.user-stories-section .section-title,
.user-stories-section .user-stories-grid,
.user-stories-section .card {
    position: relative;
    z-index: 1;
}


.decorative-element svg {
    width: 120px;
    height: 120px;
}

@media (max-width: 768px) {
    .decorative-element svg {
        width: 80px;
        height: 80px;
    }
    
    .decorative-element {
        opacity: 0.25;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(5px) rotate(3deg);
    }
    50% {
        transform: translateY(-8px) translateX(-3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-18px) translateX(4px) rotate(4deg);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    body,
    .scroll-reveal,
    .step-animate,
    .feature-showcase-item,
    .testimonial-slide,
    .decorative-element {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .banner-img {
        animation: none !important;
    }
    
    .banner-img-1 {
        transform: rotate(-5deg) !important;
    }
    
    .banner-img-2 {
        transform: rotate(3deg) !important;
    }
    
    .banner-img-3 {
        transform: rotate(-2deg) !important;
    }
    
    .banner-img-4 {
        transform: rotate(4deg) !important;
    }

    .how-it-works-step:hover,
    .feature-showcase-item:hover,
    .testimonial-card-enhanced:hover,
    .btn:hover {
        transform: none !important;
    }
    
    .card.scroll-reveal {
        transform: translateY(50px) !important;
    }
    
    .card.scroll-reveal.revealed {
        transform: translateY(0) !important;
    }
}

/* Icons */
svg {
    display: block;
}

/* Community Section */
.community {
    text-align: center;
}

.community-title {
    margin-bottom: 1rem;
}

.community-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.community-badges svg {
    width: 1.25rem;
    height: 1.25rem;
}

.community-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto 2rem;
}

/* Memories Section */
.memories-section {
    position: relative;
    overflow: hidden;
}

.memories-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, hsl(var(--teal), 0.15), hsl(var(--teal), 0.15));
    pointer-events: none;
}

.memories-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--dark-blue));
}

.memories-title .highlight {
    color: hsl(var(--orange));
}

.memories-section .section-subtitle {
    color: hsl(var(--foreground));
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .how-it-works-steps {
        grid-template-columns: 1fr;
    }

    .how-it-works-step {
        padding: 1.5rem;
    }

    .step-number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }

    .features-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase-item {
        padding: 1.5rem;
    }

    .testimonial-card-enhanced {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-controls {
        gap: 1rem;
    }

    .testimonial-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}


/* Enhanced How It Works Page Styles - Wedibox Style with Stacked Images */
.steps-interactive-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.steps-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.step-nav-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: hsl(var(--background));
    border: 2px solid transparent;
    border-radius: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-nav-item:hover {
    border-color: hsl(var(--orange), 0.3);
    box-shadow: 0 4px 16px hsl(var(--orange), 0.1);
    transform: translateX(4px);
}

.step-nav-item.active {
    border-color: hsl(var(--orange));
    background: linear-gradient(135deg, hsl(var(--orange), 0.05) 0%, hsl(var(--orange), 0.02) 100%);
    box-shadow: 0 4px 20px hsl(var(--orange), 0.15);
}

.step-nav-number {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.step-nav-item.active .step-nav-number {
    background: linear-gradient(135deg, hsl(var(--orange)) 0%, hsl(var(--orange), 0.8) 100%);
    color: white;
    box-shadow: 0 4px 12px hsl(var(--orange), 0.4);
    transform: scale(1.1);
}

.step-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-nav-content h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--dark-blue));
    margin: 0;
    transition: color 0.3s ease;
}

.step-nav-item.active .step-nav-content h3 {
    color: hsl(var(--orange));
}

.step-nav-content p {
    color: hsl(var(--foreground));
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
    opacity: 0.85;
}

.step-nav-item.active .step-nav-content p {
    opacity: 1;
}

/* Image Container - All images stacked in same position */
.steps-image-container {
    position: relative;
    width: 100%;
    height: 650px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: hsl(var(--muted));
}

.step-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.step-image-wrapper.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
    .steps-interactive-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .steps-image-container {
        height: 750px;
    }

    .step-nav-content h3 {
        font-size: 1.5rem;
    }

    .step-nav-content p {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .steps-interactive-container {
        gap: 5rem;
    }

    .steps-image-container {
        height: 850px;
    }

    .step-nav-item {
        padding: 2rem;
    }

    .step-nav-number {
        width: 3.5rem;
        height: 3.5rem;
        min-width: 3.5rem;
        font-size: 1.5rem;
    }
}

/* Wedibox Style Horizontal Carousel for Sample Pages */
.wedibox-style-carousel {
    position: relative;
    width: 100vw;
    margin: 3rem 0 0;
    padding: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: none; /* Continuous scroll - no transition */
    will-change: transform;
}

.sample-page-card {
    flex: 0 0 auto;
    width: 300px;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: hsl(var(--background));
    cursor: pointer;
}

.sample-page-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.sample-page-card.active {
    transform: scale(1.05);
    box-shadow: 0 12px 48px hsl(var(--orange), 0.3);
    z-index: 5;
}

.sample-page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    flex: 0 0 auto;
}

.sample-page-card:hover .sample-page-image {
    transform: scale(1.05);
}

.carousel-nav-controls {
    display: none !important; /* Hidden for continuous scroll */
}

.carousel-nav-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid hsl(var(--orange));
    background: hsl(var(--background));
    color: hsl(var(--orange));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: hsl(var(--orange));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px hsl(var(--orange), 0.4);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-nav-btn:disabled:hover {
    background: hsl(var(--background));
    color: hsl(var(--orange));
    transform: none;
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .wedibox-style-carousel {
        padding: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .sample-page-card {
        width: 250px;
        height: 400px;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-nav-btn {
        width: 3rem;
        height: 3rem;
    }

    .carousel-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1024px) {
    .sample-page-card {
        width: 350px;
        height: 550px;
    }

    .carousel-track {
        gap: 2rem;
    }
}

@media (min-width: 1400px) {
    .sample-page-card {
        width: 400px;
        height: 600px;
    }
}

/* Infinite scroll carousel track */
.carousel-track-infinite {
    transition: none !important; /* No transition for smooth continuous scroll */
}

/* Stream Anywhere Section - Brand Carousel */
.stream-anywhere-section {
    background-color: hsl(var(--background));
    padding: 5rem 1rem;
}

.stream-anywhere-section .section-title {
    margin-bottom: 3rem;
}

/* Brand Carousel Styles - Similar to Partnership Carousels */
.brands-carousel-wrapper {
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
}

.brands-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.brands-carousel-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    will-change: transform;
    transition: none; /* Continuous scroll - no transition */
}

.brand-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    position: relative;
}

.brand-logo-item:hover {
    opacity: 1;
}

.brand-logo-item img {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

.brand-logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.brand-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 1.5rem;
    background: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    min-width: 120px;
    white-space: nowrap;
}

/* Hide placeholder when image is present */
.brand-logo-item.has-image .brand-logo-placeholder {
    display: none;
}

/* Hide image if it fails to load */
.brand-logo-item img.error {
    display: none;
}

/* Responsive Design for Brand Carousel */
@media (max-width: 768px) {
    .brands-carousel-track {
        gap: 2.5rem;
    }
    
    .brand-logo-item {
        height: 50px;
    }
    
    .brand-logo-item img {
        max-height: 50px;
        max-width: 100px;
    }
    
    .brand-logo-placeholder {
        height: 50px;
        font-size: 0.75rem;
        padding: 0 1rem;
        min-width: 100px;
    }
}

@media (min-width: 1024px) {
    .brands-carousel-track {
        gap: 5rem;
    }
    
    .brand-logo-item {
        height: 70px;
    }
    
    .brand-logo-item img {
        max-height: 70px;
        max-width: 140px;
    }
}

/* Ensure carousel is full-width by breaking out of container padding */

