/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.article-content a {
    color: #4338ca;
    text-decoration: none;
    border-bottom: 1px solid rgba(67, 56, 202, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-content a:hover {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.45);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

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

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    padding: 3rem 0;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

nav .container {
    position: relative;
    z-index: 2;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

header h1 a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header h1 a:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 42ch;
}

/* Hero section */
.hero {
    padding: 3.2rem;
    margin: 2rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4c51bf;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.65);
}

.hero h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.hero-content > p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 52ch;
    margin: 0;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.stat-pill {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    min-width: 112px;
}

.stat-pill strong {
    font-size: 1rem;
    color: #3730a3;
}

.stat-pill span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.hero-graphic {
    position: relative;
    min-height: 290px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: radial-gradient(circle at 20% 20%, rgba(129, 140, 248, 0.35), rgba(99, 102, 241, 0.08));
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: drift 7s ease-in-out infinite;
}

.orb-one {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.08));
    top: 20px;
    left: 32px;
}

.orb-two {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), rgba(236, 72, 153, 0.08));
    bottom: 26px;
    right: 38px;
    animation-delay: 0.6s;
}

.orb-three {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.6), rgba(16, 185, 129, 0.08));
    top: 120px;
    right: 110px;
    animation-delay: 1.1s;
}

.signal-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black, transparent 75%);
}

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

/* Articles section */
.articles {
    padding: 2rem 0;
}

.articles h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.article-grid .article-card {
    margin-bottom: 0;
}

.article-card {
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.2),
        0 0 20px rgba(102, 126, 234, 0.1);
}

.article-card h3 {
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    color: #2d3748;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-card h3 a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.article-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.articles .article-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #6b7280;
}

.article-excerpt {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .hero-content > p {
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-graphic {
        min-height: 220px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-card h3 a {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .articles h2 {
        font-size: 1.5rem;
    }

    .hero-kicker {
        font-size: 0.72rem;
    }

    .hero-stats {
        gap: 0.6rem;
    }

    .stat-pill {
        min-width: 98px;
        padding: 0.45rem 0.65rem;
    }
    
    .article-card {
        padding: 1rem;
    }
}

/* Article page specific styles */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.article-header::before,
.article-header::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(2px);
}

.article-header::before {
    width: 260px;
    height: 260px;
    left: -60px;
    top: -100px;
}

.article-header::after {
    width: 200px;
    height: 200px;
    right: -50px;
    bottom: -90px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.article-header .article-meta {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.article-content {
    background: rgba(255, 255, 255, 0.97);
    padding: 3rem;
    border-radius: 18px;
    border: 1px solid rgba(129, 140, 248, 0.18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    margin-bottom: 2rem;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 5px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #6366f1, #ec4899, #14b8a6);
}

.article-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.article-content code {
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #e53e3e;
}

.article-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #718096;
}

.back-to-home {
    text-align: center;
    margin: 2rem 0;
}

.back-to-home a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-home a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Bold color refresh */
:root {
    --bg-deep: #052b3d;
    --bg-mid: #0f766e;
    --bg-warm: #ff7a18;
    --ink-strong: #0f172a;
    --ink-soft: #425466;
    --surface: rgba(247, 252, 255, 0.94);
    --surface-border: rgba(6, 182, 212, 0.25);
    --accent-cyan: #06b6d4;
    --accent-teal: #0d9488;
    --accent-orange: #fb923c;
}

body {
    color: var(--ink-strong);
    background: linear-gradient(130deg, var(--bg-deep) 0%, var(--bg-mid) 52%, var(--bg-warm) 100%);
}

body::before {
    background:
        radial-gradient(circle at 14% 78%, rgba(6, 182, 212, 0.2) 0%, transparent 48%),
        radial-gradient(circle at 86% 16%, rgba(251, 146, 60, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 55% 48%, rgba(244, 114, 182, 0.14) 0%, transparent 46%);
}

body::after {
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    opacity: 0.2;
}

header {
    background: linear-gradient(120deg, rgba(5, 43, 61, 0.86) 0%, rgba(13, 148, 136, 0.86) 55%, rgba(251, 146, 60, 0.82) 100%);
}

header h1 a {
    background: linear-gradient(45deg, #fffbeb, #e0f2fe, #ffedd5);
    -webkit-background-clip: text;
    background-clip: text;
}

header p {
    color: #ecfeff;
}

.hero {
    background: var(--surface);
    border: 1px solid var(--surface-border);
}

.hero::before {
    background: linear-gradient(120deg, rgba(6, 182, 212, 0.08) 0%, rgba(13, 148, 136, 0.06) 45%, rgba(251, 146, 60, 0.08) 100%);
}

.hero-kicker {
    color: #0e7490;
    border-color: rgba(14, 116, 144, 0.35);
    background: rgba(236, 253, 255, 0.92);
}

.hero h2 {
    background: linear-gradient(130deg, #0e7490, #0f766e, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-content > p {
    color: #334155;
}

.stat-pill {
    border-color: rgba(6, 182, 212, 0.28);
    background: rgba(240, 253, 250, 0.85);
}

.stat-pill strong {
    color: #0f766e;
}

.hero-graphic {
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.42), rgba(13, 148, 136, 0.12));
}

.orb-one {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.65), rgba(34, 211, 238, 0.08));
}

.orb-two {
    background: radial-gradient(circle, rgba(251, 146, 60, 0.65), rgba(251, 146, 60, 0.08));
}

.orb-three {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.65), rgba(20, 184, 166, 0.08));
}

.articles h2 {
    color: #e6fffb;
}

.article-card {
    background: rgba(247, 252, 255, 0.95);
    border-color: rgba(6, 182, 212, 0.22);
}

.article-card::before {
    background: linear-gradient(90deg, #06b6d4, #0d9488, #fb923c);
}

.article-card:hover {
    box-shadow:
        0 20px 40px rgba(3, 37, 65, 0.28),
        0 0 24px rgba(6, 182, 212, 0.22);
}

.article-card h3 a:hover {
    color: #0e7490;
}

.articles .article-meta {
    color: #0f766e;
}

.article-excerpt {
    color: var(--ink-soft);
}

.read-more {
    color: #0e7490;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(13, 148, 136, 0.14), rgba(251, 146, 60, 0.18));
    border-color: rgba(13, 148, 136, 0.3);
}

.read-more::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.read-more:hover {
    color: #9a3412;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.24);
}

footer {
    background: linear-gradient(140deg, rgba(2, 44, 66, 0.96), rgba(5, 150, 105, 0.92));
}

.article-header {
    background: linear-gradient(120deg, #0e7490 0%, #0f766e 45%, #ea580c 100%);
}

.article-content {
    border-color: rgba(6, 182, 212, 0.32);
    box-shadow: 0 18px 45px rgba(2, 44, 66, 0.24);
}

.article-content::before {
    background: linear-gradient(90deg, #06b6d4, #0f766e, #f97316);
}

.article-content h2,
.article-content h3 {
    color: #0f172a;
}

.article-content p,
.article-content li,
.article-content blockquote {
    color: #334155;
}

.article-content a {
    color: #0e7490;
    border-bottom-color: rgba(14, 116, 144, 0.35);
}

.article-content a:hover {
    color: #c2410c;
    border-bottom-color: rgba(194, 65, 12, 0.45);
}

.article-content code {
    background: #ecfeff;
    color: #9a3412;
}

.article-content pre {
    background: #0b2538;
    color: #dbeafe;
}

.article-content blockquote {
    border-left-color: #0ea5a0;
}

.back-to-home a {
    background: linear-gradient(120deg, #0e7490, #0f766e, #f97316);
}

.back-to-home a:hover {
    box-shadow: 0 8px 25px rgba(14, 116, 144, 0.32);
}
