/* 🎨 LANDING PAGE COMPLETA - Estilos Base + Animaciones Optimizadas */

/* ===== VARIABLES CORE ===== */
:root {
    --color-primary: #0543FA;
    --color-primary-light: #5A89FF;
    --color-primary-dark: #0039E3;
    --color-secondary: #FF7DCB;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(5, 67, 250, 0.12);
    --backdrop-blur: blur(20px);
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

/* ===== ACCESIBILIDAD ===== */
/* Skip to main content link - visible on focus */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    top: 1rem;
}

.skip-link:focus {
    left: 1rem;
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

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

/* Focus visible styles para mejor accesibilidad */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.landing-container {
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

/* ===== HEADER LOGO FIJO ===== */
.hero-logo-container {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 100;
    animation: logoEntrance 1.2s ease-out;
}

.hero-logo {
    width: auto;
    height: 24px;
    filter: drop-shadow(0 4px 12px rgba(5, 67, 250, 0.2));
}

/* Animaciones mágicas del logo - letra por letra */
.resto-letters path,
.digital-letters path {
    opacity: 0;
    animation: letterReveal 0.6s ease-out forwards;
    filter: drop-shadow(0 2px 4px rgba(90, 137, 255, 0.3));
}

/* Delays progresivos para cada letra - secuencia mágica */
.letter-r { animation-delay: 0.1s; }
.letter-e1 { animation-delay: 0.2s; }
.letter-s { animation-delay: 0.3s; }
.letter-t { animation-delay: 0.4s; }
.letter-o { animation-delay: 0.5s; }
.letter-d { animation-delay: 0.7s; }
.letter-i1 { animation-delay: 0.8s; }
.letter-g { animation-delay: 0.9s; }
.letter-i2 { animation-delay: 1.0s; }
.letter-t2 { animation-delay: 1.1s; }
.letter-a { animation-delay: 1.2s; }
.letter-l { animation-delay: 1.3s; }

/* Accent mark con brillo especial */
.accent-mark {
    animation-delay: 0.6s;
    filter: drop-shadow(0 0 8px rgba(255, 125, 203, 0.6));
}

/* Efecto shimmer que pasa una sola vez al final */
.shimmer-overlay {
    opacity: 0;
    animation: shimmerPass 2s ease-in-out 1.5s forwards;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
        filter: blur(1px);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes shimmerPass {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.4;
        transform: translateX(0%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== MAIN LANDING ===== */
.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    width: 100%;
    height: 80vh;
}

/* ===== HERO TEXT ===== */
.hero-text {
    animation: fadeInUp 0.8s ease-out 0.5s both;
    padding-right: var(--spacing-lg);
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* ===== HERO FEATURES ===== */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.feature-item:hover {
    background: rgba(5, 67, 250, 0.05);
    transform: translateX(4px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ===== CTA CONTAINER ===== */
.cta-container {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

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

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

.btn-primary .icon,
.btn-secondary .icon {
    width: 20px;
    height: 20px;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out 0.7s both;
}

/* ===== CONTENEDOR VISUAL DE CARDS ===== */
.visual-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1200px;
    perspective-origin: center center;
    overflow: visible;
    z-index: 10;
}

/* ===== CARDS FLOTANTES ===== */
.floating-element {
    position: absolute;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 4px 20px rgba(5, 67, 250, 0.1);
    border: 1px solid rgba(5, 67, 250, 0.15);
    z-index: 20;
    opacity: 0;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    width: max-content;
    max-width: 140px;
    height: auto;
    
    /* Solo transición para opacity, NO para transform */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Transición suave para cuando aparecen */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== ANIMACIÓN DE FLOTACIÓN 3D ===== */
@keyframes professionalFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }
    20% {
        transform: translate3d(2px, -3px, 8px) rotateX(2deg) rotateY(-1deg) rotateZ(0.5deg) scale(1.02);
    }
    40% {
        transform: translate3d(-1px, 2px, 12px) rotateX(-1deg) rotateY(2deg) rotateZ(-0.5deg) scale(0.98);
    }
    60% {
        transform: translate3d(3px, 1px, 6px) rotateX(1.5deg) rotateY(-0.5deg) rotateZ(1deg) scale(1.01);
    }
    80% {
        transform: translate3d(-2px, -1px, 4px) rotateX(-0.5deg) rotateY(1.5deg) rotateZ(-0.3deg) scale(0.99);
    }
}

@keyframes professionalFloatCenterX {
    0%, 100% {
        transform: translateX(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }
    25% {
        transform: translateX(-50%) translate3d(1px, -2px, 6px) rotateX(1deg) rotateY(-1.5deg) rotateZ(0.3deg) scale(1.01);
    }
    50% {
        transform: translateX(-50%) translate3d(-2px, 1px, 10px) rotateX(-1.5deg) rotateY(1deg) rotateZ(-0.5deg) scale(0.99);
    }
    75% {
        transform: translateX(-50%) translate3d(2px, 0px, 4px) rotateX(0.5deg) rotateY(-0.5deg) rotateZ(0.8deg) scale(1.02);
    }
}

@keyframes professionalFloatCenterY {
    0%, 100% {
        transform: translateY(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }
    30% {
        transform: translateY(-50%) translate3d(-1px, 0, 7px) rotateX(1.5deg) rotateY(1deg) rotateZ(-0.4deg) scale(0.98);
    }
    60% {
        transform: translateY(-50%) translate3d(2px, 0, 11px) rotateX(-1deg) rotateY(-1.5deg) rotateZ(0.6deg) scale(1.01);
    }
    90% {
        transform: translateY(-50%) translate3d(0px, 0, 3px) rotateX(0.5deg) rotateY(0.5deg) rotateZ(-0.2deg) scale(1);
    }
}

/* Variaciones aleatorias para cada card - SÚPER VISIBLES */
@keyframes float3D_1 {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    33% { transform: translate3d(8px, -6px, 15px) rotateX(5deg) rotateY(-4deg) rotateZ(2deg) scale(1.1); }
    66% { transform: translate3d(-6px, 8px, 12px) rotateX(-4deg) rotateY(5deg) rotateZ(-3deg) scale(0.9); }
}

@keyframes float3D_2 {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    25% { transform: translate3d(-8px, 4px, 18px) rotateX(-5deg) rotateY(6deg) rotateZ(3deg) scale(0.85); }
    75% { transform: translate3d(6px, -8px, 20px) rotateX(6deg) rotateY(-5deg) rotateZ(-4deg) scale(1.15); }
}

@keyframes float3D_3 {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    40% { transform: translate3d(10px, 6px, 16px) rotateX(4deg) rotateY(7deg) rotateZ(-5deg) scale(1.08); }
    80% { transform: translate3d(-8px, -4px, 10px) rotateX(-6deg) rotateY(-4deg) rotateZ(4deg) scale(0.88); }
}

@keyframes float3D_4 {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    20% { transform: translate3d(12px, -8px, 22px) rotateX(7deg) rotateY(-6deg) rotateZ(5deg) scale(1.2); }
    60% { transform: translate3d(-4px, 10px, 14px) rotateX(-3deg) rotateY(8deg) rotateZ(-2deg) scale(0.8); }
}

/* Animaciones especiales para posiciones centradas - SÚPER DRAMÁTICAS */
@keyframes float3DCenterX {
    0%, 100% { transform: translateX(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    25% { transform: translateX(-50%) translate3d(6px, -8px, 20px) rotateX(5deg) rotateY(-4deg) rotateZ(3deg) scale(1.15); }
    50% { transform: translateX(-50%) translate3d(-8px, 6px, 16px) rotateX(-6deg) rotateY(5deg) rotateZ(-4deg) scale(0.85); }
    75% { transform: translateX(-50%) translate3d(4px, 2px, 25px) rotateX(3deg) rotateY(-2deg) rotateZ(2deg) scale(1.05); }
}

@keyframes float3DCenterY {
    0%, 100% { transform: translateY(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    30% { transform: translateY(-50%) translate3d(-10px, 0, 18px) rotateX(6deg) rotateY(7deg) rotateZ(-5deg) scale(0.8); }
    60% { transform: translateY(-50%) translate3d(8px, 0, 22px) rotateX(-7deg) rotateY(-5deg) rotateZ(6deg) scale(1.2); }
    90% { transform: translateY(-50%) translate3d(-3px, 0, 12px) rotateX(2deg) rotateY(3deg) rotateZ(-2deg) scale(1.1); }
}

/* ===== CARDS VISIBLES ===== */
.floating-element.card-visible {
    opacity: 1 !important;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* La animación se aplica via JavaScript para mayor control */
}

/* ===== POSICIONES FIJAS CON CSS - ALEJADAS DEL CENTRO ===== */
.floating-element.position-top-left {
    top: 10%;
    left: 8%;
    bottom: auto;
    right: auto;
}

.floating-element.position-top-center {
    top: 5%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translateX(-50%);
}

.floating-element.position-top-right {
    top: 10%;
    right: 8%;
    bottom: auto;
    left: auto;
}

.floating-element.position-center-left {
    top: 50%;
    left: 5%;
    bottom: auto;
    right: auto;
    transform: translateY(-50%);
}

.floating-element.position-center-right {
    top: 50%;
    right: 5%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
}

.floating-element.position-bottom-left {
    bottom: 10%;
    left: 8%;
    top: auto;
    right: auto;
}

.floating-element.position-bottom-center {
    bottom: 5%;
    left: 50%;
    top: auto;
    right: auto;
    transform: translateX(-50%);
}

.floating-element.position-bottom-right {
    bottom: 10%;
    right: 8%;
    top: auto;
    left: auto;
}

/* ===== CENTRAL DASHBOARD ===== */
#central-dashboard {
    position: absolute;
    width: 180px;
    height: 100px;
    background: linear-gradient(135deg, rgba(5, 67, 250, 0.12), rgba(0, 57, 227, 0.15));
    border-radius: var(--radius-lg);
    border: 2px solid rgba(5, 67, 250, 0.25);
    backdrop-filter: var(--backdrop-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 10 !important;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== DECORACIONES DE FONDO ===== */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(5, 67, 250, 0.08), 
        rgba(90, 137, 255, 0.12));
    opacity: 0.7;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.bg-decoration-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.bg-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.bg-decoration-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

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

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

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

/* ===== MODAL DE VIDEO ===== */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.demo-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-content {
    position: relative;
    background: transparent;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.demo-modal-close-floating {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.demo-modal-close-floating:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-mute-toggle {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.video-mute-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

.demo-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.demo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Videos responsive - Desktop muestra horizontal, Mobile muestra vertical */
.video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

/* Por defecto mostrar video desktop (horizontal) */
.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .landing-container {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .landing-main {
        padding: 0 var(--spacing-md);
        min-height: 100vh;
        height: auto;
    }
    
    .hero-logo-container {
        top: 1rem;
        left: 1rem;
    }
    
    .hero-logo {
        height: 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        min-height: calc(100vh - 2rem);
        height: auto;
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }
    
    .hero-text {
        padding-right: 0;
        display: flex;
        flex-direction: column;
    }
    
    .hero-headline {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-features {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        padding-bottom: 1rem;
        margin-top: auto;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Ocultar hero-visual en mobile */
    .hero-visual {
        display: none;
    }
    
    .visual-container {
        max-width: 300px;
        height: 220px;
        order: -1;
    }
    
    #central-dashboard {
        width: 120px;
        height: 70px;
        font-size: 0.75rem;
    }
    
    .floating-element {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        min-height: calc(100vh - 2rem);
        height: auto;
        padding-top: 3rem;
        padding-bottom: 1.5rem;
        gap: 0.75rem;
    }
    
    .hero-headline {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-features {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .feature-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }

    .cta-container {
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .visual-container {
        max-width: 250px;
        height: 180px;
    }
    
    #central-dashboard {
        width: 100px;
        height: 60px;
        font-size: 0.7rem;
    }
    
    .floating-element {
        font-size: 0.65rem;
    }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-content {
        padding-top: 2.5rem;
    }

    .hero-headline {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .hero-features {
        gap: 0.25rem;
    }

    .feature-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.35rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Very short screens (landscape mode or small height) */
@media (max-height: 600px) {
    .landing-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .hero-content {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 1rem;
    }

    .hero-headline {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-features {
        display: none; /* Hide on very short screens to prioritize buttons */
    }

    .cta-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        max-width: none;
    }
}