/* Global Defaults */
:root {
    --neon-blue: #3b82f6;
    --neon-green: #4ade80;
    --neon-purple: #8b5cf6;
    --neon-cyan: #06b6d4;
    --bg-dark: #050505;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #e5e5e5;
    min-height: 100vh;
    overflow-x: hidden;
}

body.lang-cn {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(90deg, #4ade80, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-brief {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Effects */
.nav-glass {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    /* Default hover border, can be overridden */
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.15);
}

/* Specific Glass Card Overrides for Brief (Cyan) */
.glass-card.cyan-hover:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 40px -10px rgba(6, 182, 212, 0.15);
}

.glass-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Inputs */
.input-glass {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.input-glass:focus {
    background: rgba(0, 0, 0, 0.6);
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}
/* Override focus color for signup */
.input-glass.focus-green:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.5);
}


/* Utility Classes */
.tech-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; /* or 0.7rem from index */
    letter-spacing: 0.05em;
    padding: 2px 8px; /* Adjusted to match index/insight avg */
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
}

/* Language Switching */
.lang-cn-content {
    display: none;
}

body.lang-cn .lang-en-content {
    display: none;
}

body.lang-cn .lang-cn-content {
    display: inline; /* Or block, depending on context. Defaulting to inline usually safe for text spans, block for divs */
}
/* Force block for divs using this class if needed, or use specific utility classes in HTML */
div.lang-cn-content, div.lang-en-content {
   /* Often these are blocks, but existing CSS used inline/block mixed. 
      Let's leave it as inline default but override in HTML with 'block' class if structure breaks. 
      Actually, in the original CSS:
      index/brief/insight used display: none/block or none/inline based on context. 
      We will use a generic rule here. 
   */
}
body.lang-cn div.lang-cn-content { display: block; }
body.lang-cn span.lang-cn-content { display: inline; }


/* Report Paper Styles (Shared) */
.report-paper {
    font-family: 'Inter', 'Noto Sans SC', serif;
    color: #374151;
    line-height: 1.8;
}
.report-paper h1 { color: #111827; font-weight: 800; font-size: 2rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 4px solid #1e3a8a; line-height: 1.2; }
.report-paper h2 { color: #1e40af; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; }
.report-paper h3 { color: #1f2937; font-weight: 700; font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.report-paper ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.report-paper li { margin-bottom: 0.5rem; }
.report-paper strong { color: #111827; font-weight: 700; }
.report-paper blockquote { background-color: #eff6ff; border-left: 4px solid #2563eb; padding: 1.5rem; margin: 2rem 0; border-radius: 0.5rem; color: #1e3a8a; font-style: italic; }
.report-paper table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9em; }
.report-paper th, .report-paper td { border: 1px solid #e5e7eb; padding: 0.75rem; text-align: left; }
.report-paper th { background-color: #f3f4f6; font-weight: 700; }

/* Animations */
@keyframes scanline {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.1); opacity: 0.25; }
}

/* Background Glows */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.2;
    animation: pulse-glow 10s infinite alternate;
}
