:root {
    --bg-color: #0b0f19;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background animated orbs for premium feel */
.background-orbs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 400px; height: 400px; background: #1e3a8a; top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: #312e81; bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #064e3b; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}

header h1 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-size: 2.5rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.resource-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.resource-card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.card-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
}

.card-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

footer {
    padding: 1.5rem;
}

/* Whitepaper / Article Styles */
.nav-bar {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    padding: 0 1.5rem;
}

.back-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.article-container {
    max-width: 900px;
    padding-top: 1rem;
}

.article-content {
    text-align: left;
    padding: 3rem 4rem;
}

.article-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.author-info strong {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.prose {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.prose h2 {
    font-family: 'Inter', sans-serif;
    color: white;
    margin-top: 3rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-family: 'Inter', sans-serif;
    color: #a78bfa;
    margin-top: 2rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    color: white;
}

.prose code {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #60a5fa;
}

.prose blockquote {
    border-left: 4px solid var(--accent-blue);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.prose a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.prose a:hover {
    border-color: var(--accent-blue);
}

.cta-link {
    text-align: center;
    margin: 3rem 0;
}

.cta-link a {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cta-link a:hover {
    transform: translateY(-3px);
    background: #2563eb;
    color: white;
    border-color: transparent;
}

.article-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 3rem 0;
}

.author-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 768px) {
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}
