:root {
    --primary: #e2e8f0;
    --accent: #60a5fa;
    --highlight: #f59e0b;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --gradient-start: #1e3a8a;
    --gradient-end: #581c87;
    --card-pattern: rgba(255, 255, 255, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.logo .dot {
    color: var(--accent);
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

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

/* Feed Section */
.feed-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    position: relative;
}

.feed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, var(--card-pattern) 35px, var(--card-pattern) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--card-pattern) 35px, var(--card-pattern) 70px);
    opacity: 0.3;
    pointer-events: none;
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feed-sources {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.source-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.source-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Articles Grid - Uniform 4-Column Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* All cards uniform size */
.article-card {
    background: var(--surface);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

/* Pattern backgrounds - alternating */
.article-card:nth-child(4n+1) {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, var(--card-pattern) 10px, var(--card-pattern) 20px);
    background-color: var(--surface);
}

.article-card:nth-child(4n+2) {
    background-image: 
        radial-gradient(circle at 20% 50%, var(--card-pattern) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--card-pattern) 1px, transparent 1px);
    background-size: 30px 30px;
    background-color: var(--surface);
}

.article-card:nth-child(4n+3) {
    background-image: 
        linear-gradient(90deg, var(--card-pattern) 1px, transparent 1px),
        linear-gradient(0deg, var(--card-pattern) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--surface);
}

.article-card:nth-child(4n) {
    background-image: 
        repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--card-pattern) 10px, var(--card-pattern) 20px);
    background-color: var(--surface);
}

/* Hover effect */
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

/* Icon placeholder at top of card */
.article-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.article-image {
    display: none;
}

.article-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.article-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    align-self: flex-start;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
}

.video-section {
    background: var(--surface);
}

.music-section {
    background: var(--background);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.3);
}

/* Visual Elements */
.content-visual {
    height: 400px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.video-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.visual-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    animation: float 6s ease-in-out infinite;
}

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

.music-visual {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 150px;
}

.wave-bar {
    width: 8px;
    background: white;
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 80%; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 50%; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 70%; animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Developments Section */
.developments-section {
    padding: 6rem 0;
    background: var(--primary);
    color: white;
}

.developments-section .section-header h2 {
    color: white;
}

.developments-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.developments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dev-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.dev-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.dev-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.dev-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

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

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

    .hero-visual {
        width: 200px;
        height: 200px;
    }

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    /* Uniform grid responsive */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card {
        min-height: auto;
    }

    .content-text h2 {
        font-size: 2rem;
    }
}
