/* ==========================================================================
   Walking for Seniors: Family Garden - Kawaii Styles
   A gentle, cute design inspired by cozy mobile games
   ========================================================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Colors - Soft pastel kawaii palette */
    --color-primary: #5BA4D9;
    --color-primary-dark: #4A90C7;
    --color-secondary: #68D391;
    --color-accent: #FF8C42;
    --color-accent-light: #FFAB91;
    --color-background: #F5F9FC;
    --color-card: #FFFFFF;
    --color-text: #2D3748;
    --color-text-secondary: #718096;
    --color-success: #68D391;
    --color-border: #E8F0F6;
    --color-purple: #9B6BD0;
    --color-pink: #F8BBD9;
    --color-yellow: #FFE066;

    /* Typography */
    --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

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

    /* Layout */
    --container-max: 1200px;
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-full: 50%;

    /* Shadows - Soft, rounded shadows */
    --shadow-sm: 0 2px 8px rgba(91, 164, 217, 0.1);
    --shadow-md: 0 4px 16px rgba(91, 164, 217, 0.15);
    --shadow-lg: 0 8px 24px rgba(91, 164, 217, 0.2);
    --shadow-xl: 0 12px 32px rgba(91, 164, 217, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

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

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav-logo:hover {
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
    padding: var(--space-xs) 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.nav-btn:hover {
    background: var(--color-accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-text);
    position: relative;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: var(--color-text);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-slow);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
        background: var(--color-primary);
    }

    .nav-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
        background: var(--color-primary);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #E8F5E9 0%, #F5F9FC 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 15%;
    left: 10%;
    animation: floatCloud 25s ease-in-out infinite;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.cloud-1::after {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 50px;
}

.cloud-2 {
    width: 120px;
    height: 45px;
    top: 25%;
    right: 15%;
    animation: floatCloud 30s ease-in-out infinite reverse;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud-2::after {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 60px;
}

.cloud-3 {
    width: 80px;
    height: 35px;
    top: 40%;
    left: 25%;
    animation: floatCloud 20s ease-in-out infinite;
}

.cloud-3::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 12px;
}

.cloud-3::after {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 40px;
}

@keyframes floatCloud {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -10px);
    }
}

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

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

.hero-title {
    margin-bottom: var(--space-xl);
}

.hero-title-small {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.hero-title-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.25rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 164, 217, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 164, 217, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-accent {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.btn-accent:hover {
    background: var(--color-accent-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-island {
    position: relative;
}

.island-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(91, 164, 217, 0.2));
}

.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

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

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .island-svg {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works {
    background: white;
}

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

@media (max-width: 968px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

.step-card {
    position: relative;
    background: var(--color-background);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: all var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.step-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.15;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.step-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background: linear-gradient(180deg, var(--color-background) 0%, white 100%);
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--border-radius-xl);
    border: 2px solid var(--color-border);
    transition: all var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
}

.feature-icon-blue {
    background: rgba(91, 164, 217, 0.15);
}

.feature-icon-green {
    background: rgba(104, 211, 145, 0.15);
}

.feature-icon-orange {
    background: rgba(255, 140, 66, 0.15);
}

.feature-icon-purple {
    background: rgba(155, 107, 208, 0.15);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.feature-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ==========================================================================
   Garden Themes Carousel Section
   ========================================================================== */
.garden-themes {
    background: white;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    padding: 0 var(--space-md);
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.theme-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-border);
    transition: all var(--transition-slow);
}

.theme-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.theme-badge {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    background: var(--color-secondary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
}

.theme-badge-purple {
    background: var(--color-purple);
}

.theme-badge-green {
    background: #4CAF50;
}

.theme-badge-orange {
    background: var(--color-accent);
}

.theme-badge-pink {
    background: #E91E63;
}

.theme-image {
    position: relative;
    background: var(--color-background);
    padding: var(--space-md);
}

.theme-image svg {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.theme-info {
    padding: var(--space-xl);
    background: var(--color-background);
}

.theme-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.theme-info p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.theme-features {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.theme-feature {
    background: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: white;
}

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

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ==========================================================================
   Progress Card
   ========================================================================== */
.garden-progress {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.garden-progress.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.progress-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7BB8E0 100%);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-xl);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.progress-icon {
    width: 28px;
    height: 28px;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-main {
    margin-bottom: var(--space-lg);
}

.progress-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
}

.progress-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 7px;
    transition: width 1s ease-out;
}

.progress-goal {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    background: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

.testimonial-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.testimonial-quote {
    position: relative;
    margin-bottom: var(--space-xl);
}

.quote-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.testimonial-quote p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar svg {
    width: 100%;
    height: 100%;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7BB8E0 100%);
    z-index: 0;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: float 20s ease-in-out infinite;
}

.cta-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.cta-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(0, -30px);
    }
    75% {
        transform: translate(-20px, -10px);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
}

.cta-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.cta-buttons {
    margin-bottom: var(--space-2xl);
}

.cta-buttons .btn-accent {
    background: white;
    color: var(--color-primary);
}

.cta-buttons .btn-accent:hover {
    background: var(--color-accent);
    color: white;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-feature svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-text);
    color: white;
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-logo:hover {
    color: var(--color-secondary);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-column h5 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

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

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.badge svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Animation Utilities
   ========================================================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grids */
.steps-grid .step-card:nth-child(1) { transition-delay: 0ms; }
.steps-grid .step-card:nth-child(2) { transition-delay: 100ms; }
.steps-grid .step-card:nth-child(3) { transition-delay: 200ms; }

.features-grid .feature-card:nth-child(1) { transition-delay: 0ms; }
.features-grid .feature-card:nth-child(2) { transition-delay: 100ms; }
.features-grid .feature-card:nth-child(3) { transition-delay: 200ms; }
.features-grid .feature-card:nth-child(4) { transition-delay: 300ms; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 150ms; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Footer bottom padding for security footer */
.footer {
    padding-bottom: 60px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Desktop-specific fixes */
@media (min-width: 769px) {
    /* Ensure proper width for desktop */
    .container {
        padding: 0 2rem;
    }

    /* Fix hero section spacing on desktop */
    .hero {
        min-height: 85vh;
    }

    /* Ensure cards don't have layout shifts */
    .theme-card {
        position: relative;
    }

    /* Ensure images load properly */
    .hero-island,
    .theme-image {
        width: 100%;
        overflow: hidden;
    }

    /* Fix any horizontal overflow */
    body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   Page Hero (for sub-pages)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #E8F5E9 0%, #F5F9FC 100%);
    text-align: center;
    overflow: hidden;
    min-height: auto;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-hero .cloud {
    opacity: 0.5;
}

.page-hero .cloud-1 {
    width: 80px;
    height: 32px;
    top: 20%;
    left: 5%;
}

.page-hero .cloud-1::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 12px;
}

.page-hero .cloud-1::after {
    width: 28px;
    height: 28px;
    top: -14px;
    left: 40px;
}

.page-hero .cloud-2 {
    width: 100px;
    height: 36px;
    top: 30%;
    right: 8%;
}

.page-hero .cloud-2::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 16px;
}

.page-hero .cloud-2::after {
    width: 32px;
    height: 32px;
    top: -16px;
    left: 50px;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

.page-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   Help Page Styles
   ========================================================================== */
.help-faq-section {
    background: white;
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(91, 164, 217, 0.15);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.faq-item p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.help-contact-section {
    background: var(--color-background);
    padding: 4rem 0;
}

.help-contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(91, 164, 217, 0.2);
}

.help-contact-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-contact-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.help-contact-buttons {
    margin-bottom: 1rem;
}

.help-response-time {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-content-section {
    background: var(--color-background);
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(91, 164, 217, 0.1);
}

.contact-info-card h2,
.contact-form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-intro {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: 12px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin: 0;
    color: var(--color-text);
}

.contact-details a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-hours {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 164, 217, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

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

.btn-full {
    width: 100%;
}

/* FAQ Preview Section */
.faq-preview-section {
    background: white;
    padding: 4rem 0;
}

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

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-preview-section .faq-item {
    background: var(--color-background);
}

.faq-cta {
    text-align: center;
}

/* ==========================================================================
   Legal Pages (Privacy & Terms) - Enhanced Readability
   ========================================================================== */
.privacy-content-section,
.terms-content-section {
    background: var(--color-background);
    padding: 4rem 0;
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(91, 164, 217, 0.1);
}

.legal-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(91, 164, 217, 0.1) 0%, rgba(104, 211, 145, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.legal-content li strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

.contact-info {
    background: var(--color-background);
    padding: 1.5rem !important;
    border-radius: 16px;
    margin-top: 1rem !important;
    border: 1px solid var(--color-border);
}

.contact-info a {
    color: var(--color-primary);
}

/* Table of Contents style for easy navigation */
.toc-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #F5F9FC 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.toc-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.toc-list li {
    margin: 0;
    padding: 0;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateX(4px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }

    .legal-content h3 {
        font-size: 1rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
        line-height: 1.8;
    }

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