@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-deep: #02040a;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(15, 23, 42, 0.6);
    --accent: #00f2ff;
    --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
    --accent-soft: rgba(0, 242, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 255, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius-2xl: 24px;
    --radius-xl: 16px;
    --container-width: 1200px;
    --nav-height: 80px;
    font-family: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(112, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
p { color: var(--text-secondary); font-size: 1.1rem; text-wrap: pretty; }

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

/* Header */
.site-header {
    height: var(--nav-height);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.header-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.3s ease; }
.brand:hover { transform: scale(1.02); }
.brand-logo { height: 32px; width: auto; }
.brand-text { height: 20px; width: auto; }
.header-nav { display: flex; gap: 32px; }
.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.header-nav a:hover, .header-nav a.active { color: var(--accent); }

.lang-selector-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-selector-mini:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-selector-mini option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background: url('assets/hero-bg.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(75deg, rgba(2, 4, 10, 0.95) 0%, rgba(2, 4, 10, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    z-index: 2;
}

.hero .hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUpHero {
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    border: 1px solid var(--border-glow);
}

.hero-lead { font-size: 1.4rem; margin-bottom: 40px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
    transform: scale(1.05) translateY(-2px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: var(--shadow-xl); }

/* Post Cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.post-card.featured { grid-column: 1 / -1; flex-direction: row; min-height: 450px; }
.post-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.post-card.featured .post-image { width: 60%; aspect-ratio: auto; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-image img { transform: scale(1.1); }
.post-body { padding: 32px; flex-grow: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: 16px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

.post-body a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.post-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.post-card h3:hover {
    color: var(--accent);
}

.post-card.featured h3 { font-size: 2.2rem; }
.post-footer { margin-top: auto; display: flex; align-items: center; color: var(--accent); font-weight: 700; font-size: 0.9rem; gap: 8px; }

/* Article Header & Container */
.article-header { padding: 120px 0 60px; text-align: center; }
.article-hero-img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: var(--radius-2xl);
    object-fit: cover;
    margin-bottom: 60px;
    border: 1px solid var(--border);
}
.article-container { max-width: 800px; margin: 0 auto; }
.article-content strong { color: var(--text-primary); font-weight: 700; }
.article-content { font-size: 1.2rem; line-height: 1.8; text-align: left; }
.article-content h2 { margin: 60px 0 24px; }
.article-content p { margin-bottom: 32px; }
.article-content ul { margin-bottom: 32px; padding-left: 24px; }
.article-content li { margin-bottom: 16px; color: var(--text-secondary); }
.note-box {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 32px;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    margin: 40px 0;
}

/* Post Links Navigation */
.post-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.post-link {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s ease;
}
.post-link:hover { border-color: var(--accent); transform: translateY(-4px); }
.post-link span { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.post-link strong { color: var(--text-primary); font-size: 1.1rem; }

/* Footer */
.site-footer { padding: 60px 0; border-top: 1px solid var(--border); margin-top: 80px; text-align: center; }
.site-footer p { font-size: 0.9rem; color: var(--text-muted); }

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .post-card.featured { flex-direction: column; }
    .post-card.featured .post-image { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero { text-align: center; }
    .hero-actions { justify-content: center; }
    .section { padding: 60px 0; }
    .post-links { grid-template-columns: 1fr; }
}
