/* project-style.css - Shared styles for the Project Hub */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:      #050505;
    --surface: #0f1115;
    --border:  #1c1f26;
    --text:    #f0f0f0;
    --muted:   #71717a;
    --accent:  #3b82f6;
    --up:      #10b981;
    --down:    #ef4444;
    --amber:   #f59e0b;
    --teal:    #06b6d4;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fluid spacing */
    --container-px: clamp(16px, 5vw, 24px);
    --section-mb:   clamp(48px, 10vw, 80px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Header ─────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-logo:hover { opacity: 0.8; }

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 24px);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean look on mobile */
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}
.header-nav::-webkit-scrollbar { display: none; }

.header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}
.header-nav a:hover { color: var(--text); }
.header-nav a.active { color: var(--text); }
.header-nav a.active::after { width: 100%; }
.header-nav a.cta { color: var(--accent); font-weight: 600; }
.header-nav a.cta:hover { transform: translateX(3px); }

/* ── Live Pulse ─────────────────────────────────── */
.pulse-container {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.02em;
    padding: 0 var(--container-px);
}
#live-pulse { 
    display: flex; 
    align-items: center; 
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--up);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--up);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.pulse-roi { transition: var(--transition); }
.pulse-roi.up { color: var(--up); }
.pulse-roi.down { color: var(--down); }

/* ── Layout ─────────────────────────────────────── */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(32px, 8vw, 64px) var(--container-px) 120px;
}

.section { margin-bottom: var(--section-mb); }
.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

h2 { 
    font-size: clamp(24px, 5vw, 32px); 
    font-weight: 300; 
    letter-spacing: -0.02em; 
    margin-bottom: 24px;
    line-height: 1.2;
}
h2 strong { font-weight: 600; }

h3 { font-size: 18px; margin-bottom: 12px; font-weight: 600; }

p { color: var(--muted); line-height: 1.6; margin-bottom: 16px; font-size: 14px; }

/* ── Cards & Hover ──────────────────────────────── */
.phi-card, .hof-item, .dna-card, .roadmap-phase, .viz-box {
    transition: var(--transition);
}

.phi-card:hover, .hof-item:hover, .dna-card:hover, .roadmap-phase:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.5);
}

/* ── Utils ──────────────────────────────────────── */
.up { color: var(--up); }
.down { color: var(--down); }
.amber { color: var(--amber); }
.accent { color: var(--accent); }
.teal { color: var(--teal); }

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 24px;
    transition: var(--transition);
    overflow-x: auto;
    scrollbar-width: thin;
}
.mono:hover { border-color: var(--accent); }

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 32px; 
}

/* ── Footer ─────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 64px var(--container-px);
    max-width: 960px;
    margin: 0 auto;
}
.disclaimer {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}
.disclaimer:hover { border-color: var(--muted); color: var(--text); }

@media (max-width: 480px) {
    .header-logo span { display: none; } /* Hide text on very small screens if logo icon exists */
    .grid-2 { grid-template-columns: 1fr; }
    .header-nav { mask-image: none; -webkit-mask-image: none; }
}
