/* --- ROOT VARIABLES (The Theme Configuration) --- */
:root {
    /* Main Theme Colors - Pink/Purple Gradient for SeriusFM Look */
    --color-primary: #07d600;
    --color-primary-hover: #f500d7;
    --color-accent: #ff0055;
    --color-gradient: linear-gradient(135deg, #076904 0%, #05a002 100%);
    
    /* Enhanced Gradient for Text */
    --text-gradient: linear-gradient(to right, #ffffff, #07d600);

    /* Background Colors */
    --color-bg-dark: #050505; /* Deepest Black */
    --color-bg-panel: #121212; /* Slightly lighter for cards */
    --color-bg-light: #f5f5f7; /* Light sections */
    --color-bg-white: #ffffff;

    /* Text Colors */
    --color-text-white: #ffffff;
    --color-text-gray: #b3b3b3;
    --color-text-dark: #121212;

    /* Borders & Lines */
    --color-border: rgba(255, 255, 255, 0.1);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
}

/* CANVAS BACKGROUND */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.text-center {
    text-align: center;
}

/* --- ANIMATION CLASSES --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    gap: 10px;
    white-space: nowrap; /* Prevent text wrapping */
}

.btn-primary {
    background: var(--color-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(7, 214, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 214, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark); /* Default dark for light sections */
}

.pricing .btn-outline {
    color: var(--color-text-white); 
}

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

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* Section Titles - Responsive Font Size */
.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive clamp */
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    gap: 20px;
}

/* --- HEADER --- */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    z-index: 1001;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-gray);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-gradient);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.login-link {
    font-weight: 600;
    font-size: 0.95rem;
}

.login-link:hover {
    color: var(--color-primary-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    padding-top: 100px; /* Space for header */
    transform: translateX(100%); /* Slide in from right */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    display: flex;
    justify-content: center;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-list a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: block;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, #1a0505 0%, #000000 60%);
    overflow: hidden;
}

/* Custom Star/Particle Illustration Overlay */
.hero-illustration {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(7, 214, 0, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Hero Left Content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: pulse 2s infinite;
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive Font */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 10px;
    background: var(--color-primary);
    opacity: 0.2;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--color-text-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.avatar-group { display: flex; }
.avatar-group img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--color-bg-dark);
    margin-left: -15px;
}
.avatar-group img:first-child { margin-left: 0; }

.rating-text {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    display: flex;
    flex-direction: column;
}

.stars {
    color: #ffc107;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

/* Hero Right Content: Media Player */
.hero-media {
    display: flex;
    justify-content: center;
    position: relative;
}

.music-player-card {
    width: 100%;
    max-width: 380px; /* Constrain max width */
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: rotate(-5deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-player-card:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: rgba(7, 214, 0, 0.3);
    box-shadow: 0 40px 80px rgba(7, 214, 0, 0.15);
}

.hifi-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hifi-badge strong {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.hifi-badge i { color: var(--color-primary); font-size: 1.4rem; }
.badge-subtext { 
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--color-text-gray); 
    text-transform: uppercase; 
}

.album-art {
    width: 100%;
    aspect-ratio: 1/1;
    background-image: url('https://images.unsplash.com/photo-1614613535308-eb5fbd3d2c17?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.track-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.track-text h3 { 
    font-size: 22px; 
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px; 
    color: white;
}

.track-text p { 
    font-size: 16px; 
    font-weight: 500;
    letter-spacing: 0.2px;
    color: var(--color-text-gray); 
}

.track-status {
    font-size: 0.8rem;
    color: var(--color-primary);
    background: rgba(7, 214, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-container { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.progress-bar { width: 65%; height: 100%; background: var(--color-gradient); border-radius: 3px; box-shadow: 0 0 10px var(--color-primary); }

.time-stamps { 
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex; 
    justify-content: space-between; 
    color: var(--color-text-gray); 
    margin-bottom: 24px; 
}

.player-controls { display: flex; justify-content: space-between; align-items: center; }
.control-icon { font-size: 1.2rem; color: var(--color-text-gray); cursor: pointer; transition: 0.3s; }
.control-icon:hover { color: white; transform: scale(1.1); }

.play-btn-lg {
    width: 64px;
    height: 64px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.play-btn-lg:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }
.play-btn-lg i { margin-left: 4px; }

/* --- LEGAL & TEXT PAGES (Centralized Styles) --- */
.legal-wrapper {
    padding-top: 160px; /* Space for fixed header */
    padding-bottom: 100px;
    min-height: 100vh;
    background-color: var(--color-bg-white); /* Light background for readibility or dark if preferred */
    color: var(--color-text-dark);
}

/* Dark Mode Legal Pages Override */
body.dark-mode-legal .legal-wrapper {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-primary); /* Accent color for title */
}

.legal-updated {
    font-size: 1rem;
    color: var(--color-text-gray);
    font-style: italic;
}

.legal-body {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03); /* Subtle card effect */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #e0e0e0;
}

.legal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #ccc;
}

.legal-section ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #ccc;
}

.legal-section li {
    margin-bottom: 10px;
}

.contact-box {
    background: rgba(7, 214, 0, 0.1);
    border: 1px solid var(--color-primary);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.contact-box p {
    margin-bottom: 5px;
    color: white;
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0 30px;
    background: #050505;
    color: var(--color-text-gray);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-border);
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.brand-col p { margin: 20px 0; }
.social-links { display: flex; gap: 12px; }

.social-links a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.social-links a:hover { background: var(--color-primary); transform: translateY(-3px); }
.footer-col h4 { color: white; margin-bottom: 24px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--color-primary-hover); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #222; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.legal-links { display: flex; gap: 20px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .music-player-card { width: 100%; max-width: 320px; }
    .pricing-premium { transform: scale(1); }
    .artists-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav, .header-actions .btn, .login-link { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { height: auto; padding: 120px 0 60px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    
    /* Center elements on mobile */
    .hero-buttons { justify-content: center; }
    .hero-social-proof { justify-content: center; margin: 0 auto; }
    .hero-content { margin-bottom: 50px; }
    
    /* Remove tilt on mobile for better fit */
    .music-player-card { 
        margin: 0 auto; 
        transform: rotate(0); 
        max-width: 100%;
    }

    .stats-container { grid-template-columns: 1fr 1fr; }
    .radio-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Stack AI DJ input */
    .ai-input-wrapper {
        flex-direction: column;
    }
    .ai-input, .ai-input-wrapper .btn {
        width: 100%;
    }
    
    /* Legal Page Mobile */
    .legal-wrapper { padding-top: 120px; }
    .legal-header h1 { font-size: 2rem; }
    .legal-section { padding: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-buttons .btn { width: 100%; }
    .stats-container { grid-template-columns: 1fr; gap: 40px; }
    .artists-grid { grid-template-columns: repeat(2, 1fr); }
    .radio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .legal-links { justify-content: center; }
}