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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    min-height: 100vh;
    position: relative;
    backdrop-filter: blur(0.5px);
}

/* Brand and text styling */
.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.brand-name:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    color: #0d0d0d;
}

/* Logo styling */
.brand-logo {
    height: clamp(2.5rem, 6vw, 5rem);
    width: auto;
    margin-right: 1rem;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.brand-name:hover .brand-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.dock-logo {
    height: 48px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.contextual-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #000000;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 520px;
    transition: all 0.3s ease;
}

.highlight {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.08) 0%, rgba(13, 13, 13, 0.08) 100%);
    color: #000000;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline;
    margin: 0 2px;
    animation: highlightPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    vertical-align: baseline;
    line-height: inherit;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.highlight:hover::before {
    left: 100%;
}

@keyframes highlightPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
        transform: scale(1);
        background: linear-gradient(120deg, rgba(0, 0, 0, 0.06) 0%, rgba(13, 13, 13, 0.06) 100%);
    }
    50% { 
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0);
        transform: scale(1.01);
        background: linear-gradient(120deg, rgba(0, 0, 0, 0.08) 0%, rgba(13, 13, 13, 0.08) 100%);
    }
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #000000;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.tagline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #000000, #0d0d0d);
    border-radius: 2px;
}

/* Horizontal Layout (Desktop/Landscape) */
.horizontal-layout {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 3rem 4rem;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.right-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.right-column::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(13, 13, 13, 0.05));
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

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

.vertical-separator {
    width: 1px;
    height: 50vh;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.15) 20%, 
        rgba(13, 13, 13, 0.25) 50%, 
        rgba(0, 0, 0, 0.15) 80%, 
        transparent 100%);
    position: relative;
}

.vertical-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.vertical-separator::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

/* Vertical Layout (Mobile/Portrait) */
.vertical-layout {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
}

.top-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    min-height: 60vh;
}

.top-row::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(13, 13, 13, 0.05));
    border-radius: 50%;
    z-index: -1;
    animation: float 4s ease-in-out infinite;
}

.bottom-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 1.5rem 2.5rem;
    background: transparent;
    position: relative;
}

/* App store badges */
.app-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
}


.badge-link {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.badge-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 1;
}

.badge-link:hover::before {
    opacity: 1;
}

.badge-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.app-badge {
    height: 64px;
    width: auto;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* QR Code styling */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.qr-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-section:hover::before {
    opacity: 1;
}

.qr-code {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.qr-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(13, 13, 13, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-code:hover::before {
    opacity: 1;
}

.qr-code:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

.qr-code canvas {
    display: block;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.qr-caption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 0.95rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Download button styling */
.mobile-download {
    display: none;
    width: 100%;
    max-width: 350px;
    position: relative;
    z-index: 10;
}

.floating-dock {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 400px;
    height: 80px;
    background: rgb(0, 0, 0);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 20px;
}

/* Show floating dock on mobile screens by default */
@media (max-width: 768px) and (orientation: portrait), 
       (max-width: 1024px) and (max-height: 768px) {
    .floating-dock {
        display: flex;
    }
}

/* Immediate device detection classes for faster rendering */
html.is-mobile-detected .floating-dock {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html.is-desktop-detected .floating-dock {
    display: none !important;
}

.dock-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-dock-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    padding: 12px 20px;
    background: rgb(33, 33, 33);
    color: white;
    border: 1px solid rgb(33, 33, 33);
    border-radius: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    /* box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); */
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

/* .download-dock-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
} */

.download-dock-button:hover::before {
    left: 100%;
}

.download-dock-button:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15); */
    background: rgb(33, 33, 33);
}

.download-dock-button:active {
    transform: translateY(0);
}

.download-button {
    width: 100%;
    padding: 1.5rem 2.5rem;
    background: rgb(13, 13, 13);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.4s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.download-button:hover::before {
    left: 100%;
}

.download-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    background: rgb(25, 25, 25);
}

.download-button:active {
    transform: translateY(-2px);
}

.download-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.download-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.download-dock-button .download-icon {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Additional glassmorphism and modern effects */
.brand-section {
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 24px;
    padding: 2rem;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.brand-section > * {
    position: relative;
    z-index: 2;
}

/* Enhanced mobile layout */
@media (max-width: 768px) {
    .brand-section {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(25px);
        margin: 1rem;
        padding: 2.5rem 2rem;
    }
    
    /* .top-row::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
        opacity: 0.6;
    } */
}

/* Enhanced focus states */
.download-button:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.4);
    outline-offset: 4px;
}

.badge-link:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.4);
    outline-offset: 4px;
}

/* Responsive breakpoints */
@media (orientation: portrait) and (max-width: 1024px) {
    .horizontal-layout {
        display: none;
    }
    
    .vertical-layout {
        display: flex;
    }
    
    .floating-dock {
        display: flex;
    }
    
    .mobile-download {
        display: none;
    }
}

@media (max-width: 768px) {
    .horizontal-layout {
        display: none;
    }
    
    .vertical-layout {
        display: flex;
    }
    
    .floating-dock {
        display: flex;
    }
    
    .mobile-download {
        display: none;
    }
    
    .top-row {
        padding: 3rem 1.5rem 2rem;
        min-height: 65vh;
    }
    
    .bottom-row {
        padding: 2rem 1.5rem 3rem;
    }
    
    .brand-name {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
        margin-bottom: 1rem;
    }
    
    .contextual-text {
        font-size: clamp(1rem, 4vw, 1.2rem);
        max-width: 100%;
    }    .tagline {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .qr-code {
        padding: 20px;
        border-radius: 16px;
    }
    
    .download-button {
        font-size: 1rem;
        padding: 1.3rem 2rem;
    }
}

@media (max-width: 480px) {
    .horizontal-layout {
        padding: 2rem 1rem;
        gap: 3rem;
    }
      .floating-dock {
        display: flex;
        width: 98%;
        max-width: 360px;
        height: 70px;
        padding: 0 20px;
        gap: 16px;
    }
    
    .download-dock-button {
        font-size: 13px;
        padding: 10px 16px;
        min-width: 110px;
    }
    
    .top-row {
        padding: 2rem 1rem 1.5rem;
    }
    
    .bottom-row {
        padding: 1.5rem 1rem 2rem;
    }
    
    .brand-name {
        font-size: clamp(2.2rem, 15vw, 3.5rem);
        letter-spacing: -1px;
    }
    
    .contextual-text {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem);
        line-height: 1.6;
    }
    
    .app-badges {
        gap: 1rem;
        justify-content: center;
    }
    
    .app-badge {
        height: 56px;
    }
}

/* Mobile device detection styles */
.is-mobile .mobile-download {
    display: none;
}

.is-mobile .floating-dock {
    display: flex;
}

.is-mobile .qr-section {
    display: none;
}

.is-desktop .mobile-download {
    display: none;
}

.is-desktop .floating-dock {
    display: none;
}

.is-desktop .qr-section {
    display: flex;
}

/* Loading state */
.loading {
    opacity: 0.7;
    filter: blur(1px);
    transition: all 0.3s ease;
}

/* Animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.brand-section {
    animation: slideInLeft 0.8s ease-out;
}

.horizontal-layout .qr-section {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.vertical-layout .qr-section,
.mobile-download {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.app-badges {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.vertical-separator {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Focus styles for accessibility */
.download-button:focus,
.badge-link:focus {
    outline: 3px solid rgba(0, 0, 0, 0.3);
    outline-offset: 3px;
    border-radius: 16px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    body::before {
        display: none;
    }
    
    .vertical-separator {
        background: #ddd !important;
    }
    
    .qr-code {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .download-button {
        background: #667eea !important;
        box-shadow: none !important;
    }
}

/* Micro-interactions and polish */
.brand-name {
    transition: all 0.3s ease;
}

.brand-name:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.contextual-text {
    transition: all 0.3s ease;
}

.tagline {
    transition: all 0.3s ease;
}

/* Subtle hover effects for text */
.horizontal-layout .left-column:hover .contextual-text {
    color: #0d0d0d;
    transform: translateX(4px);
}

.horizontal-layout .left-column:hover .tagline {
    color: #0d0d0d;
    transform: translateX(2px);
}

/* Improved vertical separator animation */
.vertical-separator::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced QR code container */
.qr-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(13, 13, 13, 0.05));
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-section:hover::before {
    opacity: 1;
}

/* Loading spinner for QR code */
.qr-loading {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qr-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced app badge hover effects */
.app-badges {
    position: relative;
}

.app-badges:hover::before {
    opacity: 1;
}

/* Refined mobile download button */
.mobile-download {
    position: relative;
}

.mobile-download::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(13, 13, 13, 0.05));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-button:hover + *::before,
.mobile-download:hover::before {
    opacity: 1;
}

/* Force visible class for floating dock fallback */
.floating-dock.force-visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
