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

:root {
  --bg-primary: #0a0c10;
  --bg-card: rgba(18, 22, 31, 0.75);
  --bg-card-hover: rgba(28, 35, 49, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
}

.nsp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.nsp-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 0;
}

.nsp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nsp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nsp-brand-logo-box {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

/* Dynamic Typewriter Logo */
.nsp-typewriter-container {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.nsp-typewriter-text {
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nsp-typewriter-cursor {
  display: inline-block;
  width: 9px;
  height: 1.2em;
  background-color: var(--accent-cyan);
  margin-left: 3px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nsp-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nsp-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nsp-nav-link:hover {
  color: var(--text-primary);
}

.nsp-btn-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.nsp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.nsp-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

.nsp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Banner / Hero */
.nsp-hero {
  padding: 3.5rem 0 2rem 0;
  text-align: center;
}

.nsp-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.nsp-hero-gradient-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nsp-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

/* Non-profit Transparency Card */
.nsp-transparency-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 780px;
  margin: 0 auto 3rem auto;
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.nsp-transparency-icon {
  font-size: 1.5rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.nsp-transparency-text {
  font-size: 0.92rem;
  color: #d1fae5;
  line-height: 1.55;
}

/* Cards & Layout */
.nsp-paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.nsp-paper-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nsp-paper-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nsp-paper-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.nsp-paper-title a:hover {
  color: #60a5fa;
}

.nsp-paper-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.nsp-paper-abstract {
  color: #d1d5db;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badges */
.nsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nsp-badge-preprint {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.nsp-badge-published {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nsp-badge-voided {
  background: rgba(244, 63, 94, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.nsp-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Citation Banners & Alerts */
.nsp-alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #fef08a;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.nsp-alert-danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #fecdd3;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

/* Forms */
.nsp-form-group {
  margin-bottom: 1.25rem;
}

.nsp-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.nsp-input, .nsp-select, .nsp-textarea {
  width: 100%;
  background: rgba(18, 22, 31, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nsp-input:focus, .nsp-select:focus, .nsp-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.nsp-file-input {
  width: 100%;
  background: rgba(18, 22, 31, 0.9);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Footer */
.nsp-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}
