/* ========== CSS VARIABLES ========== */
:root {
    /* Colors - Warm & Inviting Palette */
    --primary-color: #D97706;
    --primary-dark: #B45309;
    --primary-light: #FBBF24;

    --secondary-color: #059669;
    --secondary-dark: #047857;
    --secondary-light: #34D399;

    --accent-color: #DC2626;
    --accent-light: #F87171;

    --background: #FFFBF5;
    --surface: #FFFFFF;
    --surface-elevated: #FEF3E2;

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;

    --border-color: #D1D5DB;
    --border-light: #E5E7EB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    --gradient-secondary: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --gradient-hero: linear-gradient(180deg, rgba(255, 251, 245, 0.95) 0%, rgba(255, 247, 237, 0.98) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

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

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-warm: 0 10px 30px rgba(217, 119, 6, 0.15);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}

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

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

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

.nav-menu a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--primary-light);
    transform: rotate(15deg);
}

.theme-toggle .moon-icon {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-only {
    display: none;
}

.desktop-theme-toggle {
    display: flex;
}

/* ========== BUTTONS ========== */
.btn-primary,
.btn-secondary,
.btn-nav {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-warm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.25);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-nav {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-arrow {
    transition: transform var(--transition-normal);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: var(--space-3xl) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(217, 119, 6, 0.03) 35px, rgba(217, 119, 6, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(5, 150, 105, 0.03) 35px, rgba(5, 150, 105, 0.03) 70px);
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--space-md);
    animation: slideUp 0.8s ease 0.1s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
    animation: slideUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: slideUp 0.8s ease 0.3s backwards;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    animation: slideUp 0.8s ease 0.4s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeIn 1s ease 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.box-preview {
    position: relative;
}

.box-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 480px;
}

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

.mystery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.8) 0%, rgba(5, 150, 105, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.box-image-wrapper:hover .mystery-overlay {
    opacity: 1;
}

.mystery-text {
    font-family: var(--font-display);
    font-size: 6rem;
    color: white;
    font-weight: 700;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

.box-floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-1 {
    top: 10%;
    right: -2%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -2%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 10%;
    right: -2%;
    animation-delay: 1s;
}

.card-4 {
    top: 5%;
    left: -2%;
    animation-delay: 1.5s;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.step-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.step-number {
    position: absolute;
    top: -15px;
    right: var(--space-lg);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--surface-elevated);
    text-shadow: -1px -1px 0 var(--border-color);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

/* ========== FEATURED BOXES ========== */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.box-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.box-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.box-card.featured {
    border: 3px solid var(--primary-color);
}

.box-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.box-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.box-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.box-badge.premium {
    background: var(--gradient-primary);
    color: white;
}

.box-card-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.box-card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.box-card-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    flex: 1;
}

.box-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.feature-tag {
    padding: 0.375rem 0.75rem;
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.box-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.box-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========== THEME REVEAL ========== */
.theme-reveal {
    background: var(--surface-elevated);
}

.theme-reveal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: stretch;
}

.theme-visual {
    display: flex;
}

.theme-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.theme-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.theme-overlay {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--primary-color);
}

.theme-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    line-height: 1.1;
}

.theme-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.theme-description {
    margin-bottom: var(--space-xl);
}

.theme-description p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.theme-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 0.25rem;
}

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

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient-overlay);
}

.cta-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-3xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.guarantee-icon {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.cta-visual {
    position: relative;
    height: 300px;
}

.cta-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-surprise-box {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

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

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

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

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

.footer-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: var(--space-xs);
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.footer .newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer .newsletter-form button {
    padding: 0.75rem 1.5rem;
}

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

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: white;
}

/* ========== RESPONSIVE DESIGN ========== */
/* ========================================
   RESPONSIVE DESIGN
   Breakpoints:
   Mobile:   < 640px
   Tablet:   640px - 1024px
   Desktop:  1024px - 1280px
   Large:    > 1280px
   ======================================== */

/* ========== TABLET + MOBILE (<= 1200px) ========== */
@media (max-width: 1200px) {

    .hero-content,
    .theme-reveal-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-visual {
        order: -1;
    }

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

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

    /* Hamburger menu shows at tablet+mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        gap: var(--space-sm);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .desktop-theme-toggle {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .btn-nav {
        display: none;
    }

    /* Contact layout stacks on tablet */
    .contact-wrapper {
        flex-direction: column !important;
    }

    /* Pull floating cards inside the container to prevent horizontal overflow */
    .card-1 {
        right: 5%;
    }

    .card-2 {
        left: 5%;
    }

    .card-3 {
        right: 5%;
    }

    .card-4 {
        left: 5%;
    }
}

/* ========== MOBILE ONLY (<= 640px) ========== */
@media (max-width: 640px) {
    .hero {
        padding: var(--space-xl) 0;
        min-height: auto;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .box-floating-cards {
        display: none;
    }

    /* Reduce hero image height on mobile */
    .box-image-wrapper {
        height: 300px;
    }

    .theme-title {
        font-size: 2.5rem;
    }

    .cta-visual {
        display: none;
    }

    /* Fix cta-card padding so the gradient background doesn't show as side gutters */
    .cta-card {
        padding: var(--space-lg);
        grid-template-columns: 1fr;
    }

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

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

    /* Touch-friendly buttons (44px minimum tap target) */
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 0.9375rem;
        min-height: 48px;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }


    /* Search container stacks */
    .search-container {
        flex-direction: column;
    }

    .search-container input,
    .search-container button {
        width: 100%;
    }

    /* Fix 1: Recipes search-bar button overflows at 360px */
    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .search-btn {
        padding: var(--space-md);
        flex-shrink: 0;
        min-width: 3rem;
    }

    /* Fix 2: About CTA buttons - full-width + centered at 360px */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn-large {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Fix 3: Stories newsletter form - stack vertically on 360px */
    .newsletter-form {
        flex-direction: column !important;
        max-width: 100% !important;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: var(--radius-md) !important;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* ========== SMALL MOBILE (<= 480px) ========== */
@media (max-width: 480px) {
    .box-card-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .box-price {
        justify-content: center;
    }

    .box-card-footer .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-buttons .btn-large {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

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

/* ========== LARGE SCREENS (> 1280px) ========== */
@media (min-width: 1280px) {
    .container {
        max-width: 1440px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

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

    .logo-icon,
    .box-preview,
    .cta-surprise-box {
        animation: none !important;
    }
}

/* ========== CARD HEIGHT UTILS ========== */
.recipe-card,
.community-card,
.history-card,
.value-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-content,
.community-content,
.history-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-content p,
.community-content p,
.history-content p {
    flex: 1;
}

.value-card {
    padding: var(--space-md) !important;
}

.value-card p {
    flex: 1;
}

.contact-info-card {
    padding: var(--space-md) !important;
}