:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #3b82f6; /* Blue */
    --accent-2: #8b5cf6; /* Violet */
    --accent-3: #ec4899; /* Pink */
    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --glass-bg: rgba(10, 10, 15, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --bg-color: #fafafa;
    --surface-color: rgba(0, 0, 0, 0.02);
    --surface-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-hover: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Elements */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.glow-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    animation: drift 20s infinite alternate linear;
}
.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-2);
    animation: drift 25s infinite alternate-reverse linear;
}
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section {
    padding: 6rem 0;
}
.section-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo i {
    color: var(--accent-1);
    font-size: 1.8rem;
}
.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}
.icon-btn:hover {
    background: var(--surface-border);
}
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}
.hero-content {
    max-width: 800px;
    z-index: 1;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-3);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(236, 72, 153, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards shared styling */
.glass-panel, .card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    background: var(--card-hover);
}

/* News Cards */
.news-card {
    display: flex;
    flex-direction: column;
}
.news-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--surface-border);
    position: relative;
}
.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}
.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.news-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-border);
}
.read-more {
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Agentic Cards */
.agent-card {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.agent-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.agent-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.agent-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface-border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* LLM Table */
.table-container {
    overflow-x: auto;
}
.llm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.llm-table th, .llm-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-border);
}
.llm-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.llm-table tr:last-child td {
    border-bottom: none;
}
.llm-table tbody tr {
    transition: background 0.2s;
}
.llm-table tbody tr:hover {
    background: var(--surface-border);
}
.rank {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-1);
    width: 60px;
}
.model-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.score {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
}
.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }
.trend-flat { color: #64748b; }

/* Jobs Section */
.filters {
    display: flex;
    gap: 0.5rem;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}
.job-details h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Media (YouTube/Podcasts) */
.media-card {
    background: var(--surface-color);
}
.media-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s;
}
.media-card:hover .media-thumb::after {
    background: rgba(0,0,0,0.1);
}
.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.4);
    transition: transform 0.2s;
}
.media-card:hover .play-btn {
    transform: scale(1.1);
}
.media-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.media-info {
    padding: 1.25rem;
}
.media-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Hacks Grid */
.hack-card {
    padding: 1.5rem;
    border-top: 3px solid var(--accent-3);
}
.hack-card i {
    font-size: 1.5rem;
    color: var(--accent-3);
    margin-bottom: 1rem;
    display: block;
}
.hack-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.hack-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Newsletter */
.newsletter-section .glass-panel {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.newsletter-section h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}
.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--surface-border);
    background: rgba(0,0,0,0.2);
    color: var(--text-primary);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-form input:focus {
    border-color: var(--accent-2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: rgba(0,0,0,0.2);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    max-width: 300px;
}
.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 0.95rem;
}
.socials {
    display: flex;
    gap: 1rem;
}
.socials a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}
.socials a:hover {
    color: var(--text-primary);
}
.footer-links {
    display: flex;
    gap: 4rem;
}
.link-group h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.link-group a:hover {
    color: var(--text-primary);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .footer-content { flex-direction: column; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .newsletter-form { flex-direction: column; }
    .job-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
