/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

/* Specific browser default overrides */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Fix for browser chrome and potential visual artifacts */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Remove any potential focus outlines or highlights */
*:focus, *:active, *:hover {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Fix for any potential gradient or text decoration bleeding */
::before, ::after {
    border: none;
    outline: none;
}

/* Skip link accessibility - hidden by default, visible on focus */
.skip-link {
    position: absolute !important;
    top: -40px !important;
    left: 6px !important;
    background: var(--primary-blue) !important;
    color: white !important;
    padding: 8px !important;
    text-decoration: none !important;
    z-index: 1000 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: top 0.2s ease !important;
}

.skip-link:focus {
    top: 6px !important;
}

:root {
    /* Color Palette */
    --primary-blue: #0066ff;
    --dark-blue: #003399;
    --electric-blue: #00ccff;
    --deep-navy: #001122;
    --charcoal: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #888888;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

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

    /* Layout */
    --container-max-width: 1400px;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    border: none;
    outline: none;
    background: var(--deep-navy);
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--white);
    background: var(--deep-navy);
    height: 100vh;
    position: relative;
    border: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Background Canvas */
#scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* Page Wrapper - Full viewport */
.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Main Content Area - Scrollable */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Container - Grid inside scrollable area */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


/* Grid Layout - 3 Columns */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content platforms";
    gap: var(--space-xl);
    width: 100%;
    height: auto;
    max-height: 90vh;
    align-items: center;
}

/* Column 1: Content */
.content-column {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-height: 80vh;
    text-align: left;
}

.content-header {
    flex-shrink: 0;
    margin-bottom: var(--space-lg);
}

/* Title */
.title {
    margin-bottom: var(--space-md);
}

.title-main {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    line-height: 1.1;
    /* Prevent gradient bleeding */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.title-tagline {
    display: block;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: var(--font-weight-light);
    color: var(--medium-gray);
    letter-spacing: 0.03em;
}

/* Host Info */
.host-name {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: var(--font-weight-medium);
    color: var(--white);
}

/* Description */
.description-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: var(--space-lg) 0;
}

.description-content {
    max-width: 100%;
}

.description-main {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--light-gray);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.description-extended {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.description-extended.expanded {
    max-height: 300px;
}

.description-extended p {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    color: var(--medium-gray);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--electric-blue);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
    text-align: left;
    font-family: inherit;
}

@media (max-width: 767px) {
    .read-more-btn {
        text-align: center;
    }
}

.read-more-btn:hover {
    color: var(--primary-blue);
}

.read-more-btn:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}

/* Fixed Footer */
.fixed-footer {
    flex-shrink: 0;
    background: rgba(0, 17, 34, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) var(--space-xl);
    text-align: center;
    z-index: 10;
}

.footer-text {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    color: var(--medium-gray);
    font-weight: var(--font-weight-light);
    margin: 0;
}

/* Column 2: Platform Buttons */
.platforms-column {
    grid-area: platforms;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: left;
}

.platforms-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.platforms-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: var(--space-lg);
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    width: 280px;
    height: 56px;
    transition: all 0.2s ease;
    gap: var(--space-md);
}

/* Platform-specific backgrounds */
.platform-btn.spotify {
    background: #1DB954;
}

.platform-btn.apple {
    background: #000000;
}

.platform-btn.amazon {
    background: #ff9900;
}

.platform-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.platform-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.platform-logo-only,
.platform-badge {
    height: 40px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.platform-text {
    font-weight: var(--font-weight-medium);
    color: white;
    font-size: 1rem;
    text-align: left;
    margin-left: var(--space-sm);
    line-height: 1.2;
}

/* Platform-specific styles - backgrounds removed */
.platform-btn:hover {
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Social Proof */
.social-proof {
    margin-top: var(--space-lg);
}

.proof-text {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--medium-gray);
    font-weight: var(--font-weight-light);
}

/* Responsive Breakpoints */

/* Large Desktop (1200px and up) - 2 columns */
@media (min-width: 1200px) {
    .grid-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-xxl);
    }

    .container {
        padding: var(--space-xl) var(--space-xxl);
    }

}

/* Tablet/Medium Desktop (768px to 1199px) - 2 columns */
@media (max-width: 1199px) {
    .grid-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "content platforms";
        gap: var(--space-lg);
    }

    .platforms-content {
        justify-content: flex-start;
    }

    .platform-buttons {
        flex-direction: column;
        gap: var(--space-sm);
        justify-content: flex-start;
    }

    .platform-btn {
        width: 280px;
        height: 56px;
    }

    .platform-btn.spotify {
        background: #1DB954;
    }

    .platform-btn.apple {
        background: #000000;
    }

    .platform-btn.amazon {
        background: #ff9900;
    }

    .content-column {
        max-height: 60vh;
    }
}

/* Mobile (up to 767px) - 1 column */
@media (max-width: 767px) {
    .container {
        padding: var(--space-lg) var(--space-xl);
        align-items: center;
        justify-content: center;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "platforms";
        gap: var(--space-lg);
        grid-template-rows: auto auto;
        height: auto;
        max-height: none;
        justify-items: center;
    }

    .content-column {
        max-height: none;
        flex-shrink: 0;
        text-align: center;
    }

    .content-header {
        margin-bottom: var(--space-lg);
    }

    .title-main {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }


    .description-wrapper {
        margin: var(--space-sm) 0;
        flex: none;
    }


    .platforms-column {
        flex-shrink: 0;
        margin-top: var(--space-sm);
        text-align: center;
    }

    .platforms-content {
        height: auto;
        justify-content: flex-start;
        align-items: center;
    }

    .platforms-title {
        margin-bottom: var(--space-sm);
    }

    .platform-buttons {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }

    .platform-btn {
        width: 100%;
        max-width: 280px;
        height: 48px;
    }

    .platform-btn.spotify {
        background: #1DB954;
    }

    .platform-btn.apple {
        background: #000000;
    }

    .platform-btn.amazon {
        background: #ff9900;
    }

    .social-proof {
        margin-top: var(--space-sm);
    }

    .content-footer {
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
    }

    /* Ensure content fits in viewport */
    .grid-layout {
        align-content: start;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: var(--space-md) var(--space-lg);
        padding-top: var(--space-md);
        padding-bottom: calc(var(--space-lg) + 60px); /* Extra space for fixed footer */
    }

    .grid-layout {
        gap: var(--space-sm);
    }


    .platform-btn {
        width: 100%;
        max-width: 260px;
        height: 44px;
    }

    .platform-btn.spotify {
        background: #1DB954;
    }

    .platform-btn.apple {
        background: #000000;
    }

    .platform-btn.amazon {
        background: #ff9900;
    }

    .platform-icon {
        width: 18px;
        height: 18px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cover-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Focus styles for accessibility */
.platform-btn:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}


/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .platform-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .read-more-btn:hover {
        color: var(--electric-blue);
    }
}

/* Landscape mobile adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .container {
        padding: var(--space-sm) var(--space-lg);
    }

    .grid-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "content platforms";
        grid-template-rows: 1fr;
        gap: var(--space-sm);
        align-items: center;
    }

    .content-column,
    .platforms-column {
        max-height: 100vh;
    }


    .platform-buttons {
        gap: var(--space-xs);
    }

    .platform-btn {
        min-height: 40px;
        padding: var(--space-xs) var(--space-sm);
    }
}