/* ==========================================================================
   ONCOHELIX AI — COMPONENTS CSS
   ========================================================================== */

/* --- Custom Glowing Magnetic Cursor --- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-lime);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(168, 255, 0, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

/* --- Navigation Header --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(168, 255, 0, 0.08);
  border: 1px solid rgba(168, 255, 0, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(168, 255, 0, 0.2);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.highlight-ai {
  color: var(--accent-lime);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-lime);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  box-shadow: 0 0 12px var(--accent-lime-glow);
}

.lang-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.lang-select:focus {
  border-color: var(--accent-cyan);
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 217, 245, 0.08);
  border: 1px solid rgba(0, 217, 245, 0.25);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-lime);
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--accent-lime); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-meta-tags {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Hero 3D Canvas Box */
.3d-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

#hero-molecule-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-lime);
}

.hud-dot.green {
  width: 6px;
  height: 6px;
  background-color: var(--accent-lime);
  border-radius: 50%;
}

.hud-metrics {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
}

.hud-metrics strong {
  color: var(--accent-cyan);
}

.canvas-instruction {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  pointer-events: none;
}

/* --- METRICS STRIP --- */
.metrics-section {
  padding: 40px 0;
}

.metrics-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 32px 24px;
}

.metric-card {
  text-align: center;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-lime);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border-light);
}

/* --- AI MOLECULE GENERATOR SANDBOX --- */
.sandbox-section {
  padding: 100px 0;
}

.sandbox-workspace {
  margin-top: 40px;
}

.sandbox-visual-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.target-selector-chips {
  display: flex;
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover, .chip-btn.active {
  background: rgba(168, 255, 0, 0.15);
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.sandbox-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  background: #06080D;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

#sandbox-molecule-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sandbox-overlay-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-lime);
  background: rgba(11, 14, 20, 0.8);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(168, 255, 0, 0.3);
}

.metrics-display-box {
  padding: 24px;
  margin-bottom: 20px;
}

.box-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.parameter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.param-card {
  background: rgba(11, 14, 20, 0.5);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.param-name {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.param-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.param-val.highlight-green {
  color: var(--accent-lime);
}

.param-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.param-bar-fill {
  height: 100%;
  background: var(--accent-cyan);
  transition: width 0.8s ease-out;
}

.param-bar-fill.green {
  background: var(--accent-lime);
}

/* Live Terminal Component */
.terminal-box {
  padding: 20px;
  background: #06080D;
  border-color: rgba(0, 217, 245, 0.2);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.term-line.info { color: #8E9BAE; }
.term-line.success { color: var(--accent-lime); }
.term-line.hint { color: var(--accent-cyan); }
.term-line.calc { color: #D8B4FE; }

/* --- PLATFORM FEATURES GRID --- */
.platform-section {
  padding: 100px 0;
}

.features-grid {
  margin-top: 40px;
}

.feature-card {
  padding: 32px 24px;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- PIPELINE GANTT CHART --- */
.pipeline-section {
  padding: 100px 0;
}

.pipeline-table-wrapper {
  overflow-x: auto;
  padding: 24px;
  margin-top: 40px;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pipeline-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.pipeline-table td {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.compound-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compound-id strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
}

.progress-cell {
  width: 50%;
}

.pipeline-bar-wrapper {
  width: 100%;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  overflow: hidden;
  padding: 2px;
}

.pipeline-bar {
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0B0E14;
  white-space: nowrap;
  transition: width 1s ease-out;
}

.pipeline-bar.phase-3 {
  background: linear-gradient(90deg, var(--accent-lime), #76CB00);
}

.pipeline-bar.phase-2 {
  background: linear-gradient(90deg, var(--accent-cyan), #00A6F5);
}

.pipeline-bar.phase-1 {
  background: linear-gradient(90deg, #6699FF, var(--accent-blue));
  color: #FFFFFF;
}

/* --- DUTCH HQ SECTION --- */
.dutch-hq-section {
  padding: 100px 0;
}

.dutch-card {
  padding: 48px;
  align-items: center;
}

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
  margin-bottom: 16px;
}

.dutch-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.dutch-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.registration-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 14, 20, 0.5);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.reg-label { color: var(--text-muted); }
.reg-value { font-family: var(--font-mono); color: var(--accent-lime); }

/* Dutch Map Visual Graphic */
.dutch-map-visual {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-graphic-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(168, 255, 0, 0.08) 0%, transparent 70%);
  border: 1px dashed rgba(168, 255, 0, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ping {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(168, 255, 0, 0.3);
  border-radius: 50%;
  animation: radar-scale 3s infinite ease-out;
}

@keyframes radar-scale {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.map-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.node-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-lime);
}

.node-dot.sub {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.node-hoofddorp { top: 45%; left: 35%; color: var(--accent-lime); font-weight: 700; }
.node-amsterdam { top: 25%; left: 60%; color: var(--text-muted); }
.node-leiden { top: 65%; left: 25%; color: var(--text-muted); }

/* --- CTA BANNER --- */
.cta-banner-section {
  padding: 60px 0 100px;
}

.cta-card {
  padding: 64px 32px;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* --- FOOTER --- */
.footer {
  background: #06080D;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 16px 0;
  max-width: 320px;
}

.kvk-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-links {
  display: flex;
  gap: 24px;
}

/* --- GLASSMORPHISM MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  padding: 40px;
  position: relative;
  border-color: rgba(168, 255, 0, 0.3);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-lime);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  background: rgba(11, 14, 20, 0.8);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-lime);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(22, 27, 38, 0.95);
  border: 1px solid var(--accent-lime);
  color: var(--text-main);
  padding: 14px 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--accent-lime-glow);
  font-size: 0.9rem;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
