:root {
    /* Sophisticated Dark Palette */
    --bg-primary: #0d0d0f;
    --bg-secondary: #15151a;
    --bg-tertiary: #1c1c24;
    --surface: #22222e;
    --surface-hover: #2a2a38;
    
    /* Premium Brand Colors */
    --brand-primary: #4f46e5;      /* Indigo - Trust & Security */
    --brand-accent: #06b6d4;       /* Cyan - Tech & Innovation */
    --brand-success: #10b981;      /* Green - Safety */
    --brand-warning: #f59e0b;      /* Amber - Alert */
    --brand-danger: #ef4444;       /* Red - Threat */
    --neon-cyan: #22d3ee;          /* Neon Cyan - Highlights */
    --success: #10b981;            /* Success Green */
    
    /* Refined Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(180deg, 
        rgba(79, 70, 229, 0.05) 0%, 
        rgba(6, 182, 212, 0.05) 100%);
    --gradient-card: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0) 100%);
    
    /* Typography Stack */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
    
    /* Professional Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    
    /* Refined Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 32px rgba(79, 70, 229, 0.25);
    
    /* Spacing System */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* Smooth Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.25s;
    --duration-slow: 0.4s;
    
    /* Layout */
    --max-width: 1400px;
    --max-width-text: 720px;
    --container-padding: 40px;
}

/* =============================================
   RESET & BASE
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Sophisticated Background Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--duration-base) var(--ease-out);
}

header.scrolled {
    background: rgba(13, 13, 15, 0.9);
    border-bottom-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-4) var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-container img {
    height: 36px;
    width: auto;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-container:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-cta .btn-primary {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.nav-cta .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-8)) var(--container-padding) var(--space-9);
    background: var(--bg-primary);
    overflow: hidden;
}

/* Remove old canvas */
#particles-canvas {
    display: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-9);
    align-items: center;
}

/* Hero Text */
.hero-text {
    position: relative;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.9);
    margin-bottom: var(--space-6);
}

.hero-kicker::before {
    content: '[';
    color: rgba(99, 102, 241, 0.7);
}

.hero-kicker::after {
    content: ']';
    color: rgba(99, 102, 241, 0.7);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 19px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-7);
    max-width: 580px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-7);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: rgba(156, 163, 175, 0.8);
    transition: all 0.15s ease;
    text-transform: lowercase;
}

.hero-badge::before {
    content: '[';
    color: rgba(99, 102, 241, 0.6);
}

.hero-badge::after {
    content: ']';
    color: rgba(99, 102, 241, 0.6);
}

.hero-badge:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.1);
    color: rgba(209, 213, 219, 0.9);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid rgba(75, 85, 99, 0.5);
    position: relative;
    text-transform: lowercase;
}

.btn::before {
    content: '$ ';
    color: rgba(99, 102, 241, 0.7);
}

.btn-primary {
    background: rgba(99, 102, 241, 0.1);
    color: #e5e7eb;
    border-left: 2px solid rgba(99, 102, 241, 0.7);
}

.btn-primary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.8);
    border-left-color: rgba(99, 102, 241, 1);
}

.btn-secondary {
    background: transparent;
    color: rgba(156, 163, 175, 0.9);
    border-color: rgba(75, 85, 99, 0.5);
}

.btn-secondary:hover {
    background: rgba(55, 65, 81, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: #e5e7eb;
}

/* Hero Visual */
.hero-visual-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Organic video without borders - truly borderless */
.hero-video-organic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: auto;
    min-height: 140%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    filter: blur(1.5px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    mask-image: 
        radial-gradient(
            ellipse 70% 60% at 50% 45%,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 25%,
            rgba(0, 0, 0, 0.4) 45%,
            rgba(0, 0, 0, 0.2) 60%,
            rgba(0, 0, 0, 0.05) 75%,
            transparent 90%
        ),
        radial-gradient(
            ellipse 85% 70% at 45% 50%,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.2) 55%,
            transparent 80%
        );
    -webkit-mask-image: 
        radial-gradient(
            ellipse 70% 60% at 50% 45%,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 25%,
            rgba(0, 0, 0, 0.4) 45%,
            rgba(0, 0, 0, 0.2) 60%,
            rgba(0, 0, 0, 0.05) 75%,
            transparent 90%
        ),
        radial-gradient(
            ellipse 85% 70% at 45% 50%,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.2) 55%,
            transparent 80%
        );
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.hero-video-organic::-webkit-media-controls {
    display: none !important;
}

.hero-video-organic::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Organic/Chaotic fade effect - remove or minimal */
.hero-video-organic-fade {
    display: none;
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
    position: relative;
    padding: var(--space-9) var(--container-padding);
    background: var(--bg-primary);
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.9);
    margin-bottom: var(--space-4);
}

.section-kicker::before {
    content: '//';
    color: rgba(99, 102, 241, 0.6);
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-4);
    color: #f9fafb;
    text-transform: lowercase;
}

.section-title::before {
    content: '> ';
    color: rgba(99, 102, 241, 0.7);
    margin-right: 8px;
}

.section-description {
    font-size: 16px;
    color: rgba(209, 213, 219, 0.8);
    line-height: 1.7;
    max-width: var(--max-width-text);
    margin: 0 auto;
}

/* =============================================
   CARDS
   ============================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
}

.card {
    position: relative;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.4);
    border-left: 2px solid rgba(99, 102, 241, 0.6);
    border-radius: 0;
    padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + 12px);
    transition: all 0.15s ease;
    font-family: var(--font-mono);
    backdrop-filter: saturate(100%);
}

.card::before {
    content: '>';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(99, 102, 241, 0.3);
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.15s ease;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(99, 102, 241, 0);
    transition: background 0.15s ease;
}

.card:hover {
    border-left-color: rgba(99, 102, 241, 1);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(17, 24, 39, 0.7);
}

.card:hover::before {
    color: rgba(99, 102, 241, 1);
    left: 16px;
}

.card:hover::after {
    background: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.card-icon {
    display: none;
}

.card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: #f9fafb;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.card-title::before {
    content: 'fn ';
    color: rgba(99, 102, 241, 0.7);
    font-weight: 600;
}

.card-title::after {
    content: '()';
    color: rgba(107, 114, 128, 0.5);
}

.card-description {
    font-size: 14px;
    color: rgba(209, 213, 219, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    font-family: var(--font-body);
}

.card-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 11px;
    font-weight: 600;
    color: rgba(107, 114, 128, 0.7);
    font-family: var(--font-mono);
    padding: 4px 10px;
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(75, 85, 99, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
}

.card-meta::before {
    content: '[';
    color: rgba(99, 102, 241, 0.6);
}

.card-meta::after {
    content: ']';
    color: rgba(99, 102, 241, 0.6);
}

.card:hover .card-meta {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
    color: rgba(209, 213, 219, 0.9);
}

/* =============================================
   STATS
   ============================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.stat-card {
    text-align: left;
    padding: var(--space-6);
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.4);
    border-left: 2px solid rgba(99, 102, 241, 0.6);
    border-radius: 0;
    transition: all 0.15s ease;
    position: relative;
}

.stat-card::before {
    content: '>';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(99, 102, 241, 0.3);
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
}

.stat-card:hover {
    border-left-color: rgba(99, 102, 241, 1);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(17, 24, 39, 0.7);
}

.stat-card:hover::before {
    color: rgba(99, 102, 241, 1);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: var(--space-2);
    line-height: 1;
    margin-left: 24px;
}

.stat-number::before {
    content: 'int ';
    color: rgba(99, 102, 241, 0.7);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(156, 163, 175, 0.9);
    font-family: var(--font-mono);
    letter-spacing: 0;
    text-transform: lowercase;
    margin-left: 24px;
}

.stat-label::before {
    content: '// ';
    color: rgba(107, 114, 128, 0.6);
}

/* =============================================
   PROGRESS BAR
   ============================================= */

.progress-container {
    margin-top: var(--space-6);
}

.progress-bar-wrapper {
    position: relative;
    height: 10px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s var(--ease-out);
    box-shadow: 0 0 16px rgba(79, 70, 229, 0.4);
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-9) var(--container-padding) var(--space-7);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-7);
    margin-bottom: var(--space-7);
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-3);
    font-size: 15px;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-logo img {
    height: 36px;
    margin-bottom: var(--space-4);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: var(--space-4);
}

.footer-creator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-creator-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-creator-text {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-creator-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-creator-link:hover {
    color: var(--text-primary);
}

.footer-creator:hover .footer-creator-icon {
    opacity: 1;
}

/* =============================================
   ANIMATIONS
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-visual-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
    }
    
    nav {
        padding: var(--space-4) var(--container-padding);
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: calc(80px + var(--space-7)) var(--container-padding) var(--space-8);
    }
    
    .section {
        padding: var(--space-8) var(--container-padding);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   INTEGRATION DESCRIPTION
   ============================================= */

.integration-description {
    max-width: 800px;
    margin: var(--space-6) auto;
    padding: var(--space-6);
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.4);
}

.desc-line {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.desc-label {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: rgba(167, 139, 250, 0.9);
    min-width: 180px;
    flex-shrink: 0;
}

.desc-content {
    font-size: 14px;
    color: rgba(209, 213, 219, 0.9);
    line-height: 1.7;
}

.desc-arrow {
    text-align: center;
    font-size: 24px;
    color: rgba(99, 102, 241, 0.6);
    padding: var(--space-2) 0;
}

@media (max-width: 768px) {
    .desc-line {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .desc-label {
        min-width: auto;
    }
}

/* =============================================
   CIRCUIT BOARD
   ============================================= */

.circuit-container {
    position: relative;
    width: 100%;
    height: 550px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(55, 65, 81, 0.4);
    overflow: hidden;
    margin: var(--space-6) 0;
}

/* Corner accents - top left */
.circuit-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 50px;
    height: 50px;
    border-top: 3px solid rgba(167, 139, 250, 0.9);
    border-left: 3px solid rgba(167, 139, 250, 0.9);
    border-right: none;
    border-bottom: none;
    background: transparent;
    z-index: 10;
    animation: cornerPulse 3s ease-in-out infinite;
}

/* Corner accents - top right */
.circuit-container::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 50px;
    height: 50px;
    border-top: 3px solid rgba(167, 139, 250, 0.9);
    border-right: 3px solid rgba(167, 139, 250, 0.9);
    border-left: none;
    border-bottom: none;
    background: transparent;
    z-index: 10;
    animation: cornerPulse 3s ease-in-out infinite 0.5s;
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 0.7;
        filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 16px rgba(167, 139, 250, 1));
    }
}

/* Bottom corner accents */
.corner-accent {
    position: absolute;
    width: 50px;
    height: 50px;
    background: transparent;
    z-index: 10;
}

.corner-bottom-left {
    bottom: -1px;
    left: -1px;
    border-bottom: 3px solid rgba(167, 139, 250, 0.9);
    border-left: 3px solid rgba(167, 139, 250, 0.9);
    border-top: none;
    border-right: none;
    animation: cornerPulse 3s ease-in-out infinite 1s;
}

.corner-bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid rgba(167, 139, 250, 0.9);
    border-right: 3px solid rgba(167, 139, 250, 0.9);
    border-top: none;
    border-left: none;
    animation: cornerPulse 3s ease-in-out infinite 1.5s;
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.circuit-line {
    stroke: rgba(99, 102, 241, 0.5);
    stroke-width: 0.15;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.6));
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.circuit-modules {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.module-node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.module-chip {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: var(--space-4);
    min-width: 140px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    position: relative;
}

.module-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(99, 102, 241, 0.6);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.module-chip:hover {
    border-color: rgba(167, 139, 250, 0.8);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.module-chip:hover::before {
    transform: scaleX(1);
}

.chip-label {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: var(--space-2);
}

.module-chip h4 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #f9fafb;
    margin-bottom: var(--space-1);
}

.module-chip p {
    font-size: 11px;
    color: rgba(209, 213, 219, 0.7);
}

.module-chip.source,
.module-chip.output {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(167, 139, 250, 0.6);
}

.module-chip.source h4,
.module-chip.output h4 {
    color: rgba(167, 139, 250, 1);
}

/* =============================================
   MOBILE MENU TOGGLE
   ============================================= */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(167, 139, 250, 0.9);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: rgba(167, 139, 250, 0.8);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   MOBILE OPTIMIZATIONS
   ============================================= */

@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-content-wrapper {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-visual-container {
        height: 300px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Navigation */
    header {
        padding: 0;
    }
    
    nav {
        padding: 12px var(--space-4);
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-4);
        font-size: 13px;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 13px;
    }
    
    .logo-container img {
        height: 28px;
    }
    
    /* Section */
    .section {
        padding-block: 60px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    /* Cards Grid */
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .card {
        padding: var(--space-5);
    }
    
    .card-title {
        font-size: 17px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    /* Circuit Board */
    .circuit-container {
        height: auto;
        min-height: auto;
        padding: var(--space-6);
    }
    
    .circuit-bg {
        display: none;
    }
    
    .module-node {
        position: static !important;
        transform: none !important;
        margin: var(--space-4) auto;
        display: block;
        width: 100%;
        max-width: 300px;
    }
    
    .circuit-modules {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }
    
    .module-chip {
        width: 100%;
    }
    
    /* Modal */
    .modal-content {
        max-height: 90vh;
        margin: var(--space-4);
    }
    
    .modal-header {
        padding: var(--space-5);
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: var(--space-5);
    }
    
    .modal-close {
        top: var(--space-3);
        right: var(--space-3);
        width: 36px;
        height: 36px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    /* Lab Status */
    .lab-status-card {
        padding: var(--space-5);
    }
    
    .status-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .lab-status-card h3 {
        font-size: 18px;
    }
    
    .lab-status-card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card {
        padding: var(--space-4);
    }
    
    .modal-content {
        margin: var(--space-2);
    }
}

/* =============================================
   BENTO GRID
   ============================================= */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.4);
    padding: var(--space-6);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bento-item:hover {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-wide {
    grid-column: span 4;
}

.bento-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(99, 102, 241, 0.7);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: var(--space-3);
}

.bento-item h3 {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #f9fafb;
    margin-bottom: var(--space-3);
}

.bento-item p {
    font-size: 14px;
    color: rgba(209, 213, 219, 0.8);
    line-height: 1.7;
}

.bento-large h3 {
    font-size: 24px;
    margin-bottom: var(--space-4);
}

.bento-large p {
    font-size: 15px;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-medium {
        grid-column: span 2;
    }
    
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large,
    .bento-medium,
    .bento-small,
    .bento-wide {
        grid-column: span 1;
    }
}

/* =============================================
   CIRCUIT MODAL
   ============================================= */

.circuit-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.circuit-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: rgba(17, 24, 39, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.5);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0;
    color: rgba(167, 139, 250, 0.8);
    font-size: 20px;
    font-weight: 400;
    font-family: var(--font-mono);
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(99, 102, 241, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.modal-close:hover {
    border-color: rgba(167, 139, 250, 0.8);
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.modal-close:hover::before {
    transform: translateX(100%);
}

.modal-header {
    padding: var(--space-7) var(--space-7) var(--space-5);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #f9fafb;
    margin-bottom: var(--space-2);
}

.modal-title::before {
    content: '> ';
    color: rgba(99, 102, 241, 0.7);
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(167, 139, 250, 0.8);
    font-family: var(--font-mono);
}

.modal-body {
    padding: var(--space-6) var(--space-7);
}

.modal-description {
    font-size: 15px;
    color: rgba(209, 213, 219, 0.9);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.modal-body h4 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: rgba(167, 139, 250, 0.9);
    margin-top: var(--space-5);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-5);
}

.modal-body ul li {
    font-size: 14px;
    color: rgba(209, 213, 219, 0.8);
    line-height: 1.7;
    padding-left: var(--space-5);
    position: relative;
    margin-bottom: var(--space-2);
}

.modal-body ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: rgba(99, 102, 241, 0.7);
    font-weight: 700;
}

.modal-result {
    font-size: 14px;
    color: rgba(167, 139, 250, 0.9);
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid rgba(99, 102, 241, 0.6);
    padding: var(--space-4);
    margin-top: var(--space-5);
    font-style: italic;
}

/* =============================================
   LAB STATUS
   ============================================= */

.lab-status-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.4);
    border-left: 2px solid rgba(99, 102, 241, 0.6);
    padding: var(--space-7);
    position: relative;
}

.lab-status-card::before {
    content: '//';
    position: absolute;
    left: 14px;
    top: 20px;
    color: rgba(99, 102, 241, 0.5);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: var(--space-5);
}

.status-icon svg {
    width: 32px;
    height: 32px;
}

.lab-status-card h3 {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #f9fafb;
    margin-bottom: var(--space-4);
    text-transform: lowercase;
}

.lab-status-card h3::before {
    content: 'status: ';
    color: rgba(99, 102, 241, 0.7);
    font-weight: 600;
}

.lab-status-card p {
    font-size: 15px;
    color: rgba(209, 213, 219, 0.8);
    line-height: 1.8;
    margin-bottom: var(--space-5);
    text-align: left;
}

.status-note {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 13px;
    color: rgba(209, 213, 219, 0.9);
    font-family: var(--font-mono);
    text-align: left;
}

.status-note::before {
    content: '→';
    color: rgba(99, 102, 241, 0.7);
    font-size: 18px;
    flex-shrink: 0;
}

.status-note strong {
    color: rgba(167, 139, 250, 0.9);
    font-weight: 700;
}

/* =============================================
   TI TERMINAL
   ============================================= */

.ti-terminal {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0;
    overflow: hidden;
    font-family: var(--font-mono);
}

.ti-terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-4);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.ti-terminal-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(167, 139, 250, 0.9);
}

.ti-terminal-body {
    padding: var(--space-5);
}

.ti-progress-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.ti-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    font-size: 13px;
    font-weight: 600;
    color: rgba(167, 139, 250, 0.9);
}

.ti-progress-value {
    color: rgba(34, 197, 94, 0.9);
    font-weight: 700;
}

.ti-progress-bar {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0;
    height: 32px;
    overflow: visible;
    position: relative;
    margin-bottom: var(--space-3);
}

.ti-progress-fill {
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    border-right: 2px solid rgba(99, 102, 241, 0.8);
    transition: width 1s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.ti-progress-text {
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(167, 139, 250, 0.9);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
}

.ti-progress-info {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.ti-info-item {
    font-size: 11px;
    color: rgba(156, 163, 175, 0.8);
}

.ti-logs-section {
    margin-top: var(--space-5);
}

.ti-logs-header {
    font-size: 12px;
    font-weight: 600;
    color: rgba(99, 102, 241, 0.7);
    margin-bottom: var(--space-3);
    text-transform: lowercase;
}

.ti-logs-header::before {
    content: '// ';
    color: rgba(107, 114, 128, 0.6);
}

.ti-log-line {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: 13px;
    line-height: 1.8;
    border-left: 2px solid transparent;
    padding-left: var(--space-3);
    transition: all 0.15s ease;
}

.ti-log-line:hover {
    border-left-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
}

.ti-timestamp {
    color: rgba(107, 114, 128, 0.7);
    font-size: 12px;
    min-width: 70px;
}

.ti-status {
    font-size: 10px;
    flex-shrink: 0;
}

.ti-status.online {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.ti-status.warning {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.ti-status.error {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.ti-module {
    color: rgba(167, 139, 250, 0.9);
    font-weight: 600;
    min-width: 150px;
}

.ti-module::before {
    content: '[';
    color: rgba(99, 102, 241, 0.5);
}

.ti-module::after {
    content: ']';
    color: rgba(99, 102, 241, 0.5);
}

.ti-message {
    color: rgba(209, 213, 219, 0.8);
    flex: 1;
}

.ti-log-line.cursor {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(55, 65, 81, 0.3);
}

.ti-prompt {
    color: rgba(99, 102, 241, 0.7);
    font-weight: 700;
}

.ti-cursor {
    color: rgba(167, 139, 250, 0.9);
    animation: blink-cursor 1s step-end infinite;
}

/* =============================================
   PUBLICATIONS
   ============================================= */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-width: 900px;
    margin: 0 auto;
}

.pub-item {
    position: relative;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.4);
    border-left: 3px solid rgba(99, 102, 241, 0.6);
    border-radius: 0;
    padding: var(--space-6);
    transition: all 0.15s ease;
    font-family: var(--font-mono);
}

.pub-item::before {
    content: 'commit';
    position: absolute;
    left: 14px;
    top: 14px;
    color: rgba(99, 102, 241, 0.5);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pub-item:hover {
    border-left-color: rgba(99, 102, 241, 1);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(17, 24, 39, 0.7);
}

.pub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    margin-top: 20px;
}

.pub-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pub-status.pending {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: rgba(251, 191, 36, 0.9);
}

.pub-status.published {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: rgba(16, 185, 129, 0.9);
}

.pub-date {
    font-size: 12px;
    font-family: var(--font-mono);
    color: rgba(156, 163, 175, 0.7);
}

.pub-date::before {
    content: '@ ';
    color: rgba(99, 102, 241, 0.6);
}

.pub-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #f9fafb;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

.pub-title::before {
    content: '📄 ';
    margin-right: 8px;
}

.pub-description {
    font-size: 14px;
    color: rgba(209, 213, 219, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.pub-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: rgba(167, 139, 250, 0.9);
}

.pub-tag::before {
    content: '#';
    margin-right: 2px;
    color: rgba(99, 102, 241, 0.7);
}

/* =============================================
   UTILITIES
   ============================================= */

.monospace {
    font-family: var(--font-mono);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   LOADING SCREEN
   ============================================= */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

/* Loading Spinner */
.loadingspinner {
    --square: 26px;
    --offset: 30px;
    --duration: 2.4s;
    --delay: 0.2s;
    --timing-function: ease-in-out;
    --in-duration: 0.4s;
    --in-delay: 0.1s;
    --in-timing-function: ease-out;
    width: calc( 3 * var(--offset) + var(--square));
    height: calc( 2 * var(--offset) + var(--square));
    padding: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 30px;
    position: relative;
}

.loadingspinner div {
    display: inline-block;
    background: #5a67e8;
    border: none;
    border-radius: 2px;
    width: var(--square);
    height: var(--square);
    position: absolute;
    padding: 0px;
    margin: 0px;
    font-size: 6pt;
    color: black;
}

.loadingspinner #square1 {
    left: calc( 0 * var(--offset) );
    top: calc( 0 * var(--offset) );
    animation: square1 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(1 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square2 {
    left: calc( 0 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square2 var(--duration) var(--delay) var(--timing-function) infinite,
              squarefadein var(--in-duration) calc(1 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square3 {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square3 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(2 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square4 {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square4 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(3 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square5 {
    left: calc( 3 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square5 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(4 * var(--in-delay)) var(--in-timing-function) both;
}

@keyframes square1 {
    0% {
        left: calc( 0 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
    8.333% {
        left: calc( 0 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    100% {
        left: calc( 0 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes square2 {
    0% {
        left: calc( 0 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    8.333% {
        left: calc( 0 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }
    16.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }
    25.00% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    83.33% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    91.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
    100% {
        left: calc( 0 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
}

@keyframes square3 {
    0%,100% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    16.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    25.00% {
        left: calc( 1 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
    33.33% {
        left: calc( 2 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
    41.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    66.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    75.00% {
        left: calc( 2 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }
    83.33% {
        left: calc( 1 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }
    91.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes square4 {
    0% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    33.33% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    41.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }
    50.00% {
        left: calc( 3 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }
    58.33% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    100% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes square5 {
    0% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    50.00% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    58.33% {
        left: calc( 3 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
    66.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
    75.00% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
    100% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes squarefadein {
    0% {
        transform: scale(0.75);
        opacity: 0.0;
    }
    100% {
        transform: scale(1.0);
        opacity: 1.0;
    }
}
