/* Modern CSS with Dark Mode Support */

:root {
    /* Light theme colors - Warm & Sophisticated */
    --primary-color: #8B5A3C; /* Warm brown, reminiscent of old book covers */
    --primary-light: #A67C5A;
    --primary-dark: #6B4423;
    --secondary-color: #D4AF37; /* Elegant gold accent */
    --accent-color: #E8DDD4; /* Warm cream */
    
    /* Text colors with better contrast */
    --text-primary: #1A1612; /* Much darker brown for main text */
    --text-secondary: #3C332A; /* Darker brown for secondary text */
    --text-muted: #6B5A47; /* Medium brown for muted text */
    
    /* Surface colors */
    --surface-background: #FAF8F5; /* Warm off-white background */
    --surface-card: #FFFFFF; /* Pure white for cards */
    --surface-hover: #F5F1EB; /* Subtle warm hover */
    --surface-active: #E8DDD4;
    
    /* Border and shadows */
    --border: #E0D5C7; /* Soft warm border */
    --border-hover: #C4B5A0;
    --overlay: rgba(44, 24, 16, 0.15); /* Subtle warm overlay */
    
    /* Shadows with warm tones */
    --shadow-sm: 0 1px 2px 0 rgba(139, 90, 60, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(139, 90, 60, 0.1), 0 2px 4px -1px rgba(139, 90, 60, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(139, 90, 60, 0.1), 0 4px 6px -2px rgba(139, 90, 60, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(139, 90, 60, 0.1), 0 10px 10px -5px rgba(139, 90, 60, 0.04);
    
    /* Design system */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --transition-duration: 0.2s;
}

/* Dark theme colors - Sophisticated Dark with Elegant Accents */
[data-theme="dark"] {
    /* Primary colors - elegant and sophisticated */
    --primary-color: #8B7355; /* Sophisticated taupe-brown */
    --primary-light: #A68B6B;
    --primary-dark: #6B5A47;
    --secondary-color: #B8A082; /* Warm beige accent */
    --accent-color: #3C332A; /* Deep warm brown */
    
    /* Text colors */
    --text-primary: #F5F2EE; /* Warm off-white for main text */
    --text-secondary: #D4C7B8; /* Light brown for secondary text */
    --text-muted: #A69B8E; /* Medium brown for muted text */
    
    /* Surface colors */
    --surface-background: #1A1612; /* Deep warm dark background */
    --surface-card: #252017; /* Slightly lighter warm dark for cards */
    --surface-hover: #2F2920; /* Subtle warm hover */
    --surface-active: #3C332A;
    
    /* Border and shadows */
    --border: #3C332A; /* Warm dark border */
    --border-hover: #4A3E33;
    --overlay: rgba(139, 115, 85, 0.15); /* Taupe overlay instead of gold */
    
    /* Shadows with neutral tones for elegance */
    --shadow-sm: 0 1px 2px 0 rgba(139, 115, 85, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(139, 115, 85, 0.15), 0 2px 4px -1px rgba(139, 115, 85, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(139, 115, 85, 0.2), 0 4px 6px -2px rgba(139, 115, 85, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(139, 115, 85, 0.25), 0 10px 10px -5px rgba(139, 115, 85, 0.15);
}

/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface-background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-duration), color var(--transition-duration);
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main content should account for fixed header */
main {
    padding-top: 100px !important;
    margin-top: 0 !important;
}

.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;
}

/* Header styles */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    background: var(--surface-card) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 9999 !important;
    transition: all var(--transition-duration) ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 80px;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo {
    display: flex !important;
    align-items: center;
    gap: 0.5rem; /* Reduced gap for closer spacing */
    font-weight: 600;
    font-size: 1.5rem; /* Larger text to better match icon height */
    color: var(--text-primary); /* Use primary text color for black/white */
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1; /* Tighter line height to match icon better */
    visibility: visible !important;
    opacity: 1 !important;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 36px; /* Slightly smaller icon */
    height: 36px;
    border-radius: 6px; /* Proportionally smaller border radius */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.nav-links {
    display: flex !important;
    list-style: none;
    gap: 2rem;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-links li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.nav-links a:focus {
    outline: none;
    color: var(--primary-color);
}

/* Theme toggle button */
.theme-toggle {
    background: none !important;
    border: none !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    border-radius: var(--radius-md) !important;
    transition: background-color 0.3s ease !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.theme-toggle:hover {
    background-color: var(--surface-hover);
}

/* CTA Button */
.cta-button {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Theme toggle button */
/* Theme Toggle */
.theme-toggle {
    background: linear-gradient(135deg, var(--background-color), var(--card-background));
    color: var(--text-color);
    border: 2px solid #C4B5A0; /* Warm beige border */
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #C4B5A0; /* Warm beige background on hover */
    color: var(--primary-color); /* Brown text on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(196, 181, 160, 0.3); /* Warm beige shadow */
}

/* Button styles */
.cta-button {
    background: var(--primary-color) !important; /* Same as theme start buttons */
    color: white !important; /* Same as theme start buttons */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    background: var(--primary-dark) !important; /* Same as theme start buttons */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.cta-button:visited {
    color: white !important;
}

[data-theme="dark"] .cta-button {
    background: var(--primary-color) !important; /* Keep same colors for dark mode */
    color: white !important;
}

[data-theme="dark"] .cta-button:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

[data-theme="dark"] .cta-button:visited {
    color: white !important;
}

.cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #C4B5A0; /* Warm beige matching CTA buttons */
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 90, 60, 0.3); /* Warm brown shadow */
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn:hover {
    background-color: #A69B8E; /* Darker warm beige on hover */
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 90, 60, 0.4);
}

.whatsapp-btn img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(37%) saturate(758%) hue-rotate(16deg) brightness(93%) contrast(94%); /* Warm brown tint */
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0 2.5rem; /* More compact padding */
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem); /* Much larger headline */
    font-weight: 800; /* Bolder weight */
    margin-bottom: 1.5rem;
    line-height: 1.1; /* Tighter line height */
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.4rem; /* Larger support text */
    margin-bottom: 3rem; /* More space before CTA */
    opacity: 0.95; /* Slightly more opaque */
    max-width: 700px; /* Wider max width */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.4; /* Better line height */
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Simplified Hero Section */
.hero-simple {
    background: var(--surface-background);
    padding: 5rem 0 2.5rem; /* More compact padding */
    text-align: center;
    margin-top: 80px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem); /* Much larger headline */
    font-weight: 800; /* Bolder weight */
    margin-bottom: 1.5rem;
    line-height: 1.1; /* Tighter line height */
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.4rem, 3vw, 2rem); /* Larger supporting text */
    margin-bottom: 2rem; /* Less space after subtitle */
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.hero-simple .main-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-simple .support-line {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-simple .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.shock-opener {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.shock-opener h1 {
    font-size: clamp(3.5rem, 8vw, 6rem); /* Much larger main headline */
    font-weight: 800; /* Bolder weight */
    margin-bottom: 1.5rem;
    line-height: 1.1; /* Tighter line height */
    color: var(--text-primary);
}

.shock-line {
    font-size: clamp(1.4rem, 3vw, 2rem); /* Larger supporting text */
    margin-bottom: 0.5rem;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

/* Benefits section */
.benefits {
    padding: 3rem 0;
    background: var(--surface-background);
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition-duration) ease;
}

.benefit-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.benefit-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.benefit-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* Memory Themes section */
.memory-themes {
    padding: 4rem 0;
    background: var(--surface-background);
}

.memory-themes h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    transition: all var(--transition-duration) ease;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.theme-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-duration) ease;
}

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

.theme-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.theme-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.theme-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.theme-card p a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color var(--transition-duration) ease;
    font-weight: 500;
}

.theme-card p a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

.theme-card p a:visited {
    color: var(--primary-color) !important;
}

.theme-start-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.theme-start-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Audience section */
.audience {
    padding: 4rem 0;
    background: var(--surface-background);
}

.audience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.audience-grid {
    max-width: 800px;
    margin: 0 auto;
}

.audience-card {
    background: transparent;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: left;
    border: none;
    box-shadow: none;
    transition: none;
}

.audience-card:hover {
    transform: none;
    box-shadow: none;
}

.audience-card:last-child {
    margin-bottom: 0;
}

.audience-icon {
    display: none; /* Hide emoji icons */
}

.audience-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    padding-left: 0; /* Remove left padding */
}

.audience-card h3::before {
    display: none; /* Hide bullet points */
}

.audience-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    padding-left: 0; /* Remove left padding */
}

/* Features section */
.features {
    padding: 4rem 0;
    background: var(--surface-card);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.features-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature-card {
    background: transparent;
    padding: 1.5rem;
    text-align: center;
    border: none;
    box-shadow: none;
    transition: none;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-card:last-child {
    margin-bottom: 0;
}

.feature-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-icon {
    display: none; /* Hide emoji icons */
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 0;
}

.feature-card h3::before {
    display: none;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 0;
}

/* Audience section */
.mission {
    padding: 4rem 0;
    text-align: center;
    background: var(--surface-background);
}

.mission h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.mission p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Privacy section */
.privacy {
    background: var(--surface-card);
    padding: 4rem 0;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.privacy h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.privacy p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.privacy-features {
    list-style: none;
}

.privacy-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.privacy-features li::before {
    content: "✓";
    color: #059669;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Universal link styling to ensure brand consistency - Maximum specificity */
a,
a:link,
a:visited,
a:active {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

a:hover,
a:focus {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

/* Exceptions for specific button types */
.cta-button,
.cta-button:link,
.cta-button:visited,
.cta-button:active,
.cta-button:hover,
.cta-button:focus {
    background: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
}

.theme-start-btn,
.theme-start-btn:link,
.theme-start-btn:visited,
.theme-start-btn:active,
.theme-start-btn:hover,
.theme-start-btn:focus {
    background: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
}

.logo,
.logo:link,
.logo:visited,
.logo:active,
.logo:hover,
.logo:focus {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

/* Page content styling for mission and guide pages */
.page-content a,
.page-content a:link,
.page-content a:visited {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.page-content a:hover,
.page-content a:focus {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* Copy button styling */
.copy-btn {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem; /* Match the code element padding */
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    height: auto; /* Let it match the code element height naturally */
    min-height: 36px; /* Ensure minimum touch target */
}

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

.copy-btn.copied {
    background: #059669;
    color: white;
    border-color: #059669;
}

.command-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: var(--surface-background); /* Same as main background */
    color: var(--text-primary); /* Use main text color */
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border); /* Add subtle border for light mode */
}

/* Dark mode footer adjustments */
[data-theme="dark"] footer {
    background: var(--surface-background); /* Same as dark mode main background */
    color: #F5F2EE;
    border-top: 1px solid var(--border); /* Dark mode border */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary); /* Use theme text color */
    font-weight: 600;
}

.footer-section a {
    color: var(--text-secondary); /* Use theme secondary text color */
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color); /* Use primary color on hover */
}

.footer-bottom {
    border-top: 1px solid var(--border-hover);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted); /* Use theme muted text color */
}

/* Dark mode footer text adjustments */
[data-theme="dark"] .footer-section h3 {
    color: #F5F2EE;
}

[data-theme="dark"] .footer-section a {
    color: #C4B5A0; /* Warm beige from theme */
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--secondary-color); /* Gold accent on hover */
}

[data-theme="dark"] .footer-bottom {
    color: #A69B8E; /* Warm muted text from theme */
}

/* Responsive design */
@media (max-width: 768px) {
    /* Mobile menu toggle - keep hidden for now to ensure navigation always shows */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Keep navigation visible but make it more compact for mobile */
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* Remove mobile-specific navigation styling to keep horizontal layout */
    .nav-links li {
        width: auto !important;
        display: list-item !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-links a,
    .nav-links button {
        padding: 0.5rem 1rem;
        width: auto;
        text-align: center;
        border-bottom: none;
        display: inline-block;
    }
    
    .nav-links .cta-button {
        margin: 0;
        width: auto;
        text-align: center;
        border-bottom: none;
    }
    
    .nav-links .theme-toggle {
        background: transparent;
        border: none;
        justify-content: center;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-button {
        justify-content: center;
    }

    .privacy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid, .themes-grid, .audience-grid {
        grid-template-columns: 1fr;
    }

    .benefits {
        padding: 2rem 0;
    }

    .benefit-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .benefit-emoji {
        font-size: 1.25rem;
        width: 1.5rem;
    }

    .benefit-text {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .theme-card, .audience-card {
        padding: 1.5rem;
    }

    .memory-themes h2, .audience h2, .features h2, .mission h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0 2rem;
    }

    .features, .mission, .privacy, .memory-themes, .audience {
        padding: 3rem 0;
    }

    .feature-card, .theme-card, .audience-card {
        padding: 1.5rem;
    }

    .themes-grid {
        gap: 1rem;
    }

    .theme-icon, .audience-icon {
        font-size: 2.5rem;
    }
    
    /* Make steps vertical on mobile */
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card:not(:last-child)::after {
        content: "↓";
        position: static;
        display: block;
        text-align: center;
        margin: 1rem 0;
        transform: none;
    }
}

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

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible for better accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== COLOR SCHEME GUARDS ===== */
/* Ensure all sections have proper backgrounds and follow design system */

/* Primary sections - main background */
.hero-simple,
.memory-themes,
.mission {
    background: var(--surface-background) !important;
}

/* Alternate sections - card background for subtle contrast */
.features,
.audience,
.privacy {
    background: var(--surface-card) !important;
}

/* Ensure all cards use consistent backgrounds */
.theme-card {
    background: var(--surface-card) !important;
    border: 1px solid var(--border) !important;
}

.feature-card,
.audience-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure modals have proper backgrounds */
.theme-modal {
    background: rgba(26, 22, 18, 0.85) !important;
}

body.dark-mode .theme-modal {
    background: rgba(26, 22, 18, 0.90) !important;
}

.modal-content {
    background: var(--surface-card) !important;
    border: 1px solid var(--border) !important;
}

/* FINAL LINK COLOR OVERRIDE - Maximum priority */
* a,
* a:link,
* a:visited,
* a:active {
    color: var(--primary-color) !important;
}

* a:hover,
* a:focus {
    color: var(--primary-dark) !important;
}

/* Restore button colors */
* .cta-button,
* .cta-button:link,
* .cta-button:visited,
* .cta-button:active,
* .cta-button:hover,
* .cta-button:focus,
* .theme-start-btn,
* .theme-start-btn:link,
* .theme-start-btn:visited,
* .theme-start-btn:active,
* .theme-start-btn:hover,
* .theme-start-btn:focus {
    color: white !important;
}

* .logo,
* .logo:link,
* .logo:visited,
* .logo:active,
* .logo:hover,
* .logo:focus {
    color: var(--text-primary) !important;
}

/* Blog Post Styles */
.blog-post .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.blog-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.blog-content ul, .blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlight-box {
    background: var(--surface-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.highlight-box h4 {
    margin-top: 0;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .blog-post .container {
        padding: 1rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-content h3 {
        font-size: 1.35rem;
    }
}
