/* --- Design Tokens --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --accent-gold: #eab308;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-glow: rgba(168, 85, 247, 0.2);
    --glass-bg: rgba(18, 18, 18, 0.8);
    --neural-cyan: rgba(6, 182, 212, 0.4);
    --neural-gold: rgba(234, 179, 8, 0.3);
}

/* --- Animated Neural Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #050a0a 0%, #000 100%);
}

body::after {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--neural-cyan) 0%, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--neural-gold) 0%, transparent 1px),
        radial-gradient(circle at 40% 80%, var(--neural-cyan) 0%, transparent 1px),
        radial-gradient(circle at 70% 20%, var(--neural-gold) 0%, transparent 1px);
    background-size: 400px 400px;
    opacity: 0.15;
    animation: backgroundDrift 60s linear infinite;
    filter: blur(1px);
    pointer-events: none;
}

/* Secondary Texture Layer */
.neural-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../../assets/images/neural_bg.png') center/cover no-repeat;
    opacity: 0.08;
    mix-blend-mode: screen;
    animation: pulseSubtle 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(5deg); }
}

@keyframes pulseSubtle {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

/* Credibility Chips */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.chip {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.chip-doi { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.2); }
.chip-tool { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); border: 1px solid rgba(34, 211, 238, 0.2); }
.chip-guarantee { background: rgba(251, 191, 36, 0.1); color: var(--accent-gold); border: 1px solid rgba(251, 191, 36, 0.2); }

/* Blog / Dispatch Styles */
.blog-feed { margin-top: 2rem; }
.blog-post {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}
.blog-post:hover { transform: translateX(5px); background: rgba(255, 255, 255, 0.04); }
.blog-meta { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 0.5rem; display: flex; gap: 1rem; }
.blog-author { color: var(--accent-gold); font-weight: 700; }

/* Genesis Tree Styles */
.genesis-tree {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.tree-branch {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.tree-branch h4 { color: var(--accent-cyan); margin-bottom: 0.5rem; font-size: 0.9rem; }
.tree-branch ul { list-style: none; padding: 0; color: var(--text-secondary); font-size: 0.75rem; }
.tree-branch li { margin-bottom: 0.3rem; padding-left: 0.5rem; border-left: 1px solid rgba(255,255,255,0.1); }

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* --- Shared Navigation --- */
nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 2rem; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}
.nav-link:hover, .nav-link.active { color: var(--accent-gold); }

/* --- Canonical Logo Component (Gamma Mark) --- */
.gamma-mark {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamma-mark span {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 1;
}

.gamma-mark .g-bg {
    color: var(--accent-cyan);
    font-size: 24px;
    opacity: 0.4;
    transform: translate(2px, 2px);
}

.gamma-mark .g-fg {
    color: var(--accent-gold);
    font-size: 28px;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* --- Hero Logo (Large) --- */
.hero-logo-container {
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.2));
}

.hero-logo {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo .g-bg {
    position: absolute;
    font-size: 10rem;
    color: var(--accent-cyan);
    opacity: 0.2;
    transform: translate(15px, 15px);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 1;
}

.hero-logo .g-fg {
    position: relative;
    font-size: 12rem;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 40px rgba(234, 179, 8, 0.6);
}

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

/* --- Hero Layout --- */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    letter-spacing: 0.4em;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-body {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-pill.gold { color: var(--accent-gold); border-color: rgba(234, 179, 8, 0.3); }
.hero-pill.cyan { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.3); }

/* --- Common UI Components --- */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-glow);
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
